Added PCx86 support for autoType as a URL parameter
This commit is contained in:
parent
0228094f1d
commit
601a6fa4a0
23 changed files with 659 additions and 505 deletions
File diff suppressed because one or more lines are too long
|
|
@ -2850,7 +2850,7 @@ class Component {
|
|||
static notice(s, fPrintOnly, id)
|
||||
{
|
||||
if (!COMPILED) {
|
||||
Component.println(s, Component.TYPE.NOTICE, id);
|
||||
Component.println(s, Component.PRINT.NOTICE, id);
|
||||
}
|
||||
if (!fPrintOnly) Component.alertUser((id? (id + ": ") : "") + s);
|
||||
return true;
|
||||
|
|
@ -2864,7 +2864,7 @@ class Component {
|
|||
static warning(s)
|
||||
{
|
||||
if (!COMPILED) {
|
||||
Component.println(s, Component.TYPE.WARNING);
|
||||
Component.println(s, Component.PRINT.WARNING);
|
||||
}
|
||||
Component.alertUser(s);
|
||||
}
|
||||
|
|
@ -2877,7 +2877,7 @@ class Component {
|
|||
static error(s)
|
||||
{
|
||||
if (!COMPILED) {
|
||||
Component.println(s, Component.TYPE.ERROR);
|
||||
Component.println(s, Component.PRINT.ERROR);
|
||||
}
|
||||
Component.alertUser(s);
|
||||
}
|
||||
|
|
@ -3155,7 +3155,7 @@ class Component {
|
|||
var sParms = element.getAttribute("data-value");
|
||||
if (sParms) {
|
||||
try {
|
||||
parms = eval("(" + sParms + ")"); // jshint ignore:line
|
||||
parms = eval('(' + sParms + ')'); // jshint ignore:line
|
||||
/*
|
||||
* We can no longer invoke removeAttribute() because some components (eg, Panel) need
|
||||
* to run their initXXX() code more than once, to avoid initialization-order dependencies.
|
||||
|
|
@ -3331,7 +3331,7 @@ class Component {
|
|||
* instead, but it's a bit too confusing mingling script output in a window that
|
||||
* already mingles Debugger and machine output.
|
||||
*/
|
||||
Component.println(aTokens.join(' '), Component.TYPE.SCRIPT);
|
||||
Component.println(aTokens.join(' '), Component.PRINT.SCRIPT);
|
||||
|
||||
var fnCallReady = null;
|
||||
if (Component.asyncCommands.indexOf(sCommand) >= 0) {
|
||||
|
|
@ -3524,7 +3524,7 @@ class Component {
|
|||
this.println = function(component, control) {
|
||||
return function printlnControl(s, type, id) {
|
||||
if (!s) s = "";
|
||||
if (type != Component.TYPE.PROGRESS || s.slice(-3) != "...") {
|
||||
if (type != Component.PRINT.PROGRESS || s.slice(-3) != "...") {
|
||||
if (type) s = type + ": " + s;
|
||||
Component.appendControl(control, s + '\n');
|
||||
} else {
|
||||
|
|
@ -3915,11 +3915,20 @@ class Component {
|
|||
}
|
||||
|
||||
/*
|
||||
* These are the standard TYPE values you can pass as an optional argument to println(); in reality,
|
||||
* Types recognized and supported by selected functions (eg, Computer.getMachineParm())
|
||||
*/
|
||||
Component.TYPE = {
|
||||
NUMBER: "number",
|
||||
OBJECT: "object",
|
||||
STRING: "string"
|
||||
};
|
||||
|
||||
/*
|
||||
* These are the standard PRINT values you can pass as an optional argument to println(); in reality,
|
||||
* you can pass anything you want, because they are simply prepended to the message, although PROGRESS
|
||||
* messages may also be merged with earlier similar messages to keep the output buffer under control.
|
||||
*/
|
||||
Component.TYPE = {
|
||||
Component.PRINT = {
|
||||
ERROR: "error",
|
||||
NOTICE: "notice",
|
||||
PROGRESS: "progress",
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -3078,7 +3078,7 @@ class Component {
|
|||
static notice(s, fPrintOnly, id)
|
||||
{
|
||||
if (!COMPILED) {
|
||||
Component.println(s, Component.TYPE.NOTICE, id);
|
||||
Component.println(s, Component.PRINT.NOTICE, id);
|
||||
}
|
||||
if (!fPrintOnly) Component.alertUser((id? (id + ": ") : "") + s);
|
||||
return true;
|
||||
|
|
@ -3092,7 +3092,7 @@ class Component {
|
|||
static warning(s)
|
||||
{
|
||||
if (!COMPILED) {
|
||||
Component.println(s, Component.TYPE.WARNING);
|
||||
Component.println(s, Component.PRINT.WARNING);
|
||||
}
|
||||
Component.alertUser(s);
|
||||
}
|
||||
|
|
@ -3105,7 +3105,7 @@ class Component {
|
|||
static error(s)
|
||||
{
|
||||
if (!COMPILED) {
|
||||
Component.println(s, Component.TYPE.ERROR);
|
||||
Component.println(s, Component.PRINT.ERROR);
|
||||
}
|
||||
Component.alertUser(s);
|
||||
}
|
||||
|
|
@ -3383,7 +3383,7 @@ class Component {
|
|||
var sParms = element.getAttribute("data-value");
|
||||
if (sParms) {
|
||||
try {
|
||||
parms = eval("(" + sParms + ")"); // jshint ignore:line
|
||||
parms = eval('(' + sParms + ')'); // jshint ignore:line
|
||||
/*
|
||||
* We can no longer invoke removeAttribute() because some components (eg, Panel) need
|
||||
* to run their initXXX() code more than once, to avoid initialization-order dependencies.
|
||||
|
|
@ -3559,7 +3559,7 @@ class Component {
|
|||
* instead, but it's a bit too confusing mingling script output in a window that
|
||||
* already mingles Debugger and machine output.
|
||||
*/
|
||||
Component.println(aTokens.join(' '), Component.TYPE.SCRIPT);
|
||||
Component.println(aTokens.join(' '), Component.PRINT.SCRIPT);
|
||||
|
||||
var fnCallReady = null;
|
||||
if (Component.asyncCommands.indexOf(sCommand) >= 0) {
|
||||
|
|
@ -3752,7 +3752,7 @@ class Component {
|
|||
this.println = function(component, control) {
|
||||
return function printlnControl(s, type, id) {
|
||||
if (!s) s = "";
|
||||
if (type != Component.TYPE.PROGRESS || s.slice(-3) != "...") {
|
||||
if (type != Component.PRINT.PROGRESS || s.slice(-3) != "...") {
|
||||
if (type) s = type + ": " + s;
|
||||
Component.appendControl(control, s + '\n');
|
||||
} else {
|
||||
|
|
@ -4143,11 +4143,20 @@ class Component {
|
|||
}
|
||||
|
||||
/*
|
||||
* These are the standard TYPE values you can pass as an optional argument to println(); in reality,
|
||||
* Types recognized and supported by selected functions (eg, Computer.getMachineParm())
|
||||
*/
|
||||
Component.TYPE = {
|
||||
NUMBER: "number",
|
||||
OBJECT: "object",
|
||||
STRING: "string"
|
||||
};
|
||||
|
||||
/*
|
||||
* These are the standard PRINT values you can pass as an optional argument to println(); in reality,
|
||||
* you can pass anything you want, because they are simply prepended to the message, although PROGRESS
|
||||
* messages may also be merged with earlier similar messages to keep the output buffer under control.
|
||||
*/
|
||||
Component.TYPE = {
|
||||
Component.PRINT = {
|
||||
ERROR: "error",
|
||||
NOTICE: "notice",
|
||||
PROGRESS: "progress",
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue