Update of /cvsroot/qooxdoo/qooxdoo/source/script/managers
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23080/source/script/managers
Modified Files:
Tag: renderer
QxImageManager.js QxSelectionManager.js
Log Message:
Reimplemented state handling, fixed some issues with blank images
Index: QxImageManager.js
===================================================================
RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/managers/QxImageManager.js,v
retrieving revision 1.3.2.26
retrieving revision 1.3.2.27
diff -u -d -r1.3.2.26 -r1.3.2.27
--- QxImageManager.js 28 Jan 2006 12:28:35 -0000 1.3.2.26
+++ QxImageManager.js 2 Feb 2006 16:51:04 -0000 1.3.2.27
@@ -100,7 +100,7 @@
*/
proto.getBlank = function() {
- return this.getPath() + this.BLANK;
+ return this.BLANK;
};
proto.getImageList = function() {
Index: QxSelectionManager.js
===================================================================
RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/managers/QxSelectionManager.js,v
retrieving revision 1.3.2.35
retrieving revision 1.3.2.36
diff -u -d -r1.3.2.35 -r1.3.2.36
--- QxSelectionManager.js 1 Feb 2006 09:06:41 -0000 1.3.2.35
+++ QxSelectionManager.js 2 Feb 2006 16:51:04 -0000 1.3.2.36
@@ -276,15 +276,15 @@
*/
proto.renderItemSelectionState = function(vItem, vIsSelected) {
- vItem.setSelectedState(vIsSelected ? QxConst.STATE_SELECTED : QxConst.STATE_NOTSELECTED);
+ vIsSelected ? vItem.addState(QxConst.STATE_SELECTED) : vItem.removeState(QxConst.STATE_SELECTED);
};
proto.renderItemAnchorState = function(vItem, vIsAnchor) {
- vItem.setAnchorState(vIsAnchor ? QxConst.STATE_ANCHOR : QxConst.STATE_NOTANCHOR);
+ vIsAnchor ? vItem.addState(QxConst.STATE_ANCHOR) : vItem.removeState(QxConst.STATE_ANCHOR);
};
proto.renderItemLeadState = function(vItem, vIsLead) {
- vItem.setLeadState(vIsLead ? QxConst.STATE_LEAD : QxConst.STATE_NOTLEAD);
+ vIsLead ? vItem.addState(QxConst.STATE_LEAD) : vItem.removeState(QxConst.STATE_LEAD);
};
|