Update of /cvsroot/qooxdoo/qooxdoo/source/script/core
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13009/source/script/core
Modified Files:
Tag: renderer
QxApplication.js
Log Message:
Improved application startup output
Index: QxApplication.js
===================================================================
RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/core/QxApplication.js,v
retrieving revision 1.2.2.59
retrieving revision 1.2.2.60
diff -u -d -r1.2.2.59 -r1.2.2.60
--- QxApplication.js 25 Jan 2006 17:47:59 -0000 1.2.2.59
+++ QxApplication.js 27 Jan 2006 11:05:10 -0000 1.2.2.60
@@ -120,7 +120,7 @@
{
var s = (new Date).valueOf();
- this.debug("Pre phase...");
+ this.info("Pre phase");
try
{
@@ -134,7 +134,7 @@
this._printClientInfo();
// Execute user define 'pre' method
- this.debug(" - executing application pre");
+ this.debug("Executing application pre");
this.pre();
// Fire global 'pre' event
@@ -155,19 +155,18 @@
return this.error("...failed: " + ex);
};
- this.debug(" - done in: " + ((new Date).valueOf() - s) + "ms");
- this.debug("\n");
+ this.debug("Done in: " + ((new Date).valueOf() - s) + "ms");
};
proto._initMain = function()
{
var s = (new Date).valueOf();
- this.debug("Main phase...");
+ this.info("Main phase");
try
{
// Execute user define 'main' method
- this.debug(" - executing application main");
+ this.debug("Executing application main");
this.main();
// Fire global 'main' event
@@ -181,14 +180,13 @@
return this.error("...failed: " + ex);
};
- this.debug(" - done in: " + ((new Date).valueOf() - s) + "ms");
- this.debug("\n");
+ this.debug("Done in: " + ((new Date).valueOf() - s) + "ms");
};
proto._initPreload = function()
{
var s = (new Date).valueOf();
- this.debug("Preloading phase...");
+ this.info("Preloading phase");
try
{
@@ -206,15 +204,16 @@
window.setTimeout(function()
{
var s = (new Date).valueOf();
- window.application.debug("Widget phase");
- window.application.debug(" - updating widgets");
+ var a = window.application;
- window.application._ready = true;
+ a.info("Widget phase");
+ a.debug("Rendering widgets");
+
+ a._ready = true;
QxWidget.flushGlobalQueues(true);
- window.application.debug(" - done in: " + ((new Date).valueOf() - s) + "ms");
- window.application.debug("\n");
- window.application._initPostload();
+ a.debug("Done in: " + ((new Date).valueOf() - s) + "ms");
+ a._initPostload();
}, 100);
}
catch(ex)
@@ -222,14 +221,13 @@
return this.error("...failed: " + ex);
};
- this.debug(" - done in: " + ((new Date).valueOf() - s) + "ms");
- this.debug("\n");
+ this.debug("Done in: " + ((new Date).valueOf() - s) + "ms");
};
proto._initPostload = function()
{
var s = (new Date).valueOf();
- this.debug("Post phase...");
+ this.info("Post phase");
try
{
@@ -237,7 +235,7 @@
this._printInstanceInfo();
// Execute user define 'post' method
- this.debug(" - executing application post");
+ this.debug("Executing application post");
this.post();
// Post load images which could be visible later
@@ -259,7 +257,7 @@
return this.error("...failed: " + ex);
};
- this.debug(" - done in: " + ((new Date).valueOf() - s) + "ms");
+ this.debug("Done in: " + ((new Date).valueOf() - s) + "ms");
};
@@ -274,20 +272,20 @@
*/
proto._printInstanceInfo = function() {
- this.debug(" - number of instances: " + QxObjectDataBase.length);
+ this.debug("Number of instances: " + QxObjectDataBase.length);
};
proto._printClassInfo = function() {
- this.debug(" - number of classes: " + QxUtil.getObjectLength(QxClasses));
+ this.debug("Number of classes: " + QxUtil.getObjectLength(QxClasses));
};
proto._printPropertyInfo = function() {
- this.debug(" - number of properties: " + QxPropertyCounter);
+ this.debug("Number of properties: " + QxPropertyCounter);
};
proto._printClientInfo = function()
{
- this.debug(" - client detection: " + QxClient.getEngine() + QxConst.CORE_SPACE + QxClient.getVersion() + (QxUtil.isValidString(QxClient.getEmulation()) ? QxConst.CORE_SPACE + QxClient.getEmulation() : QxConst.CORE_EMPTY));
+ this.debug("Client: " + QxClient.getEngine() + QxConst.CORE_SPACE + QxClient.getVersion() + (QxUtil.isValidString(QxClient.getEmulation()) ? QxConst.CORE_SPACE + QxClient.getEmulation() : QxConst.CORE_EMPTY));
if (!QxClient.isInQuirksMode() && QxClient.isMshtml()) {
this.warn("Document is not in Quirksmode! This is needed in Internet Explorer <= 6 to let qooxdoo render correctly.");
|