qooxdoo-commit Mailing List for qooxdoo (Page 1419)
Brought to you by:
ecker,
martinwittemann
You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(453) |
Feb
(800) |
Mar
(247) |
Apr
(324) |
May
(172) |
Jun
(145) |
Jul
(265) |
Aug
(447) |
Sep
(271) |
Oct
(312) |
Nov
(327) |
Dec
(472) |
| 2007 |
Jan
(493) |
Feb
(631) |
Mar
(565) |
Apr
(469) |
May
(757) |
Jun
(460) |
Jul
(440) |
Aug
(411) |
Sep
(813) |
Oct
(339) |
Nov
(112) |
Dec
(215) |
| 2008 |
Jan
(423) |
Feb
(671) |
Mar
(578) |
Apr
(566) |
May
(498) |
Jun
(411) |
Jul
(845) |
Aug
(1208) |
Sep
(176) |
Oct
(144) |
Nov
(216) |
Dec
(353) |
| 2009 |
Jan
(363) |
Feb
(700) |
Mar
(416) |
Apr
(362) |
May
(292) |
Jun
(238) |
Jul
(243) |
Aug
(216) |
Sep
(287) |
Oct
(304) |
Nov
(300) |
Dec
(416) |
| 2010 |
Jan
(200) |
Feb
(200) |
Mar
(183) |
Apr
(259) |
May
(217) |
Jun
(241) |
Jul
(320) |
Aug
(330) |
Sep
(209) |
Oct
(217) |
Nov
(460) |
Dec
(392) |
| 2011 |
Jan
(338) |
Feb
(465) |
Mar
(1257) |
Apr
(433) |
May
(505) |
Jun
(417) |
Jul
(438) |
Aug
(241) |
Sep
(258) |
Oct
(223) |
Nov
(224) |
Dec
(172) |
| 2012 |
Jan
(151) |
Feb
(119) |
Mar
(220) |
Apr
(182) |
May
(236) |
Jun
(264) |
Jul
(188) |
Aug
(145) |
Sep
(186) |
Oct
(183) |
Nov
(243) |
Dec
(126) |
| 2013 |
Jan
(133) |
Feb
(165) |
Mar
(122) |
Apr
(116) |
May
(177) |
Jun
(177) |
Jul
(290) |
Aug
(150) |
Sep
(165) |
Oct
(168) |
Nov
(252) |
Dec
(152) |
| 2014 |
Jan
(109) |
Feb
(150) |
Mar
(135) |
Apr
(186) |
May
(235) |
Jun
(181) |
Jul
(193) |
Aug
(117) |
Sep
(118) |
Oct
(194) |
Nov
(207) |
Dec
(261) |
| 2015 |
Jan
(138) |
Feb
(218) |
Mar
(180) |
Apr
(141) |
May
(114) |
Jun
(24) |
Jul
(22) |
Aug
(14) |
Sep
(22) |
Oct
(11) |
Nov
(7) |
Dec
(10) |
| 2016 |
Jan
(1) |
Feb
(31) |
Mar
(13) |
Apr
(30) |
May
(34) |
Jun
(25) |
Jul
(16) |
Aug
(14) |
Sep
(21) |
Oct
(20) |
Nov
(6) |
Dec
|
|
From: Sebastian W. <wp...@us...> - 2006-01-31 12:26:49
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/managers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24881/source/script/managers Modified Files: Tag: renderer QxEventManager.js Log Message: Minor cleanup Index: QxEventManager.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/managers/QxEventManager.js,v retrieving revision 1.14.2.65 retrieving revision 1.14.2.66 diff -u -d -r1.14.2.65 -r1.14.2.66 --- QxEventManager.js 30 Jan 2006 13:36:27 -0000 1.14.2.65 +++ QxEventManager.js 31 Jan 2006 12:26:41 -0000 1.14.2.66 @@ -255,7 +255,6 @@ // Unregister activate events bel.onactivate = null; - bel.onbeforeactivate = null; // Unregister selection events bel.onselect = del.onselectstart = del.onselectionchange = null; @@ -1095,8 +1094,6 @@ this.detachEvents(); - this._attachedClientWindow = null; - this._lastMouseEventType = null; this._lastMouseDown = null; this._lastMouseEventDate = null; |
|
From: Sebastian W. <wp...@us...> - 2006-01-31 12:26:09
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24577/source/script/gui Modified Files: Tag: renderer QxWidget.js Log Message: Removed states in disposer, too Index: QxWidget.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/gui/Attic/QxWidget.js,v retrieving revision 1.1.2.61 retrieving revision 1.1.2.62 diff -u -d -r1.1.2.61 -r1.1.2.62 --- QxWidget.js 30 Jan 2006 17:24:53 -0000 1.1.2.61 +++ QxWidget.js 31 Jan 2006 12:26:00 -0000 1.1.2.62 @@ -4910,6 +4910,7 @@ delete this._styleProperties; delete this._htmlProperties; delete this._htmlAttributes; + delete this._states; // remove queue content for (var i in this._jobQueue) { |
|
From: Sebastian W. <wp...@us...> - 2006-01-31 12:25:36
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24373/source/script/core Modified Files: Tag: renderer QxObject.js Log Message: Improved common dispose method for properties, minor comments added, some restructuring Index: QxObject.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/core/QxObject.js,v retrieving revision 1.2.2.37 retrieving revision 1.2.2.38 diff -u -d -r1.2.2.37 -r1.2.2.38 --- QxObject.js 28 Jan 2006 18:19:24 -0000 1.2.2.37 +++ QxObject.js 31 Jan 2006 12:25:23 -0000 1.2.2.38 @@ -42,7 +42,7 @@ { this._hashCode = QxObjectCounter++; - if (vAutoDispose != false) { + if (vAutoDispose !== false) { QxObjectDataBase.push(this); }; }; @@ -59,6 +59,9 @@ --------------------------------------------------------------------------- */ +/*! + Returns a string represantation of the qooxdoo object. +*/ proto.toString = function() { if(this.classname) { @@ -68,11 +71,26 @@ return "[object Object]"; }; +/*! + Return unique hash code of object +*/ proto.toHashCode = function() { return this._hashCode; }; +/*! + Returns true if the object is disposed. +*/ +proto.getDisposed = function() { + return this._disposed; +}; +/*! + Returns true if the object is disposed. +*/ +proto.isDisposed = function() { + return this._disposed; +}; @@ -85,18 +103,30 @@ --------------------------------------------------------------------------- */ +/*! + Print out a debug message to the qooxdoo debug console. +*/ proto.debug = function(m, c) { QxDebug(this.classname + QxObject.DEBUG_MSG_BEFORE + this._hashCode + QxObject.DEBUG_MSG_AFTER, m, c); }; +/*! + Print out an info message info to the qooxdoo debug console. +*/ proto.info = function(m, c) { this.debug(m, "info"); }; +/*! + Print out an warning to the qooxdoo debug console. +*/ proto.warn = function(m, c) { this.debug(m, "warning"); }; +/*! + Print out an error to the qooxdoo debug console. +*/ proto.error = function(m, f) { if (QxUtil.isValidString(f)) @@ -366,7 +396,7 @@ return; }; - // Dispose data + // Dispose (user) data if (this._data) { for(var p in this._data) { @@ -376,34 +406,19 @@ this._data = null; }; - // Delete Entry from Object DB - QxObjectDataBase[this._hashCode] = null; - delete QxObjectDataBase[this._hashCode]; - - // Finally cleanup the other stuff - for (var obj in this) + // Finally cleanup properties + if (this._objectproperties) { - if (typeof this[obj] == QxConst.TYPEOF_OBJECT) - { - this[obj] = null; - delete this[obj]; + var a = this._objectproperties.split(QxConst.CORE_COMMA); + for (var i=0, l=a.length; i<l; i++) { + delete this[QxValues[a[i]]]; }; }; + // Delete Entry from Object DB + QxObjectDataBase[this._hashCode] = null; + delete QxObjectDataBase[this._hashCode]; + // Mark as disposed this._disposed = true; }; - -/*! - Returns true if the object is disposed. -*/ -proto.getDisposed = function() { - return this._disposed; -}; - -/*! - Returns true if the object is disposed. -*/ -proto.isDisposed = function() { - return this._disposed; -}; |
|
From: Sebastian W. <wp...@us...> - 2006-01-31 10:06:46
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv332/source/script/core Modified Files: Tag: renderer QxTarget.js Log Message: Fixed hasEventListeners to also check the content of the last hashtable Index: QxTarget.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/core/QxTarget.js,v retrieving revision 1.2.2.36 retrieving revision 1.2.2.37 diff -u -d -r1.2.2.36 -r1.2.2.37 --- QxTarget.js 30 Jan 2006 13:36:26 -0000 1.2.2.36 +++ QxTarget.js 31 Jan 2006 10:06:38 -0000 1.2.2.37 @@ -133,7 +133,7 @@ Check if there are one or more listeners for an event type */ proto.hasEventListeners = function(vType) { - return this._listeners && typeof this._listeners[vType] != QxConst.TYPEOF_UNDEFINED; + return this._listeners && typeof this._listeners[vType] != QxConst.TYPEOF_UNDEFINED && !QxUtil.isObjectEmpty(this._listeners[vType]); }; /*! |
|
From: Sebastian W. <wp...@us...> - 2006-01-31 08:36:54
|
Update of /cvsroot/qooxdoo/qooxdoo/tools In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32156/tools Modified Files: Tag: renderer makebuilds.sh patchtest.sh synchome.sh Log Message: Optimized file sync Index: synchome.sh =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/tools/synchome.sh,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -u -d -r1.1.2.4 -r1.1.2.5 --- synchome.sh 21 Nov 2005 13:59:22 -0000 1.1.2.4 +++ synchome.sh 31 Jan 2006 08:36:45 -0000 1.1.2.5 @@ -12,4 +12,4 @@ find build/snapshots/allwithdocs ! -type d | xargs chmod a+r echo "[D-1/1] >>> Syncing with homepage" -rsync -rlvz --delete build/snapshots/allwithdocs/* ${SCHLUNDUSER}@qooxdoo.oss.schlund.de:/kunden/homepages/21/d74480075/htdocs/qooxdoo/demo/dev +rsync -rlvzc --delete build/snapshots/allwithdocs/* ${SCHLUNDUSER}@qooxdoo.oss.schlund.de:/kunden/homepages/21/d74480075/htdocs/qooxdoo/demo/dev Index: makebuilds.sh =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/tools/makebuilds.sh,v retrieving revision 1.4.2.3 retrieving revision 1.4.2.4 diff -u -d -r1.4.2.3 -r1.4.2.4 --- makebuilds.sh 27 Jan 2006 10:46:50 -0000 1.4.2.3 +++ makebuilds.sh 31 Jan 2006 08:36:45 -0000 1.4.2.4 @@ -21,8 +21,8 @@ echo "[B-1/4] >>> Building ALL-WITH-DOCS Snapshot" mkdir -p build/snapshots/allwithdocs -rsync -a build/distribution/public build/snapshots/allwithdocs/ -rsync -a build/distribution/tools build/snapshots/allwithdocs/ +rsync -ac build/distribution/public build/snapshots/allwithdocs/ +rsync -ac build/distribution/tools build/snapshots/allwithdocs/ mkdir -p build/archives Index: patchtest.sh =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/tools/patchtest.sh,v retrieving revision 1.5.2.8 retrieving revision 1.5.2.9 diff -u -d -r1.5.2.8 -r1.5.2.9 --- patchtest.sh 26 Jan 2006 14:21:42 -0000 1.5.2.8 +++ patchtest.sh 31 Jan 2006 08:36:45 -0000 1.5.2.9 @@ -4,13 +4,13 @@ echo ">>> Syncing files..." mkdir -p public/html -rsync -av --exclude=CVS source/html public +rsync -avc --exclude=CVS source/html public mkdir -p public/images -rsync -av --exclude=CVS source/images public/ +rsync -avc --exclude=CVS source/images public/ mkdir -p public/style -rsync -av --exclude=CVS --exclude=*.css source/style public/ +rsync -avc --exclude=CVS --exclude=*.css source/style public/ echo ">>> Patching files..." prevfile="" |
|
From: Sebastian W. <wp...@us...> - 2006-01-31 08:05:47
|
Update of /cvsroot/qooxdoo/qooxdoo In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19847 Modified Files: Tag: renderer CHANGELOG Log Message: Updated Index: CHANGELOG =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/Attic/CHANGELOG,v retrieving revision 1.1.2.45 retrieving revision 1.1.2.46 diff -u -d -r1.1.2.45 -r1.1.2.46 --- CHANGELOG 27 Jan 2006 13:58:22 -0000 1.1.2.45 +++ CHANGELOG 31 Jan 2006 08:05:38 -0000 1.1.2.46 @@ -1,3 +1,120 @@ +2006-01-30 18:24 wpbasti + + * source/script/gui/QxWidget.js: Minor improvement + +2006-01-30 18:22 wpbasti + + * source/script/widgets/QxInputCheckIcon.js: Reverted last minor + cleanup + +2006-01-30 18:21 wpbasti + + * source/script/widgets/QxInputCheckIcon.js: Minor cleanup + +2006-01-30 14:47 wpbasti + + * source/script/core/QxApplication.js: Minor fix + +2006-01-30 14:36 wpbasti + + * source/script/core/QxApplication.js, + source/script/core/QxTarget.js, source/script/core/QxUtil.js, + source/script/gui/QxImagePreloader.js, + source/script/gui/QxImagePreloaderSystem.js, + source/script/gui/QxWidgetCore.js, + source/script/managers/QxEventManager.js, + source/script/widgets/QxImage.js, tools/config.sh: Greatly + improved application startup handling through optimizations for + image pre and postloading, introduce new QxImagePreloaderSystem + +2006-01-30 13:11 wpbasti + + * source/script/core/QxExtend.js: Improved error output of + addProperty + +2006-01-30 12:42 wpbasti + + * source/: script/core/QxDom.js, + script/widgets/QxClientDocument.js, style/demolayout.css: Changed + css fix handling again to apply CSS rules earlier + +2006-01-30 12:33 wpbasti + + * source/script/widgets/QxListViewContentCellImage.js: Fixed + manager access + +2006-01-30 12:27 wpbasti + + * source/script/widgets/: QxHtml.js, QxLabel.js, QxText.js: Added + wrap property to QxText and QxHtml to fix some listview errors + +2006-01-28 19:19 wpbasti + + * source/script/: core/QxApplication.js, core/QxObject.js, + core/QxTarget.js, deprecated/QxXmlHttpLoader.js, + gui/QxCommand.js, managers/QxRangeManager.js, + managers/QxSelectionManager.js, widgets/QxGallery.js, + widgets/QxIframe.js, widgets/QxSpinner.js: Fixed many memory + leaks, optimized some disposers, added missing dispose call for + some events + +2006-01-28 18:49 wpbasti + + * tools/disposecheck.sh: New test tool + +2006-01-28 18:37 wpbasti + + * source/script/widgets/QxClientDocument.js: Updated/Fixed disposer + +2006-01-28 18:36 wpbasti + + * source/script/gui/QxWidget.js: Minor addition + +2006-01-28 18:34 wpbasti + + * source/script/events/QxDomEvent.js: Minor cleanup + +2006-01-28 16:24 wpbasti + + * source/script/gui/QxParent.js: Minor fix + +2006-01-28 13:28 wpbasti + + * source/script/: core/QxApplication.js, gui/QxClientWindow.js, + gui/QxParent.js, gui/QxWidget.js, managers/QxImageManager.js, + widgets/QxImage.js: Minor improvements and fixes + +2006-01-28 13:25 wpbasti + + * source/html/test/Leak_1.html: Added new mem leak test + +2006-01-27 21:53 wpbasti + + * source/script/appearance/QxAppearanceTheme-Default.js: Minor fix + +2006-01-27 21:22 wpbasti + + * source/style/demolayout.css: Minor improvement + +2006-01-27 16:32 wpbasti + + * source/script/core/: QxApplication.js, QxConst.js, QxExtend.js, + QxNative.js, QxObject.js, QxObjectCore.js: Improved dependency + informations + +2006-01-27 16:28 wpbasti + + * source/script/widgets/QxLabel.js: Minor fix + +2006-01-27 16:10 wpbasti + + * source/script/appearance/QxAppearanceTheme-Default.js: Improved + labels and list-items in list which have an overflow: scroll + +2006-01-27 14:58 wpbasti + + * CHANGELOG: Updated + 2006-01-27 14:49 wpbasti * tools/script/demolayout.js.in: Removed release branch link |
|
From: Sebastian W. <wp...@us...> - 2006-01-30 17:25:05
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24069/source/script/gui Modified Files: Tag: renderer QxWidget.js Log Message: Minor improvement Index: QxWidget.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/gui/Attic/QxWidget.js,v retrieving revision 1.1.2.60 retrieving revision 1.1.2.61 diff -u -d -r1.1.2.60 -r1.1.2.61 --- QxWidget.js 28 Jan 2006 17:36:12 -0000 1.1.2.60 +++ QxWidget.js 30 Jan 2006 17:24:53 -0000 1.1.2.61 @@ -3621,7 +3621,9 @@ proto._visualizeBlur = function() { - if (!QxFocusManager.mouseFocus && this.getEnableElementFocus()) + // force blur, even if mouseFocus is not active because we + // need to be sure that the previous focus rect gets removed. + if (this.getEnableElementFocus()) { try { this.getElement().blur(); |
|
From: Sebastian W. <wp...@us...> - 2006-01-30 17:22:22
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/widgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23064/source/script/widgets Modified Files: Tag: renderer QxInputCheckIcon.js Log Message: Reverted last minor cleanup Index: QxInputCheckIcon.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxInputCheckIcon.js,v retrieving revision 1.1.2.34 retrieving revision 1.1.2.35 diff -u -d -r1.1.2.34 -r1.1.2.35 --- QxInputCheckIcon.js 30 Jan 2006 17:21:26 -0000 1.1.2.34 +++ QxInputCheckIcon.js 30 Jan 2006 17:22:13 -0000 1.1.2.35 @@ -49,6 +49,7 @@ }; // we need to be sure that the dom protection of this is added + this.forceTabIndex(1); this.setTabIndex(-1); }; |
|
From: Sebastian W. <wp...@us...> - 2006-01-30 17:21:41
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/widgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22781/source/script/widgets Modified Files: Tag: renderer QxInputCheckIcon.js Log Message: Minor cleanup Index: QxInputCheckIcon.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxInputCheckIcon.js,v retrieving revision 1.1.2.33 retrieving revision 1.1.2.34 diff -u -d -r1.1.2.33 -r1.1.2.34 --- QxInputCheckIcon.js 26 Jan 2006 12:35:26 -0000 1.1.2.33 +++ QxInputCheckIcon.js 30 Jan 2006 17:21:26 -0000 1.1.2.34 @@ -35,7 +35,7 @@ this.setTagName("INPUT"); this.setSelectable(false); - + if (QxClient.isMshtml()) { // Take control over size of element (mshtml) @@ -47,9 +47,8 @@ // Remove gecko default margin this.setMargin(0); }; - + // we need to be sure that the dom protection of this is added - this.forceTabIndex(1); this.setTabIndex(-1); }; @@ -83,10 +82,10 @@ proto._afterAppear = function() { QxTerminator.prototype._afterAppear.call(this); - + var vElement = this.getElement(); vElement.checked = this.getChecked(); - + if (!this.getEnabled()) { vElement.disabled = true; }; |
|
From: Sebastian W. <wp...@us...> - 2006-01-30 13:47:16
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv885/source/script/core Modified Files: Tag: renderer QxApplication.js Log Message: Minor fix Index: QxApplication.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/core/QxApplication.js,v retrieving revision 1.2.2.64 retrieving revision 1.2.2.65 diff -u -d -r1.2.2.64 -r1.2.2.65 --- QxApplication.js 30 Jan 2006 13:36:26 -0000 1.2.2.64 +++ QxApplication.js 30 Jan 2006 13:47:06 -0000 1.2.2.65 @@ -200,7 +200,7 @@ this.debug("Preloading images..."); var vPreloaderSystem = new QxImagePreloaderSystem(QxUtil.copyObject(QxImageManager._preloadList)); - vPreloaderSystem.addEventListener(QxConst.EVENT_TYPE_COMPLETED, this._runWidgets, this); + vPreloaderSystem.addEventListener(QxConst.EVENT_TYPE_COMPLETED, this._runPreloadDone, this); vPreloaderSystem.start(); }; |
|
From: Sebastian W. <wp...@us...> - 2006-01-30 13:36:38
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29753/source/script/core Modified Files: Tag: renderer QxApplication.js QxTarget.js QxUtil.js Log Message: Greatly improved application startup handling through optimizations for image pre and postloading, introduce new QxImagePreloaderSystem Index: QxUtil.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/core/Attic/QxUtil.js,v retrieving revision 1.1.2.16 retrieving revision 1.1.2.17 diff -u -d -r1.1.2.16 -r1.1.2.17 --- QxUtil.js 23 Jan 2006 12:28:53 -0000 1.1.2.16 +++ QxUtil.js 30 Jan 2006 13:36:26 -0000 1.1.2.17 @@ -209,14 +209,18 @@ QxUtil.mergeObjects = function(vObjectA) { var vLength = arguments.length; - + for (var i=1; i<vLength; i++) { QxUtil.mergeObjectWith(vObjectA, arguments[i]); }; - + return vObjectA; }; +QxUtil.copyObject = function(vObject) { + return QxUtil.mergeObjectWith({}, vObject); +}; + Index: QxTarget.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/core/QxTarget.js,v retrieving revision 1.2.2.35 retrieving revision 1.2.2.36 diff -u -d -r1.2.2.35 -r1.2.2.36 --- QxTarget.js 28 Jan 2006 18:19:24 -0000 1.2.2.35 +++ QxTarget.js 30 Jan 2006 13:36:26 -0000 1.2.2.36 @@ -179,6 +179,14 @@ return; }; + if (vEvent.getTarget() == null) { + vEvent.setTarget(this); + }; + + if (vEvent.getCurrentTarget() == null) { + vEvent.setCurrentTarget(this); + }; + // Dispatch Event this._dispatchEvent(vEvent, vEnableDispose); Index: QxApplication.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/core/QxApplication.js,v retrieving revision 1.2.2.63 retrieving revision 1.2.2.64 diff -u -d -r1.2.2.63 -r1.2.2.64 --- QxApplication.js 28 Jan 2006 18:19:24 -0000 1.2.2.63 +++ QxApplication.js 30 Jan 2006 13:36:26 -0000 1.2.2.64 @@ -42,21 +42,6 @@ window.application.init(); }; -function QxApplicationWidgetInit() -{ - var s = (new Date).valueOf(); - var a = window.application; - - a.info("Widget phase"); - a.debug("Rendering widgets"); - - a._ready = true; - QxWidget.flushGlobalQueues(true); - - a.debug("Done in: " + ((new Date).valueOf() - s) + "ms"); - a._initPostload(); -}; - function QxApplicationUnload() { window.application.dispose(); @@ -122,9 +107,9 @@ this._initDone = true; - this._initApplication(); - this._initMain(); - this._initPreload(); + this._runInitialization(); + this._runApplication(); + this._runPreload(); // initPostload will be executed from the first queue flush }; @@ -140,11 +125,11 @@ --------------------------------------------------------------------------- */ -proto._initApplication = function() +proto._runInitialization = function() { var s = (new Date).valueOf(); - this.info("Pre phase"); + this.info("Initialization phase"); try { @@ -179,10 +164,10 @@ return this.error("...failed: " + ex); }; - this.debug("Done in: " + ((new Date).valueOf() - s) + "ms"); + this.debug("Done in: " + ((new Date).valueOf() - s) + QxConst.CORE_MILLISECONDS); }; -proto._initMain = function() +proto._runApplication = function() { var s = (new Date).valueOf(); this.info("Main phase"); @@ -204,40 +189,42 @@ return this.error("...failed: " + ex); }; - this.debug("Done in: " + ((new Date).valueOf() - s) + "ms"); + this.debug("Done in: " + ((new Date).valueOf() - s) + QxConst.CORE_MILLISECONDS); }; -proto._initPreload = function() +proto._runPreload = function() { - var s = (new Date).valueOf(); - this.info("Preloading phase"); + this._preloadStart = (new Date).valueOf(); - try - { - // Preloading images which should be currently visible - var vPreloadList = QxImageManager._preloadList; + this.info("Preload phase"); + this.debug("Preloading images..."); - for (var vImageUri in vPreloadList) { - new QxImagePreloader(QxImageManager.buildURI(vImageUri)); - }; + var vPreloaderSystem = new QxImagePreloaderSystem(QxUtil.copyObject(QxImageManager._preloadList)); + vPreloaderSystem.addEventListener(QxConst.EVENT_TYPE_COMPLETED, this._runWidgets, this); + vPreloaderSystem.start(); +}; - // Fire global 'cache' event - this.createDispatchEvent(QxConst.EVENT_TYPE_CACHE); +proto._runPreloadDone = function() +{ + this.debug("Done in: " + ((new Date).valueOf() - this._preloadStart) + QxConst.CORE_MILLISECONDS); + this._runWidgets(); +}; - // Finally flushing the queues with a timeout of 100ms - // window.setTimeout(QxApplicationWidgetInit, 100); - } - catch(ex) - { - return this.error("...failed: " + ex); - }; +proto._runWidgets = function() +{ + var s = (new Date).valueOf(); - this.debug("Done in: " + ((new Date).valueOf() - s) + "ms"); + this.info("Widget phase"); + this.debug("Rendering widgets"); - QxApplicationWidgetInit(); + this._ready = true; + QxWidget.flushGlobalQueues(true); + + this.debug("Done in: " + ((new Date).valueOf() - s) + QxConst.CORE_MILLISECONDS); + this._runPost(); }; -proto._initPostload = function() +proto._runPost = function() { var s = (new Date).valueOf(); this.info("Post phase"); @@ -251,17 +238,6 @@ this.debug("Executing application post"); this.post(); - // Post load images which could be visible later - var vPreloadList = QxImageManager._preloadList; - var vImageList = QxImageManager._imageList; - - for (var vImageUri in vImageList) - { - if (!vPreloadList[vImageUri]) { - new QxImagePreloader(QxImageManager.buildURI(vImageUri)); - }; - }; - // Fire global 'post' event this.createDispatchEvent(QxConst.EVENT_TYPE_POST); } @@ -270,9 +246,38 @@ return this.error("...failed: " + ex); }; - this.debug("Done in: " + ((new Date).valueOf() - s) + "ms"); + this.debug("Done in: " + ((new Date).valueOf() - s) + QxConst.CORE_MILLISECONDS); +}; + +proto._runPostload = function() +{ + this._postloadStart = (new Date).valueOf(); + + this.info("Postload phase"); + this.debug("Preloading images..."); + + // Post load images which could be visible later + var vPreloadList = QxImageManager._preloadList; + var vImageList = QxImageManager._imageList; + + var vPostImageList = {}; + + for (var vImageUri in vImageList) + { + if (!vPreloadList[vImageUri]) { + vPostImageList[vImageUri] = true; + }; + }; + + var vPreloaderSystem = new QxImagePreloaderSystem(vPostImageList); + vPreloaderSystem.addEventListener(QxConst.EVENT_TYPE_COMPLETED, this._runPostloadDone, this); + vPreloaderSystem.start(); }; +proto._runPostloadDone = function() +{ + this.debug("Done in: " + ((new Date).valueOf() - this._postloadStart) + QxConst.CORE_MILLISECONDS); +}; @@ -341,6 +346,16 @@ return this.getClientWindow().getClientDocument(); }; +proto.postLoad = function() +{ + if (this._postLoadDone) { + return; + }; + + this._runPostload(); + this._postLoadDone = true; +}; + |
|
From: Sebastian W. <wp...@us...> - 2006-01-30 13:36:36
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29753/source/script/gui Modified Files: Tag: renderer QxImagePreloader.js QxWidgetCore.js Added Files: Tag: renderer QxImagePreloaderSystem.js Log Message: Greatly improved application startup handling through optimizations for image pre and postloading, introduce new QxImagePreloaderSystem --- NEW FILE: QxImagePreloaderSystem.js --- /* ************************************************************************ qooxdoo - the new era of web interface development Version: $Id: QxImagePreloaderSystem.js,v 1.1.2.1 2006/01/30 13:36:26 wpbasti Exp $ Copyright: (C) 2004-2005 by Schlund + Partner AG, Germany All rights reserved License: LGPL 2.1: http://creativecommons.org/licenses/LGPL/2.1/ Internet: * http://qooxdoo.oss.schlund.de Authors: * Sebastian Werner (wpbasti) <sebastian dot werner at 1und1 dot de> * Andreas Ecker (aecker) <andreas dot ecker at 1und1 dot de> ************************************************************************ */ /* ************************************************************************ #package(image) #post(QxImagePreloader) ************************************************************************ */ function QxImagePreloaderSystem(vPreloadList) { QxTarget.call(this); this._list = vPreloadList; }; QxImagePreloaderSystem.extend(QxTarget, "QxImagePreloaderSystem"); /* --------------------------------------------------------------------------- USER ACCESS --------------------------------------------------------------------------- */ proto.start = function() { for (vSource in this._list) { vPreloader = new QxImagePreloader(QxImageManager.buildURI(vSource)); if (vPreloader.isErroneous() || vPreloader.isLoaded()) { delete this._list[vSource]; } else { vPreloader._origSource = vSource; vPreloader.addEventListener(QxConst.EVENT_TYPE_LOAD, this._onload, this); vPreloader.addEventListener(QxConst.EVENT_TYPE_ERROR, this._onerror, this); }; }; this._check(); }; /* --------------------------------------------------------------------------- EVENT LISTENERS --------------------------------------------------------------------------- */ proto._onload = function(e) { delete this._list[e.getTarget()._origSource]; this._check(); }; proto._onerror = function(e) { delete this._list[e.getTarget()._origSource]; this._check(); }; /* --------------------------------------------------------------------------- CHECK --------------------------------------------------------------------------- */ proto._check = function() { if (QxUtil.isObjectEmpty(this._list)) { this.createDispatchEvent(QxConst.EVENT_TYPE_COMPLETED); }; }; /* --------------------------------------------------------------------------- DISPOSER --------------------------------------------------------------------------- */ proto.dispose = function() { if (this.getDisposed()) { return true; }; this._list = null; delete this._list; return QxTarget.prototype.dispose.call(this); }; Index: QxImagePreloader.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/gui/Attic/QxImagePreloader.js,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -u -d -r1.1.2.6 -r1.1.2.7 --- QxImagePreloader.js 16 Jan 2006 16:11:55 -0000 1.1.2.6 +++ QxImagePreloader.js 30 Jan 2006 13:36:26 -0000 1.1.2.7 @@ -76,7 +76,7 @@ proto._source = null; proto._isLoaded = false; -proto._isError = false; +proto._isErroneous = false; @@ -90,8 +90,8 @@ proto.getUri = function() { return this._source; }; proto.getSource = function() { return this._source; }; -proto.getIsLoaded = function() { return this._isLoaded; }; -proto.getIsError = function() { return this._isError; }; +proto.isLoaded = function() { return this._isLoaded; }; +proto.isErroneous = function() { return this._isErroneous; }; // only used in mshtml: true when the image format is in png proto._isPng = false; @@ -124,7 +124,7 @@ proto._onload = function() { this._isLoaded = true; - this._isError = false; + this._isErroneous = false; if (this.hasEventListeners(QxConst.EVENT_TYPE_LOAD)) { this.dispatchEvent(new QxEvent(QxConst.EVENT_TYPE_LOAD), true); @@ -136,7 +136,7 @@ this.debug("Could not load: " + this._source); this._isLoaded = false; - this._isError = true; + this._isErroneous = true; if (this.hasEventListeners(QxConst.EVENT_TYPE_ERROR)) { this.dispatchEvent(new QxEvent(QxConst.EVENT_TYPE_ERROR), true); @@ -167,6 +167,6 @@ this._element = null; }; - this._isLoaded = this._isError = this._isPng = false; + this._isLoaded = this._isErroneous = this._isPng = false; return true; }; \ No newline at end of file Index: QxWidgetCore.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/gui/Attic/QxWidgetCore.js,v retrieving revision 1.1.2.13 retrieving revision 1.1.2.14 diff -u -d -r1.1.2.13 -r1.1.2.14 --- QxWidgetCore.js 25 Jan 2006 17:47:59 -0000 1.1.2.13 +++ QxWidgetCore.js 30 Jan 2006 13:36:26 -0000 1.1.2.14 @@ -72,7 +72,7 @@ QxWidget.flushGlobalQueues = function() { - if (QxWidget._inFlushGlobalQueues || !window.application._ready) { + if (QxWidget._inFlushGlobalQueues || !window.application.isReady()) { return; }; @@ -106,14 +106,6 @@ delete QxWidget._inFlushGlobalQueues; }; -QxWidget.FLUSH_TIMEOUT = 100; - -QxWidget.flushGlobalQueuesTimeout = function() { - window.setTimeout(QxWidget.flushGlobalQueues, QxWidget.FLUSH_TIMEOUT); -}; - - - |
|
From: Sebastian W. <wp...@us...> - 2006-01-30 13:36:35
|
Update of /cvsroot/qooxdoo/qooxdoo/tools In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29753/tools Modified Files: Tag: renderer config.sh Log Message: Greatly improved application startup handling through optimizations for image pre and postloading, introduce new QxImagePreloaderSystem Index: config.sh =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/tools/config.sh,v retrieving revision 1.16.2.99 retrieving revision 1.16.2.100 diff -u -d -r1.16.2.99 -r1.16.2.100 --- config.sh 24 Jan 2006 13:14:20 -0000 1.16.2.99 +++ config.sh 30 Jan 2006 13:36:27 -0000 1.16.2.100 @@ -110,6 +110,7 @@ L="$L managers/QxImageManager" L="$L managers/QxImagePreloaderManager" L="$L gui/QxImagePreloader" +L="$L gui/QxImagePreloaderSystem" L="$L widgets/QxImage" # Drag&Drop Support |
|
From: Sebastian W. <wp...@us...> - 2006-01-30 13:36:35
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/managers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29753/source/script/managers Modified Files: Tag: renderer QxEventManager.js Log Message: Greatly improved application startup handling through optimizations for image pre and postloading, introduce new QxImagePreloaderSystem Index: QxEventManager.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/managers/QxEventManager.js,v retrieving revision 1.14.2.64 retrieving revision 1.14.2.65 diff -u -d -r1.14.2.64 -r1.14.2.65 --- QxEventManager.js 25 Jan 2006 12:26:30 -0000 1.14.2.64 +++ QxEventManager.js 30 Jan 2006 13:36:27 -0000 1.14.2.65 @@ -344,7 +344,7 @@ if (vNode == document.documentElement) { vNode = document.body; }; - + // Walk up the tree and search for an QxWidget while(vNode != null && vNode._QxWidget == null) { @@ -588,6 +588,8 @@ return; }; + window.application.postLoad(); + if(!vDomEvent) { vDomEvent = this._attachedClientWindow.getElement().event; }; @@ -649,6 +651,8 @@ return; }; + window.application.postLoad(); + var vDomTarget = vDomEvent.target; var vType = vDomEvent.type; |
|
From: Sebastian W. <wp...@us...> - 2006-01-30 13:36:34
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/widgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29753/source/script/widgets Modified Files: Tag: renderer QxImage.js Log Message: Greatly improved application startup handling through optimizations for image pre and postloading, introduce new QxImagePreloaderSystem Index: QxImage.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxImage.js,v retrieving revision 1.8.2.85 retrieving revision 1.8.2.86 diff -u -d -r1.8.2.85 -r1.8.2.86 --- QxImage.js 28 Jan 2006 12:28:35 -0000 1.8.2.85 +++ QxImage.js 30 Jan 2006 13:36:27 -0000 1.8.2.86 @@ -193,11 +193,11 @@ // Changed: Use forceLoaded instead of setLoaded => should be faster this.forceLoaded(false); - if (propValue.getIsError()) + if (propValue.isErroneous()) { this._onerror(); } - else if (propValue.getIsLoaded()) + else if (propValue.isLoaded()) { this.setLoaded(true); } @@ -399,7 +399,7 @@ { var vPreloader = QxImagePreloaderManager.get(QxImageManager.buildURI(this.getSource())); - if (vPreloader && vPreloader.getIsLoaded()) { + if (vPreloader && vPreloader.isLoaded()) { return vPreloader.getWidth(); }; }; @@ -417,7 +417,7 @@ { var vPreloader = QxImagePreloaderManager.get(QxImageManager.buildURI(this.getSource())); - if (vPreloader && vPreloader.getIsLoaded()) { + if (vPreloader && vPreloader.isLoaded()) { return vPreloader.getHeight(); }; }; @@ -443,7 +443,7 @@ // Images load asyncron, so we need to force flushing here // to get an up-to-date view when an image is loaded. - QxWidget.flushGlobalQueuesTimeout(); + QxWidget.flushGlobalQueues(); }; if (QxClient.isMshtml()) |
|
From: Sebastian W. <wp...@us...> - 2006-01-30 12:11:56
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30554/source/script/core Modified Files: Tag: renderer QxExtend.js Log Message: Improved error output of addProperty Index: QxExtend.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/core/QxExtend.js,v retrieving revision 1.7.2.108 retrieving revision 1.7.2.109 diff -u -d -r1.7.2.108 -r1.7.2.109 --- QxExtend.js 27 Jan 2006 15:32:02 -0000 1.7.2.108 +++ QxExtend.js 30 Jan 2006 12:11:47 -0000 1.7.2.109 @@ -47,7 +47,7 @@ if (typeof vClassName != QxConst.TYPEOF_STRING) { throw new Error("Extend: Missing or malformed className: " + vClassName); }; - + // build helper function // this omits the initial constructor call while inherit properties var f = new Function; @@ -318,11 +318,11 @@ Function.prototype._createProperty = function(p) { if(typeof p != QxConst.TYPEOF_OBJECT) { - throw new Error("Param should be an object!"); + throw new Error("AddProperty: Param should be an object!"); }; if (QxUtil.isInvalid(p.name)) { - throw new Error("Malformed input parameters: name needed!"); + throw new Error("AddProperty: Malformed input parameters: name needed!"); }; // building shorter prototype access @@ -342,45 +342,45 @@ if (QxUtil.isInvalidBoolean(p.allowMultipleArguments)) { p.allowMultipleArguments = false; }; - - + + if (typeof p.type == QxConst.TYPEOF_STRING) { - p.hasType = true; - } + p.hasType = true; + } else if (typeof p.type != QxConst.TYPEOF_UNDEFINED) { - throw new Error("Invalid type definition for property " + p.name + ": " + p.type); + throw new Error("AddProperty: Invalid type definition for property " + p.name + ": " + p.type); } else { p.hasType = false; }; if (typeof p.instance == QxConst.TYPEOF_STRING) { - p.hasInstance = true; - } + p.hasInstance = true; + } else if (typeof p.instance != QxConst.TYPEOF_UNDEFINED) { - throw new Error("Invalid instance definition for property " + p.name + ": " + p.instance); + throw new Error("AddProperty: Invalid instance definition for property " + p.name + ": " + p.instance); } else { p.hasInstance = false; }; if (typeof p.classname == QxConst.TYPEOF_STRING) { - p.hasClassName = true; - } + p.hasClassName = true; + } else if (typeof p.classname != QxConst.TYPEOF_UNDEFINED) { - throw new Error("Invalid classname definition for property " + p.name + ": " + p.classname); + throw new Error("AddProperty: Invalid classname definition for property " + p.name + ": " + p.classname); } else { p.hasClassName = false; }; - - - - + + + + p.hasConvert = QxUtil.isValidFunction(p.convert); @@ -401,8 +401,8 @@ var changeKey = QxConst.INTERNAL_CHANGE + p.method; var modifyKey = QxConst.INTERNAL_MODIFY + p.implMethod; var checkKey = QxConst.INTERNAL_CHECK + p.implMethod; - - if (!QxSetter[p.name]) + + if (!QxSetter[p.name]) { QxSetter[p.name] = QxConst.INTERNAL_SET + p.method; QxGetter[p.name] = QxConst.INTERNAL_GET + p.method; @@ -450,8 +450,8 @@ pp[QxConst.INTERNAL_TOGGLE + p.method] = function(newValue) { return this[QxConst.INTERNAL_SET + p.method](!this[valueKey]); }; - }; - + }; + if (p.allowMultipleArguments || p.hasConvert || p.hasInstance || p.hasClassName || p.hasPossibleValues || p.hasUnitDetection || p.addToQueue || p.addToQueueRuntime || p.addToStateQueue) { // building setFoo(): Setup new value, do type and change detection, converting types, call unit detection, ... @@ -461,7 +461,7 @@ if (p.allowMultipleArguments && arguments.length > 1) { newValue = QxUtil.convertArgumentsToArray(arguments); }; - + // support converter methods if (p.hasConvert) { @@ -474,53 +474,53 @@ throw new Error("Attention! Could not convert new value for " + p.name + ": " + newValue + ": " + ex); }; }; - + var oldValue = this[valueKey]; - + if (newValue === oldValue) { return newValue; }; - + if (!(p.allowNull && newValue == null)) { if (p.hasType && typeof newValue != p.type) { return this.error("Attention! The value \"" + newValue + "\" is an invalid value for the property \"" + p.name + "\" which must be typeof \"" + p.type + "\" but is typeof \"" + typeof newValue + "\"!", QxConst.INTERNAL_SET + p.method); }; - + if (p.hasInstance && !(newValue instanceof QxClasses[p.instance])) { return this.error("Attention! The value \"" + newValue + "\" is an invalid value for the property \"" + p.name + "\" which must be an instance of \"" + p.instance + "\"!", QxConst.INTERNAL_SET + p.method); }; - + if (p.hasClassName && newValue.classname != p.classname) { return this.error("Attention! The value \"" + newValue + "\" is an invalid value for the property \"" + p.name + "\" which must be an object with the classname \"" + p.classname + "\"!", QxConst.INTERNAL_SET + p.method); }; - + if (p.hasPossibleValues && newValue != null && !p.possibleValues.contains(newValue)) { return this.error("Failed to save value for " + p.name + ". '" + newValue + "' is not a possible value!", QxConst.INTERNAL_SET + p.method); }; }; - + // Allow to check and transform the new value before storage if (this[checkKey]) { try { newValue = this[checkKey](newValue, p); - + // Don't do anything if new value is indentical to old value if (newValue === oldValue) { return newValue; - }; + }; } catch(ex) { return this.error("Failed to check property " + p.name + ": " + ex, checkKey); }; }; - + // Store new value this[valueKey] = newValue; - + // Check if there is a modifier implementation if (this[modifyKey]) { @@ -536,12 +536,12 @@ return this.error("Modification of property \"" + p.name + "\" failed with exception (" + ex + ")", modifyKey); }; }; - + // Unit detection support if (p.hasUnitDetection) { this[unitDetectionKey](p, newValue); }; - + // Auto queue addition support if (p.addToQueue) { this.addToQueue(p.name); @@ -549,19 +549,19 @@ else if (p.addToQueueRuntime) { this.addToQueueRuntime(p.name); }; - + // Auto state queue addition support if (p.addToStateQueue) { this._addToGlobalStateQueue(); }; - + // Create Event if (this.hasEventListeners && this.hasEventListeners(changeKey)) { var vEvent = new QxDataEvent(changeKey, newValue, oldValue, false); - + vEvent.setTarget(this); - + try { this.dispatchEvent(vEvent, true); @@ -571,7 +571,7 @@ throw new Error("Property " + p.name + " modified: Failed to dispatch change event: " + ex); }; }; - + return newValue; }; } @@ -581,41 +581,41 @@ pp[QxConst.INTERNAL_SET + p.method] = function(newValue) { // this.debug("Fast Setter: " + p.name); - + var oldValue = this[valueKey]; - + if (newValue === oldValue) { return newValue; }; - + if (!(p.allowNull && newValue == null)) { if (p.hasType && typeof newValue != p.type) { return this.error("Attention! The value \"" + newValue + "\" is an invalid value for the property \"" + p.name + "\" which must be typeof \"" + p.type + "\" but is typeof \"" + typeof newValue + "\"!", QxConst.INTERNAL_SET + p.method); }; }; - + // Allow to check and transform the new value before storage if (this[checkKey]) { try { newValue = this[checkKey](newValue, p); - + // Don't do anything if new value is indentical to old value if (newValue === oldValue) { return newValue; - }; + }; } catch(ex) { return this.error("Failed to check property " + p.name + ": " + ex, checkKey); }; }; - + // Store new value this[valueKey] = newValue; - + // Check if there is a modifier implementation if (this[modifyKey]) { @@ -631,14 +631,14 @@ return this.error("Modification of property \"" + p.name + "\" failed with exception (" + ex + ")", modifyKey); }; }; - + // Create Event if (this.hasEventListeners && this.hasEventListeners(changeKey)) { var vEvent = new QxDataEvent(changeKey, newValue, oldValue, false); - + vEvent.setTarget(this); - + try { this.dispatchEvent(vEvent, true); @@ -648,9 +648,9 @@ throw new Error("Property " + p.name + " modified: Failed to dispatch change event: " + ex); }; }; - + return newValue; - }; + }; }; // building user configured get alias for property @@ -669,7 +669,7 @@ Function.prototype.addProperty = function(p) { QxPropertyCounter++; - + this._createProperty(p); // add property to list |
|
From: Sebastian W. <wp...@us...> - 2006-01-30 11:42:48
|
Update of /cvsroot/qooxdoo/qooxdoo/source/style In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17875/source/style Modified Files: Tag: renderer demolayout.css Log Message: Changed css fix handling again to apply CSS rules earlier Index: demolayout.css =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/style/Attic/demolayout.css,v retrieving revision 1.1.2.10 retrieving revision 1.1.2.11 diff -u -d -r1.1.2.10 -r1.1.2.11 --- demolayout.css 27 Jan 2006 20:22:40 -0000 1.1.2.10 +++ demolayout.css 30 Jan 2006 11:42:40 -0000 1.1.2.11 @@ -1,5 +1,3 @@ -html,body{margin:0;border:0;padding:0;} *{box-sizing: border-box; -moz-box-sizing: border-box;} img{box-sizing: content-box; -moz-box-sizing: content-box;} - body{ font-size: 11px; font-family: Arial, "Bitstream Vera Sans", Verdana, sans-serif; |
|
From: Sebastian W. <wp...@us...> - 2006-01-30 11:42:48
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/widgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17875/source/script/widgets Modified Files: Tag: renderer QxClientDocument.js Log Message: Changed css fix handling again to apply CSS rules earlier Index: QxClientDocument.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxClientDocument.js,v retrieving revision 1.7.2.74 retrieving revision 1.7.2.75 diff -u -d -r1.7.2.74 -r1.7.2.75 --- QxClientDocument.js 28 Jan 2006 17:37:58 -0000 1.7.2.74 +++ QxClientDocument.js 30 Jan 2006 11:42:40 -0000 1.7.2.75 @@ -35,7 +35,6 @@ { this._window = vClientWindow; this._document = this._window.getElement().document; - this._docstyle = this.createStyleElement("html,body{margin:0;border:0;padding:0;} *{box-sizing: border-box; -moz-box-sizing: border-box;} img{box-sizing: content-box; -moz-box-sizing: content-box;}"); // Init element this.setElement(this._document.body); @@ -95,6 +94,16 @@ +/* +--------------------------------------------------------------------------- + CSS FIX +--------------------------------------------------------------------------- +*/ + +QxDom.createStyleElement("html,body{margin:0;border:0;padding:0;} *{box-sizing: border-box; -moz-box-sizing: border-box;} img{box-sizing: content-box; -moz-box-sizing: content-box;}"); + + + /* @@ -254,68 +263,16 @@ --------------------------------------------------------------------------- */ -if (QxClient.isMshtml()) -{ - proto.createStyleElement = function(vCssText) - { - var vSheet = document.createStyleSheet(); - - if (vCssText) { - vSheet.cssText = vCssText; - }; - - return vSheet; - }; - - proto.addCssRule = function(vSheet, vSelector, vStyle) { - vSheet.addRule(vSelector, vStyle); - }; - - proto.removeCssRule = function(vSheet, vSelector) - { - vRules = vSheet.rules; - vLength = vRules.length; - - for (i=vLength-1; i>=0; i--) - { - if (vRules[i].selectorText == vSelector) { - vSheet.removeRule(i); - }; - }; - }; -} -else -{ - proto.createStyleElement = function(vCssText) - { - vElement = document.createElement("STYLE"); - vElement.type = "text/css"; - - if (vCssText) { - vElement.appendChild(document.createTextNode(vCssText)); - }; - - document.getElementsByTagName("HEAD")[0].appendChild(vElement); - - return vElement.sheet; - }; - - proto.addCssRule = function(vSheet, vSelector, vStyle) { - vSheet.insertRule(vSelector + "{" + vStyle + "}", vSheet.cssRules.length); - }; +proto.createStyleElement = function(vCssText) { + return QxDom.createStyleElement(vCssText); +}; - proto.removeCssRule = function(vSheet, vSelector) - { - vRules = vSheet.cssRules; - vLength = rules.length; +proto.addCssRule = function(vSheet, vSelector, vStyle) { + return QxDom.addCssRule(vSheet, vSelector, vStyle); +}; - for (i=vLength-1; i>=0; i--) - { - if (vRules[i].selectorText == vSelector) { - vSheet.deleteRule(i); - }; - }; - }; +proto.removeCssRule = function(vSheet, vSelector) { + return QxDom.removeCssRule(vSheet, vSelector); }; @@ -325,6 +282,7 @@ + /* --------------------------------------------------------------------------- GLOBAL CURSOR SUPPORT @@ -457,7 +415,7 @@ return; }; - this._window = this._document = this._docstyle = null; + this._window = this._document = null; delete this._modalWidgets; if (this.getFocusManager()) |
|
From: Sebastian W. <wp...@us...> - 2006-01-30 11:42:47
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17875/source/script/core Modified Files: Tag: renderer QxDom.js Log Message: Changed css fix handling again to apply CSS rules earlier Index: QxDom.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/core/QxDom.js,v retrieving revision 1.10.2.23 retrieving revision 1.10.2.24 diff -u -d -r1.10.2.23 -r1.10.2.24 --- QxDom.js 16 Jan 2006 16:11:55 -0000 1.10.2.23 +++ QxDom.js 30 Jan 2006 11:42:40 -0000 1.10.2.24 @@ -947,11 +947,11 @@ QxDom.scrollIntoViewX = function(vElement, vAlignLeft) { var vParentWidth, vParentScrollLeft, vWidth, vHasScroll; - + var vParent = vElement.parentNode; var vOffset = vElement.offsetLeft; var vWidth = vElement.offsetWidth; - + while(vParent) { switch(QxDom.getComputedStyleProperty(vParent, QxConst.PROPERTY_OVERFLOW_BOTH)) @@ -959,30 +959,30 @@ case QxConst.OVERFLOW_VALUE_BOTH: case QxConst.OVERFLOW_VALUE_AUTO: case QxConst.OVERFLOW_VALUE_MOZ_HORIZONTAL: - vHasScroll = true; + vHasScroll = true; break; - + default: switch(QxDom.getComputedStyleProperty(vParent, QxConst.PROPERTY_OVERFLOW_HORIZONTAL)) { case QxConst.OVERFLOW_VALUE_BOTH: case QxConst.OVERFLOW_VALUE_AUTO: - vHasScroll = true; + vHasScroll = true; break; - + default: vHasScroll = false; }; }; - + // QxDebug("QxDom", "Scroll: " + vParent + " :: " + vHasScroll + " :: " + vOffset); - + if (vHasScroll) { - vParentWidth = vParent.clientWidth; - vParentScrollLeft = vParent.scrollLeft; - - if (vAlignLeft) + vParentWidth = vParent.clientWidth; + vParentScrollLeft = vParent.scrollLeft; + + if (vAlignLeft) { vParent.scrollLeft = vOffset; } @@ -990,15 +990,15 @@ { vParent.scrollLeft = vOffset + vWidth - vParentWidth; } - else if (vWidth > vParentWidth || vOffset < vParentScrollLeft) + else if (vWidth > vParentWidth || vOffset < vParentScrollLeft) { vParent.scrollLeft = vOffset; } - else if ((vOffset + vWidth) > (vParentScrollLeft + vParentWidth)) + else if ((vOffset + vWidth) > (vParentScrollLeft + vParentWidth)) { vParent.scrollLeft = vOffset + vWidth - vParentWidth; - }; - + }; + vOffset = vParent.offsetLeft; vWidth = vParent.offsetWidth; } @@ -1013,18 +1013,18 @@ vParent = vParent.parentNode; }; - + return true; }; QxDom.scrollIntoViewY = function(vElement, vAlignTop) { var vParentHeight, vParentScrollTop, vHeight, vHasScroll; - + var vParent = vElement.parentNode; var vOffset = vElement.offsetTop; var vHeight = vElement.offsetHeight; - + while(vParent) { switch(QxDom.getComputedStyleProperty(vParent, QxConst.PROPERTY_OVERFLOW_BOTH)) @@ -1032,30 +1032,30 @@ case QxConst.OVERFLOW_VALUE_BOTH: case QxConst.OVERFLOW_VALUE_AUTO: case QxConst.OVERFLOW_VALUE_MOZ_VERTICAL: - vHasScroll = true; + vHasScroll = true; break; - + default: switch(QxDom.getComputedStyleProperty(vParent, QxConst.PROPERTY_OVERFLOW_VERTICAL)) { case QxConst.OVERFLOW_VALUE_BOTH: case QxConst.OVERFLOW_VALUE_AUTO: - vHasScroll = true; + vHasScroll = true; break; - + default: vHasScroll = false; }; }; - + // QxDebug("QxDom", "Scroll: " + vParent + " :: " + vHasScroll + " :: " + vOffset); - + if (vHasScroll) { - vParentHeight = vParent.clientHeight; - vParentScrollTop = vParent.scrollTop; - - if (vAlignTop) + vParentHeight = vParent.clientHeight; + vParentScrollTop = vParent.scrollTop; + + if (vAlignTop) { vParent.scrollTop = vOffset; } @@ -1063,15 +1063,15 @@ { vParent.scrollTop = vOffset + vHeight - vParentHeight; } - else if (vHeight > vParentHeight || vOffset < vParentScrollTop) + else if (vHeight > vParentHeight || vOffset < vParentScrollTop) { vParent.scrollTop = vOffset; } - else if ((vOffset + vHeight) > (vParentScrollTop + vParentHeight)) + else if ((vOffset + vHeight) > (vParentScrollTop + vParentHeight)) { vParent.scrollTop = vOffset + vHeight - vParentHeight; - }; - + }; + vOffset = vParent.offsetTop; vHeight = vParent.offsetHeight; } @@ -1086,6 +1086,81 @@ vParent = vParent.parentNode; }; - + return true; }; + + + + + + +/* +--------------------------------------------------------------------------- + CSS API +--------------------------------------------------------------------------- +*/ + +if (QxClient.isMshtml()) +{ + QxDom.createStyleElement = function(vCssText) + { + var vSheet = document.createStyleSheet(); + + if (vCssText) { + vSheet.cssText = vCssText; + }; + + return vSheet; + }; + + QxDom.addCssRule = function(vSheet, vSelector, vStyle) { + vSheet.addRule(vSelector, vStyle); + }; + + QxDom.removeCssRule = function(vSheet, vSelector) + { + vRules = vSheet.rules; + vLength = vRules.length; + + for (i=vLength-1; i>=0; i--) + { + if (vRules[i].selectorText == vSelector) { + vSheet.removeRule(i); + }; + }; + }; +} +else +{ + QxDom.createStyleElement = function(vCssText) + { + vElement = document.createElement("STYLE"); + vElement.type = "text/css"; + + if (vCssText) { + vElement.appendChild(document.createTextNode(vCssText)); + }; + + document.getElementsByTagName("HEAD")[0].appendChild(vElement); + + return vElement.sheet; + }; + + QxDom.addCssRule = function(vSheet, vSelector, vStyle) { + vSheet.insertRule(vSelector + "{" + vStyle + "}", vSheet.cssRules.length); + }; + + QxDom.removeCssRule = function(vSheet, vSelector) + { + vRules = vSheet.cssRules; + vLength = rules.length; + + for (i=vLength-1; i>=0; i--) + { + if (vRules[i].selectorText == vSelector) { + vSheet.deleteRule(i); + }; + }; + }; +}; \ No newline at end of file |
|
From: Sebastian W. <wp...@us...> - 2006-01-30 11:33:41
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/widgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14162/source/script/widgets Modified Files: Tag: renderer QxListViewContentCellImage.js Log Message: Fixed manager access Index: QxListViewContentCellImage.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/Attic/QxListViewContentCellImage.js,v retrieving revision 1.1.2.10 retrieving revision 1.1.2.11 diff -u -d -r1.1.2.10 -r1.1.2.11 --- QxListViewContentCellImage.js 16 Jan 2006 16:11:57 -0000 1.1.2.10 +++ QxListViewContentCellImage.js 30 Jan 2006 11:33:33 -0000 1.1.2.11 @@ -53,7 +53,7 @@ { if (this._initialLayoutDone) { - return this._updateContent(vSource == QxConst.CORE_EMPTY ? this._manager.getBlank() : this._manager.buildURI(vSource)); + return this._updateContent(vSource == QxConst.CORE_EMPTY ? QxImageManager.getBlank() : QxImageManager.buildURI(vSource)); } else { |
|
From: Sebastian W. <wp...@us...> - 2006-01-30 11:27:29
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/widgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10584/source/script/widgets Modified Files: Tag: renderer QxHtml.js QxLabel.js QxText.js Log Message: Added wrap property to QxText and QxHtml to fix some listview errors Index: QxText.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/Attic/QxText.js,v retrieving revision 1.1.2.7 retrieving revision 1.1.2.8 diff -u -d -r1.1.2.7 -r1.1.2.8 --- QxText.js 25 Jan 2006 11:22:08 -0000 1.1.2.7 +++ QxText.js 30 Jan 2006 11:27:21 -0000 1.1.2.8 @@ -29,13 +29,13 @@ ************************************************************************ */ -function QxText(vText) +function QxText(vText) { QxTerminator.call(this); - + if (QxUtil.isValidString(vText)) { this.setText(vText); - }; + }; }; QxText.extend(QxTerminator, "QxText"); @@ -59,6 +59,11 @@ */ QxText.addProperty({ name : "font", type : QxConst.TYPEOF_OBJECT, instance : "QxFont", convert : QxFontCache, allowMultipleArguments : true }); +/*! + Wrap the text? +*/ +QxText.addProperty({ name : "wrap", type : QxConst.TYPEOF_BOOLEAN, defaultValue : true }); + @@ -73,8 +78,8 @@ if (this._isCreated) { this._syncText(); }; - - return true; + + return true; }; proto._modifyFont = function(propValue, propOldValue, propData) @@ -88,6 +93,13 @@ return true; }; +proto._modifyWrap = function(propValue, propOldValue, propData) +{ + this.setStyleProperty(QxConst.PROPERTY_WHITESPACE, propValue ? "normal" : "nowrap"); + return true; +}; + + Index: QxLabel.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/Attic/QxLabel.js,v retrieving revision 1.1.2.9 retrieving revision 1.1.2.10 diff -u -d -r1.1.2.9 -r1.1.2.10 --- QxLabel.js 27 Jan 2006 15:28:44 -0000 1.1.2.9 +++ QxLabel.js 30 Jan 2006 11:27:21 -0000 1.1.2.10 @@ -49,7 +49,7 @@ // Prohibit stretching through layout handler this.setAllowStretchX(false); this.setAllowStretchY(false); - + // Auto Sized this.auto(); }; @@ -198,7 +198,6 @@ proto._modifyWrap = function(propValue, propOldValue, propData) { this.setStyleProperty(QxConst.PROPERTY_WHITESPACE, propValue ? "normal" : "nowrap"); - return true; }; Index: QxHtml.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/Attic/QxHtml.js,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -u -d -r1.1.2.6 -r1.1.2.7 --- QxHtml.js 25 Jan 2006 11:22:08 -0000 1.1.2.6 +++ QxHtml.js 30 Jan 2006 11:27:21 -0000 1.1.2.7 @@ -29,10 +29,10 @@ ************************************************************************ */ -function QxHtml(vHtml) +function QxHtml(vHtml) { QxTerminator.call(this); - + if (QxUtil.isValidString(vHtml)) { this.setHtml(vHtml); }; @@ -59,6 +59,11 @@ */ QxHtml.addProperty({ name : "font", type : QxConst.TYPEOF_OBJECT, instance : "QxFont", convert : QxFontCache, allowMultipleArguments : true }); +/*! + Wrap the text? +*/ +QxHtml.addProperty({ name : "wrap", type : QxConst.TYPEOF_BOOLEAN, defaultValue : true }); + @@ -73,8 +78,8 @@ if (this._isCreated) { this._syncHtml(); }; - - return true; + + return true; }; proto._modifyFont = function(propValue, propOldValue, propData) @@ -88,6 +93,13 @@ return true; }; +proto._modifyWrap = function(propValue, propOldValue, propData) +{ + this.setStyleProperty(QxConst.PROPERTY_WHITESPACE, propValue ? "normal" : "nowrap"); + return true; +}; + + @@ -102,5 +114,5 @@ }; proto._syncHtml = function() { - this.getElement().innerHTML = this.getHtml(); + this.getElement().innerHTML = this.getHtml(); }; |
|
From: Sebastian W. <wp...@us...> - 2006-01-28 18:19:37
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6586/source/script/gui Modified Files: Tag: renderer QxCommand.js Log Message: Fixed many memory leaks, optimized some disposers, added missing dispose call for some events Index: QxCommand.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/gui/Attic/QxCommand.js,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -u -d -r1.1.2.6 -r1.1.2.7 --- QxCommand.js 16 Jan 2006 16:11:55 -0000 1.1.2.6 +++ QxCommand.js 28 Jan 2006 18:19:24 -0000 1.1.2.7 @@ -59,7 +59,7 @@ proto.execute = function(vTarget) { if (this.hasEventListeners(QxConst.EVENT_TYPE_EXECUTE)) { - this.dispatchEvent(new QxDataEvent(QxConst.EVENT_TYPE_EXECUTE, vTarget)); + this.dispatchEvent(new QxDataEvent(QxConst.EVENT_TYPE_EXECUTE, vTarget), true); }; return false; |
|
From: Sebastian W. <wp...@us...> - 2006-01-28 18:19:37
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/deprecated In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6586/source/script/deprecated Modified Files: Tag: renderer QxXmlHttpLoader.js Log Message: Fixed many memory leaks, optimized some disposers, added missing dispose call for some events Index: QxXmlHttpLoader.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/deprecated/Attic/QxXmlHttpLoader.js,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -u -d -r1.1.2.2 -r1.1.2.3 --- QxXmlHttpLoader.js 16 Jan 2006 16:11:55 -0000 1.1.2.2 +++ QxXmlHttpLoader.js 28 Jan 2006 18:19:24 -0000 1.1.2.3 @@ -249,7 +249,7 @@ { case 1: if (this.hasEventListeners("init")) { - this.dispatchEvent(new QxEvent("init")); + this.dispatchEvent(new QxEvent("init"), true); }; //this.debug("[1/4] About to send request."); @@ -258,7 +258,7 @@ case 2: if (this.hasEventListeners("connect")) { - this.dispatchEvent(new QxEvent("connect")); + this.dispatchEvent(new QxEvent("connect"), true); }; //this.debug("[2/4] Connection to server established."); @@ -282,8 +282,9 @@ case 3: - if (this.hasEventListeners("download")) - this.dispatchEvent(new QxEvent("download")); + if (this.hasEventListeners("download")) { + this.dispatchEvent(new QxEvent("download"), true); + }; try { @@ -303,7 +304,7 @@ case 4: if (this.hasEventListeners("done")) { - this.dispatchEvent(new QxEvent("done")); + this.dispatchEvent(new QxEvent("done"), true); }; //this.debug("[4/4] Downloading done."); |
|
From: Sebastian W. <wp...@us...> - 2006-01-28 18:19:37
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6586/source/script/core Modified Files: Tag: renderer QxApplication.js QxObject.js QxTarget.js Log Message: Fixed many memory leaks, optimized some disposers, added missing dispose call for some events Index: QxTarget.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/core/QxTarget.js,v retrieving revision 1.2.2.34 retrieving revision 1.2.2.35 diff -u -d -r1.2.2.34 -r1.2.2.35 --- QxTarget.js 23 Jan 2006 12:28:53 -0000 1.2.2.34 +++ QxTarget.js 28 Jan 2006 18:19:24 -0000 1.2.2.35 @@ -243,7 +243,7 @@ Internal placeholder for bubbling phase of an event. */ proto.getParent = function() { - return null; + return null; }; @@ -267,14 +267,18 @@ { for (var vType in this._listeners) { - for (var vKey in this._listeners[vType]) { + for (var vKey in this._listeners[vType]) + { + this._listeners[vType][vKey] = null; delete this._listeners[vType][vKey]; }; + this._listeners[vType] = null; delete this._listeners[vType]; }; }; + this._listeners = null; delete this._listeners; return QxObject.prototype.dispose.call(this); Index: QxApplication.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/core/QxApplication.js,v retrieving revision 1.2.2.62 retrieving revision 1.2.2.63 diff -u -d -r1.2.2.62 -r1.2.2.63 --- QxApplication.js 28 Jan 2006 12:28:34 -0000 1.2.2.62 +++ QxApplication.js 28 Jan 2006 18:19:24 -0000 1.2.2.63 @@ -42,6 +42,21 @@ window.application.init(); }; +function QxApplicationWidgetInit() +{ + var s = (new Date).valueOf(); + var a = window.application; + + a.info("Widget phase"); + a.debug("Rendering widgets"); + + a._ready = true; + QxWidget.flushGlobalQueues(true); + + a.debug("Done in: " + ((new Date).valueOf() - s) + "ms"); + a._initPostload(); +}; + function QxApplicationUnload() { window.application.dispose(); @@ -210,20 +225,7 @@ this.createDispatchEvent(QxConst.EVENT_TYPE_CACHE); // Finally flushing the queues with a timeout of 100ms - window.setTimeout(function() - { - var s = (new Date).valueOf(); - var a = window.application; - - a.info("Widget phase"); - a.debug("Rendering widgets"); - - a._ready = true; - QxWidget.flushGlobalQueues(true); - - a.debug("Done in: " + ((new Date).valueOf() - s) + "ms"); - a._initPostload(); - }, 100); + // window.setTimeout(QxApplicationWidgetInit, 100); } catch(ex) { @@ -231,6 +233,8 @@ }; this.debug("Done in: " + ((new Date).valueOf() - s) + "ms"); + + QxApplicationWidgetInit(); }; proto._initPostload = function() Index: QxObject.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/core/QxObject.js,v retrieving revision 1.2.2.36 retrieving revision 1.2.2.37 diff -u -d -r1.2.2.36 -r1.2.2.37 --- QxObject.js 27 Jan 2006 15:32:02 -0000 1.2.2.36 +++ QxObject.js 28 Jan 2006 18:19:24 -0000 1.2.2.37 @@ -42,11 +42,8 @@ { this._hashCode = QxObjectCounter++; - if (vAutoDispose != false) - { - try { - QxObjectDataBase.push(this); - } catch(ex) {}; + if (vAutoDispose != false) { + QxObjectDataBase.push(this); }; }; @@ -379,10 +376,22 @@ this._data = null; }; - this._disposed = true; - // Delete Entry from Object DB QxObjectDataBase[this._hashCode] = null; + delete QxObjectDataBase[this._hashCode]; + + // Finally cleanup the other stuff + for (var obj in this) + { + if (typeof this[obj] == QxConst.TYPEOF_OBJECT) + { + this[obj] = null; + delete this[obj]; + }; + }; + + // Mark as disposed + this._disposed = true; }; /*! |
|
From: Sebastian W. <wp...@us...> - 2006-01-28 18:19:37
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/widgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6586/source/script/widgets Modified Files: Tag: renderer QxGallery.js QxIframe.js QxSpinner.js Log Message: Fixed many memory leaks, optimized some disposers, added missing dispose call for some events Index: QxIframe.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxIframe.js,v retrieving revision 1.1.2.19 retrieving revision 1.1.2.20 diff -u -d -r1.1.2.19 -r1.1.2.20 --- QxIframe.js 16 Jan 2006 16:11:57 -0000 1.1.2.19 +++ QxIframe.js 28 Jan 2006 18:19:24 -0000 1.1.2.20 @@ -112,14 +112,14 @@ proto._onreadystatechange = function() { if (this._realFrame.readyState == "complete") { - this.dispatchEvent(new QxEvent(QxConst.EVENT_TYPE_LOAD)); + this.dispatchEvent(new QxEvent(QxConst.EVENT_TYPE_LOAD), true); }; }; proto._onload = function() { this._isLoaded = true; - this.dispatchEvent(new QxEvent(QxConst.EVENT_TYPE_LOAD)); + this.dispatchEvent(new QxEvent(QxConst.EVENT_TYPE_LOAD), true); }; Index: QxGallery.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxGallery.js,v retrieving revision 1.21.2.10 retrieving revision 1.21.2.11 diff -u -d -r1.21.2.10 -r1.21.2.11 --- QxGallery.js 25 Jan 2006 14:14:07 -0000 1.21.2.10 +++ QxGallery.js 28 Jan 2006 18:19:24 -0000 1.21.2.11 @@ -40,7 +40,7 @@ this._processedImages = 0; this.setOverflow("auto"); - + this.setHtmlProperty("className", "QxGallery"); this._manager = new QxDomSelectionManager(this); @@ -86,7 +86,7 @@ --------------------------------------------------------------------------- */ -proto._applyElementData = function() +proto._applyElementData = function() { var o = this; window.setTimeout(function() @@ -292,7 +292,7 @@ if (vItem) { if (this.hasEventListeners("beforeToolTipAppear")) { - this.dispatchEvent(new QxDataEvent("beforeToolTipAppear", vItem)); + this.dispatchEvent(new QxDataEvent("beforeToolTipAppear", vItem), true); }; if (!this.getToolTip()) { @@ -449,19 +449,19 @@ proto.createImageCell = function(inode, d) { - if (this.hasEventListeners("loadComplete")) + if (this.hasEventListeners("loadComplete")) { inode.onload = this.imageOnLoad; inode.onerror = this.imageOnError; inode.gallery = this; }; - + if (this._mshtml) { inode.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + d.src + "',sizingMethod='scale')"; } else { inode.src = d.src; }; - + inode.width = d.thumbWidth + 2; inode.height = d.thumbHeight + 2; inode.style.marginLeft = inode.style.marginRight = Math.floor((this.getThumbMaxWidth()-d.thumbWidth)/2) + "px"; Index: QxSpinner.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxSpinner.js,v retrieving revision 1.9.2.28 retrieving revision 1.9.2.29 diff -u -d -r1.9.2.28 -r1.9.2.29 --- QxSpinner.js 25 Jan 2006 11:19:00 -0000 1.9.2.28 +++ QxSpinner.js 28 Jan 2006 18:19:24 -0000 1.9.2.29 @@ -41,7 +41,7 @@ // BEHAVIOR // ************************************************************************ this.setTabIndex(-1); - + if (QxClient.isMshtml()) { this.setStyleProperty("fontSize", QxConst.CORE_0PIXEL); }; @@ -61,11 +61,11 @@ this._textfield.setValue(String(this._manager.getValue())); this.add(this._textfield); - - + + // ************************************************************************ // BUTTON LAYOUT - // ************************************************************************ + // ************************************************************************ this._buttonlayout = new QxVerticalBoxLayout; this._buttonlayout.setWidth(QxConst.CORE_AUTO); this.add(this._buttonlayout); @@ -107,7 +107,7 @@ this._downbutton.addEventListener(QxConst.EVENT_TYPE_MOUSEDOWN, this._onmousedown, this); this._manager.addEventListener(QxConst.INTERNAL_CHANGE, this._onchange, this); this._timer.addEventListener(QxConst.EVENT_TYPE_INTERVAL, this._oninterval, this); - + // ************************************************************************ // INITIALIZATION @@ -409,7 +409,7 @@ }; if (this.hasEventListeners(QxConst.INTERNAL_CHANGE)) { - this.dispatchEvent(new QxEvent(QxConst.INTERNAL_CHANGE)); + this.dispatchEvent(new QxEvent(QxConst.INTERNAL_CHANGE), true); }; }; @@ -618,7 +618,8 @@ this._manager.setValue(this._manager.getValue() + ((this._intervalIncrease ? 1 : - 1) * this.getPageIncrementAmount())); }; -proto._resetIncrements = function() { +proto._resetIncrements = function() +{ this.resetIncrementAmount(); this.resetInterval(); }; @@ -642,14 +643,22 @@ this.removeEventListener(QxConst.EVENT_TYPE_KEYPRESS, this._onkeypress, this); this.removeEventListener(QxConst.EVENT_TYPE_KEYDOWN, this._onkeydown, this); this.removeEventListener(QxConst.EVENT_TYPE_KEYUP, this._onkeyup, this); + this.removeEventListener(QxConst.EVENT_TYPE_MOUSEWHEEL, this._onmousewheel, this); if (this._textfield) { this._textfield.removeEventListener(QxConst.EVENT_TYPE_BLUR, this._onblur, this); + this._textfield.removeEventListener(QxConst.EVENT_TYPE_INPUT, this._oninput, this); this._textfield.dispose(); this._textfield = null; }; + if (this._buttonlayout) + { + this._buttonlayout.dispose(); + this._buttonlayout = null; + }; + if (this._upbutton) { this._upbutton.removeEventListener(QxConst.EVENT_TYPE_MOUSEDOWN, this._onmousedown, this); |