Update of /cvsroot/qooxdoo/qooxdoo/source/script/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19026/source/script/gui
Modified Files:
Tag: renderer
QxWidget.js
Log Message:
Reimplemented QxSpinner using appearance and box layouts, optimized state handling in many classes (use constants, instead of deep object access)
Index: QxWidget.js
===================================================================
RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/gui/Attic/QxWidget.js,v
retrieving revision 1.1.2.44
retrieving revision 1.1.2.45
diff -C2 -d -r1.1.2.44 -r1.1.2.45
*** QxWidget.js 16 Jan 2006 12:55:58 -0000 1.1.2.44
--- QxWidget.js 16 Jan 2006 15:17:01 -0000 1.1.2.45
***************
*** 862,867 ****
{
// Remove any hover/pressed styles
! this.setMouseState(QxWidget.states.mouse.getFirst());
! this.setButtonState(QxWidget.states.button.getFirst());
// this.debug("_beforeDisappear");
--- 862,867 ----
{
// Remove any hover/pressed styles
! this.setMouseState(QxConst.STATE_OUT);
! this.setButtonState(QxConst.STATE_NOTPRESSED);
// this.debug("_beforeDisappear");
***************
*** 2990,2994 ****
QxTarget.prototype._modifyEnabled.call(this, propValue, propOldValue, propData);
! this.setEnabledState(QxWidget.states.enabled[propValue ? 0 : 1]);
return true;
};
--- 2990,2994 ----
QxTarget.prototype._modifyEnabled.call(this, propValue, propOldValue, propData);
! this.setEnabledState(propValue ? QxConst.STATE_ENABLED : QxConst.STATE_DISABLED);
return true;
};
***************
*** 3005,3009 ****
QxWidget.STATE_GROUP_MOUSE = "mouse";
! QxWidget.STATE_GROUP_FOCUS = QxConst.EVENT_TYPE_FOCUS;
QxWidget.STATE_GROUP_ENABLED = "enabled";
QxWidget.STATE_GROUP_ACTIVE = "active";
--- 3005,3009 ----
QxWidget.STATE_GROUP_MOUSE = "mouse";
! QxWidget.STATE_GROUP_FOCUS = "focus";
QxWidget.STATE_GROUP_ENABLED = "enabled";
QxWidget.STATE_GROUP_ACTIVE = "active";
***************
*** 3018,3024 ****
QxWidget.STATE_GROUP_WINDOW = "window";
- QxWidget.COLOR_ENABLED = null;
- QxWidget.COLOR_DISABLED = new QxColorObject("graytext");
-
QxWidget.states =
{
--- 3018,3021 ----
***************
*** 3594,3598 ****
};
! this.setFocusState(QxWidget.states.focus[0]);
return true;
};
--- 3591,3595 ----
};
! this.setFocusState(QxConst.STATE_BLURRED);
return true;
};
***************
*** 3607,3611 ****
};
! this.setFocusState(QxWidget.states.focus[1]);
return true;
};
--- 3604,3608 ----
};
! this.setFocusState(QxConst.STATE_FOCUSED);
return true;
};
|