qooxdoo-commit Mailing List for qooxdoo (Page 1435)
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: Andreas E. <ec...@us...> - 2006-01-13 13:21:43
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26591/source/script/gui Modified Files: Tag: renderer QxAppearanceTheme.js Log Message: Completed init --> setup change Index: QxAppearanceTheme.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/gui/Attic/QxAppearanceTheme.js,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** QxAppearanceTheme.js 13 Jan 2006 11:53:11 -0000 1.1.2.2 --- QxAppearanceTheme.js 13 Jan 2006 13:21:34 -0000 1.1.2.3 *************** *** 37,43 **** }; ! proto.initAppearance = function(vAppearance) { ! if (!vAppearance._initDone) { if (vAppearance.setup) { --- 37,43 ---- }; ! proto.setupAppearance = function(vAppearance) { ! if (!vAppearance._setupDone) { if (vAppearance.setup) { *************** *** 45,49 **** }; ! vAppearance._initDone = true; }; }; --- 45,49 ---- }; ! vAppearance._setupDone = true; }; }; *************** *** 67,71 **** if (vAppearance) { ! this.initAppearance(vAppearance); return vAppearance.initial ? vAppearance.initial(vWidget, this) : {}; } --- 67,71 ---- if (vAppearance) { ! this.setupAppearance(vAppearance); return vAppearance.initial ? vAppearance.initial(vWidget, this) : {}; } *************** *** 81,85 **** if (vAppearance) { ! this.initAppearance(vAppearance); return vAppearance.state ? vAppearance.state(vWidget, this, vWidget._states) : {}; } --- 81,85 ---- if (vAppearance) { ! this.setupAppearance(vAppearance); return vAppearance.state ? vAppearance.state(vWidget, this, vWidget._states) : {}; } |
|
From: Andreas E. <ec...@us...> - 2006-01-13 11:53:22
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4439/source/script/gui Modified Files: Tag: renderer QxAppearanceTheme.js Log Message: Resolved naming problem init/initial by replacing init with setup. Format of appearance theme is still subject to change. Index: QxAppearanceTheme.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/gui/Attic/QxAppearanceTheme.js,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** QxAppearanceTheme.js 13 Jan 2006 10:50:26 -0000 1.1.2.1 --- QxAppearanceTheme.js 13 Jan 2006 11:53:11 -0000 1.1.2.2 *************** *** 41,46 **** if (!vAppearance._initDone) { ! if (vAppearance.init) { ! vAppearance.init(); }; --- 41,46 ---- if (!vAppearance._initDone) { ! if (vAppearance.setup) { ! vAppearance.setup(); }; |
|
From: Andreas E. <ec...@us...> - 2006-01-13 11:53:12
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/appearance In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4390/source/script/appearance Modified Files: Tag: renderer QxAppearanceTheme-Default.js Log Message: Resolved naming problem init/initial by replacing init with setup. Format of appearance theme is still subject to change. Index: QxAppearanceTheme-Default.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/appearance/Attic/QxAppearanceTheme-Default.js,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** QxAppearanceTheme-Default.js 13 Jan 2006 10:50:25 -0000 1.1.2.1 --- QxAppearanceTheme-Default.js 13 Jan 2006 11:52:58 -0000 1.1.2.2 *************** *** 96,100 **** theme.registerAppearance("tool-tip", { ! init : function() { this.bgcolor = new QxColorObject("InfoBackground"); --- 96,100 ---- theme.registerAppearance("tool-tip", { ! setup : function() { this.bgcolor = new QxColorObject("InfoBackground"); *************** *** 141,145 **** theme.registerAppearance("button", { ! init : function() { this.bgcolor_default = new QxColorObject("buttonface"); --- 141,145 ---- theme.registerAppearance("button", { ! setup : function() { this.bgcolor_default = new QxColorObject("buttonface"); *************** *** 244,248 **** theme.registerAppearance("toolbar-separator-line", { ! init : function() { var b = this.border = new QxBorderObject; --- 244,248 ---- theme.registerAppearance("toolbar-separator-line", { ! setup : function() { var b = this.border = new QxBorderObject; *************** *** 274,278 **** theme.registerAppearance("toolbar-button", { ! init : function() { this.bgcolor_default = new QxColorObject("buttonface"); --- 274,278 ---- theme.registerAppearance("toolbar-button", { ! setup : function() { this.bgcolor_default = new QxColorObject("buttonface"); *************** *** 348,352 **** theme.registerAppearance("bar-view", { ! init : function() { this.background = new QxColorObject("#FAFBFE"); --- 348,352 ---- theme.registerAppearance("bar-view", { ! setup : function() { this.background = new QxColorObject("#FAFBFE"); *************** *** 400,404 **** theme.registerAppearance("bar-view-bar", { ! init : function() { this.background_color = new QxColorObject("#E1EEFF"); --- 400,404 ---- theme.registerAppearance("bar-view-bar", { ! setup : function() { this.background_color = new QxColorObject("#E1EEFF"); *************** *** 487,491 **** theme.registerAppearance("bar-view-button", { ! init : function() { this.background_color_normal = null; --- 487,491 ---- theme.registerAppearance("bar-view-button", { ! setup : function() { this.background_color_normal = null; *************** *** 603,607 **** theme.registerAppearance("window", { ! init : function() { this.bgcolor = new QxColorObject("threedface"); --- 603,607 ---- theme.registerAppearance("window", { ! setup : function() { this.bgcolor = new QxColorObject("threedface"); *************** *** 631,635 **** theme.registerAppearance("window-captionbar", { ! init : function() { this.bgcolor_active = new QxColorObject("activecaption"); --- 631,635 ---- theme.registerAppearance("window-captionbar", { ! setup : function() { this.bgcolor_active = new QxColorObject("activecaption"); *************** *** 798,802 **** theme.registerAppearance("menu", { ! init : function() { this.bgcolor = new QxColorObject("menu"); --- 798,802 ---- theme.registerAppearance("menu", { ! setup : function() { this.bgcolor = new QxColorObject("menu"); *************** *** 833,837 **** theme.registerAppearance("menu-button", { ! init : function() { this.BGCOLOR_OVER = new QxColorObject("highlight"); --- 833,837 ---- theme.registerAppearance("menu-button", { ! setup : function() { this.BGCOLOR_OVER = new QxColorObject("highlight"); *************** *** 959,963 **** theme.registerAppearance("list", { ! init : function() { this.bgcolor = new QxColor("white"); --- 959,963 ---- theme.registerAppearance("list", { ! setup : function() { this.bgcolor = new QxColor("white"); *************** *** 976,980 **** theme.registerAppearance("list-item", { ! init : function() { this.bgcolor_selected = new QxColorObject("highlight"); --- 976,980 ---- theme.registerAppearance("list-item", { ! setup : function() { this.bgcolor_selected = new QxColorObject("highlight"); *************** *** 1074,1078 **** theme.registerAppearance("combo-box", { ! init : function() { this.bgcolor = new QxColor("white"); --- 1074,1078 ---- theme.registerAppearance("combo-box", { ! setup : function() { this.bgcolor = new QxColor("white"); *************** *** 1120,1124 **** theme.registerAppearance("combo-box-text-field", { ! init : function() { this.bgcolor = new QxColor("transparent"); --- 1120,1124 ---- theme.registerAppearance("combo-box-text-field", { ! setup : function() { this.bgcolor = new QxColor("transparent"); *************** *** 1195,1199 **** theme.registerAppearance("tree-element-label", { ! init : function() { this.bgcolor_selected = new QxColorObject("highlight"); --- 1195,1199 ---- theme.registerAppearance("tree-element-label", { ! setup : function() { this.bgcolor_selected = new QxColorObject("highlight"); *************** *** 1354,1358 **** theme.registerAppearance("list-view-header", { ! init : function() { this.border = new QxBorder; --- 1354,1358 ---- theme.registerAppearance("list-view-header", { ! setup : function() { this.border = new QxBorder; *************** *** 1378,1382 **** theme.registerAppearance("list-view-header-cell", { ! init : function() { this.border_hover = new QxBorder, --- 1378,1382 ---- theme.registerAppearance("list-view-header-cell", { ! setup : function() { this.border_hover = new QxBorder, *************** *** 1424,1428 **** theme.registerAppearance("list-view-header-separator", { ! init : function() { this.bgcolor = new QxColor("#D6D5D9"); }, --- 1424,1428 ---- theme.registerAppearance("list-view-header-separator", { ! setup : function() { this.bgcolor = new QxColor("#D6D5D9"); }, *************** *** 1441,1445 **** theme.registerAppearance("list-view-content-cell", { ! init : function() { this.bgcolor_selected = new QxColorObject("highlight"); --- 1441,1445 ---- theme.registerAppearance("list-view-content-cell", { ! setup : function() { this.bgcolor_selected = new QxColorObject("highlight"); *************** *** 1557,1561 **** theme.registerAppearance("tab-view-pane", { ! init : function() { this.border = new QxBorder(1, QxConst.BORDER_STYLE_SOLID, "#91A5BD"); --- 1557,1561 ---- theme.registerAppearance("tab-view-pane", { ! setup : function() { this.border = new QxBorder(1, QxConst.BORDER_STYLE_SOLID, "#91A5BD"); *************** *** 1592,1596 **** theme.registerAppearance("tab-view-button", { ! init : function() { this.bgcolor_normal = new QxColorObject("#E1EEFF"); --- 1592,1596 ---- theme.registerAppearance("tab-view-button", { ! setup : function() { this.bgcolor_normal = new QxColorObject("#E1EEFF"); |
|
From: Andreas E. <ec...@us...> - 2006-01-13 11:21:14
|
Update of /cvsroot/qooxdoo/qooxdoo/tools In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30517/tools Modified Files: Tag: renderer makesource.sh Log Message: Removed test code Index: makesource.sh =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/tools/makesource.sh,v retrieving revision 1.3.2.5 retrieving revision 1.3.2.6 diff -C2 -d -r1.3.2.5 -r1.3.2.6 *** makesource.sh 13 Jan 2006 10:50:31 -0000 1.3.2.5 --- makesource.sh 13 Jan 2006 11:20:53 -0000 1.3.2.6 *************** *** 9,15 **** grep -v \"\" config.sh | sed s:"L=\"\$L ":"inc(\"":g | sed s:"\"$":"\");":g | sed s:"\# ":"// ":g >> script/includer.js - cat script/includer_compressed.js.in > script/includer_compressed.js - grep -v \"\" config.sh | sed s:"L=\"\$L ":"inc(\"":g | sed s:"\"$":"\");":g | sed s:"\# ":"// ":g >> script/includer_compressed.js - length=`cat config.sh | grep -R "^L" | grep -v "\"\"" | wc -l` echo ">>> Includer System Loads $length Files" --- 9,12 ---- |
|
From: Sebastian W. <wp...@us...> - 2006-01-13 11:00:00
|
Update of /cvsroot/qooxdoo/qooxdoo In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25322 Modified Files: Tag: renderer CHANGELOG Log Message: Updated Index: CHANGELOG =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/Attic/CHANGELOG,v retrieving revision 1.1.2.28 retrieving revision 1.1.2.29 diff -C2 -d -r1.1.2.28 -r1.1.2.29 *** CHANGELOG 19 Dec 2005 14:48:37 -0000 1.1.2.28 --- CHANGELOG 13 Jan 2006 10:59:46 -0000 1.1.2.29 *************** *** 1,2 **** --- 1,336 ---- + 2006-01-13 11:53 wpbasti + + * BUGS, IDEAS: Added + + 2006-01-13 11:50 wpbasti + + * .cvsignore, TODO, + source/script/appearance/QxAppearanceTheme-Default.js, + source/script/core/QxApplication.js, + source/script/core/QxConst.js, source/script/core/QxExtend.js, + source/script/core/QxMain.js, source/script/core/QxObject.js, + source/script/core/QxUtil.js, source/script/events/QxKeyEvent.js, + source/script/events/QxKeyEventCore.js, + source/script/events/QxMouseEvent.js, + source/script/events/QxMouseEventCore.js, + source/script/gui/QxAppearanceTheme.js, + source/script/gui/QxBorder.js, + source/script/gui/QxBorderObject.js, + source/script/gui/QxClientWindow.js, + source/script/gui/QxColor.js, source/script/gui/QxColorCore.js, + source/script/gui/QxColorObject.js, + source/script/gui/QxColorTheme.js, + source/script/gui/QxImagePreloader.js, + source/script/gui/QxParent.js, source/script/gui/QxWidget.js, + source/script/gui/QxWidgetCore.js, + source/script/managers/QxAppearanceManager.js, + source/script/managers/QxColorManager.js, + source/script/managers/QxDragAndDropManager.js, + source/script/managers/QxEventManager.js, + source/script/managers/QxFocusManager.js, + source/script/managers/QxImageManager.js, + source/script/managers/QxSelectionManager.js, + source/script/managers/QxToolTipManager.js, + source/script/managers/QxTreeSelectionManager.js, + source/script/managers/QxWindowManager.js, + source/script/presets/QxBorderObjectPresets.js, + source/script/presets/QxBorderPresets.js, + source/script/presets/QxColorThemePresets.js, + source/script/widgets/QxAtom.js, + source/script/widgets/QxBarView.js, + source/script/widgets/QxBarViewBar.js, + source/script/widgets/QxBarViewButton.js, + source/script/widgets/QxBarViewPage.js, + source/script/widgets/QxBarViewPane.js, + source/script/widgets/QxBoxLayout.js, + source/script/widgets/QxButton.js, + source/script/widgets/QxClientDocument.js, + source/script/widgets/QxComboBox.js, + source/script/widgets/QxCommonView.js, + source/script/widgets/QxCommonViewButton.js, + source/script/widgets/QxCommonViewPage.js, + source/script/widgets/QxFieldSet.js, + source/script/widgets/QxHorizontalSpacer.js, + source/script/widgets/QxIframe.js, + source/script/widgets/QxImage.js, + source/script/widgets/QxInline.js, + source/script/widgets/QxLabel.js, + source/script/widgets/QxLabelCore.js, + source/script/widgets/QxList.js, + source/script/widgets/QxListItem.js, + source/script/widgets/QxListView.js, + source/script/widgets/QxListViewContentCellHtml.js, + source/script/widgets/QxListViewContentCellIconHtml.js, + source/script/widgets/QxListViewContentCellImage.js, + source/script/widgets/QxListViewContentCellLink.js, + source/script/widgets/QxListViewContentCellText.js, + source/script/widgets/QxListViewHeader.js, + source/script/widgets/QxListViewHeaderCell.js, + source/script/widgets/QxListViewHeaderSeparator.js, + source/script/widgets/QxListViewPane.js, + source/script/widgets/QxMenu.js, + source/script/widgets/QxMenuButton.js, + source/script/widgets/QxMenuCheckBox.js, + source/script/widgets/QxMenuLayout.js, + source/script/widgets/QxMenuRadioButton.js, + source/script/widgets/QxMenuSeparator.js, + source/script/widgets/QxPopup.js, + source/script/widgets/QxTabView.js, + source/script/widgets/QxTabViewBar.js, + source/script/widgets/QxTabViewButton.js, + source/script/widgets/QxTabViewPage.js, + source/script/widgets/QxTabViewPane.js, + source/script/widgets/QxTextArea.js, + source/script/widgets/QxTextField.js, + source/script/widgets/QxToolBar.js, + source/script/widgets/QxToolBarButton.js, + source/script/widgets/QxToolBarPart.js, + source/script/widgets/QxToolBarPartHandle.js, + source/script/widgets/QxToolBarSeparator.js, + source/script/widgets/QxToolTip.js, + source/script/widgets/QxTree.js, + source/script/widgets/QxTreeElement.js, + source/script/widgets/QxTreeFile.js, + source/script/widgets/QxTreeFolder.js, + source/script/widgets/QxVerticalSpacer.js, + source/script/widgets/QxWindow.js, + source/test/user/Box_Layout_1.html, + source/test/user/Box_Layout_2.html, + source/test/user/Box_Layout_3.html, + source/test/user/Box_Layout_4.html, + source/test/user/Box_Layout_7.html, + source/test/user/Box_Layout_8.html, + source/test/user/Enabled_Disabled_1.html, + source/test/user/Fieldset_2.html, + source/test/user/Fieldset_3.html, + source/test/user/Fieldset_4.html, + source/test/user/Flow_Layout_1.html, + source/test/user/Flow_Layout_2.html, + source/test/user/Flow_Layout_3.html, + source/test/user/Gallery_List_1.html, + source/test/user/Inline_1.html, source/test/user/Node_1.html, + source/test/user/Tab_View_1.html, source/test/user/Tree_1.html, + tools/compile.py, tools/compileng.py, tools/config.sh, + tools/makesource.sh: Added support for new appearance layer + + 2006-01-06 17:07 wpbasti + + * TODO: Minor updates + + 2006-01-06 11:33 wpbasti + + * source/script/widgets/QxTextField.js: Minor fix, changed default + value, added new validation + + 2005-12-29 17:26 wpbasti + + * source/script/gui/QxColor.js: Fixed a missing semicolon + + 2005-12-29 17:26 wpbasti + + * source/script/core/QxTimeTracker.js: Make compatible with new + parsers regexp search + + 2005-12-21 11:34 wpbasti + + * source/script/widgets/QxListViewPane.js: Minor cleanups + + 2005-12-21 10:12 wpbasti + + * source/: script/widgets/QxListViewPane.js, + test/user/List_View_14.html: Added new problematic test case + + 2005-12-20 15:34 firstbman + + * tools/build_dist.pl: added compression flag + + 2005-12-20 15:20 wpbasti + + * source/script/widgets/QxTreeFolder.js: Minor fix + + 2005-12-20 15:17 wpbasti + + * source/script/widgets/QxTreeFolder.js: Enhanced QxTree folder + + 2005-12-20 09:42 wpbasti + + * source/script/: managers/QxWindowManager.js, widgets/QxWindow.js: + Converted QxWindowManager to new singleton style + + 2005-12-20 09:38 wpbasti + + * source/script/binding/QxData.js, source/script/core/QxTimer.js, + source/script/managers/QxTimerManager.js, tools/config.sh: + Removed QxTimerManager + + 2005-12-20 09:29 wpbasti + + * TODO, source/script/gui/QxImagePreloader.js, + source/script/managers/QxImagePreloaderManager.js, + source/script/widgets/QxImage.js: Converted + QxImagePreloaderManager to new singleton style + + 2005-12-20 09:17 wpbasti + + * source/: script/core/QxApplication.js, + script/gui/QxImagePreloader.js, script/gui/QxWidget.js, + script/managers/QxImageManager.js, script/widgets/QxBlocker.js, + script/widgets/QxFlash.js, script/widgets/QxGallery.js, + script/widgets/QxGalleryList.js, script/widgets/QxIconHtml.js, + script/widgets/QxImage.js, + script/widgets/QxListViewContentCellImage.js, + script/widgets/QxMenuCheckBox.js, + script/widgets/QxTreeElement.js, test/developer/Image_3.html, + test/user/Image_1.html, test/user/List_1.html, + test/user/List_2.html, test/user/Menu_1.html, + test/user/Menu_2.html, test/user/Menu_3.html, + test/user/Toolbar_1.html, test/user/Toolbar_2.html, + test/user/Toolbar_3.html, test/user/Toolbar_6.html, + test/user/Toolbar_7.html, test/user/Toolbar_8.html, + test/user/Window_1.html: Converted QxImageManager to new + singleton style + + 2005-12-20 08:46 wpbasti + + * source/script/managers/QxDataManager.js, tools/config.sh: Removed + unnecessary QxDataManager + + 2005-12-20 08:41 wpbasti + + * source/: script/gui/QxColorObject.js, script/gui/QxColorTheme.js, + script/managers/QxColorManager.js, + script/presets/QxColorThemePresets.js, test/user/Border_1.html, + test/user/Color_Themes_1.html, test/user/Color_Themes_2.html, + test/user/Color_Themes_3.html, test/user/Combobox_3.html, + test/user/Combobox_4.html, test/user/Fields_2.html, + test/user/List_1.html, test/user/List_2.html, + test/user/List_View_1.html, test/user/List_View_10.html, + test/user/List_View_1b.html, test/user/Menu_1.html, + test/user/Menu_2.html, test/user/Menu_3.html, + test/user/Toolbar_1.html, test/user/Toolbar_2.html, + test/user/Toolbar_3.html, test/user/Toolbar_6.html, + test/user/Toolbar_7.html, test/user/Toolbar_8.html, + test/user/Window_1.html: Converted QxColorManager to new + singleton style + + 2005-12-20 08:16 wpbasti + + * source/: script/core/QxTimeTracker.js, + test/developer/Performance_2.html: Minor improvements + + 2005-12-20 08:07 wpbasti + + * source/: script/core/QxTimeTracker.js, style/demolayout.css, + test/developer/Performance_1.html: Minor improvements + + 2005-12-19 23:47 wpbasti + + * source/test/developer/Performance_2.html: New example + + 2005-12-19 23:37 wpbasti + + * source/script/core/QxTimeTracker.js: Minor cleanups + + 2005-12-19 23:31 wpbasti + + * source/script/core/QxTimeTracker.js, + source/test/developer/Performance_1.html, + source/test/developer/Speed_1.html, + source/test/developer/Speed_2.html, + source/test/developer/Speed_3.html, + source/test/developer/Speed_4.html, + source/test/developer/Speed_5.html, + source/test/developer/Speed_6.html, + source/test/developer/Speed_7.html, + source/test/developer/Speed_8.html, + source/test/developer/Speed_9.html, tools/config.sh: New + performance tests added + + 2005-12-19 18:01 wpbasti + + * source/script/managers/QxDragAndDropManager.js: Minor fixes + + 2005-12-19 17:28 wpbasti + + * source/script/: events/QxDragEvent.js, + managers/QxDragAndDropManager.js, managers/QxEventManager.js: + Changed singleton mode of QxDragAndDropManager + + 2005-12-19 17:21 wpbasti + + * source/script/widgets/QxMenu.js: Some small fixes for QxMenu, + especially key navigation, also a small fix to new menumanager + handling + + 2005-12-19 17:07 wpbasti + + * source/script/: managers/QxEventManager.js, + managers/QxMenuManager.js, widgets/QxMenu.js, + widgets/QxToolBar.js, widgets/QxToolBarMenuButton.js: Changed + singleton mode of QxMenuManager + + 2005-12-19 16:54 wpbasti + + * source/script/: core/QxApplication.js, gui/QxParent.js, + managers/QxEventManager.js, managers/QxPopupManager.js, + managers/QxToolTipManager.js, managers/QxWindowManager.js, + widgets/QxClientDocument.js, widgets/QxGallery.js, + widgets/QxPopup.js, widgets/QxToolTip.js, widgets/QxWindow.js: + Revamped QxToolTipManager, Changed singleton mode of + QxPopupManager and QxToolTipManager + + 2005-12-19 16:27 wpbasti + + * source/script/: gui/QxClientWindow.js, core/QxApplication.js: + Minor cleanup + + 2005-12-19 16:27 wpbasti + + * source/script/gui/QxNativeWindow.js: Minor renaming + + 2005-12-19 16:23 wpbasti + + * TODO, source/script/binding/QxXmlExtras.js, + source/script/binding/QxXmlHttpLoader.js, + source/script/core/QxApplication.js, + source/script/core/QxClient.js, source/script/core/QxDom.js, + source/script/core/QxEmu.js, source/script/core/QxNative.js, + source/script/events/QxDomEvent.js, + source/script/events/QxMouseEvent.js, + source/script/events/QxMouseEventCore.js, + source/script/gui/QxBorder.js, + source/script/gui/QxImagePreloader.js, + source/script/gui/QxNativeWindow.js, + source/script/gui/QxParent.js, source/script/gui/QxWidget.js, + source/script/layouts/QxCanvasLayoutImpl.js, + source/script/layouts/QxDockLayoutImpl.js, + source/script/layouts/QxFlowLayoutImpl.js, + source/script/layouts/QxHorizontalBoxLayoutImpl.js, + source/script/layouts/QxLayoutImpl.js, + source/script/layouts/QxVerticalBoxLayoutImpl.js, + source/script/managers/QxDragAndDropManager.js, + source/script/managers/QxEventManager.js, + source/script/managers/QxFocusManager.js, + source/script/widgets/QxBlocker.js, + source/script/widgets/QxClientDocument.js, + source/script/widgets/QxGallery.js, + source/script/widgets/QxGalleryList.js, + source/script/widgets/QxIconHtml.js, + source/script/widgets/QxIframe.js, + source/script/widgets/QxImage.js, + source/script/widgets/QxInputCheckIcon.js, + source/script/widgets/QxLabel.js, + source/script/widgets/QxListItem.js, + source/script/widgets/QxListView.js, + source/script/widgets/QxListViewHeader.js, + source/script/widgets/QxPopup.js, + source/script/widgets/QxTextArea.js, + source/script/widgets/QxTextField.js: Reworked QxClient singleton + to new style + + 2005-12-19 15:48 wpbasti + + * CHANGELOG: Updated + 2005-12-19 15:43 wpbasti |
|
From: Sebastian W. <wp...@us...> - 2006-01-13 10:53:18
|
Update of /cvsroot/qooxdoo/qooxdoo In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23477 Added Files: Tag: renderer BUGS IDEAS Log Message: Added --- NEW FILE: IDEAS --- Fred McDavid schrieb: > I've also seen (in a project called RelativeLayers) syntax that looks like: > > '100%-10' > > That was sometimes pretty handy. yes this looks nice indeed. I have also used RelativeLayerssome years ago. Probably we can handle this stuff if we write the new layout code (after renderer) - yes there are already some other ideas. ;) Sebastian ========================================================================================= --- NEW FILE: BUGS --- Hello, I'm trying to get some pull-down menus going within a QxWindow. The problem I'm having is that the menus are being hidden by the QxWindow: http://embeddedfolk.org/menu.png Looking at the rendered document tree under firefox using the 'View Rendered Source' extension: http://embeddedfolk.org/menu.html I see that the z-index of the QxWindow is 1000000, whereas the z-index of the QxMenu is a small number (e.g. 7), explaining what is seen in menu.png. I'm trying to figure out what I should be doing to make the menus appear as expected. Any suggestions would be greatly appreciated. Thanks, -Frank |
Update of /cvsroot/qooxdoo/qooxdoo/source/script/widgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22549/source/script/widgets Modified Files: Tag: renderer QxAtom.js QxBarView.js QxBarViewBar.js QxBarViewButton.js QxBarViewPage.js QxBarViewPane.js QxBoxLayout.js QxButton.js QxClientDocument.js QxComboBox.js QxCommonView.js QxCommonViewButton.js QxCommonViewPage.js QxFieldSet.js QxHorizontalSpacer.js QxIframe.js QxImage.js QxInline.js QxLabel.js QxLabelCore.js QxList.js QxListItem.js QxListView.js QxListViewContentCellHtml.js QxListViewContentCellIconHtml.js QxListViewContentCellImage.js QxListViewContentCellLink.js QxListViewContentCellText.js QxListViewHeader.js QxListViewHeaderCell.js QxListViewHeaderSeparator.js QxListViewPane.js QxMenu.js QxMenuButton.js QxMenuCheckBox.js QxMenuLayout.js QxMenuRadioButton.js QxMenuSeparator.js QxPopup.js QxTabView.js QxTabViewBar.js QxTabViewButton.js QxTabViewPage.js QxTabViewPane.js QxTextArea.js QxTextField.js QxToolBar.js QxToolBarButton.js QxToolBarPart.js QxToolBarPartHandle.js QxToolBarSeparator.js QxToolTip.js QxTree.js QxTreeElement.js QxTreeFile.js QxTreeFolder.js QxVerticalSpacer.js QxWindow.js Log Message: Added support for new appearance layer Index: QxListViewHeader.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/Attic/QxListViewHeader.js,v retrieving revision 1.1.2.13 retrieving revision 1.1.2.14 diff -C2 -d -r1.1.2.13 -r1.1.2.14 *** QxListViewHeader.js 19 Dec 2005 15:23:07 -0000 1.1.2.13 --- QxListViewHeader.js 13 Jan 2006 10:50:26 -0000 1.1.2.14 *************** *** 77,81 **** QxListViewHeader.extend(QxHorizontalBoxLayout, "QxListViewHeader"); ! --- 77,81 ---- QxListViewHeader.extend(QxHorizontalBoxLayout, "QxListViewHeader"); ! QxListViewHeader.changeProperty({ name : "appearance", type : QxConst.TYPEOF_STRING, defaultValue : "list-view-header" }); *************** *** 115,146 **** - - /* - ------------------------------------------------------------------------------------ - STYLES & BEHAVIOR - ------------------------------------------------------------------------------------ - */ - - QxListViewHeader.BOTTOM_BORDER = new QxBorder; - QxListViewHeader.BOTTOM_BORDER.setBottom(1, "solid", "#e2e2e2"); - - proto._applyInitialStyle = function() - { - this.setWidth(null); - this.setHeight(QxConst.CORE_AUTO); - this.setBorder(QxListViewHeader.BOTTOM_BORDER); - this.setBackgroundColor("#f2f2f2"); - this.setOverflow(QxConst.OVERFLOW_VALUE_HIDDEN); - - // This fixes the innerWidth calculation difference between the grid(pane) - // and the head. - this.setPaddingRight(QxWidget.SCROLLBAR_SIZE); - }; - - - - - - /* ------------------------------------------------------------------------------------ --- 115,118 ---- Index: QxBarViewBar.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/Attic/QxBarViewBar.js,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** QxBarViewBar.js 31 Oct 2005 18:28:06 -0000 1.1.2.2 --- QxBarViewBar.js 13 Jan 2006 10:50:26 -0000 1.1.2.3 *************** *** 36,112 **** QxBarViewBar.extend(QxCommonViewBar, "QxBarViewBar"); ! ! ! ! ! /* ! ------------------------------------------------------------------------------------ ! STYLES & BEHAVIOR ! ------------------------------------------------------------------------------------ ! */ ! ! QxBarViewBar.BACKGROUND_COLOR = new QxColorObject("#E1EEFF"); ! ! QxBarViewBar.BORDER_COLOR = new QxColorObject("threedshadow"); ! ! QxBarViewBar.BORDER_TOP = new QxBorderObject; ! QxBarViewBar.BORDER_TOP.setBottom(1, QxConst.BORDER_STYLE_SOLID, QxBarViewBar.BORDER_COLOR); ! ! QxBarViewBar.BORDER_BOTTOM = new QxBorderObject; ! QxBarViewBar.BORDER_BOTTOM.setTop(1, QxConst.BORDER_STYLE_SOLID, QxBarViewBar.BORDER_COLOR); ! ! QxBarViewBar.BORDER_LEFT = new QxBorderObject; ! QxBarViewBar.BORDER_LEFT.setRight(1, QxConst.BORDER_STYLE_SOLID, QxBarViewBar.BORDER_COLOR); ! ! QxBarViewBar.BORDER_RIGHT = new QxBorderObject; ! QxBarViewBar.BORDER_RIGHT.setLeft(1, QxConst.BORDER_STYLE_SOLID, QxBarViewBar.BORDER_COLOR); ! ! proto._applyInitialStyle = function() ! { ! this.setBackgroundColor(QxBarViewBar.BACKGROUND_COLOR); ! }; ! ! proto._applyStateStyleDesign = function(vStates) ! { ! var vBarPosition = this.getParent().getBarPosition(); ! ! switch(vBarPosition) ! { ! case QxConst.ALIGN_TOP: ! this.setPadding(1, 0); ! this.setBorder(QxBarViewBar.BORDER_TOP); ! this.setHeight(QxConst.CORE_AUTO); ! this.setWidth(null); ! this.setOrientation(QxConst.ORIENTATION_HORIZONTAL); ! break; ! ! case QxConst.ALIGN_BOTTOM: ! this.setPadding(1, 0); ! this.setBorder(QxBarViewBar.BORDER_BOTTOM); ! this.setHeight(QxConst.CORE_AUTO); ! this.setWidth(null); ! this.setOrientation(QxConst.ORIENTATION_HORIZONTAL); ! break; ! ! case QxConst.ALIGN_LEFT: ! this.setPadding(0, 1); ! this.setBorder(QxBarViewBar.BORDER_LEFT); ! this.setWidth(QxConst.CORE_AUTO); ! this.setHeight(null); ! this.setOrientation(QxConst.ORIENTATION_VERTICAL); ! break; ! ! case QxConst.ALIGN_RIGHT: ! this.setPadding(0, 1); ! this.setBorder(QxBarViewBar.BORDER_RIGHT); ! this.setWidth(QxConst.CORE_AUTO); ! this.setHeight(null); ! this.setOrientation(QxConst.ORIENTATION_VERTICAL); ! break; ! }; ! }; ! ! ! --- 36,40 ---- QxBarViewBar.extend(QxCommonViewBar, "QxBarViewBar"); ! QxBarViewBar.changeProperty({ name : "appearance", type : QxConst.TYPEOF_STRING, defaultValue : "bar-view-bar" }); Index: QxMenuButton.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxMenuButton.js,v retrieving revision 1.14.2.30 retrieving revision 1.14.2.31 diff -C2 -d -r1.14.2.30 -r1.14.2.31 *** QxMenuButton.js 18 Nov 2005 15:58:09 -0000 1.14.2.30 --- QxMenuButton.js 13 Jan 2006 10:50:26 -0000 1.14.2.31 *************** *** 36,52 **** // *********************************************************************** - // STYLE - // *********************************************************************** - - this.setWidth(null); - this.setMinWidth(QxConst.CORE_AUTO); - this.setSpacing(2); - this.setPadding(2, 4); - this.setCursor(QxConst.CORE_DEFAULT); - this.setVerticalChildrenAlign(QxConst.ALIGN_MIDDLE); - this.setAllowStretchX(true); - - - // *********************************************************************** // LAYOUT // *********************************************************************** --- 36,39 ---- *************** *** 63,67 **** so.setSelectable(false); ! var ao = this._arrowObject = new QxImage(QxMenuButton.ARROW_IMG); ao.setAnonymous(true); --- 50,54 ---- so.setSelectable(false); ! var ao = this._arrowObject = new QxImage("widgets/arrows/next.gif"); ao.setAnonymous(true); *************** *** 94,97 **** --- 81,86 ---- */ + QxMenuButton.changeProperty({ name : "appearance", type : QxConst.TYPEOF_STRING, defaultValue : "menu-button" }); + QxMenuButton.addProperty({ name : "icon", type : QxConst.TYPEOF_STRING }); QxMenuButton.addProperty({ name : "label", type : QxConst.TYPEOF_STRING }); *************** *** 316,345 **** /* ------------------------------------------------------------------------------------ - STYLES & BEHAVIOR - ------------------------------------------------------------------------------------ - */ - - QxMenuButton.BGCOLOR_OVER = new QxColorObject("highlight"); - QxMenuButton.BGCOLOR_OUT = null; - - QxMenuButton.COLOR_OVER = new QxColorObject("highlighttext"); - QxMenuButton.COLOR_OUT = null; - - QxMenuButton.ARROW_IMG = "widgets/arrows/next.gif"; - - proto._applyStateStyleDesign = function(vStates) - { - this.setBackgroundColor(vStates.over ? QxMenuButton.BGCOLOR_OVER : QxMenuButton.BGCOLOR_OUT); - this.setColor(vStates.over ? QxMenuButton.COLOR_OVER : QxMenuButton.COLOR_OUT); - }; - - - - - - - - /* - ------------------------------------------------------------------------------------ DISPOSER ------------------------------------------------------------------------------------ --- 305,308 ---- Index: QxListViewContentCellImage.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/Attic/QxListViewContentCellImage.js,v retrieving revision 1.1.2.8 retrieving revision 1.1.2.9 diff -C2 -d -r1.1.2.8 -r1.1.2.9 *** QxListViewContentCellImage.js 20 Dec 2005 08:17:05 -0000 1.1.2.8 --- QxListViewContentCellImage.js 13 Jan 2006 10:50:26 -0000 1.1.2.9 *************** *** 36,39 **** --- 36,41 ---- QxListViewContentCellImage.extend(QxImage, "QxListViewContentCellImage"); + QxListViewContentCellImage.changeProperty({ name : "appearance", type : QxConst.TYPEOF_STRING, defaultValue : "list-view-content-cell-image" }); + QxListViewContentCellImage.empty = { source : QxImageManager.getBlank() *************** *** 44,62 **** /* ------------------------------------------------------------------------------------ - STYLES & BEHAVIOR - ------------------------------------------------------------------------------------ - */ - - proto._applyInitialStyle = function() { - this.setPadding(0, 6); - }; - - - - - - - /* - ------------------------------------------------------------------------------------ CUSTOM SETTER ------------------------------------------------------------------------------------ --- 46,49 ---- Index: QxListViewContentCellText.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/Attic/QxListViewContentCellText.js,v retrieving revision 1.1.2.9 retrieving revision 1.1.2.10 diff -C2 -d -r1.1.2.9 -r1.1.2.10 *** QxListViewContentCellText.js 12 Dec 2005 15:15:33 -0000 1.1.2.9 --- QxListViewContentCellText.js 13 Jan 2006 10:50:26 -0000 1.1.2.10 *************** *** 30,61 **** **************************************************************************** */ ! function QxListViewContentCellText(vText) { QxText.call(this, vText); }; QxListViewContentCellText.extend(QxText, "QxListViewContentCellText"); QxListViewContentCellText.empty = { text : QxConst.CORE_EMPTY }; - - - - /* - ------------------------------------------------------------------------------------ - STYLES & BEHAVIOR - ------------------------------------------------------------------------------------ - */ - - proto._applyInitialHtml = function() - { - this.setSelectable(false); - }; - - proto._applyInitialStyle = function() - { - this.setStyleProperty(QxConst.PROPERTY_PADDING, "0 6px"); - this.setStyleProperty(QxConst.PROPERTY_WHITESPACE, "nowrap"); - this.setStyleProperty(QxConst.PROPERTY_OVERFLOW_BOTH, QxConst.OVERFLOW_VALUE_HIDDEN); - this.setStyleProperty(QxConst.PROPERTY_OVERFLOW_TEXT, QxConst.OVERFLOW_VALUE_ELLIPSIS); - }; --- 30,45 ---- **************************************************************************** */ ! function QxListViewContentCellText(vText) ! { QxText.call(this, vText); + + this.setSelectable(false); }; QxListViewContentCellText.extend(QxText, "QxListViewContentCellText"); + QxListViewContentCellText.changeProperty({ name : "appearance", type : QxConst.TYPEOF_STRING, defaultValue : "list-view-content-cell-text" }); + QxListViewContentCellText.empty = { text : QxConst.CORE_EMPTY }; Index: QxListViewContentCellLink.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/Attic/QxListViewContentCellLink.js,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -C2 -d -r1.1.2.5 -r1.1.2.6 *** QxListViewContentCellLink.js 12 Dec 2005 15:15:33 -0000 1.1.2.5 --- QxListViewContentCellLink.js 13 Jan 2006 10:50:26 -0000 1.1.2.6 *************** *** 30,39 **** **************************************************************************** */ ! function QxListViewContentCellLink(vHtml) { QxLink.call(this, vHtml); }; QxListViewContentCellLink.extend(QxLink, "QxListViewContentCellLink"); QxListViewContentCellLink.empty = { --- 30,45 ---- **************************************************************************** */ ! function QxListViewContentCellLink(vHtml) ! { QxLink.call(this, vHtml); + + // selectable = false will break links in gecko based browsers + this.setSelectable(true); }; QxListViewContentCellLink.extend(QxLink, "QxListViewContentCellLink"); + QxListViewContentCellLink.changeProperty({ name : "appearance", type : QxConst.TYPEOF_STRING, defaultValue : "list-view-content-cell-link" }); + QxListViewContentCellLink.empty = { *************** *** 41,52 **** uri : QxConst.CORE_HASH }; - - - /* - ------------------------------------------------------------------------------------ - STYLES & BEHAVIOR - ------------------------------------------------------------------------------------ - */ - - // setSelectable = false will break links in gecko based browsers - proto._applyInitialHtml = QxUtil.returnTrue; --- 47,48 ---- Index: QxFieldSet.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxFieldSet.js,v retrieving revision 1.3.2.18 retrieving revision 1.3.2.19 diff -C2 -d -r1.3.2.18 -r1.3.2.19 *** QxFieldSet.js 8 Nov 2005 11:04:49 -0000 1.3.2.18 --- QxFieldSet.js 13 Jan 2006 10:50:26 -0000 1.3.2.19 *************** *** 27,30 **** --- 27,31 ---- #package(form) + #require(QxAtom) **************************************************************************** */ Index: QxBarView.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/Attic/QxBarView.js,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -C2 -d -r1.1.2.3 -r1.1.2.4 *** QxBarView.js 19 Dec 2005 12:34:59 -0000 1.1.2.3 --- QxBarView.js 13 Jan 2006 10:50:26 -0000 1.1.2.4 *************** *** 51,54 **** --- 51,55 ---- QxBarView.addProperty({ name : "barPosition", type : QxConst.TYPEOF_STRING, defaultValue : QxConst.ALIGN_TOP, possibleValues : [ QxConst.ALIGN_TOP, QxConst.ALIGN_RIGHT, QxConst.ALIGN_BOTTOM, QxConst.ALIGN_LEFT ] }); + QxBarView.changeProperty({ name : "appearance", type : QxConst.TYPEOF_STRING, defaultValue : "bar-view" }); *************** *** 98,118 **** return true; }; - - - - - - - /* - ------------------------------------------------------------------------------------ - STYLES & BEHAVIOR - ------------------------------------------------------------------------------------ - */ - - QxBarView.BACKGROUND_COLOR = new QxColorObject("#FAFBFE"); - - proto._applyInitialStyle = function() - { - this.setBackgroundColor(QxBarView.BACKGROUND_COLOR); - this.setBorder(QxBorderObject.presets.shadow); - }; --- 99,100 ---- Index: QxTextField.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxTextField.js,v retrieving revision 1.5.2.38 retrieving revision 1.5.2.39 diff -C2 -d -r1.5.2.38 -r1.5.2.39 *** QxTextField.js 6 Jan 2006 10:33:29 -0000 1.5.2.38 --- QxTextField.js 13 Jan 2006 10:50:26 -0000 1.5.2.39 *************** *** 43,47 **** // *********************************************************************** ! // HTML // *********************************************************************** this.setTagName("INPUT"); --- 43,47 ---- // *********************************************************************** ! // BEHAVIOR // *********************************************************************** this.setTagName("INPUT"); *************** *** 50,62 **** this.setTabIndex(1); this.setSelectable(true); - this.setHideFocus(true); - - - // *********************************************************************** - // STYLING - // *********************************************************************** - this.setBorder(QxBorderObject.presets.thinInset); - this.setPadding(2, 4); - this.setStyleProperty("fontSize", "11px"); --- 50,53 ---- *************** *** 81,84 **** --- 72,78 ---- */ + + QxTextField.changeProperty({ name : "appearance", type : QxConst.TYPEOF_STRING, defaultValue : "text-field" }); + QxTextField.addProperty({ name : "value", type : QxConst.TYPEOF_STRING, defaultValue : QxConst.CORE_EMPTY }); QxTextField.addProperty({ name : "maxLength", type : QxConst.TYPEOF_NUMBER }); Index: QxTabView.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/Attic/QxTabView.js,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -C2 -d -r1.1.2.4 -r1.1.2.5 *** QxTabView.js 19 Dec 2005 12:34:59 -0000 1.1.2.4 --- QxTabView.js 13 Jan 2006 10:50:26 -0000 1.1.2.5 *************** *** 46,49 **** --- 46,51 ---- */ + QxTabView.changeProperty({ name : "appearance", type : QxConst.TYPEOF_STRING, defaultValue : "tab-view" }); + QxTabView.addProperty({ name : "alignTabsToLeft", type : QxConst.TYPEOF_BOOLEAN, defaultValue : true }); QxTabView.addProperty({ name : "placeBarOnTop", type : QxConst.TYPEOF_BOOLEAN, defaultValue : true }); *************** *** 91,107 **** return true; }; - - - - - - - /* - ------------------------------------------------------------------------------------ - STYLES & BEHAVIOR - ------------------------------------------------------------------------------------ - */ - - proto._applyInitialStyle = function() { - this.setSpacing(-1); - }; --- 93,94 ---- Index: QxListViewHeaderSeparator.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/Attic/QxListViewHeaderSeparator.js,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -C2 -d -r1.1.2.6 -r1.1.2.7 *** QxListViewHeaderSeparator.js 12 Dec 2005 15:15:33 -0000 1.1.2.6 --- QxListViewHeaderSeparator.js 13 Jan 2006 10:50:26 -0000 1.1.2.7 *************** *** 36,53 **** QxListViewHeaderSeparator.extend(QxTerminator, "QxListViewHeaderSeparator"); ! ! ! ! /* ! ------------------------------------------------------------------------------------ ! STYLES & BEHAVIOR ! ------------------------------------------------------------------------------------ ! */ ! ! proto._applyInitialStyle = function() ! { ! this.setBackgroundColor("#D6D5D9"); ! this.setWidth(1); ! this.setMarginTop(1); ! this.setMarginBottom(1); ! }; --- 36,38 ---- QxListViewHeaderSeparator.extend(QxTerminator, "QxListViewHeaderSeparator"); ! QxListViewHeaderSeparator.changeProperty({ name : "appearance", type : QxConst.TYPEOF_STRING, defaultValue : "list-view-header-separator" }); Index: QxTreeFile.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxTreeFile.js,v retrieving revision 1.3.2.25 retrieving revision 1.3.2.26 diff -C2 -d -r1.3.2.25 -r1.3.2.26 *** QxTreeFile.js 19 Dec 2005 14:29:20 -0000 1.3.2.25 --- QxTreeFile.js 13 Jan 2006 10:50:26 -0000 1.3.2.26 *************** *** 40,64 **** - - /* - ------------------------------------------------------------------------------------ - STYLES & BEHAVIOR - ------------------------------------------------------------------------------------ - */ - - QxTreeFile.IMG_URI = "icons/16/file-new.png"; - - proto._applyInitialStyle = function() - { - this._iconObject.setSource(QxTreeFile.IMG_URI); - - QxTreeElement.prototype._applyInitialStyle.call(this); - }; - - - - - - /* ------------------------------------------------------------------------------------ --- 40,43 ---- *************** *** 90,92 **** proto.getItems = function() { return [this]; ! }; \ No newline at end of file --- 69,71 ---- proto.getItems = function() { return [this]; ! }; Index: QxTree.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxTree.js,v retrieving revision 1.2.2.31 retrieving revision 1.2.2.32 diff -C2 -d -r1.2.2.31 -r1.2.2.32 *** QxTree.js 19 Dec 2005 14:29:20 -0000 1.2.2.31 --- QxTree.js 13 Jan 2006 10:50:26 -0000 1.2.2.32 *************** *** 40,43 **** --- 40,47 ---- + this._iconObject.setAppearance("tree-icon"); + this._labelObject.setAppearance("tree-label"); + + // *********************************************************************** // DEFAULT STATE *************** *** 321,329 **** var vNewItem = this.getManager().getSelectedItem(); ! vOldItem.setSelectedState(vStates[1]); ! vOldItem.setSelectedState(vStates[0]); ! ! vNewItem.setSelectedState(vStates[0]); ! vNewItem.setSelectedState(vStates[1]); delete this._fastUpdate; --- 325,330 ---- var vNewItem = this.getManager().getSelectedItem(); ! //vOldItem.getIconObject().setSelectedState(vStates[0]); ! vNewItem.getIconObject().setSelectedState(vStates[1]); delete this._fastUpdate; *************** *** 358,360 **** vManager.setSelectedItem(vElement); vManager.setLeadItem(vElement); ! }; \ No newline at end of file --- 359,361 ---- vManager.setSelectedItem(vElement); vManager.setLeadItem(vElement); ! }; Index: QxTabViewButton.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/Attic/QxTabViewButton.js,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -C2 -d -r1.1.2.3 -r1.1.2.4 *** QxTabViewButton.js 31 Oct 2005 19:14:19 -0000 1.1.2.3 --- QxTabViewButton.js 13 Jan 2006 10:50:26 -0000 1.1.2.4 *************** *** 30,35 **** **************************************************************************** */ ! function QxTabViewButton(vText, vIcon, vIconWidth, vIconHeight, vFlash) ! { QxCommonViewButton.call(this, vText, vIcon, vIconWidth, vIconHeight, vFlash); }; --- 30,34 ---- **************************************************************************** */ ! function QxTabViewButton(vText, vIcon, vIconWidth, vIconHeight, vFlash) { QxCommonViewButton.call(this, vText, vIcon, vIconWidth, vIconHeight, vFlash); }; *************** *** 37,130 **** QxTabViewButton.extend(QxCommonViewButton, "QxTabViewButton"); ! ! ! ! ! ! /* ! ------------------------------------------------------------------------------------ ! STYLES & BEHAVIOR ! ------------------------------------------------------------------------------------ ! */ ! ! QxTabViewButton.BGCOLOR_NORMAL = new QxColorObject("#E1EEFF"); ! QxTabViewButton.BGCOLOR_CHECKED = new QxColorObject("#FAFBFE"); ! ! QxTabViewButton.BORDER_TOP_NORMAL = new QxBorder(1, QxConst.BORDER_STYLE_SOLID, QxTabViewPane.BORDER_COLOR); ! QxTabViewButton.BORDER_TOP_NORMAL.setBottomWidth(0); ! ! QxTabViewButton.BORDER_TOP_CHECKED = new QxBorder(1, QxConst.BORDER_STYLE_SOLID, QxTabViewPane.BORDER_COLOR); ! QxTabViewButton.BORDER_TOP_CHECKED.setBottomWidth(0); ! QxTabViewButton.BORDER_TOP_CHECKED.setTop(3, QxConst.BORDER_STYLE_SOLID, "#FEC83C"); ! ! QxTabViewButton.BORDER_BOTTOM_NORMAL = new QxBorder(1, QxConst.BORDER_STYLE_SOLID, QxTabViewPane.BORDER_COLOR); ! QxTabViewButton.BORDER_BOTTOM_NORMAL.setTopWidth(0); ! ! QxTabViewButton.BORDER_BOTTOM_CHECKED = new QxBorder(1, QxConst.BORDER_STYLE_SOLID, QxTabViewPane.BORDER_COLOR); ! QxTabViewButton.BORDER_BOTTOM_CHECKED.setTopWidth(0); ! QxTabViewButton.BORDER_BOTTOM_CHECKED.setBottom(3, QxConst.BORDER_STYLE_SOLID, "#FEC83C"); ! ! proto._applyStateStyleDesign = function(vStates) ! { ! var vFrame = this.getView(); ! var vAlignLeft = vFrame.getAlignTabsToLeft(); ! var vBarTop = vFrame.getPlaceBarOnTop(); ! ! if (vStates.checked) ! { ! this.setBackgroundColor(QxTabViewButton.BGCOLOR_CHECKED); ! this.setZIndex(1); ! this.setPadding(3, 8); ! this.setBorder(vBarTop ? QxTabViewButton.BORDER_TOP_CHECKED : QxTabViewButton.BORDER_BOTTOM_CHECKED); ! this.setMarginTop(0); ! this.setMarginBottom(0); ! ! if (vAlignLeft) ! { ! this.setMarginLeft(this.getParent().getFirstVisibleChild() == this ? 0 : -3); ! this.setMarginRight(-3); ! } ! else ! { ! this.setMarginLeft(-3); ! this.setMarginRight(this.getParent().getLastVisibleChild() == this ? 0 : -3); ! }; ! } ! else ! { ! this.setBackgroundColor(vStates.over ? QxTabViewButton.BGCOLOR_CHECKED : QxTabViewButton.BGCOLOR_NORMAL); ! this.setZIndex(0); ! this.setPadding(2, 6); ! ! if (vAlignLeft) ! { ! this.setMarginRight(1); ! this.setMarginLeft(0); ! } ! else ! { ! this.setMarginRight(0); ! this.setMarginLeft(1); ! }; ! ! if (vBarTop) ! { ! this.setBorder(QxTabViewButton.BORDER_TOP_NORMAL); ! this.setMarginTop(3); ! this.setMarginBottom(1); ! } ! else ! { ! this.setBorder(QxTabViewButton.BORDER_BOTTOM_NORMAL); ! this.setMarginTop(1); ! this.setMarginBottom(3); ! }; ! }; ! }; ! ! proto._applyInitialHtml = function() { ! this.setTabIndex(1); ! }; ! --- 36,40 ---- QxTabViewButton.extend(QxCommonViewButton, "QxTabViewButton"); ! QxTabViewButton.changeProperty({ name : "appearance", type : QxConst.TYPEOF_STRING, defaultValue : "tab-view-button" }); Index: QxMenuLayout.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/Attic/QxMenuLayout.js,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -C2 -d -r1.1.2.3 -r1.1.2.4 *** QxMenuLayout.js 28 Oct 2005 20:39:38 -0000 1.1.2.3 --- QxMenuLayout.js 13 Jan 2006 10:50:26 -0000 1.1.2.4 *************** *** 33,38 **** A small helper class to create a special layout handler for QxMenus */ ! function QxMenuLayout() { QxVerticalBoxLayout.call(this); }; --- 33,41 ---- A small helper class to create a special layout handler for QxMenus */ ! function QxMenuLayout() ! { QxVerticalBoxLayout.call(this); + + this.setAnonymous(true); }; *************** *** 40,43 **** --- 43,51 ---- + /*! + Appearance of the widget + */ + QxMenuLayout.changeProperty({ name : "appearance", type : QxConst.TYPEOF_STRING, defaultValue : "menu-layout" }); + Index: QxToolBarPart.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxToolBarPart.js,v retrieving revision 1.2.2.19 retrieving revision 1.2.2.20 diff -C2 -d -r1.2.2.19 -r1.2.2.20 *** QxToolBarPart.js 19 Dec 2005 12:34:59 -0000 1.2.2.19 --- QxToolBarPart.js 13 Jan 2006 10:50:26 -0000 1.2.2.20 *************** *** 40,58 **** QxToolBarPart.extend(QxHorizontalBoxLayout, "QxToolBarPart"); ! ! ! ! ! ! /* ! ------------------------------------------------------------------------------------ ! STYLES & BEHAVIOR ! ------------------------------------------------------------------------------------ ! */ ! ! proto._applyInitialStyle = function() { ! this.setWidth(QxConst.CORE_AUTO); ! }; ! --- 40,44 ---- QxToolBarPart.extend(QxHorizontalBoxLayout, "QxToolBarPart"); ! QxToolBarPart.changeProperty({ name : "appearance", type : QxConst.TYPEOF_STRING, defaultValue : "toolbar-part" }); *************** *** 82,85 **** --- 68,72 ---- + /* ------------------------------------------------------------------------------------ *************** *** 94,99 **** }; - QxHorizontalBoxLayout.prototype.dispose.call(this); - if (this._handle) { --- 81,84 ---- *************** *** 102,105 **** }; ! return true; }; --- 87,90 ---- }; ! return QxHorizontalBoxLayout.prototype.dispose.call(this); }; Index: QxTextArea.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxTextArea.js,v retrieving revision 1.1.2.15 retrieving revision 1.1.2.16 diff -C2 -d -r1.1.2.15 -r1.1.2.16 *** QxTextArea.js 19 Dec 2005 15:23:07 -0000 1.1.2.15 --- QxTextArea.js 13 Jan 2006 10:50:26 -0000 1.1.2.16 *************** *** 34,48 **** QxTextField.call(this, sText); - this.setOverflow(QxConst.CORE_AUTO); - - this.removeHtmlProperty("type"); - - this.setHeight(50); this.setTagName("textarea"); ! this.setSelectable(true); }; QxTextArea.extend(QxTextField, "QxTextArea"); QxTextArea.addProperty({ name : "wrap", type : QxConst.TYPEOF_BOOLEAN }); --- 34,45 ---- QxTextField.call(this, sText); this.setTagName("textarea"); ! this.removeHtmlProperty("type"); }; QxTextArea.extend(QxTextField, "QxTextArea"); + QxTextArea.changeProperty({ name : "appearance", type : QxConst.TYPEOF_STRING, defaultValue : "text-area" }); + QxTextArea.addProperty({ name : "wrap", type : QxConst.TYPEOF_BOOLEAN }); Index: QxToolBarSeparator.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxToolBarSeparator.js,v retrieving revision 1.1.2.16 retrieving revision 1.1.2.17 diff -C2 -d -r1.1.2.16 -r1.1.2.17 *** QxToolBarSeparator.js 29 Oct 2005 21:33:00 -0000 1.1.2.16 --- QxToolBarSeparator.js 13 Jan 2006 10:50:26 -0000 1.1.2.17 *************** *** 32,73 **** function QxToolBarSeparator() { - this._line = new QxTerminator; - QxCanvasLayout.call(this); ! this.add(this._line); }; QxToolBarSeparator.extend(QxCanvasLayout, "QxToolBarSeparator"); ! QxToolBarSeparator.init = function() ! { ! var b = QxToolBarSeparator.BORDER = new QxBorder; ! ! b.setLeftColor("ThreeDShadow"); ! b.setRightColor("ThreeDHighlight"); ! ! b.setLeftStyle(QxConst.BORDER_STYLE_SOLID); ! b.setRightStyle(QxConst.BORDER_STYLE_SOLID); ! ! b.setLeftWidth(1); ! b.setRightWidth(1); ! b.setTopWidth(0); ! b.setBottomWidth(0); ! }; ! ! QxToolBarSeparator.init(); ! ! proto._applyInitialStyle = function() ! { ! this.setWidth(8); ! ! var l = this._line; ! ! l.setTop(2); ! l.setLeft(3); ! l.setWidth(2); ! l.setBottom(2); ! ! l.setBorder(QxToolBarSeparator.BORDER); ! }; --- 32,43 ---- function QxToolBarSeparator() { QxCanvasLayout.call(this); ! var l = new QxTerminator; ! l.setAppearance("toolbar-separator-line"); ! this.add(l); }; QxToolBarSeparator.extend(QxCanvasLayout, "QxToolBarSeparator"); ! QxToolBarSeparator.changeProperty({ name : "appearance", type : QxConst.TYPEOF_STRING, defaultValue : "toolbar-separator" }); Index: QxListViewContentCellIconHtml.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/Attic/QxListViewContentCellIconHtml.js,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** QxListViewContentCellIconHtml.js 12 Dec 2005 15:15:32 -0000 1.1.2.2 --- QxListViewContentCellIconHtml.js 13 Jan 2006 10:50:26 -0000 1.1.2.3 *************** *** 30,39 **** **************************************************************************** */ ! function QxListViewContentCellIconHtml(vHtml, vIcon, vIconWidth, vIconHeight) { QxIconHtml.call(this, vHtml, vIcon, vIconWidth, vIconHeight); }; QxListViewContentCellIconHtml.extend(QxIconHtml, "QxListViewContentCellIconHtml"); QxListViewContentCellIconHtml.empty = { --- 30,44 ---- **************************************************************************** */ ! function QxListViewContentCellIconHtml(vHtml, vIcon, vIconWidth, vIconHeight) ! { QxIconHtml.call(this, vHtml, vIcon, vIconWidth, vIconHeight); + + this.setSelectable(false); }; QxListViewContentCellIconHtml.extend(QxIconHtml, "QxListViewContentCellIconHtml"); + QxListViewContentCellIconHtml.changeProperty({ name : "appearance", type : QxConst.TYPEOF_STRING, defaultValue : "list-view-content-cell-icon-html" }); + QxListViewContentCellIconHtml.empty = { *************** *** 41,67 **** html : QxConst.CORE_HASH }; - - - - - - - - /* - ------------------------------------------------------------------------------------ - STYLES & BEHAVIOR - ------------------------------------------------------------------------------------ - */ - - proto._applyInitialHtml = function() - { - this.setSelectable(false); - }; - - proto._applyInitialStyle = function() - { - this.setStyleProperty(QxConst.PROPERTY_PADDING, "0 6px"); - this.setStyleProperty(QxConst.PROPERTY_WHITESPACE, "nowrap"); - this.setStyleProperty(QxConst.PROPERTY_OVERFLOW_BOTH, QxConst.OVERFLOW_VALUE_HIDDEN); - this.setStyleProperty(QxConst.PROPERTY_OVERFLOW_TEXT, QxConst.OVERFLOW_VALUE_ELLIPSIS); - }; --- 46,47 ---- Index: QxLabel.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/Attic/QxLabel.js,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -C2 -d -r1.1.2.4 -r1.1.2.5 *** QxLabel.js 19 Dec 2005 15:23:07 -0000 1.1.2.4 --- QxLabel.js 13 Jan 2006 10:50:26 -0000 1.1.2.5 *************** *** 28,35 **** #package(guicore) #require(QxEmu) **************************************************************************** */ ! function QxLabel(vHtml, vWidth, vHeight, vSelectable, vMnemonic) { QxTerminator.call(this); --- 28,38 ---- #package(guicore) #require(QxEmu) + #require(QxFontObject) + #require(QxFontCache) + #post(QxLabelCore) **************************************************************************** */ ! function QxLabel(vHtml, vMnemonic) { QxTerminator.call(this); *************** *** 44,59 **** }; - if (vSelectable == false) - { - this.setSelectable(false); - this.setCursor(QxConst.CORE_DEFAULT); - }; - // Prohibit stretching through layout handler this.setAllowStretchX(false); this.setAllowStretchY(false); ! ! this.setWidth(QxUtil.isValid(vWidth) ? vWidth : QxConst.CORE_AUTO); ! this.setHeight(QxUtil.isValid(vHeight) ? vHeight : QxConst.CORE_AUTO); }; --- 47,56 ---- }; // Prohibit stretching through layout handler this.setAllowStretchX(false); this.setAllowStretchY(false); ! ! // Auto Sized ! this.auto(); }; *************** *** 186,190 **** proto._modifyFont = function(propValue, propOldValue, propData) { ! this._invalidatePreferredInnerDimensions(); if (propValue) { --- 183,187 ---- proto._modifyFont = function(propValue, propOldValue, propData) { ! this._invalidatePreferredInnerDimensions(); if (propValue) { *************** *** 207,233 **** */ - QxLabel.init = function() - { - QxLabel._measureNodes = {}; - QxLabel.createMeasureNode(QxConst.CORE_DEFAULT); - }; - - QxLabel.createMeasureNode = function(vId) - { - var vNode = QxLabel._measureNodes[vId] = document.createElement(QxConst.CORE_DIV); - var vStyle = vNode.style; - - vStyle.width = vStyle.height = QxConst.CORE_AUTO; - vStyle.visibility = QxConst.CORE_HIDDEN; - vStyle.position = QxConst.CORE_ABSOLUTE; - vStyle.zIndex = "-1"; - - document.body.appendChild(vNode); - }; - - if (typeof window.application != QxConst.TYPEOF_UNDEFINED) { - window.application.addEventListener(QxConst.EVENT_TYPE_PRE, QxLabel.init); - }; - proto._computeObjectNeededDimensions = function() { --- 204,207 ---- *************** *** 245,249 **** // apply html vNode.innerHTML = vHtml; ! // store values this._cachedPreferredInnerWidth = vNode.scrollWidth; --- 219,223 ---- // apply html vNode.innerHTML = vHtml; ! // store values this._cachedPreferredInnerWidth = vNode.scrollWidth; Index: QxVerticalSpacer.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/Attic/QxVerticalSpacer.js,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -C2 -d -r1.1.2.3 -r1.1.2.4 *** QxVerticalSpacer.js 29 Oct 2005 21:33:00 -0000 1.1.2.3 --- QxVerticalSpacer.js 13 Jan 2006 10:50:26 -0000 1.1.2.4 *************** *** 30,48 **** **************************************************************************** */ ! function QxVerticalSpacer() { QxTerminator.call(this); - }; - QxVerticalSpacer.extend(QxTerminator, "QxVerticalSpacer"); - - - - /* - ------------------------------------------------------------------------------------ - STYLES & BEHAVIOR - ------------------------------------------------------------------------------------ - */ - - proto._applyInitialStyle = function() { this.setHeight(QxConst.CORE_FLEX); }; --- 30,39 ---- **************************************************************************** */ ! function QxVerticalSpacer() ! { QxTerminator.call(this); this.setHeight(QxConst.CORE_FLEX); }; + + QxVerticalSpacer.extend(QxTerminator, "QxVerticalSpacer"); Index: QxToolBarButton.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxToolBarButton.js,v retrieving revision 1.4.2.26 retrieving revision 1.4.2.27 diff -C2 -d -r1.4.2.26 -r1.4.2.27 *** QxToolBarButton.js 19 Dec 2005 12:34:59 -0000 1.4.2.26 --- QxToolBarButton.js 13 Jan 2006 10:50:26 -0000 1.4.2.27 *************** *** 36,122 **** QxToolBarButton.extend(QxButton, "QxToolBarButton"); ! ! ! ! ! /* ! ------------------------------------------------------------------------------------ ! STYLES & BEHAVIOR ! ------------------------------------------------------------------------------------ ! */ ! ! QxToolBarButton.BGCOLOR_DEFAULT = new QxColorObject("buttonface"); ! QxToolBarButton.BGCOLOR_LEFT = new QxColor("#FFF0C9"); ! ! QxToolBarButton.BORDER_PRESSED = QxBorderObject.presets.thinInset; ! QxToolBarButton.BORDER_OVER = QxBorderObject.presets.thinOutset; ! QxToolBarButton.BORDER_DEFAULT = null; ! ! QxToolBarButton.CHECKED_BACKGROUND = "core/dotted_white.gif"; ! ! proto._applyInitialHtml = function() ! { ! QxAtom.prototype._applyInitialHtml.call(this); ! ! this.setSelectable(false); ! this.setTabIndex(-1); ! }; ! ! proto._applyInitialStyle = function() ! { ! this.setCursor(QxConst.CORE_DEFAULT); ! this.setSpacing(4); ! this.setWidth(QxConst.CORE_AUTO); ! this.setVerticalChildrenAlign(QxConst.ALIGN_MIDDLE); ! }; ! ! proto._applyStateStyleDesign = function(vStates) ! { ! var vBackgroundColor, vBackgroundImage, vBorder; ! var vPaddingTop, vPaddingRight, vPaddingBottom, vPaddingLeft; ! ! if (vStates.left) { ! vBackgroundColor = QxToolBarButton.BGCOLOR_LEFT; ! } else { ! vBackgroundColor = QxToolBarButton.BGCOLOR_DEFAULT; ! }; ! ! if (vStates.checked && !vStates.over) { ! vBackgroundImage = QxToolBarButton.CHECKED_BACKGROUND; ! } else { ! vBackgroundImage = null; ! }; ! ! if (vStates.pressed || vStates.checked || vStates.left) { ! vBorder = QxToolBarButton.BORDER_PRESSED; ! } else if (vStates.over) { ! vBorder = QxToolBarButton.BORDER_OVER; ! } else { ! vBorder = QxToolBarButton.BORDER_DEFAULT; ! }; ! ! if (vStates.pressed || vStates.checked || vStates.left) ! { ! vPaddingTop = 3; ! vPaddingRight = 2; ! vPaddingBottom = 1; ! vPaddingLeft = 4; ! } ! else if (vStates.over) ! { ! vPaddingTop = vPaddingBottom = 2; ! vPaddingLeft = vPaddingRight = 3; ! } ! else ! { ! vPaddingTop = vPaddingBottom = 3; ! vPaddingLeft = vPaddingRight = 4; ! }; ! ! this.setBackgroundColor(vBackgroundColor); ! this.setBackgroundImage(vBackgroundImage); ! this.setBorder(vBorder); ! this.setPadding(vPaddingTop, vPaddingRight, vPaddingBottom, vPaddingLeft); ! }; --- 36,40 ---- QxToolBarButton.extend(QxButton, "QxToolBarButton"); ! QxToolBarButton.changeProperty({ name : "appearance", type : QxConst.TYPEOF_STRING, defaultValue : "toolbar-button" }); Index: QxMenuRadioButton.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxMenuRadioButton.js,v retrieving revision 1.5.2.11 retrieving revision 1.5.2.12 diff -C2 -d -r1.5.2.11 -r1.5.2.12 *** QxMenuRadioButton.js 31 Oct 2005 15:38:11 -0000 1.5.2.11 --- QxMenuRadioButton.js 13 Jan 2006 10:50:26 -0000 1.5.2.12 *************** *** 31,36 **** **************************************************************************** */ ! function QxMenuRadioButton(vLabel, vCommand, vChecked) { QxMenuCheckBox.call(this, vLabel, vCommand, vChecked); }; --- 31,39 ---- **************************************************************************** */ ! function QxMenuRadioButton(vLabel, vCommand, vChecked) ! { QxMenuCheckBox.call(this, vLabel, vCommand, vChecked); + + this._iconObject.setAppearance("menu-radio-button-icon"); }; *************** *** 44,47 **** --- 47,51 ---- */ + QxMenuRadioButton.changeProperty({ name : "appearance", type : QxConst.TYPEOF_STRING, defaultValue : "menu-radio-button" }); /*! *************** *** 54,67 **** - /* - ------------------------------------------------------------------------------------ - ICON HANDLING - ------------------------------------------------------------------------------------ - */ - - proto._source = "widgets/menu/radiobutton.gif"; - - - /* --- 58,61 ---- Index: QxToolBar.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxToolBar.js,v retrieving revision 1.1.2.20 retrieving revision 1.1.2.21 diff -C2 -d -r1.1.2.20 -r1.1.2.21 *** QxToolBar.js 19 Dec 2005 16:07:39 -0000 1.1.2.20 --- QxToolBar.js 13 Jan 2006 10:50:26 -0000 1.1.2.21 *************** *** 47,66 **** */ ! QxToolBar.addProperty({ name : "openMenu", type : QxConst.TYPEOF_OBJECT, instance : QxMenu }); - /* - ------------------------------------------------------------------------------------ - STYLES & BEHAVIOR - ------------------------------------------------------------------------------------ - */ - proto._applyInitialStyle = function() - { - this.setBorder(QxBorderObject.presets.thinOutset); - this.setHeight(QxConst.CORE_AUTO); - }; --- 47,60 ---- */ ! QxToolBar.addProperty({ name : "openMenu", type : QxConst.TYPEOF_OBJECT, instance : "QxMenu" }); + /*! + Appearance of the widget + */ + QxToolBar.changeProperty({ name : "appearance", type : QxConst.TYPEOF_STRING, defaultValue : "toolbar" }); Index: QxPopup.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxPopup.js,v retrieving revision 1.3.2.27 retrieving revision 1.3.2.28 diff -C2 -d -r1.3.2.27 -r1.3.2.28 *** QxPopup.js 19 Dec 2005 15:54:09 -0000 1.3.2.27 --- QxPopup.js 13 Jan 2006 10:50:26 -0000 1.3.2.28 *************** *** 30,39 **** **************************************************************************** */ ! function QxPopup() { QxCanvasLayout.call(this); }; QxPopup.extend(QxCanvasLayout, "QxPopup"); /*! Whether to let the system decide when to hide the popup. Setting --- 30,44 ---- **************************************************************************** */ ! function QxPopup() ! { QxCanvasLayout.call(this); + + this.setZIndex(this._minZindex); }; QxPopup.extend(QxCanvasLayout, "QxPopup"); + QxPopup.changeProperty({ name : "appearance", type : QxConst.TYPEOF_STRING, defaultValue : "popup" }); + /*! Whether to let the system decide when to hide the popup. Setting *************** *** 62,82 **** /* ------------------------------------------------------------------------------------ - STYLES & BEHAVIOR - ------------------------------------------------------------------------------------ - */ - - proto._applyInitialStyle = function() - { - this.setWidth(QxConst.CORE_AUTO); - this.setHeight(QxConst.CORE_AUTO); - - this.setZIndex(this._minZindex); - }; - - - - - /* - ------------------------------------------------------------------------------------ APPEAR/DISAPPEAR ------------------------------------------------------------------------------------ --- 67,70 ---- Index: QxCommonViewButton.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/Attic/QxCommonViewButton.js,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** QxCommonViewButton.js 31 Oct 2005 20:08:56 -0000 1.1.2.2 --- QxCommonViewButton.js 13 Jan 2006 10:50:26 -0000 1.1.2.3 *************** *** 34,37 **** --- 34,38 ---- QxAtom.call(this, vText, vIcon, vIconWidth, vIconHeight, vFlash); + this.setTabIndex(1); // *********************************************************************** Index: QxCommonViewPage.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/Attic/QxCommonViewPage.js,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -C2 -d -r1.1.2.4 -r1.1.2.5 *** QxCommonViewPage.js 19 Dec 2005 12:34:59 -0000 1.1.2.4 --- QxCommonViewPage.js 13 Jan 2006 10:50:26 -0000 1.1.2.5 *************** *** 34,39 **** QxCanvasLayout.call(this); - this.setEdge(10); - if (QxUtil.isValid(vButton)) { this.setButton(vButton); --- 34,37 ---- Index: QxClientDocument.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxClientDocument.js,v retrieving revision 1.7.2.63 retrieving revision 1.7.2.64 diff -C2 -d -r1.7.2.63 -r1.7.2.64 *** QxClientDocument.js 19 Dec 2005 15:54:09 -0000 1.7.2.63 --- QxClientDocument.js 13 Jan 2006 10:50:26 -0000 1.7.2.64 *************** *** 27,30 **** --- 27,32 ---- #package(guicore) + #post(QxBlocker) + #post(QxFocusManager) **************************************************************************** */ *************** *** 38,41 **** --- 40,47 ---- this.setElement(this._document.body); + // Needed hard-coded because otherwise the client document + // would not be added initially to the state queue + this._addToGlobalStateQueue(); + QxCanvasLayout.call(this); *************** *** 75,78 **** --- 81,85 ---- QxClientDocument.addProperty({ name : "globalCursor", type : QxConst.TYPEOF_STRING }); + QxClientDocument.changeProperty({ name : "appearance", type : QxConst.TYPEOF_STRING, defaultValue : "client-document" }); *************** *** 122,142 **** - /* - ------------------------------------------------------------------------------------ - STYLES & BEHAVIOR - ------------------------------------------------------------------------------------ - */ - - proto._applyInitialStyle = function() - { - this.setBackgroundColor("threedface"); - this.setColor("windowtext"); - this.setHideFocus(true); - this.setEnableElementFocus(false); - }; - - - - /* --- 129,132 ---- Index: QxCommonView.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/Attic/QxCommonView.js,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -C2 -d -r1.1.2.4 -r1.1.2.5 *** QxCommonView.js 19 Dec 2005 12:34:59 -0000 1.1.2.4 --- QxCommonView.js 13 Jan 2006 10:50:26 -0000 1.1.2.5 *************** *** 47,51 **** - /* ------------------------------------------------------------------------------------ --- 47,50 ---- Index: QxToolBarPartHandle.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxToolBarPartHandle.js,v retrieving revision 1.1.2.12 retrieving revision 1.1.2.13 diff -C2 -d -r1.1.2.12 -r1.1.2.13 *** QxToolBarPartHandle.js 28 Oct 2005 20:39:38 -0000 1.1.2.12 --- QxToolBarPartHandle.js 13 Jan 2006 10:50:26 -0000 1.1.2.13 *************** *** 32,55 **** function QxToolBarPartHandle() { - this._line = new QxTerminator; - QxCanvasLayout.call(this); ! ! this.add(this._line); }; QxToolBarPartHandle.extend(QxCanvasLayout, "QxToolBarPartHandle"); ! proto._applyInitialStyle = function() ! { ! this.setWidth(10); ! ! var l = this._line; ! ! l.setTop(2); ! l.setLeft(3); ! l.setBottom(2); ! l.setWidth(4); ! ! l.setBorder(QxBorderObject.presets.thinOutset); ! }; \ No newline at end of file --- 32,44 ---- function QxToolBarPartHandle() { QxCanvasLayout.call(this); ! ! var l = new QxTerminator; ! l.setAppearance("toolbar-part-handle-line"); ! this.add(l); }; QxToolBarPartHandle.extend(QxCanvasLayout, "QxToolBarPartHandle"); ! QxToolBarPartHandle.changeProperty({ name : "appearance", type : QxConst.TYPEOF_STRING, defaultValue : "toolbar-part-handle" }); ! // QxToolBarPartHandle.changePropertyDefaultValue("appearance", "toolbar-part-handle"); Index: QxInline.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxInline.js,v retrieving revision 1.2.2.16 retrieving revision 1.2.2.17 diff -C2 -d -r1.2.2.16 -r1.2.2.17 *** QxInline.js 19 Dec 2005 14:29:19 -0000 1.2.2.16 --- QxInline.js 13 Jan 2006 10:50:26 -0000 1.2.2.17 *************** *** 42,58 **** QxInline.addProperty({ name : "inlineNodeId", type : QxConst.TYPEOF_STRING }); - - - - - /* - ------------------------------------------------------------------------------------ - STYLES & BEHAVIOR - ------------------------------------------------------------------------------------ - */ - - proto._applyInitialStyle = function() - { - this.setHeight(QxConst.CORE_AUTO); - this.setWidth(QxConst.CORE_AUTO); - }; --- 42,43 ---- Index: QxTreeElement.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxTreeElement.js,v retrieving revision 1.3.2.43 retrieving revision 1.3.2.44 diff -C2 -d -r1.3.2.43 -r1.3.2.44 *** QxTreeElement.js 20 Dec 2005 08:17:05 -0000 1.3.2.43 --- QxTreeElement.js 13 Jan 2006 10:50:26 -0000 1.3.2.44 *************** *** 45,49 **** this._iconObject.setAnonymous(true); this._labelObject.setAnonymous(true); ! QxBoxLayout.call(this, QxConst.ORIENTATION_HORIZONTAL); --- 45,53 ---- this._iconObject.setAnonymous(true); this._labelObject.setAnonymous(true); ! ! // Behaviour and Hard Styling ! this._labelObject.setSelectable(false); ! this._labelObject.setStyleProperty(QxConst.PROPERTY_LINEHEIGHT, QxConst.CORE_HUNDREDPERCENT); ! QxBoxLayout.call(this, QxConst.ORIENTATION_HORIZONTAL); *************** *** 52,55 **** --- 56,62 ---- }; + // Prohibit selection + this.setSelectable(false); + // Base URL used for indent images this.BASE_URI = QxImageManager.buildURI("widgets/tree/"); *************** *** 58,61 **** --- 65,72 ---- this.add(this._indentObject, this._iconObject, this._labelObject); + // Set Appearance + this._iconObject.setAppearance("tree-element-icon"); + this._labelObject.setAppearance("tree-element-label"); + // Register event listeners this.addEventListener(QxConst.EVENT_TYPE_MOUSEDOWN, this._onmousedown); *************** *** 65,68 **** --- 76,80 ---- QxTreeElement.extend(QxBoxLayout, "QxTreeElement"); + QxTreeElement.OMIT_CLASS = "QxTreeElement"; *************** *** 75,78 **** --- 87,92 ---- */ + QxTreeElement.changeProperty({ name : "appearance", type : QxConst.TYPEOF_STRING, defaultValue : "tree-element" }); + /*! The label/caption/text of the QxAtom instance *************** *** 80,84 **** QxTreeElement.addProperty({ name : "label", type : QxConst.TYPEOF_STRING }); ! QxTreeElement.OMIT_CLASS = "QxTreeElement"; --- 94,103 ---- QxTreeElement.addProperty({ name : "label", type : QxConst.TYPEOF_STRING }); ! /*! ! Selected property ! */ ! QxTreeElement.addProperty({ name : "selected", type : QxConst.TYPEOF_BOOLEAN, defaultValue : false }); ! ! *************** *** 102,105 **** --- 121,151 ---- }; + proto._modifySelected = function(propValue, propOldValue, propData) + { + var vState = QxWidget.states.selected[propValue ? 1 : 0]; + + this.setSelectedState(vState); + + var vTree = this.getTree(); + if (!vTree._fastUpdate || (propOldValue && vTree._oldItem == this)) { + this._iconObject.setSelectedState(vState); + }; + + this._labelObject.setSelectedState(vState); + + var vManager = this.getTree().getManager(); + + if (propOldValue && vManager.getSelectedItem() == this) + { + vManager.deselectAll(); + } + else if (propValue && vManager.getSelectedItem() != this) + { + vManager.setSelectedItem(this); + }; + + return true; + }; + *************** *** 122,126 **** }; ! proto.getLevel = function() { var vParentFolder = this.getParentFolder(); --- 168,172 ---- }; ! proto.getLevel = function() { var vParentFolder = this.getParentFolder(); *************** *** 128,132 **** }; ! proto.getTree = function() { var vParentFolder = this.getParentFolder(); --- 174,178 ---- }; ! proto.getTree = function() { var vParentFolder = this.getParentFolder(); *************** *** 191,241 **** - /* - ------------------------------------------------------------------------------------ - STYLES & BEHAVIOR - ------------------------------------------------------------------------------------ - */ - - QxTreeElement.HIGHLIGHT_BGCOLOR = "highlight"; - QxTreeElement.HIGHLIGHT_FGCOLOR = "highlighttext"; - - proto._applyInitialStyle = function() - { - // Configure myself - this.setSelectable(false); - this.setHeight(16); - this.setVerticalChildrenAlign(QxConst.ALIGN_MIDDLE); - - // Configure icon object - this._iconObject.setWidth(16); - this._iconObject.setHeight(16); - - // Configure label object - this._labelObject.setSelectable(false); - this._labelObject.setCursor(QxConst.CORE_DEFAULT); - this._labelObject.setMarginLeft(3); - this._labelObject.setWidth(null); - this._labelObject.setHeight(15); - this._labelObject.setPadding(2); - this._labelObject.setStyleProperty(QxConst.PROPERTY_LINEHEIGHT, QxConst.CORE_HUNDREDPERCENT); - this._labelObject.setAllowStretchY(false); - }; - - proto._applyStateStyleDesign = function(vStates) - { - if (vStates.selected) - { - this._labelObject.setBackgroundColor(QxTreeElement.HIGHLIGHT_BGCOLOR); - this._labelObject.setColor(QxTreeElement.HIGHLIGHT_FGCOLOR); - } - else - { - this._labelObject.setBackgroundColor(null); - this._labelObject.setColor(null); - }; - }; - - - --- 237,240 ---- *************** *** 250,259 **** { QxBoxLayout.prototype._modifyParent.call(this, propValue, propOldValue, propData); ! // Be sure to update previous folder also if it is closed currently (plus/minus symbol) if (propOldValue && !propOldValue.isDisplayable() && propOldValue.getParent().isDisplayable()) { propOldValue.getParent().addToTreeQueue(); }; ! // Be sure to update new folder also if it is closed currently (plus/minus symbol) if (propValue && !propValue.isDisplayable() && propValue.getParent().isDisplayable()) { --- 249,258 ---- { QxBoxLayout.prototype._modifyParent.call(this, propValue, propOldValue, propData); ! // Be sure to update previous folder also if it is closed currently (plus/minus symbol) if (propOldValue && !propOldValue.isDisplayable() && propOldValue.getParent().isDisplayable()) { propOldValue.getParent().addToTreeQueue(); }; ! // Be sure to update new folder also if it is closed currently (plus/minus symbol) if (propValue && !propValue.isDisplayable() && propValue.getParent().isDisplayable()) { *************** *** 261,265 **** }; ! return true; }; --- 260,264 ---- }; ! return true; }; *************** *** 267,276 **** { QxBoxLayout.prototype._handleDisplayableCustom.call(this, vDisplayable, vParent, vHint); ! if (vHint) { var vParentFolder = this.getParentFolder(); var vPreviousParentFolder = this._previousParentFolder; ! if (vPreviousParentFolder) { --- 266,275 ---- { QxBoxLayout.prototype._handleDisplayableCustom.call(this, vDisplayable, vParent, vHint); ! if (vHint) { var vParentFolder = this.getParentFolder(); var vPreviousParentFolder = this._previousParentFolder; ! if (vPreviousParentFolder) { *************** *** 282,305 **** { vPreviousParentFolder.addToTreeQueue(); ! }; }; ! if (vParentFolder && vParentFolder.isDisplayable() && vParentFolder._initialLayoutDone) { vParentFolder.addToTreeQueue(); }; ! if (this.isLastVisibleChild()) { var vPrev = this.getPreviousVisibleSibling(); ! if (vPrev && vPrev instanceof QxTreeElement) { ! vPrev._updateIndent(); }; }; ! if (vDisplayable) { this._updateIndent(); }; ! }; }; --- 281,304 ---- { vPreviousParentFolder.addToTreeQueue(); ! }; }; ! if (vParentFolder && vParentFolder.isDisplayable() && vParentFolder._initialLayoutDone) { vParentFolder.addToTreeQueue(); }; ! if (this.isLastVisibleChild()) { var vPrev = this.getPreviousVisibleSibling(); ! if (vPrev && vPrev instanceof QxTreeElement) { ! vPrev._updateIndent(); }; }; ! if (vDisplayable) { this._updateIndent(); }; ! }; }; *************** *** 322,328 **** }; ! proto._onmouseup = function(e) { ! ! }; --- 321,325 ---- }; ! proto._onmouseup = QxUtil.returnTrue; *************** *** 348,352 **** this._wasLastVisibleChild = this.isLastVisibleChild(); ! // generate html for indent area var vLevel = this.getLevel(); var vTree = this.getTree(); --- 345,349 ---- this._wasLastVisibleChild = this.isLastVisibleChild(); ! // generate html for indent area var vLevel = this.getLevel(); var vTree = this.getTree(); Index: QxWindow.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxWindow.js,v retrieving revision 1.25.2.59 retrieving revision 1.25.2.60 diff -C2 -d -r1.25.2.59 -r1.25.2.60 *** QxWindow.js 20 Dec 2005 08:42:26 -0000 1.25.2.59 --- QxWindow.js 13 Jan 2006 10:50:26 -0000 1.25.2.60 *************** *** 35,49 **** // *********************************************************************** ! // STYLE // *********************************************************************** this.setMinWidth(QxConst.CORE_AUTO); this.setMinHeight(QxConst.CORE_AUTO); - - this.setBackgroundColor("threedface"); - this.setColor("windowtext"); - this.setBorder(QxBorderObject.presets.outset); this.setAutoHide(false); ! this.setPadding(1); --- 35,45 ---- // *********************************************************************** ! // FUNCTIONAL STYLE // *********************************************************************** this.setMinWidth(QxConst.CORE_AUTO); this.setMinHeight(QxConst.CORE_AUTO); this.setAutoHide(false); ! *************** *** 61,66 **** var f = this._frame = new QxTerminator; ! ! f.setBorder(QxBorderObject.presets.shadow); --- 57,61 ---- var f = this._frame = new QxTerminator; ! f.setAppearance("window-resize-frame"); *************** *** 70,78 **** var l = this._layout = new QxVerticalBoxLayout; - - l.setWidth(null); - l.setHeight(null); l.setEdge(0); - this.add(l); --- 65,69 ---- *************** *** 83,91 **** var cb = this._captionBar = new QxHorizontalBoxLayout; ! ! cb.setWidth(null); ! cb.setPadding(1, 2, 2); ! cb.setVerticalChildrenAlign("middle"); ! l.add(cb); --- 74,78 ---- var cb = this._captionBar = new QxHorizontalBoxLayout; ! cb.setAppearance("window-captionbar"); l.add(cb); *************** *** 96,116 **** var ci = this._captionIcon = new QxImage(vIcon); ! ! ci.setMargi... [truncated message content] |
Update of /cvsroot/qooxdoo/qooxdoo/source/test/user In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22549/source/test/user Modified Files: Tag: renderer Box_Layout_1.html Box_Layout_2.html Box_Layout_3.html Box_Layout_4.html Box_Layout_7.html Box_Layout_8.html Enabled_Disabled_1.html Fieldset_2.html Fieldset_3.html Fieldset_4.html Flow_Layout_1.html Flow_Layout_2.html Flow_Layout_3.html Gallery_List_1.html Inline_1.html Node_1.html Tab_View_1.html Tree_1.html Log Message: Added support for new appearance layer Index: Fieldset_3.html =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/test/user/Attic/Fieldset_3.html,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -C2 -d -r1.1.2.3 -r1.1.2.4 *** Fieldset_3.html 13 Dec 2005 10:04:00 -0000 1.1.2.3 --- Fieldset_3.html 13 Jan 2006 10:50:27 -0000 1.1.2.4 *************** *** 52,56 **** fsl.setLeft(0); fsl.setRight(0); ! fsl.setWidth(null); fsl.setSpacing(4); fs.add(fsl); --- 52,56 ---- fsl.setLeft(0); fsl.setRight(0); ! fsl.setHeight("auto"); fsl.setSpacing(4); fs.add(fsl); *************** *** 62,65 **** --- 62,66 ---- r1.setLeft(0); r1.setWidth("100%"); + r1.setHeight("auto"); r1.setVerticalChildrenAlign("middle"); fsl.add(r1); *************** *** 89,92 **** --- 90,94 ---- r2.setLeft(0); r2.setWidth("100%"); + r2.setHeight("auto"); r2.setVerticalChildrenAlign("middle"); fsl.add(r2); *************** *** 117,120 **** --- 119,123 ---- r3.setLeft(0); r3.setWidth("100%"); + r3.setHeight("auto"); r3.setVerticalChildrenAlign("middle"); fsl.add(r3); Index: Inline_1.html =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/test/user/Attic/Inline_1.html,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -C2 -d -r1.1.2.3 -r1.1.2.4 *** Inline_1.html 13 Dec 2005 10:04:00 -0000 1.1.2.3 --- Inline_1.html 13 Jan 2006 10:50:27 -0000 1.1.2.4 *************** *** 43,46 **** --- 43,50 ---- var inlineWidget = new QxInline("iframe1"); + + inlineWidget.setHeight("auto"); + inlineWidget.setWidth("auto"); + var fieldSet = new QxFieldSet("My first inline fieldset"); *************** *** 250,253 **** --- 254,262 ---- var inline2 = new QxInline("iframe2"); + + inline2.setHeight("auto"); + inline2.setWidth("auto"); + + var mb1 = new QxToolBar; Index: Tree_1.html =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/test/user/Tree_1.html,v retrieving revision 1.2.2.18 retrieving revision 1.2.2.19 diff -C2 -d -r1.2.2.18 -r1.2.2.19 *** Tree_1.html 13 Dec 2005 10:04:00 -0000 1.2.2.18 --- Tree_1.html 13 Jan 2006 10:50:27 -0000 1.2.2.19 *************** *** 42,45 **** --- 42,46 ---- this.add(t); + var te1 = new QxTreeFolder("Desktop"); Index: Box_Layout_3.html =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/test/user/Attic/Box_Layout_3.html,v retrieving revision 1.1.2.12 retrieving revision 1.1.2.13 diff -C2 -d -r1.1.2.12 -r1.1.2.13 *** Box_Layout_3.html 13 Dec 2005 10:04:00 -0000 1.1.2.12 --- Box_Layout_3.html 13 Jan 2006 10:50:27 -0000 1.1.2.13 *************** *** 49,53 **** hbl1.setLeft(20); hbl1.setBorder(QxBorderObject.presets.outset); ! hbl1.setHeight(null); hbl1.setBottom(48); --- 49,53 ---- hbl1.setLeft(20); hbl1.setBorder(QxBorderObject.presets.outset); ! hbl1.setWidth("auto") hbl1.setBottom(48); *************** *** 251,255 **** hbl2.setTop(48); hbl2.setBorder(QxBorderObject.presets.outset); ! hbl2.setHeight(null); hbl2.setBottom(48); --- 251,255 ---- hbl2.setTop(48); hbl2.setBorder(QxBorderObject.presets.outset); ! hbl2.setWidth("auto"); hbl2.setBottom(48); *************** *** 453,457 **** hbl3.setTop(48); hbl3.setBorder(QxBorderObject.presets.outset); ! hbl3.setHeight(null); hbl3.setBottom(48); --- 453,457 ---- hbl3.setTop(48); hbl3.setBorder(QxBorderObject.presets.outset); ! hbl3.setWidth("auto"); hbl3.setBottom(48); Index: Gallery_List_1.html =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/test/user/Gallery_List_1.html,v retrieving revision 1.3.2.3 retrieving revision 1.3.2.4 diff -C2 -d -r1.3.2.3 -r1.3.2.4 *** Gallery_List_1.html 13 Dec 2005 10:04:00 -0000 1.3.2.3 --- Gallery_List_1.html 13 Jan 2006 10:50:27 -0000 1.3.2.4 *************** *** 72,76 **** ! d.add(galleryControl, galleryList); }; </script> --- 72,76 ---- ! d.add(galleryList); }; </script> Index: Enabled_Disabled_1.html =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/test/user/Enabled_Disabled_1.html,v retrieving revision 1.4.2.9 retrieving revision 1.4.2.10 diff -C2 -d -r1.4.2.9 -r1.4.2.10 *** Enabled_Disabled_1.html 13 Dec 2005 10:04:00 -0000 1.4.2.9 --- Enabled_Disabled_1.html 13 Jan 2006 10:50:27 -0000 1.4.2.10 *************** *** 66,70 **** setTop(60); setLeft(220); ! addEventListener("changeChecked", function(e) { w1.setEnabled(e.getValue()); }); }; --- 66,70 ---- setTop(60); setLeft(220); ! addEventListener("changeChecked", function(e) { w1.setEnabled(e.getNewValue()); }); }; *************** *** 93,97 **** setTop(196); setLeft(220); ! addEventListener("changeChecked", function(e) { a1.setEnabled(e.getValue()); }); }; --- 93,97 ---- setTop(196); setLeft(220); ! addEventListener("changeChecked", function(e) { a1.setEnabled(e.getNewValue()); }); }; *************** *** 117,121 **** setTop(244); setLeft(220); ! addEventListener("changeChecked", function(e) { btn1.setEnabled(e.getValue()); }); }; --- 117,121 ---- setTop(244); setLeft(220); ! addEventListener("changeChecked", function(e) { btn1.setEnabled(e.getNewValue()); }); }; *************** *** 141,145 **** setTop(292); setLeft(220); ! addEventListener("changeChecked", function(e) { rb1.setEnabled(e.getValue()); }); }; --- 141,145 ---- setTop(292); setLeft(220); ! addEventListener("changeChecked", function(e) { rb1.setEnabled(e.getNewValue()); }); }; *************** *** 165,169 **** setTop(340); setLeft(220); ! addEventListener("changeChecked", function(e) { cb1.setEnabled(e.getValue()); }); }; --- 165,169 ---- setTop(340); setLeft(220); ! addEventListener("changeChecked", function(e) { cb1.setEnabled(e.getNewValue()); }); }; *************** *** 189,193 **** setTop(388); setLeft(220); ! addEventListener("changeChecked", function(e) { tf1.setEnabled(e.getValue()); }); }; --- 189,193 ---- setTop(388); setLeft(220); ! addEventListener("changeChecked", function(e) { tf1.setEnabled(e.getNewValue()); }); }; Index: Tab_View_1.html =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/test/user/Attic/Tab_View_1.html,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -C2 -d -r1.1.2.4 -r1.1.2.5 *** Tab_View_1.html 13 Dec 2005 10:04:00 -0000 1.1.2.4 --- Tab_View_1.html 13 Jan 2006 10:50:27 -0000 1.1.2.5 *************** *** 54,61 **** var c2 = new QxCheckBox("Align tabs to left"); ! c1.setTop(10); c1.setChecked(true); ! c2.setTop(30); c2.setChecked(true); --- 54,61 ---- var c2 = new QxCheckBox("Align tabs to left"); ! c1.setTop(0); c1.setChecked(true); ! c2.setTop(20); c2.setChecked(true); Index: Flow_Layout_1.html =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/test/user/Attic/Flow_Layout_1.html,v retrieving revision 1.1.2.28 retrieving revision 1.1.2.29 diff -C2 -d -r1.1.2.28 -r1.1.2.29 *** Flow_Layout_1.html 13 Dec 2005 10:04:00 -0000 1.1.2.28 --- Flow_Layout_1.html 13 Jan 2006 10:50:27 -0000 1.1.2.29 *************** *** 151,154 **** --- 151,155 ---- controlBox.setRight(335); controlBox.setWidth(null); + controlBox.setHeight("auto"); controlBox.setBorder(QxBorderObject.presets.groove); controlBox.setSpacing(4); *************** *** 204,207 **** --- 205,209 ---- hc0.add(cc0, bc0, bc1, bc2, bc3, bc4, bc5); hc0.setVerticalChildrenAlign("middle"); + hc0.setHeight("auto"); controlBox.add(hc0); *************** *** 232,235 **** --- 234,238 ---- hc1.add(cr0, br0, br1); hc1.setVerticalChildrenAlign("middle"); + hc1.setHeight("auto"); controlBox.add(hc1); *************** *** 312,315 **** --- 315,319 ---- ha1.add(ca0, ba0, ba1, ba2, ba3, ba4); ha1.setVerticalChildrenAlign("middle"); + ha1.setHeight("auto"); controlBox.add(ha1); Index: Box_Layout_7.html =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/test/user/Attic/Box_Layout_7.html,v retrieving revision 1.1.2.22 retrieving revision 1.1.2.23 diff -C2 -d -r1.1.2.22 -r1.1.2.23 *** Box_Layout_7.html 13 Dec 2005 10:04:00 -0000 1.1.2.22 --- Box_Layout_7.html 13 Jan 2006 10:50:27 -0000 1.1.2.23 *************** *** 531,534 **** --- 531,535 ---- hbl12.setTop(348); hbl12.setHeight("auto"); + hbl12.setWidth("auto"); hbl12.setBorder(QxBorderObject.presets.outset); hbl12.setSpacing(4); Index: Fieldset_2.html =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/test/user/Attic/Fieldset_2.html,v retrieving revision 1.1.2.8 retrieving revision 1.1.2.9 diff -C2 -d -r1.1.2.8 -r1.1.2.9 *** Fieldset_2.html 13 Dec 2005 10:04:00 -0000 1.1.2.8 --- Fieldset_2.html 13 Jan 2006 10:50:27 -0000 1.1.2.9 *************** *** 52,56 **** fsl.setLeft(0); fsl.setRight(0); ! fsl.setWidth(null); fsl.setSpacing(4); fs.add(fsl); --- 52,56 ---- fsl.setLeft(0); fsl.setRight(0); ! fsl.setHeight("auto"); fsl.setSpacing(4); fs.add(fsl); *************** *** 62,65 **** --- 62,66 ---- r1.setLeft(0); r1.setWidth("100%"); + r1.setHeight("auto"); r1.setVerticalChildrenAlign("middle"); fsl.add(r1); *************** *** 89,92 **** --- 90,94 ---- r2.setLeft(0); r2.setWidth("100%"); + r2.setHeight("auto"); r2.setVerticalChildrenAlign("middle"); fsl.add(r2); *************** *** 117,120 **** --- 119,123 ---- r3.setLeft(0); r3.setWidth("100%"); + r3.setHeight("auto"); r3.setVerticalChildrenAlign("middle"); fsl.add(r3); Index: Flow_Layout_3.html =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/test/user/Attic/Flow_Layout_3.html,v retrieving revision 1.1.2.13 retrieving revision 1.1.2.14 diff -C2 -d -r1.1.2.13 -r1.1.2.14 *** Flow_Layout_3.html 13 Dec 2005 10:04:00 -0000 1.1.2.13 --- Flow_Layout_3.html 13 Jan 2006 10:50:27 -0000 1.1.2.14 *************** *** 148,152 **** controlBox.setBottom(48); controlBox.setRight(335); ! controlBox.setWidth(null); controlBox.setBorder(QxBorderObject.presets.groove); controlBox.setSpacing(4); --- 148,152 ---- controlBox.setBottom(48); controlBox.setRight(335); ! controlBox.setHeight("auto"); controlBox.setBorder(QxBorderObject.presets.groove); controlBox.setSpacing(4); *************** *** 202,205 **** --- 202,206 ---- hc0.add(cc0, bc0, bc1, bc2, bc3, bc4, bc5); hc0.setVerticalChildrenAlign("middle"); + hc0.setHeight("auto"); controlBox.add(hc0); *************** *** 230,233 **** --- 231,235 ---- hc1.add(cr0, br0, br1); hc1.setVerticalChildrenAlign("middle"); + hc1.setHeight("auto"); controlBox.add(hc1); *************** *** 272,275 **** --- 274,278 ---- ha1.add(ca0, ba0, ba1, ba2, ba3, ba4); ha1.setVerticalChildrenAlign("middle"); + ha1.setHeight("auto"); controlBox.add(ha1); Index: Box_Layout_4.html =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/test/user/Attic/Box_Layout_4.html,v retrieving revision 1.1.2.13 retrieving revision 1.1.2.14 diff -C2 -d -r1.1.2.13 -r1.1.2.14 *** Box_Layout_4.html 13 Dec 2005 10:04:00 -0000 1.1.2.13 --- Box_Layout_4.html 13 Jan 2006 10:50:27 -0000 1.1.2.14 *************** *** 49,53 **** hbl1.setLeft(20); hbl1.setBorder(QxBorderObject.presets.outset); ! hbl1.setHeight(null); hbl1.setBottom(48); --- 49,53 ---- hbl1.setLeft(20); hbl1.setBorder(QxBorderObject.presets.outset); ! hbl1.setWidth("auto"); hbl1.setBottom(48); *************** *** 246,250 **** hbl2.setTop(48); hbl2.setBorder(QxBorderObject.presets.outset); ! hbl2.setHeight(null); hbl2.setBottom(48); --- 246,250 ---- hbl2.setTop(48); hbl2.setBorder(QxBorderObject.presets.outset); ! hbl2.setWidth("auto"); hbl2.setBottom(48); *************** *** 443,447 **** hbl3.setTop(48); hbl3.setBorder(QxBorderObject.presets.outset); ! hbl3.setHeight(null); hbl3.setBottom(48); --- 443,447 ---- hbl3.setTop(48); hbl3.setBorder(QxBorderObject.presets.outset); ! hbl3.setWidth("auto"); hbl3.setBottom(48); Index: Box_Layout_1.html =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/test/user/Attic/Box_Layout_1.html,v retrieving revision 1.1.2.23 retrieving revision 1.1.2.24 diff -C2 -d -r1.1.2.23 -r1.1.2.24 *** Box_Layout_1.html 13 Dec 2005 10:04:00 -0000 1.1.2.23 --- Box_Layout_1.html 13 Jan 2006 10:50:27 -0000 1.1.2.24 *************** *** 50,54 **** hbl1.setLeft(20); hbl1.setBorder(QxBorderObject.presets.outset); ! hbl1.setWidth(null); hbl1.setRight(335); --- 50,54 ---- hbl1.setLeft(20); hbl1.setBorder(QxBorderObject.presets.outset); ! hbl1.setHeight("auto"); hbl1.setRight(335); *************** *** 252,256 **** hbl2.setLeft(20); hbl2.setBorder(QxBorderObject.presets.outset); ! hbl2.setWidth(null); hbl2.setRight(335); --- 252,256 ---- hbl2.setLeft(20); hbl2.setBorder(QxBorderObject.presets.outset); ! hbl2.setHeight("auto"); hbl2.setRight(335); *************** *** 454,458 **** hbl3.setLeft(20); hbl3.setBorder(QxBorderObject.presets.outset); ! hbl3.setWidth(null); hbl3.setRight(335); --- 454,458 ---- hbl3.setLeft(20); hbl3.setBorder(QxBorderObject.presets.outset); ! hbl3.setHeight("auto"); hbl3.setRight(335); Index: Fieldset_4.html =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/test/user/Attic/Fieldset_4.html,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -C2 -d -r1.1.2.4 -r1.1.2.5 *** Fieldset_4.html 13 Dec 2005 10:04:00 -0000 1.1.2.4 --- Fieldset_4.html 13 Jan 2006 10:50:27 -0000 1.1.2.5 *************** *** 59,63 **** fsl.setLeft(0); fsl.setRight(0); ! fsl.setWidth(null); fsl.setSpacing(4); fs.add(fsl); --- 59,63 ---- fsl.setLeft(0); fsl.setRight(0); ! fsl.setHeight("auto"); fsl.setSpacing(4); fs.add(fsl); *************** *** 69,72 **** --- 69,73 ---- r1.setLeft(0); r1.setWidth("100%"); + r1.setHeight("auto"); r1.setVerticalChildrenAlign("middle"); fsl.add(r1); *************** *** 96,99 **** --- 97,101 ---- r2.setLeft(0); r2.setWidth("100%"); + r2.setHeight("auto"); r2.setVerticalChildrenAlign("middle"); fsl.add(r2); *************** *** 124,127 **** --- 126,130 ---- r3.setLeft(0); r3.setWidth("100%"); + r3.setHeight("auto"); r3.setVerticalChildrenAlign("middle"); fsl.add(r3); Index: Box_Layout_2.html =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/test/user/Attic/Box_Layout_2.html,v retrieving revision 1.1.2.15 retrieving revision 1.1.2.16 diff -C2 -d -r1.1.2.15 -r1.1.2.16 *** Box_Layout_2.html 13 Dec 2005 10:04:00 -0000 1.1.2.15 --- Box_Layout_2.html 13 Jan 2006 10:50:27 -0000 1.1.2.16 *************** *** 52,56 **** hbl1.setLeft(20); hbl1.setBorder(QxBorderObject.presets.outset); ! hbl1.setWidth(null); hbl1.setRight(335); --- 52,56 ---- hbl1.setLeft(20); hbl1.setBorder(QxBorderObject.presets.outset); ! hbl1.setHeight("auto"); hbl1.setRight(335); *************** *** 249,253 **** hbl2.setLeft(20); hbl2.setBorder(QxBorderObject.presets.outset); ! hbl2.setWidth(null); hbl2.setRight(335); --- 249,253 ---- hbl2.setLeft(20); hbl2.setBorder(QxBorderObject.presets.outset); ! hbl2.setHeight("auto"); hbl2.setRight(335); *************** *** 446,450 **** hbl3.setLeft(20); hbl3.setBorder(QxBorderObject.presets.outset); ! hbl3.setWidth(null); hbl3.setRight(335); --- 446,450 ---- hbl3.setLeft(20); hbl3.setBorder(QxBorderObject.presets.outset); ! hbl3.setHeight("auto"); hbl3.setRight(335); Index: Flow_Layout_2.html =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/test/user/Attic/Flow_Layout_2.html,v retrieving revision 1.1.2.16 retrieving revision 1.1.2.17 diff -C2 -d -r1.1.2.16 -r1.1.2.17 *** Flow_Layout_2.html 13 Dec 2005 10:04:00 -0000 1.1.2.16 --- Flow_Layout_2.html 13 Jan 2006 10:50:27 -0000 1.1.2.17 *************** *** 65,68 **** --- 65,69 ---- controlBox.setRight(335); controlBox.setWidth(null); + controlBox.setHeight("auto"); controlBox.setBorder(QxBorderObject.presets.groove); controlBox.setSpacing(4); *************** *** 118,121 **** --- 119,123 ---- hc0.add(cc0, bc0, bc1, bc2, bc3, bc4, bc5); hc0.setVerticalChildrenAlign("middle"); + hc0.setHeight("auto"); controlBox.add(hc0); *************** *** 146,149 **** --- 148,152 ---- hc1.add(cr0, br0, br1); hc1.setVerticalChildrenAlign("middle"); + hc1.setHeight("auto"); controlBox.add(hc1); *************** *** 188,191 **** --- 191,195 ---- ha1.add(ca0, ba0, ba1, ba2, ba3, ba4); ha1.setVerticalChildrenAlign("middle"); + ha1.setHeight("auto"); controlBox.add(ha1); Index: Node_1.html =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/test/user/Attic/Node_1.html,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -C2 -d -r1.1.2.6 -r1.1.2.7 *** Node_1.html 13 Dec 2005 10:04:00 -0000 1.1.2.6 --- Node_1.html 13 Jan 2006 10:50:27 -0000 1.1.2.7 *************** *** 38,42 **** n.setBackgroundColor("white"); n.setColor("blue"); - n.setFont("14px Tresbuchet MS"); n.setPadding(10); --- 38,41 ---- Index: Box_Layout_8.html =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/test/user/Attic/Box_Layout_8.html,v retrieving revision 1.1.2.11 retrieving revision 1.1.2.12 diff -C2 -d -r1.1.2.11 -r1.1.2.12 *** Box_Layout_8.html 13 Dec 2005 10:04:00 -0000 1.1.2.11 --- Box_Layout_8.html 13 Jan 2006 10:50:27 -0000 1.1.2.12 *************** *** 528,531 **** --- 528,532 ---- hbl12.setLeft(320); hbl12.setWidth("auto"); + hbl12.setHeight("auto"); hbl12.setBorder(QxBorderObject.presets.outset); hbl12.setSpacing(4); |
|
From: Sebastian W. <wp...@us...> - 2006-01-13 10:51:06
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22549/source/script/gui Modified Files: Tag: renderer QxBorder.js QxBorderObject.js QxClientWindow.js QxColor.js QxColorCore.js QxColorObject.js QxColorTheme.js QxImagePreloader.js QxParent.js QxWidget.js QxWidgetCore.js Added Files: Tag: renderer QxAppearanceTheme.js Log Message: Added support for new appearance layer Index: QxBorderObject.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/gui/Attic/QxBorderObject.js,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -C2 -d -r1.1.2.3 -r1.1.2.4 *** QxBorderObject.js 29 Oct 2005 21:32:59 -0000 1.1.2.3 --- QxBorderObject.js 13 Jan 2006 10:50:26 -0000 1.1.2.4 *************** *** 27,30 **** --- 27,31 ---- #package(border) + #post(QxBorderObjectPresets) **************************************************************************** */ Index: QxColorObject.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/gui/Attic/QxColorObject.js,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -C2 -d -r1.1.2.3 -r1.1.2.4 *** QxColorObject.js 20 Dec 2005 07:41:06 -0000 1.1.2.3 --- QxColorObject.js 13 Jan 2006 10:50:26 -0000 1.1.2.4 *************** *** 32,35 **** --- 32,36 ---- function QxColorObject(vValue) { + // alert(this); this.setValue(vValue); Index: QxWidget.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/gui/Attic/QxWidget.js,v retrieving revision 1.1.2.41 retrieving revision 1.1.2.42 diff -C2 -d -r1.1.2.41 -r1.1.2.42 *** QxWidget.js 20 Dec 2005 08:17:05 -0000 1.1.2.41 --- QxWidget.js 13 Jan 2006 10:50:26 -0000 1.1.2.42 *************** *** 27,30 **** --- 27,38 ---- #package(guicore) + #require(QxApplication) + #require(QxColorObject) + #require(QxColorCache) + #require(QxBorderObject) + #require(QxBorderCache) + #require(QxAppearanceManager) + #post(QxWidgetCore) + #post(QxDom) **************************************************************************** */ *************** *** 68,78 **** this._states = {}; ! ! // *********************************************************************** ! // INITIAL STYLING ! // *********************************************************************** ! this._applyInitialHtml(); ! this._applyInitialStyle(); ! this._applyDefaultStateStyles(); }; --- 76,85 ---- this._states = {}; ! for (var vCat in QxWidget.states) { ! this._states[QxWidget.states[vCat][0]] = true; ! }; ! ! ! this._applyInitialAppearance(); }; *************** *** 3009,3012 **** --- 3016,3021 ---- QxWidget.STATE_GROUP_LEAD = "lead"; + QxWidget.STATE_GROUP_WINDOW = "window"; + QxWidget.COLOR_ENABLED = null; QxWidget.COLOR_DISABLED = new QxColorObject("graytext"); *************** *** 3016,3020 **** "mouse" : [ "out", "over" ], "focus" : [ "blurred", "focused" ], ! "enabled" : [ "enabled", QxConst.PROPERTY_DISABLED ], "active" : [ "inactive", "active" ], --- 3025,3029 ---- "mouse" : [ "out", "over" ], "focus" : [ "blurred", "focused" ], ! "enabled" : [ "enabled", "disabled" ], "active" : [ "inactive", "active" ], *************** *** 3024,3028 **** "selected" : [ "notselected", "selected" ], "anchor" : [ "notanchor", "anchor" ], ! "lead" : [ "notlead", "lead" ] }; --- 3033,3039 ---- "selected" : [ "notselected", "selected" ], "anchor" : [ "notanchor", "anchor" ], ! "lead" : [ "notlead", "lead" ], ! ! "window" : [ "restored", "maximized" ] }; *************** *** 3075,3078 **** --- 3086,3093 ---- }; + proto.setWindowState = function(vState) { + return this._setState(vState, QxWidget.STATE_GROUP_WINDOW); + }; + *************** *** 3103,3131 **** }; - proto._applyInitialHtml = function() { - return true; - }; - proto._applyInitialStyle = function() { - return true; - }; ! proto._applyDefaultStateStyles = function() { ! var vAvailStates = QxWidget.states; ! var vSetStates = this._states; ! for (var vCat in vAvailStates) { ! vSetStates[vAvailStates[vCat][0]] = true; }; }; ! proto._applyStateStyle = function() { this._applyStateStyleFocus(this._states); ! this._applyStateStyleEnabled(this._states); ! this._applyStateStyleDesign(this._states); }; if (QxClient.isMshtml()) { --- 3118,3188 ---- }; ! ! ! ! ! ! ! proto._applyInitialAppearance = function() { ! var vAppearance = this.getAppearance(); ! if (vAppearance) ! { ! var r = QxAppearanceManager.getAppearanceThemeObject().initialFrom(this, vAppearance); ! if (r) { ! this.set(r); ! }; }; }; ! proto._applyStateAppearance = function() { this._applyStateStyleFocus(this._states); ! ! var vAppearance = this.getAppearance(); ! ! if (vAppearance) ! { ! var r = QxAppearanceManager.getAppearanceThemeObject().stateFrom(this, vAppearance); ! if (r) { ! this.set(r); ! }; ! }; }; + proto._resetAppearanceThemeWrapper = function(vNewAppearanceTheme, vOldAppearanceTheme) + { + var vAppearance = this.getAppearance(); + + if (vAppearance) + { + var vOldAppearanceThemeObject = QxAppearanceManager.getAppearanceThemeObjectById(vOldAppearanceTheme); + var vNewAppearanceThemeObject = QxAppearanceManager.getAppearanceThemeObjectById(vNewAppearanceTheme); + + var vOldAppearanceProperties = QxUtil.mergeObjectWith(vOldAppearanceThemeObject.initialFrom(this, vAppearance), vOldAppearanceThemeObject.stateFrom(this, vAppearance)); + var vNewAppearanceProperties = QxUtil.mergeObjectWith(vNewAppearanceThemeObject.initialFrom(this, vAppearance), vNewAppearanceThemeObject.stateFrom(this, vAppearance)); + + for (vProp in vOldAppearanceProperties) + { + if (!(vProp in vNewAppearanceProperties)) + { + // OPTIMIZE!!! + this["reset" + vProp.toFirstUp()](); + }; + }; + + this.set(vNewAppearanceProperties); + }; + }; + + + + + + + if (QxClient.isMshtml()) { *************** *** 3141,3146 **** if (vStates.focused) { - // this.setStyleProperty("color", "red"); - if (!QxFocusManager.mouseFocus && !this.getHideFocus()) { --- 3198,3201 ---- *************** *** 3150,3155 **** else { - // this.setStyleProperty("color", ""); - this.removeStyleProperty("MozOutline"); }; --- 3205,3208 ---- *************** *** 3174,3194 **** }; ! proto._applyStateStyleEnabled = function(vStates) ! { ! switch(this.getColor()) ! { ! case QxWidget.COLOR_DISABLED: ! case null: ! this.setColor(vStates.disabled ? QxWidget.COLOR_DISABLED : QxWidget.COLOR_ENABLED); ! }; }; ! proto._applyStateStyleDesign = function(vStates) { ! return true; }; ! proto._addToGlobalStateQueue = function() { ! QxWidget.addToGlobalStateQueue(this); ! }; --- 3227,3239 ---- }; ! proto._addToGlobalStateQueue = function() { ! QxWidget.addToGlobalStateQueue(this); }; ! proto._recursiveAddToStateQueue = function() { ! this._addToGlobalStateQueue(); }; ! *************** *** 3202,3209 **** */ ! proto._modifyAppearance = function(propValue, propOldValue, propData) { return true; }; --- 3247,3288 ---- */ ! proto._modifyAppearance = function(propValue, propOldValue, propData) ! { ! var vAppearanceThemeObject = QxAppearanceManager.getAppearanceThemeObject(); ! var vNewAppearanceProperties = QxUtil.mergeObjectWith(vAppearanceThemeObject.initialFrom(this, propValue), vAppearanceThemeObject.stateFrom(this, propValue)); ! ! if (propOldValue) ! { ! var vOldAppearanceProperties = QxUtil.mergeObjectWith(vAppearanceThemeObject.initialFrom(this, propOldValue), vAppearanceThemeObject.stateFrom(this, propOldValue)); ! ! for (vProp in vOldAppearanceProperties) ! { ! if (!(vProp in vNewAppearanceProperties)) ! { ! // OPTIMIZE!!! ! this["reset" + vProp.toFirstUp()](); ! }; ! }; ! }; ! ! this.set(vNewAppearanceProperties); ! return true; }; + proto._recursiveAppearanceThemeUpdate = function(vNewAppearanceTheme, vOldAppearanceTheme) + { + try + { + this._resetAppearanceThemeWrapper(vNewAppearanceTheme, vOldAppearanceTheme); + } + catch(ex) + { + this.error("Failed to update appearance theme: " + ex, "_recursiveAppearanceThemeUpdate"); + }; + }; + + + Index: QxWidgetCore.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/gui/Attic/QxWidgetCore.js,v retrieving revision 1.1.2.10 retrieving revision 1.1.2.11 diff -C2 -d -r1.1.2.10 -r1.1.2.11 *** QxWidgetCore.js 15 Dec 2005 15:49:09 -0000 1.1.2.10 --- QxWidgetCore.js 13 Jan 2006 10:50:26 -0000 1.1.2.11 *************** *** 28,31 **** --- 28,32 ---- #package(guicore) #require(QxWidget) + #post(QxInline) **************************************************************************** */ *************** *** 269,273 **** vWidget = vQueue[i]; ! vWidget._applyStateStyle(); delete vWidget._isInGlobalStateQueue; }; --- 270,275 ---- vWidget = vQueue[i]; ! vWidget._applyStateAppearance(); ! delete vWidget._isInGlobalStateQueue; }; Index: QxBorder.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/gui/Attic/QxBorder.js,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -C2 -d -r1.1.2.6 -r1.1.2.7 *** QxBorder.js 19 Dec 2005 15:23:05 -0000 1.1.2.6 --- QxBorder.js 13 Jan 2006 10:50:26 -0000 1.1.2.7 *************** *** 27,30 **** --- 27,32 ---- #package(border) + #require(QxColorObject) + #post(QxBorderPresets) **************************************************************************** */ Index: QxColorCore.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/gui/Attic/QxColorCore.js,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -C2 -d -r1.1.2.5 -r1.1.2.6 *** QxColorCore.js 18 Nov 2005 12:23:13 -0000 1.1.2.5 --- QxColorCore.js 13 Jan 2006 10:50:26 -0000 1.1.2.6 *************** *** 27,30 **** --- 27,31 ---- #package(color) + #require(QxColor) **************************************************************************** */ *************** *** 108,113 **** CaptionText: Text in caption, size box, and scrollbar arrow box. ! GrayText: Grayed (disabled) text. ! Highlight: Item(s) selected in a control. HighlightText: Text of item(s) selected in a control. --- 109,114 ---- CaptionText: Text in caption, size box, and scrollbar arrow box. ! GrayText: Grayed (disabled) text. ! Highlight: Item(s) selected in a control. HighlightText: Text of item(s) selected in a control. Index: QxParent.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/gui/Attic/QxParent.js,v retrieving revision 1.1.2.17 retrieving revision 1.1.2.18 diff -C2 -d -r1.1.2.17 -r1.1.2.18 *** QxParent.js 19 Dec 2005 15:54:09 -0000 1.1.2.17 --- QxParent.js 13 Jan 2006 10:50:26 -0000 1.1.2.18 *************** *** 27,30 **** --- 27,31 ---- #package(guicore) + #post(QxFocusManager) **************************************************************************** */ *************** *** 159,163 **** { // this.debug("FocusedChild: " + propValue); ! var vFocusValid = QxUtil.isValidObject(propValue); var vBlurValid = QxUtil.isValidObject(propOldValue); --- 160,164 ---- { // this.debug("FocusedChild: " + propValue); ! var vFocusValid = QxUtil.isValidObject(propValue); var vBlurValid = QxUtil.isValidObject(propOldValue); *************** *** 204,210 **** this.setActiveChild(null); }; ! propOldValue.setFocused(false); ! // Dispatch Blur var vEventObject = new QxFocusEvent(QxConst.EVENT_TYPE_BLUR, propOldValue); --- 205,211 ---- this.setActiveChild(null); }; ! propOldValue.setFocused(false); ! // Dispatch Blur var vEventObject = new QxFocusEvent(QxConst.EVENT_TYPE_BLUR, propOldValue); *************** *** 219,223 **** vEventObject.dispose(); }; ! if (vFocusValid) { --- 220,224 ---- vEventObject.dispose(); }; ! if (vFocusValid) { *************** *** 232,240 **** vEventObject.setRelatedTarget(propOldValue); }; ! propValue.dispatchEvent(vEventObject); ! QxToolTipManager.handleFocus(vEventObject); ! vEventObject.dispose(); }; --- 233,241 ---- vEventObject.setRelatedTarget(propOldValue); }; ! propValue.dispatchEvent(vEventObject); ! QxToolTipManager.handleFocus(vEventObject); ! vEventObject.dispose(); }; *************** *** 479,485 **** throw new Error("Child to add before: " + vBefore + " is not inside this parent."); }; ! var vSourceIndex = vChildren.indexOf(vChild); ! if (vSourceIndex == -1 || vSourceIndex > vTargetIndex) { vTargetIndex++; --- 480,486 ---- throw new Error("Child to add before: " + vBefore + " is not inside this parent."); }; ! var vSourceIndex = vChildren.indexOf(vChild); ! if (vSourceIndex == -1 || vSourceIndex > vTargetIndex) { vTargetIndex++; *************** *** 496,510 **** var vChildren = this.getChildren(); var vTargetIndex = vChildren.indexOf(vAfter); ! if (vTargetIndex == -1) { throw new Error("Child to add after: " + vAfter + " is not inside this parent."); ! }; var vSourceIndex = vChildren.indexOf(vChild); ! if (vSourceIndex != -1 && vSourceIndex < vTargetIndex) { vTargetIndex--; }; ! return this.addAt(vChild, Math.min(vChildren.length, vTargetIndex+1)); }; --- 497,511 ---- var vChildren = this.getChildren(); var vTargetIndex = vChildren.indexOf(vAfter); ! if (vTargetIndex == -1) { throw new Error("Child to add after: " + vAfter + " is not inside this parent."); ! }; var vSourceIndex = vChildren.indexOf(vChild); ! if (vSourceIndex != -1 && vSourceIndex < vTargetIndex) { vTargetIndex--; }; ! return this.addAt(vChild, Math.min(vChildren.length, vTargetIndex+1)); }; *************** *** 793,796 **** --- 794,814 ---- }; + proto._recursiveAddToStateQueue = function() + { + this._addToGlobalStateQueue(); + + this.forEachVisibleChild(function() { + this._recursiveAddToStateQueue(); + }); + }; + + proto._recursiveAppearanceThemeUpdate = function(vNewAppearanceTheme, vOldAppearanceTheme) + { + QxWidget.prototype._recursiveAppearanceThemeUpdate.call(this, vNewAppearanceTheme, vOldAppearanceTheme); + + this.forEachVisibleChild(function() { + this._recursiveAppearanceThemeUpdate(vNewAppearanceTheme, vOldAppearanceTheme); + }); + }; --- NEW FILE: QxAppearanceTheme.js --- function QxAppearanceTheme(vId) { QxObject.call(this); this._appearances = {}; this._id = vId; QxAppearanceManager.addTheme(vId, this); }; QxAppearanceTheme.extend(QxObject, "QxAppearanceTheme"); /* **************************************************************************** #package(appearance) #post(QxAppearanceTheme-Default) **************************************************************************** */ /* ------------------------------------------------------------------------------------ CORE METHODS ------------------------------------------------------------------------------------ */ proto.registerAppearance = function(vId, vData) { this._appearances[vId] = vData; }; proto.getAppearance = function(vId) { return this._appearances[vId]; }; proto.initAppearance = function(vAppearance) { if (!vAppearance._initDone) { if (vAppearance.init) { vAppearance.init(); }; vAppearance._initDone = true; }; }; /* ------------------------------------------------------------------------------------ WIDGET METHODS ------------------------------------------------------------------------------------ */ proto.initialFrom = function(vWidget, vId) { var vAppearance = this.getAppearance(vId); if (vAppearance) { this.initAppearance(vAppearance); return vAppearance.initial ? vAppearance.initial(vWidget, this) : {}; } else { return this.error("Missing appearance: " + vId, "initialStyleFrom"); }; }; proto.stateFrom = function(vWidget, vId) { var vAppearance = this.getAppearance(vId); if (vAppearance) { this.initAppearance(vAppearance); return vAppearance.state ? vAppearance.state(vWidget, this, vWidget._states) : {}; } else { return this.error("Missing appearance: " + vId, "stateStyleFrom"); }; }; /* ------------------------------------------------------------------------------------ DISPOSER ------------------------------------------------------------------------------------ */ proto.dispose = function() { if (this.getDisposed()) { return; }; this._id = null; this._appearances = null; QxObject.prototype.dispose.call(this); }; Index: QxColorTheme.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/gui/Attic/QxColorTheme.js,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -C2 -d -r1.1.2.5 -r1.1.2.6 *** QxColorTheme.js 20 Dec 2005 07:41:06 -0000 1.1.2.5 --- QxColorTheme.js 13 Jan 2006 10:50:26 -0000 1.1.2.6 *************** *** 26,31 **** /* **************************************************************************** - #require(QxColorManager) #package(color) **************************************************************************** */ --- 26,33 ---- /* **************************************************************************** #package(color) + #require(QxUtil) + #require(QxColorManager) + #post(QxColorThemePresets) **************************************************************************** */ Index: QxClientWindow.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/gui/Attic/QxClientWindow.js,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -C2 -d -r1.1.2.6 -r1.1.2.7 *** QxClientWindow.js 19 Dec 2005 15:27:54 -0000 1.1.2.6 --- QxClientWindow.js 13 Jan 2006 10:50:26 -0000 1.1.2.7 *************** *** 27,32 **** #package(core) ! #require(QxEventManager) ! #require(QxClientDocument) **************************************************************************** */ --- 27,33 ---- #package(core) ! #require(QxDom) ! #post(QxEventManager) ! #post(QxClientDocument) **************************************************************************** */ *************** *** 53,57 **** // Create Event Manager this._eventManager = new QxEventManager(this); ! // Init Client Document as Default Root this._eventManager.setFocusRoot(this._clientDocument); --- 54,58 ---- // Create Event Manager this._eventManager = new QxEventManager(this); ! // Init Client Document as Default Root this._eventManager.setFocusRoot(this._clientDocument); *************** *** 89,96 **** if (el == window) { ! QxDom.addEventListener(el, QxConst.EVENT_TYPE_UNLOAD, function(e) { window.application.dispose(); ! window.application = null; }); } --- 90,97 ---- if (el == window) { ! QxDom.addEventListener(el, QxConst.EVENT_TYPE_UNLOAD, function(e) { window.application.dispose(); ! window.application = null; }); } Index: QxImagePreloader.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/gui/Attic/QxImagePreloader.js,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -C2 -d -r1.1.2.4 -r1.1.2.5 *** QxImagePreloader.js 20 Dec 2005 08:29:22 -0000 1.1.2.4 --- QxImagePreloader.js 13 Jan 2006 10:50:26 -0000 1.1.2.5 *************** *** 27,30 **** --- 27,31 ---- #package(image) + #require(QxImagePreloaderManager) **************************************************************************** */ *************** *** 38,42 **** return QxImagePreloaderManager.get(vSource); }; ! QxTarget.call(this); --- 39,43 ---- return QxImagePreloaderManager.get(vSource); }; ! QxTarget.call(this); *************** *** 90,95 **** proto.getUri = function() { return this._source; }; proto.getSource = function() { return this._source; }; ! proto.getIsLoaded = function() { return this._isLoaded; }; ! proto.getIsError = function() { return this._isError; }; // only used in mshtml: true when the image format is in png --- 91,96 ---- proto.getUri = function() { return this._source; }; proto.getSource = function() { return this._source; }; ! proto.getIsLoaded = function() { return this._isLoaded; }; ! proto.getIsError = function() { return this._isError; }; // only used in mshtml: true when the image format is in png Index: QxColor.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/gui/Attic/QxColor.js,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -C2 -d -r1.1.2.6 -r1.1.2.7 *** QxColor.js 29 Dec 2005 16:26:44 -0000 1.1.2.6 --- QxColor.js 13 Jan 2006 10:50:26 -0000 1.1.2.7 *************** *** 28,31 **** --- 28,32 ---- #package(color) #require(QxColorManager) + #post(QxColorCore) **************************************************************************** */ |
|
From: Sebastian W. <wp...@us...> - 2006-01-13 10:51:06
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/managers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22549/source/script/managers Modified Files: Tag: renderer QxColorManager.js QxDragAndDropManager.js QxEventManager.js QxFocusManager.js QxImageManager.js QxSelectionManager.js QxToolTipManager.js QxTreeSelectionManager.js QxWindowManager.js Added Files: Tag: renderer QxAppearanceManager.js Log Message: Added support for new appearance layer Index: QxEventManager.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/managers/QxEventManager.js,v retrieving revision 1.14.2.60 retrieving revision 1.14.2.61 diff -C2 -d -r1.14.2.60 -r1.14.2.61 *** QxEventManager.js 19 Dec 2005 16:28:06 -0000 1.14.2.60 --- QxEventManager.js 13 Jan 2006 10:50:26 -0000 1.14.2.61 *************** *** 27,33 **** #package(eventcore) ! #require(QxPopupManager) ! #require(QxToolTipManager) ! #require(QxMenuManager) **************************************************************************** */ --- 27,36 ---- #package(eventcore) ! #post(QxPopupManager) ! #post(QxToolTipManager) ! #post(QxMenuManager) ! #post(QxDragAndDropManager) ! #post(QxMouseEvent) ! #post(QxKeyEvent) **************************************************************************** */ *************** *** 132,140 **** { // this.debug("FocusRoot: " + propValue + "(from:" + propOldValue + ")"); ! if (propOldValue) { propOldValue.setFocusedChild(null); }; ! if (propValue) { --- 135,143 ---- { // this.debug("FocusRoot: " + propValue + "(from:" + propOldValue + ")"); ! if (propOldValue) { propOldValue.setFocusedChild(null); }; ! if (propValue) { *************** *** 143,147 **** }; }; ! return true; }; --- 146,150 ---- }; }; ! return true; }; *************** *** 360,364 **** { var vDocument = vWindow.document; ! if (vNode == vWindow || vNode == vDocument || vNode == vDocument.documentElement || vNode == vDocument.body) { return vDocument.body._QxWidget; --- 363,367 ---- { var vDocument = vWindow.document; ! if (vNode == vWindow || vNode == vDocument || vNode == vDocument.documentElement || vNode == vDocument.body) { return vDocument.body._QxWidget; *************** *** 428,432 **** else { ! QxEventManager.stopDomEvent = function(vDomEvent) { vDomEvent.preventDefault(); --- 431,435 ---- else { ! QxEventManager.stopDomEvent = function(vDomEvent) { vDomEvent.preventDefault(); *************** *** 463,469 **** var vDomTarget = vDomEvent.target || vDomEvent.srcElement; var vKeyCode = vDomEvent.keyCode || vDomEvent.charCode; ! ! ! // Hide Menus --- 466,472 ---- var vDomTarget = vDomEvent.target || vDomEvent.srcElement; var vKeyCode = vDomEvent.keyCode || vDomEvent.charCode; ! ! ! // Hide Menus *************** *** 490,494 **** return false; }; ! var vDomEventTarget = vTarget.getElement(); --- 493,497 ---- return false; }; ! var vDomEventTarget = vTarget.getElement(); *************** *** 642,646 **** var vDomTarget = vDomEvent.target; var vType = vDomEvent.type; ! switch(vType) { --- 645,649 ---- var vDomTarget = vDomEvent.target; var vType = vDomEvent.type; ! switch(vType) { *************** *** 678,682 **** { var vEventObject, vDispatchTarget, vTarget, vOriginalTarget, vRelatedTarget; ! switch(vType) { --- 681,685 ---- { var vEventObject, vDispatchTarget, vTarget, vOriginalTarget, vRelatedTarget; ! switch(vType) { *************** *** 685,708 **** QxEventManager.stopDomEvent(vDomEvent); }; ! break; ! case QxConst.EVENT_TYPE_MOUSEDOWN: QxFocusManager.mouseFocus = true; this._onactivateevent(vDomEvent); ! break; }; ! ! ! ! ! // Check for capturing, if enabled the target is the captured widget. vDispatchTarget = this.getCaptureWidget(); ! // Event Target Object vOriginalTarget = QxEventManager.getOriginalTargetObject(vDomTarget); ! // If no capturing is active search for a valid target object if (!QxUtil.isValidObject(vDispatchTarget)) --- 688,711 ---- QxEventManager.stopDomEvent(vDomEvent); }; ! break; ! case QxConst.EVENT_TYPE_MOUSEDOWN: QxFocusManager.mouseFocus = true; this._onactivateevent(vDomEvent); ! break; }; ! ! ! ! ! // Check for capturing, if enabled the target is the captured widget. vDispatchTarget = this.getCaptureWidget(); ! // Event Target Object vOriginalTarget = QxEventManager.getOriginalTargetObject(vDomTarget); ! // If no capturing is active search for a valid target object if (!QxUtil.isValidObject(vDispatchTarget)) *************** *** 715,736 **** vTarget = QxEventManager.getTargetObject(null, vOriginalTarget); }; ! if (!vTarget) { return false; }; ! ! ! ! // Check if is seeable (this is really needed for Opera as of 8.5) if ((vTarget && !vTarget.isSeeable()) || (vDispatchTarget && !vDispatchTarget.isSeeable())) { return false; }; ! var vDomEventTarget = vTarget.getElement(); ! ! ! ! // Find related target object switch(vType) --- 718,739 ---- vTarget = QxEventManager.getTargetObject(null, vOriginalTarget); }; ! if (!vTarget) { return false; }; ! ! ! ! // Check if is seeable (this is really needed for Opera as of 8.5) if ((vTarget && !vTarget.isSeeable()) || (vDispatchTarget && !vDispatchTarget.isSeeable())) { return false; }; ! var vDomEventTarget = vTarget.getElement(); ! ! ! ! // Find related target object switch(vType) *************** *** 739,743 **** case QxConst.EVENT_TYPE_MOUSEOUT: vRelatedTarget = QxEventManager.getRelatedTargetObjectFromEvent(vDomEvent); ! // Ignore events where the related target and // the real target are equal - from our sight --- 742,746 ---- case QxConst.EVENT_TYPE_MOUSEOUT: vRelatedTarget = QxEventManager.getRelatedTargetObjectFromEvent(vDomEvent); ! // Ignore events where the related target and // the real target are equal - from our sight *************** *** 746,752 **** }; }; ! ! ! try { --- 749,755 ---- }; }; ! ! ! try { *************** *** 758,762 **** return this.error("Failed to create mouse event: " + ex); }; ! // Store last Event in MouseEvent Constructor --- 761,765 ---- return this.error("Failed to create mouse event: " + ex); }; ! // Store last Event in MouseEvent Constructor *************** *** 765,769 **** ! try { --- 768,772 ---- ! try { *************** *** 775,783 **** return this.error("Failed to dispatch mouse event: " + ex); }; ! ! ! ! ! // Handle Special Post Events switch(vType) --- 778,786 ---- return this.error("Failed to dispatch mouse event: " + ex); }; ! ! ! ! ! // Handle Special Post Events switch(vType) *************** *** 787,844 **** QxPopupManager.update(vTarget); }; ! if (QxMenuManager) { QxMenuManager.update(vTarget); }; ! break; ! case QxConst.EVENT_TYPE_MOUSEOVER: if (QxToolTipManager) { QxToolTipManager.handleMouseOver(vEventObject); }; ! break; ! case QxConst.EVENT_TYPE_MOUSEOUT: if (QxToolTipManager) { QxToolTipManager.handleMouseOut(vEventObject); }; ! break; ! case QxConst.EVENT_TYPE_MOUSEWHEEL: // priority for the real target not the (eventually captured) dispatch target vReturnValue ? this._onmousewheel(vOriginalTarget || vDispatchTarget, vEventObject) : QxEventManager.stopDomEvent(vDomEvent); ! break; }; ! ! ! ! // Send Event Object to Drag&Drop Manager if (QxDragAndDropManager && vTarget) { QxDragAndDropManager.handleMouseEvent(vEventObject); }; ! ! ! ! // Prevent gecko default handling if(QxClient.isGecko() && vDispatchTarget && !vDispatchTarget.isSelectable() && !vDispatchTarget.isFocusable()) { vDomEvent.preventDefault(); }; ! ! ! ! // Dispose Event Object vEventObject.dispose(); vEventObject = null; ! ! ! ! // Flush Queues QxWidget.flushGlobalQueues(); --- 790,847 ---- QxPopupManager.update(vTarget); }; ! if (QxMenuManager) { QxMenuManager.update(vTarget); }; ! break; ! case QxConst.EVENT_TYPE_MOUSEOVER: if (QxToolTipManager) { QxToolTipManager.handleMouseOver(vEventObject); }; ! break; ! case QxConst.EVENT_TYPE_MOUSEOUT: if (QxToolTipManager) { QxToolTipManager.handleMouseOut(vEventObject); }; ! break; ! case QxConst.EVENT_TYPE_MOUSEWHEEL: // priority for the real target not the (eventually captured) dispatch target vReturnValue ? this._onmousewheel(vOriginalTarget || vDispatchTarget, vEventObject) : QxEventManager.stopDomEvent(vDomEvent); ! break; }; ! ! ! ! // Send Event Object to Drag&Drop Manager if (QxDragAndDropManager && vTarget) { QxDragAndDropManager.handleMouseEvent(vEventObject); }; ! ! ! ! // Prevent gecko default handling if(QxClient.isGecko() && vDispatchTarget && !vDispatchTarget.isSelectable() && !vDispatchTarget.isFocusable()) { vDomEvent.preventDefault(); }; ! ! ! ! // Dispose Event Object vEventObject.dispose(); vEventObject = null; ! ! ! ! // Flush Queues QxWidget.flushGlobalQueues(); *************** *** 1042,1055 **** // evaluate target var vTarget = QxEventManager.getTargetObjectFromEvent(e); ! // apply if (vTarget) { var vRoot = vTarget.getFocusRoot(); ! if (vRoot) { this.setFocusRoot(vRoot); ! vRoot.setActiveChild(vTarget); vRoot.setFocusedChild(vTarget.isFocusable() ? vTarget : vRoot); --- 1045,1058 ---- // evaluate target var vTarget = QxEventManager.getTargetObjectFromEvent(e); ! // apply if (vTarget) { var vRoot = vTarget.getFocusRoot(); ! if (vRoot) { this.setFocusRoot(vRoot); ! vRoot.setActiveChild(vTarget); vRoot.setFocusedChild(vTarget.isFocusable() ? vTarget : vRoot); Index: QxWindowManager.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/managers/QxWindowManager.js,v retrieving revision 1.3.2.16 retrieving revision 1.3.2.17 diff -C2 -d -r1.3.2.16 -r1.3.2.17 *** QxWindowManager.js 20 Dec 2005 08:42:26 -0000 1.3.2.16 --- QxWindowManager.js 13 Jan 2006 10:50:26 -0000 1.3.2.17 *************** *** 27,30 **** --- 27,31 ---- #package(window) + #post(QxPopupManager) **************************************************************************** */ Index: QxFocusManager.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/managers/QxFocusManager.js,v retrieving revision 1.3.2.33 retrieving revision 1.3.2.34 diff -C2 -d -r1.3.2.33 -r1.3.2.34 *** QxFocusManager.js 19 Dec 2005 15:23:06 -0000 1.3.2.33 --- QxFocusManager.js 13 Jan 2006 10:50:26 -0000 1.3.2.34 *************** *** 27,32 **** #package(eventcore) ! #require(QxPopupManager) ! #require(QxToolTipManager) **************************************************************************** */ --- 27,33 ---- #package(eventcore) ! #post(QxFocusEvent) ! #post(QxPopupManager) ! #post(QxToolTipManager) **************************************************************************** */ *************** *** 84,88 **** return; }; ! QxFocusManager.mouseFocus = false; --- 85,89 ---- return; }; ! QxFocusManager.mouseFocus = false; Index: QxSelectionManager.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/managers/QxSelectionManager.js,v retrieving revision 1.3.2.29 retrieving revision 1.3.2.30 diff -C2 -d -r1.3.2.29 -r1.3.2.30 *** QxSelectionManager.js 19 Dec 2005 12:34:58 -0000 1.3.2.29 --- QxSelectionManager.js 13 Jan 2006 10:50:26 -0000 1.3.2.30 *************** *** 277,289 **** proto.renderItemSelectionState = function(vItem, vIsSelected) { ! vItem.setSelectedState(QxWidget.states.selected[vIsSelected ? 1 : 0]) }; proto.renderItemAnchorState = function(vItem, vIsAnchor) { ! vItem.setAnchorState(QxWidget.states.anchor[vIsAnchor ? 1 : 0]) }; proto.renderItemLeadState = function(vItem, vIsLead) { ! vItem.setLeadState(QxWidget.states.lead[vIsLead ? 1 : 0]) }; --- 277,289 ---- proto.renderItemSelectionState = function(vItem, vIsSelected) { ! vItem.setSelectedState(QxWidget.states.selected[vIsSelected ? 1 : 0]); }; proto.renderItemAnchorState = function(vItem, vIsAnchor) { ! vItem.setAnchorState(QxWidget.states.anchor[vIsAnchor ? 1 : 0]); }; proto.renderItemLeadState = function(vItem, vIsLead) { ! vItem.setLeadState(QxWidget.states.lead[vIsLead ? 1 : 0]); }; Index: QxDragAndDropManager.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/managers/QxDragAndDropManager.js,v retrieving revision 1.9.2.32 retrieving revision 1.9.2.33 diff -C2 -d -r1.9.2.32 -r1.9.2.33 *** QxDragAndDropManager.js 19 Dec 2005 17:01:13 -0000 1.9.2.32 --- QxDragAndDropManager.js 13 Jan 2006 10:50:26 -0000 1.9.2.33 *************** *** 27,30 **** --- 27,32 ---- #package(dragndrop) + #require(QxImage) + #post(QxDragEvent) **************************************************************************** */ *************** *** 56,60 **** QxDragAndDropManager.addProperty({ name : "currentAction", type : QxConst.TYPEOF_STRING }); ! proto._actionNames = { move : "move", --- 58,62 ---- QxDragAndDropManager.addProperty({ name : "currentAction", type : QxConst.TYPEOF_STRING }); ! proto._actionNames = { move : "move", *************** *** 81,85 **** proto._modifyDestinationWidget = function(propValue, propOldValue, propData) { ! if (propValue) { propValue.dispatchEvent(new QxDragEvent(QxConst.EVENT_TYPE_DRAGDROP, this._lastDestinationEvent, propValue, this.getSourceWidget())); --- 83,87 ---- proto._modifyDestinationWidget = function(propValue, propOldValue, propData) { ! if (propValue) { propValue.dispatchEvent(new QxDragEvent(QxConst.EVENT_TYPE_DRAGDROP, this._lastDestinationEvent, propValue, this.getSourceWidget())); *************** *** 260,264 **** // Store initial dragCache ! this._dragCache = { startScreenX : e.getScreenX(), --- 262,266 ---- // Store initial dragCache ! this._dragCache = { startScreenX : e.getScreenX(), *************** *** 435,439 **** this.setAction(this._evalNewAction(!bShiftPressed && e.getShiftKey(), ! bCtrlPressed && e.getCtrlKey(), !bAltPressed && e.getAltKey())); this._renderCursor(); ! e.preventDefault(); }; --- 437,441 ---- this.setAction(this._evalNewAction(!bShiftPressed && e.getShiftKey(), ! bCtrlPressed && e.getCtrlKey(), !bAltPressed && e.getAltKey())); this._renderCursor(); ! e.preventDefault(); }; *************** *** 502,506 **** // Reset drag cache for next drag and drop session ! if (this._dragCache) { this._dragCache.currentDropWidget = null; --- 504,508 ---- // Reset drag cache for next drag and drop session ! if (this._dragCache) { this._dragCache.currentDropWidget = null; *************** *** 637,641 **** vCurrent = QxEventManager.getTargetObject(null, vCurrent); }; ! while (vCurrent != null && vCurrent != this._dragCache.sourceWidget) { --- 639,643 ---- vCurrent = QxEventManager.getTargetObject(null, vCurrent); }; ! while (vCurrent != null && vCurrent != this._dragCache.sourceWidget) { *************** *** 643,647 **** return null; }; ! if (this.supportsDrop(vCurrent)) { return vCurrent; --- 645,649 ---- return null; }; ! if (this.supportsDrop(vCurrent)) { return vCurrent; *************** *** 665,669 **** return null; }; ! if (this.supportsDrop(vCurrent)) { return vCurrent; --- 667,671 ---- return null; }; ! if (this.supportsDrop(vCurrent)) { return vCurrent; *************** *** 780,786 **** return; }; ! // Reset drag cache for next drag and drop session ! if (this._dragCache) { this._dragCache.currentDropWidget = null; --- 782,788 ---- return; }; ! // Reset drag cache for next drag and drop session ! if (this._dragCache) { this._dragCache.currentDropWidget = null; *************** *** 791,795 **** this.clearData(); this.clearActions(); ! this._lastDestinationEvent = null; --- 793,797 ---- this.clearData(); this.clearActions(); ! this._lastDestinationEvent = null; Index: QxImageManager.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/managers/QxImageManager.js,v retrieving revision 1.3.2.22 retrieving revision 1.3.2.23 diff -C2 -d -r1.3.2.22 -r1.3.2.23 *** QxImageManager.js 20 Dec 2005 08:17:05 -0000 1.3.2.22 --- QxImageManager.js 13 Jan 2006 10:50:26 -0000 1.3.2.23 *************** *** 27,30 **** --- 27,33 ---- #package(image) + #require(QxConst) + #post(QxImagePreloader) + #post(QxUtil) **************************************************************************** */ *************** *** 39,58 **** */ this._iconThemes = {}; ! /*! Contains available widget themes */ this._widgetThemes = {}; ! /*! Contains known images (all, if loaded or not) */ this._imageList = {}; ! /*! Preload images */ ! this._preloadList = {}; ! // Add default icon themes this.addIconTheme("Crystal Clear", "crystalclear"); --- 42,61 ---- */ this._iconThemes = {}; ! /*! Contains available widget themes */ this._widgetThemes = {}; ! /*! Contains known images (all, if loaded or not) */ this._imageList = {}; ! /*! Preload images */ ! this._preloadList = {}; ! // Add default icon themes this.addIconTheme("Crystal Clear", "crystalclear"); *************** *** 349,358 **** return; }; ! this._iconThemes = null; this._widgetThemes = null; this._imageList = null; ! this._preloadList = null; ! return QxManager.prototype.dispose.call(this); }; --- 352,361 ---- return; }; ! this._iconThemes = null; this._widgetThemes = null; this._imageList = null; ! this._preloadList = null; ! return QxManager.prototype.dispose.call(this); }; Index: QxToolTipManager.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/managers/QxToolTipManager.js,v retrieving revision 1.1.2.13 retrieving revision 1.1.2.14 diff -C2 -d -r1.1.2.13 -r1.1.2.14 *** QxToolTipManager.js 19 Dec 2005 15:54:09 -0000 1.1.2.13 --- QxToolTipManager.js 13 Jan 2006 10:50:26 -0000 1.1.2.14 *************** *** 27,30 **** --- 27,31 ---- #package(tooltip) + #require(QxEventManager) **************************************************************************** */ *************** *** 90,94 **** var vTarget = e.getTarget(); var vToolTip; ! // Allows us to use DOM Nodes as tooltip target :) if (!(vTarget instanceof QxWidget) && vTarget.nodeType == 1) { --- 91,95 ---- var vTarget = e.getTarget(); var vToolTip; ! // Allows us to use DOM Nodes as tooltip target :) if (!(vTarget instanceof QxWidget) && vTarget.nodeType == 1) { Index: QxTreeSelectionManager.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/managers/Attic/QxTreeSelectionManager.js,v retrieving revision 1.1.2.10 retrieving revision 1.1.2.11 diff -C2 -d -r1.1.2.10 -r1.1.2.11 *** QxTreeSelectionManager.js 19 Dec 2005 14:29:19 -0000 1.1.2.10 --- QxTreeSelectionManager.js 13 Jan 2006 10:50:26 -0000 1.1.2.11 *************** *** 47,50 **** --- 47,59 ---- + + + + /* + ------------------------------------------------------------------------------------ + MAPPING TO BOUNDED WIDGET + ------------------------------------------------------------------------------------ + */ + proto._getFirst = function() { return this.getItems().getFirst(); *************** *** 135,138 **** --- 144,152 ---- + /* + ------------------------------------------------------------------------------------ + MAPPING TO ITEM DIMENSIONS + ------------------------------------------------------------------------------------ + */ proto.getItemTop = function(vItem) *************** *** 177,178 **** --- 191,206 ---- }; }; + + + + + + /* + ------------------------------------------------------------------------------------ + ITEM STATE MANAGMENT + ------------------------------------------------------------------------------------ + */ + + proto.renderItemSelectionState = function(vItem, vIsSelected) { + vItem.setSelected(vIsSelected); + }; \ No newline at end of file Index: QxColorManager.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/managers/Attic/QxColorManager.js,v retrieving revision 1.1.2.14 retrieving revision 1.1.2.15 diff -C2 -d -r1.1.2.14 -r1.1.2.15 *** QxColorManager.js 20 Dec 2005 07:41:06 -0000 1.1.2.14 --- QxColorManager.js 13 Jan 2006 10:50:26 -0000 1.1.2.15 *************** *** 27,30 **** --- 27,31 ---- #package(color) + #post(QxColorTheme) **************************************************************************** */ *************** *** 33,37 **** { QxManager.call(this); ! // Contains the QxColorTheme instances this._themes = {}; --- 34,38 ---- { QxManager.call(this); ! // Contains the QxColorTheme instances this._themes = {}; *************** *** 111,115 **** proto.setThemeById = function(vId) { ! return this.setTheme(this._themes[vId]); }; --- 112,116 ---- proto.setThemeById = function(vId) { ! return this.setTheme(this._themes[vId]); }; *************** *** 157,172 **** var vPrefix = "Color Theme: "; var vEvent = QxConst.EVENT_TYPE_EXECUTE; ! for (var vId in vThemes) { var vButton = new QxButton(vPrefix + vThemes[vId].getTitle(), vIcon); ! vButton.setLocation(xCor, yCor); vButton.addEventListener(vEvent, new Function("QxColorManager.setThemeById('" + vId + "')")); ! vParent.add(vButton); ! yCor += 30; ! }; }; --- 158,173 ---- var vPrefix = "Color Theme: "; var vEvent = QxConst.EVENT_TYPE_EXECUTE; ! for (var vId in vThemes) { var vButton = new QxButton(vPrefix + vThemes[vId].getTitle(), vIcon); ! vButton.setLocation(xCor, yCor); vButton.addEventListener(vEvent, new Function("QxColorManager.setThemeById('" + vId + "')")); ! vParent.add(vButton); ! yCor += 30; ! }; }; *************** *** 199,203 **** delete this._dependentObjects; ! return QxManager.prototype.dispose.call(this); }; --- 200,204 ---- delete this._dependentObjects; ! return QxManager.prototype.dispose.call(this); }; --- NEW FILE: QxAppearanceManager.js --- function QxAppearanceManager() { QxManager.call(this); this._themes = {}; }; QxAppearanceManager.extend(QxManager, "QxAppearanceManager"); /* **************************************************************************** #package(appearance) #post(QxApplication) #post(QxAppearanceTheme) **************************************************************************** */ QxAppearanceManager.addProperty({ name : "appearanceTheme", type : QxConst.TYPEOF_STRING, defaultValue : "default" }); /* ------------------------------------------------------------------------------------ MODIFIER ------------------------------------------------------------------------------------ */ proto._modifyAppearanceTheme = function(propValue, propOldValue, propData) { window.application.getClientWindow().getClientDocument()._recursiveAppearanceThemeUpdate(propValue, propOldValue); return true; }; /* ------------------------------------------------------------------------------------ METHODS ------------------------------------------------------------------------------------ */ proto.addTheme = function(vThemeId, vThemeObject) { this._themes[vThemeId] = vThemeObject; }; proto.getAppearanceThemeObjectById = function(vThemeId) { return this._themes[vThemeId]; }; proto.getAppearanceThemeObject = function() { return this.getAppearanceThemeObjectById(this.getAppearanceTheme()); }; /* ------------------------------------------------------------------------------------ DISPOSER ------------------------------------------------------------------------------------ */ proto.dispose = function() { if (this.getDisposed()) { return; }; if (this._themes) { for (vTheme in this._themes) { this._themes[vTheme].dispose(); this._themes[vTheme] = null; }; this._themes = null; }; return QxManager.prototype.dispose.call(this); }; /* ------------------------------------------------------------------------------------ SINGLETON INSTANCE ------------------------------------------------------------------------------------ */ QxAppearanceManager = new QxAppearanceManager; |
Update of /cvsroot/qooxdoo/qooxdoo/source/script/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22549/source/script/core Modified Files: Tag: renderer QxApplication.js QxConst.js QxExtend.js QxMain.js QxObject.js QxUtil.js Log Message: Added support for new appearance layer Index: QxUtil.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/core/Attic/QxUtil.js,v retrieving revision 1.1.2.10 retrieving revision 1.1.2.11 diff -C2 -d -r1.1.2.10 -r1.1.2.11 *** QxUtil.js 18 Nov 2005 16:06:15 -0000 1.1.2.10 --- QxUtil.js 13 Jan 2006 10:50:26 -0000 1.1.2.11 *************** *** 182,185 **** --- 182,194 ---- }; + QxUtil.mergeObjectWith = function(vObjectA, vObjectB) + { + for (vKey in vObjectB) { + vObjectA[vKey] = vObjectB[vKey]; + }; + + return vObjectA; + }; + Index: QxObject.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/core/QxObject.js,v retrieving revision 1.2.2.31 retrieving revision 1.2.2.32 diff -C2 -d -r1.2.2.31 -r1.2.2.32 *** QxObject.js 23 Nov 2005 10:29:30 -0000 1.2.2.31 --- QxObject.js 13 Jan 2006 10:50:26 -0000 1.2.2.32 *************** *** 141,145 **** return; }; ! if (this._data) { --- 141,145 ---- return; }; ! if (this._data) { *************** *** 147,152 **** delete this._data[p]; }; ! ! delete this._data; }; --- 147,152 ---- delete this._data[p]; }; ! ! delete this._data; }; *************** *** 171,175 **** /*! ! Set multiple properties at once by using a property list #param propertyValues[Property List]: A hash of key-value pairs. --- 171,175 ---- /*! ! Sets multiple properties at once by using a property list #param propertyValues[Property List]: A hash of key-value pairs. *************** *** 183,187 **** for (var prop in propertyValues) { ! try{ this[QxConst.INTERNAL_SET + prop.toFirstUp()](propertyValues[prop]); } --- 183,188 ---- for (var prop in propertyValues) { ! try ! { this[QxConst.INTERNAL_SET + prop.toFirstUp()](propertyValues[prop]); } *************** *** 274,278 **** this._data = {}; }; ! p.hasType = QxUtil.isValidString(p.type); p.hasInstance = QxUtil.isValidString(p.instance); --- 275,279 ---- this._data = {}; }; ! p.hasType = QxUtil.isValidString(p.type); p.hasInstance = QxUtil.isValidString(p.instance); *************** *** 325,329 **** }; }; ! var oldValue = this._data[valueKey]; --- 326,330 ---- }; }; ! var oldValue = this._data[valueKey]; *************** *** 338,342 **** var ce = new QxDataEvent(changeKey, newValue, oldValue, false); ce.setTarget(this); ! try{ this.dispatchEvent(ce); --- 339,343 ---- var ce = new QxDataEvent(changeKey, newValue, oldValue, false); ce.setTarget(this); ! try{ this.dispatchEvent(ce); *************** *** 346,350 **** throw new Error("Failed to dispatch change event: " + ex); }; ! ce.dispose(); }; --- 347,351 ---- throw new Error("Failed to dispatch change event: " + ex); }; ! ce.dispose(); }; *************** *** 370,376 **** var methodKey = p.method; ! delete this._data[p.name]; ! delete this[QxConst.INTERNAL_RETRIEVE + methodKey]; delete this[QxConst.INTERNAL_STORE + methodKey]; --- 371,377 ---- var methodKey = p.method; ! delete this._data[p.name]; ! delete this[QxConst.INTERNAL_RETRIEVE + methodKey]; delete this[QxConst.INTERNAL_STORE + methodKey]; Index: QxConst.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/core/Attic/QxConst.js,v retrieving revision 1.1.2.14 retrieving revision 1.1.2.15 diff -C2 -d -r1.1.2.14 -r1.1.2.15 *** QxConst.js 16 Dec 2005 18:06:14 -0000 1.1.2.14 --- QxConst.js 13 Jan 2006 10:50:26 -0000 1.1.2.15 *************** *** 27,30 **** --- 27,31 ---- #package(core) + #require(QxMain) **************************************************************************** */ *************** *** 151,155 **** PROPERTY_OVERFLOW_TEXT : "textOverflow", PROPERTY_OVERFLOW_HORIZONTAL : "overflowX", ! PROPERTY_OVERFLOW_VERTICAL : "overflowY", JOB_INITIAL : "initial", --- 152,156 ---- PROPERTY_OVERFLOW_TEXT : "textOverflow", PROPERTY_OVERFLOW_HORIZONTAL : "overflowX", ! PROPERTY_OVERFLOW_VERTICAL : "overflowY", JOB_INITIAL : "initial", *************** *** 167,171 **** ORIENTATION_HORIZONTAL : "horizontal", ORIENTATION_VERTICAL : "vertical", ! ALIGN_LEFT : "left", ALIGN_LEFT_REVERSED : "left-reversed", --- 168,172 ---- ORIENTATION_HORIZONTAL : "horizontal", ORIENTATION_VERTICAL : "vertical", ! ALIGN_LEFT : "left", ALIGN_LEFT_REVERSED : "left-reversed", *************** *** 202,206 **** DISPLAY_BLOCK : "block", DISPLAY_NONE : "none", ! CURSOR_WAIT : "wait", CURSOR_PROGRESS : "progress", --- 203,207 ---- DISPLAY_BLOCK : "block", DISPLAY_NONE : "none", ! CURSOR_WAIT : "wait", CURSOR_PROGRESS : "progress", *************** *** 299,303 **** STATE_ACTIVE : "active", STATE_INACTIVE : "inactive", ! OVERFLOW_VALUE_AUTO : "auto", OVERFLOW_VALUE_HIDDEN : "hidden", --- 300,304 ---- STATE_ACTIVE : "active", STATE_INACTIVE : "inactive", ! OVERFLOW_VALUE_AUTO : "auto", OVERFLOW_VALUE_HIDDEN : "hidden", *************** *** 306,314 **** OVERFLOW_VALUE_VERTICAL : "scrollY", OVERFLOW_VALUE_ELLIPSIS : "ellipsis", ! OVERFLOW_VALUE_MOZ_NONE : "-moz-scrollbars-none", OVERFLOW_VALUE_MOZ_HORIZONTAL : "-moz-scrollbars-horizontal", OVERFLOW_VALUE_MOZ_VERTICAL : "-moz-scrollbars-vertical", ! SORT_ASCENDING : "ascending", SORT_DESCENDING : "descending" --- 307,315 ---- OVERFLOW_VALUE_VERTICAL : "scrollY", OVERFLOW_VALUE_ELLIPSIS : "ellipsis", ! OVERFLOW_VALUE_MOZ_NONE : "-moz-scrollbars-none", OVERFLOW_VALUE_MOZ_HORIZONTAL : "-moz-scrollbars-horizontal", OVERFLOW_VALUE_MOZ_VERTICAL : "-moz-scrollbars-vertical", ! SORT_ASCENDING : "ascending", SORT_DESCENDING : "descending" Index: QxApplication.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/core/QxApplication.js,v retrieving revision 1.2.2.54 retrieving revision 1.2.2.55 diff -C2 -d -r1.2.2.54 -r1.2.2.55 *** QxApplication.js 20 Dec 2005 08:17:05 -0000 1.2.2.54 --- QxApplication.js 13 Jan 2006 10:50:26 -0000 1.2.2.55 *************** *** 27,35 **** #package(core) ! #require(QxClientWindow) ! #require(QxImageManager) ! #require(QxWidget) ! #require(QxDebug) ! #require(QxDataEvent) **************************************************************************** */ --- 27,38 ---- #package(core) ! #post(QxClient) ! #post(QxClientWindow) ! #post(QxImageManager) ! #post(QxImagePreloader) ! #post(QxDebug) ! #post(QxDataEvent) ! #post(QxTimer) ! #post(QxParent) **************************************************************************** */ *************** *** 241,245 **** this.error("Failed to execute init function: " + vJob + ": " + ex); }; ! this.debug(vJob + QxConst.CORE_COLON + QxConst.CORE_SPACE + ((new Date).valueOf() - vStart) + QxConst.CORE_MILLISECONDS); }; --- 244,248 ---- this.error("Failed to execute init function: " + vJob + ": " + ex); }; ! this.debug(vJob + QxConst.CORE_COLON + QxConst.CORE_SPACE + ((new Date).valueOf() - vStart) + QxConst.CORE_MILLISECONDS); }; Index: QxExtend.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/core/QxExtend.js,v retrieving revision 1.7.2.92 retrieving revision 1.7.2.93 diff -C2 -d -r1.7.2.92 -r1.7.2.93 *** QxExtend.js 17 Dec 2005 03:59:12 -0000 1.7.2.92 --- QxExtend.js 13 Jan 2006 10:50:26 -0000 1.7.2.93 *************** *** 40,47 **** */ ! Function.prototype.extend = function(vFunction, vClassName) { ! if (typeof vFunction != QxConst.TYPEOF_FUNCTION) { ! throw new Error("Extend: Function/Constructor to extend from is not a function: " + vFunction); }; --- 40,47 ---- */ ! Function.prototype.extend = function(vSuper, vClassName) { ! if (typeof vSuper != QxConst.TYPEOF_FUNCTION) { ! throw new Error("Extend: Function/Constructor to extend from is not a function: " + vSuper); }; *************** *** 49,62 **** 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(); ! f.prototype = vFunction.prototype; proto = this.prototype = new f; ! this.superclass = vFunction; ! proto.classname = vClassName; proto.constructor = this; --- 49,64 ---- throw new Error("Extend: Missing or malformed className: " + vClassName); }; + + proto = null; // build helper function // this omits the initial constructor call while inherit properties var f = new Function(); ! f.prototype = vSuper.prototype; proto = this.prototype = new f; ! this.superclass = vSuper; ! proto.classname = this.classname = vClassName; proto.constructor = this; Index: QxMain.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/core/Attic/QxMain.js,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -C2 -d -r1.1.2.5 -r1.1.2.6 *** QxMain.js 19 Dec 2005 14:43:15 -0000 1.1.2.5 --- QxMain.js 13 Jan 2006 10:50:26 -0000 1.1.2.6 *************** *** 30,33 **** **************************************************************************** */ ! QxVersion = "0.2_beta-3"; QxClasses = {}; --- 30,33 ---- **************************************************************************** */ ! QxVersion = "0.2_beta-4"; QxClasses = {}; |
|
From: Sebastian W. <wp...@us...> - 2006-01-13 10:51:05
|
Update of /cvsroot/qooxdoo/qooxdoo In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22549 Modified Files: Tag: renderer .cvsignore TODO Log Message: Added support for new appearance layer Index: .cvsignore =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/.cvsignore,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -C2 -d -r1.2 -r1.2.2.1 *** .cvsignore 31 Mar 2005 09:15:04 -0000 1.2 --- .cvsignore 13 Jan 2006 10:50:25 -0000 1.2.2.1 *************** *** 1,4 **** --- 1,7 ---- build public + compressed + tokenized + xml .cache Index: TODO =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/TODO,v retrieving revision 1.1.2.36 retrieving revision 1.1.2.37 diff -C2 -d -r1.1.2.36 -r1.1.2.37 *** TODO 6 Jan 2006 16:07:31 -0000 1.1.2.36 --- TODO 13 Jan 2006 10:50:25 -0000 1.1.2.37 *************** *** 1,4 **** --- 1,7 ---- h4. For next release + * UTF-8 coding for files to fix "umlauts" in parts of the current code. + Or change the examples to include the qooxdoo.js with the charset="iso-8859-15" attribute? + * Add appearance support *************** *** 62,63 **** --- 65,70 ---- * Remove "virtual qooxdoo mode" from QxNativeWindow + + * Some rounded borners like nifty corners or these ones: + http://www.456bereastreet.com/archive/200505/transparent_custom_corners_and_borders/ + * Merge some ideas from "prototype" and "moo.fx" to qooxdoo |
|
From: Sebastian W. <wp...@us...> - 2006-01-13 10:51:05
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/events In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22549/source/script/events Modified Files: Tag: renderer QxKeyEvent.js QxKeyEventCore.js QxMouseEvent.js QxMouseEventCore.js Log Message: Added support for new appearance layer Index: QxKeyEventCore.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/events/Attic/QxKeyEventCore.js,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -C2 -d -r1.1.2.3 -r1.1.2.4 *** QxKeyEventCore.js 19 Dec 2005 14:29:19 -0000 1.1.2.3 --- QxKeyEventCore.js 13 Jan 2006 10:50:26 -0000 1.1.2.4 *************** *** 27,30 **** --- 27,31 ---- #package(eventcore) + #require(QxKeyEvent) **************************************************************************** */ Index: QxMouseEventCore.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/events/Attic/QxMouseEventCore.js,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -C2 -d -r1.1.2.5 -r1.1.2.6 *** QxMouseEventCore.js 19 Dec 2005 15:23:05 -0000 1.1.2.5 --- QxMouseEventCore.js 13 Jan 2006 10:50:26 -0000 1.1.2.6 *************** *** 27,30 **** --- 27,31 ---- #package(eventcore) + #require(QxMouseEvent) **************************************************************************** */ Index: QxMouseEvent.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/events/QxMouseEvent.js,v retrieving revision 1.3.2.11 retrieving revision 1.3.2.12 diff -C2 -d -r1.3.2.11 -r1.3.2.12 *** QxMouseEvent.js 19 Dec 2005 15:23:05 -0000 1.3.2.11 --- QxMouseEvent.js 13 Jan 2006 10:50:26 -0000 1.3.2.12 *************** *** 27,30 **** --- 27,31 ---- #package(eventcore) + #post(QxMouseEventCore) **************************************************************************** */ *************** *** 33,40 **** A mouse event instance contains all data for each occured mouse event */ ! function QxMouseEvent(vType, vDomEvent, vDomTarget, vTarget, vOriginalTarget, vRelatedTarget) { QxDomEvent.call(this, vType, vDomEvent, vDomTarget, vTarget, vOriginalTarget); ! if (vRelatedTarget) { this.setRelatedTarget(vRelatedTarget); --- 34,41 ---- A mouse event instance contains all data for each occured mouse event */ ! function QxMouseEvent(vType, vDomEvent, vDomTarget, vTarget, vOriginalTarget, vRelatedTarget) { QxDomEvent.call(this, vType, vDomEvent, vDomTarget, vTarget, vOriginalTarget); ! if (vRelatedTarget) { this.setRelatedTarget(vRelatedTarget); *************** *** 56,65 **** */ ! proto.getScreenX = function() { ! return this.getDomEvent().screenX; }; ! proto.getScreenY = function() { ! return this.getDomEvent().screenY; }; --- 57,66 ---- */ ! proto.getScreenX = function() { ! return this.getDomEvent().screenX; }; ! proto.getScreenY = function() { ! return this.getDomEvent().screenY; }; *************** *** 81,85 **** QxMouseEvent.addFastProperty({ name : "pageX", readOnly : true }); QxMouseEvent.addFastProperty({ name : "pageY", readOnly : true }); ! if (QxUtil.isInvalid(document.compatMode) || document.compatMode == QxConst.INTERNAL_BACKCOMPAT) { --- 82,86 ---- QxMouseEvent.addFastProperty({ name : "pageX", readOnly : true }); QxMouseEvent.addFastProperty({ name : "pageY", readOnly : true }); ! if (QxUtil.isInvalid(document.compatMode) || document.compatMode == QxConst.INTERNAL_BACKCOMPAT) { *************** *** 115,124 **** else { ! proto.getPageX = function() { ! return this.getDomEvent().clientX; }; ! ! proto.getPageY = function() { ! return this.getDomEvent().clientY; }; }; --- 116,125 ---- else { ! proto.getPageX = function() { ! return this.getDomEvent().clientX; }; ! ! proto.getPageY = function() { ! return this.getDomEvent().clientY; }; }; *************** *** 138,147 **** if (QxClient.isMshtml() || QxClient.isGecko()) { ! proto.getClientX = function() { ! return this.getDomEvent().clientX; }; ! ! proto.getClientY = function() { ! return this.getDomEvent().clientY; }; } --- 139,148 ---- if (QxClient.isMshtml() || QxClient.isGecko()) { ! proto.getClientX = function() { ! return this.getDomEvent().clientX; }; ! ! proto.getClientY = function() { ! return this.getDomEvent().clientY; }; } *************** *** 151,160 **** QxMouseEvent.addFastProperty({ name : "clientY", readOnly : true }); ! proto._computeClientX = function() { ! return this.getDomEvent().clientX + (document.body && document.body.scrollLeft != null ? document.body.scrollLeft : 0); }; ! ! proto._computeClientY = function() { ! return this.getDomEvent().clientY + (document.body && document.body.scrollTop != null ? document.body.scrollTop : 0); }; }; --- 152,161 ---- QxMouseEvent.addFastProperty({ name : "clientY", readOnly : true }); ! proto._computeClientX = function() { ! return this.getDomEvent().clientX + (document.body && document.body.scrollLeft != null ? document.body.scrollLeft : 0); }; ! ! proto._computeClientY = function() { ! return this.getDomEvent().clientY + (document.body && document.body.scrollTop != null ? document.body.scrollTop : 0); }; }; *************** *** 194,204 **** case 1: return QxConst.BUTTON_LEFT; ! case 2: return QxConst.BUTTON_RIGHT; ! case 4: return QxConst.BUTTON_MIDDLE; ! default: return QxConst.BUTTON_NONE; --- 195,205 ---- case 1: return QxConst.BUTTON_LEFT; ! case 2: return QxConst.BUTTON_RIGHT; ! case 4: return QxConst.BUTTON_MIDDLE; ! default: return QxConst.BUTTON_NONE; *************** *** 214,218 **** case 0: return QxConst.BUTTON_LEFT; ! case 1: return QxConst.BUTTON_MIDDLE; --- 215,219 ---- case 0: return QxConst.BUTTON_LEFT; ! case 1: return QxConst.BUTTON_MIDDLE; *************** *** 220,224 **** case 2: return QxConst.BUTTON_RIGHT; ! default: return QxConst.BUTTON_NONE; --- 221,225 ---- case 2: return QxConst.BUTTON_RIGHT; ! default: return QxConst.BUTTON_NONE; Index: QxKeyEvent.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/events/QxKeyEvent.js,v retrieving revision 1.2.2.10 retrieving revision 1.2.2.11 diff -C2 -d -r1.2.2.10 -r1.2.2.11 *** QxKeyEvent.js 16 Dec 2005 18:06:15 -0000 1.2.2.10 --- QxKeyEvent.js 13 Jan 2006 10:50:26 -0000 1.2.2.11 *************** *** 27,30 **** --- 27,31 ---- #package(eventcore) + #post(QxKeyEventCore) **************************************************************************** */ *************** *** 33,40 **** A key event instance contains all data for each occured key event */ ! function QxKeyEvent(vType, vDomEvent, vDomTarget, vTarget, vOriginalTarget, vKeyCode) { QxDomEvent.call(this, vType, vDomEvent, vDomTarget, vTarget, vOriginalTarget); ! this.setKeyCode(vKeyCode); }; --- 34,41 ---- A key event instance contains all data for each occured key event */ ! function QxKeyEvent(vType, vDomEvent, vDomTarget, vTarget, vOriginalTarget, vKeyCode) { QxDomEvent.call(this, vType, vDomEvent, vDomTarget, vTarget, vOriginalTarget); ! this.setKeyCode(vKeyCode); }; |
|
From: Sebastian W. <wp...@us...> - 2006-01-13 10:51:05
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/presets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22549/source/script/presets Modified Files: Tag: renderer QxBorderObjectPresets.js QxBorderPresets.js QxColorThemePresets.js Log Message: Added support for new appearance layer Index: QxBorderPresets.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/presets/Attic/QxBorderPresets.js,v retrieving revision 1.1.2.7 retrieving revision 1.1.2.8 diff -C2 -d -r1.1.2.7 -r1.1.2.8 *** QxBorderPresets.js 29 Oct 2005 21:33:00 -0000 1.1.2.7 --- QxBorderPresets.js 13 Jan 2006 10:50:26 -0000 1.1.2.8 *************** *** 27,30 **** --- 27,31 ---- #package(border) + #require(QxBorder) **************************************************************************** */ Index: QxColorThemePresets.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/presets/Attic/QxColorThemePresets.js,v retrieving revision 1.1.2.9 retrieving revision 1.1.2.10 diff -C2 -d -r1.1.2.9 -r1.1.2.10 *** QxColorThemePresets.js 20 Dec 2005 07:41:06 -0000 1.1.2.9 --- QxColorThemePresets.js 13 Jan 2006 10:50:26 -0000 1.1.2.10 *************** *** 27,30 **** --- 27,33 ---- #package(color) + #require(QxColorTheme) + #require(QxColorManager) + #require(QxColorObject) **************************************************************************** */ Index: QxBorderObjectPresets.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/presets/Attic/QxBorderObjectPresets.js,v retrieving revision 1.1.2.9 retrieving revision 1.1.2.10 diff -C2 -d -r1.1.2.9 -r1.1.2.10 *** QxBorderObjectPresets.js 29 Oct 2005 21:33:00 -0000 1.1.2.9 --- QxBorderObjectPresets.js 13 Jan 2006 10:50:26 -0000 1.1.2.10 *************** *** 27,30 **** --- 27,31 ---- #package(border) + #require(QxBorderObject) **************************************************************************** */ |
|
From: Sebastian W. <wp...@us...> - 2006-01-13 10:50:40
|
Update of /cvsroot/qooxdoo/qooxdoo/tools In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22549/tools Modified Files: Tag: renderer compile.py compileng.py config.sh makesource.sh Log Message: Added support for new appearance layer Index: config.sh =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/tools/config.sh,v retrieving revision 1.16.2.91 retrieving revision 1.16.2.92 diff -C2 -d -r1.16.2.91 -r1.16.2.92 *** config.sh 20 Dec 2005 08:38:12 -0000 1.16.2.91 --- config.sh 13 Jan 2006 10:50:31 -0000 1.16.2.92 *************** *** 15,24 **** L="$L core/QxDebug" L="$L core/QxTarget" - L="$L core/QxApplication" - L="$L gui/QxClientWindow" # Core Managers L="$L managers/QxManager" # Basic Events L="$L events/QxEvent" --- 15,26 ---- L="$L core/QxDebug" L="$L core/QxTarget" # Core Managers L="$L managers/QxManager" + # Application + L="$L core/QxApplication" + L="$L gui/QxClientWindow" + # Basic Events L="$L events/QxEvent" *************** *** 56,59 **** --- 58,66 ---- L="$L gui/QxWidgetCore" + # Appearance + L="$L managers/QxAppearanceManager" + L="$L gui/QxAppearanceTheme" + L="$L appearance/QxAppearanceTheme-Default" + # Core Layouts L="$L layouts/QxLayoutImpl" Index: compileng.py =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/tools/Attic/compileng.py,v retrieving revision 1.1.2.62 retrieving revision 1.1.2.63 diff -C2 -d -r1.1.2.62 -r1.1.2.63 *** compileng.py 18 Dec 2005 21:13:44 -0000 1.1.2.62 --- compileng.py 13 Jan 2006 10:50:31 -0000 1.1.2.63 *************** *** 5,8 **** --- 5,9 ---- JSEXT = ".js" XMLEXT = ".xml" + TKEXT = ".txt" TOKENS = { *************** *** 110,189 **** "instanceof" : "INSTANCEOF", "typeof" : "TYPEOF", [...2129 lines suppressed...] print " NO JOB GIVEN" *************** *** 1446,1453 **** main({ "sourceDirectories" : sourceDirectories, "sourceFiles" : sourceFiles, ! "outputPublic" : outputPublic, "outputXml" : outputXml, ! "makePublic" : makePublic, "makeOptimize" : makeOptimize, "makeXml" : makeXml, "makeDocs" : makeDocs, "makeRemappingDb" : makeRemappingDb, ! "useAll" : useAll, "outputCombined" : outputCombined, "outputSingle" : outputSingle, ! "listDeps" : listDeps, "listFiles" : listFiles, "listPackages" : listPackages, "includePackages" : includePackages, "includeFiles" : includeFiles, "excludePackages" : excludePackages, "excludeFiles" : excludeFiles --- 1327,1334 ---- main({ "sourceDirectories" : sourceDirectories, "sourceFiles" : sourceFiles, ! "outputPublic" : outputPublic, "outputXml" : outputXml, "outputTokenized" : outputTokenized, "outputCompressed" : outputCompressed, ! "makeOptimized" : makeOptimized, "makeDocs" : makeDocs, ! "useAll" : useAll, "ignoreDeps" : ignoreDeps, "outputCombined" : outputCombined, "outputSingle" : outputSingle, ! "listPre" : listPre, "listFiles" : listFiles, "listPackages" : listPackages, "listInclude" : listInclude, "listPost" : listPost, "includePackages" : includePackages, "includeFiles" : includeFiles, "excludePackages" : excludePackages, "excludeFiles" : excludeFiles Index: compile.py =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/tools/compile.py,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** compile.py 14 Aug 2005 15:25:13 -0000 1.1.2.1 --- compile.py 13 Jan 2006 10:50:31 -0000 1.1.2.2 *************** *** 259,265 **** if s_klammerzu: ! if line[0:4] != "else" and line[0:5] != "while" and line[0:5] != "catch": ! print " * Warning: Probably missing semicolon after fragment: %s" % s_out[-30:] ! #s_out += ";" s_klammerzu = False --- 259,265 ---- if s_klammerzu: ! #if line[0:4] != "else" and line[0:5] != "while" and line[0:5] != "catch": ! # print " * Warning: Probably missing semicolon after fragment: %s" % s_out[-30:] ! # s_out += ";" s_klammerzu = False Index: makesource.sh =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/tools/makesource.sh,v retrieving revision 1.3.2.4 retrieving revision 1.3.2.5 diff -C2 -d -r1.3.2.4 -r1.3.2.5 *** makesource.sh 13 Dec 2005 10:04:00 -0000 1.3.2.4 --- makesource.sh 13 Jan 2006 10:50:31 -0000 1.3.2.5 *************** *** 9,12 **** --- 9,15 ---- grep -v \"\" config.sh | sed s:"L=\"\$L ":"inc(\"":g | sed s:"\"$":"\");":g | sed s:"\# ":"// ":g >> script/includer.js + cat script/includer_compressed.js.in > script/includer_compressed.js + grep -v \"\" config.sh | sed s:"L=\"\$L ":"inc(\"":g | sed s:"\"$":"\");":g | sed s:"\# ":"// ":g >> script/includer_compressed.js + length=`cat config.sh | grep -R "^L" | grep -v "\"\"" | wc -l` echo ">>> Includer System Loads $length Files" |
|
From: Sebastian W. <wp...@us...> - 2006-01-13 10:50:35
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/appearance In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22549/source/script/appearance Added Files: Tag: renderer QxAppearanceTheme-Default.js Log Message: Added support for new appearance layer --- NEW FILE: QxAppearanceTheme-Default.js --- /* **************************************************************************** qooxdoo - the new era of web interface development Version: $Id: QxAppearanceTheme-Default.js,v 1.1.2.1 2006/01/13 10:50:25 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) [...1651 lines suppressed...] vReturn.marginLeft = 1; }; if (vBarTop) { vReturn.border = this.border_top_normal; vReturn.marginTop = 3; vReturn.marginBottom = 1; } else { vReturn.border = this.border_bottom_normal; vReturn.marginTop = 1; vReturn.marginBottom = 3; }; }; return vReturn; } }); |
|
From: Sebastian W. <wp...@us...> - 2006-01-13 10:50:00
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/appearance In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22366/source/script/appearance Log Message: Directory /cvsroot/qooxdoo/qooxdoo/source/script/appearance added to the repository --> Using per-directory sticky tag `renderer' |
|
From: <qo...@sy...> - 2006-01-10 16:56:02
|
hi.
i want different instances to handle gui-events. the problem is, that 'this' is
not a reference to an instance of MyClass in the following code:
window.application.main = function()
{
function MyClass(nr)
{
QxWidget.call(this);
this.nr = nr;
};
MyClass.extend(QxWidget, "MyClass");
proto.handleClick = function(e)
{
alert("instance nr: " + this.nr + " handles click!");
};
var inst1 = new MyClass(1);
var inst2 = new MyClass(2);
var button = new QxButton("click");
button.addEventListener("click", inst1.handleClick);
button.addEventListener("click", inst2.handleClick);
this.add(button);
}
when handleClick() is called, 'this' refers to the window object, i tried to get
a reference of the right instance of MyClass into handleClick(), but this is
much like a hack.
does anyone know a nice way to handle this?
thanks in advance.
mfg
alexander
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
|
|
From: Sebastian W. <wp...@us...> - 2006-01-06 16:07:48
|
Update of /cvsroot/qooxdoo/qooxdoo In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32460/qooxdoo.RENDERER/qooxdoo Modified Files: Tag: renderer TODO Log Message: Minor updates Index: TODO =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/TODO,v retrieving revision 1.1.2.35 retrieving revision 1.1.2.36 diff -C2 -d -r1.1.2.35 -r1.1.2.36 *** TODO 20 Dec 2005 08:29:22 -0000 1.1.2.35 --- TODO 6 Jan 2006 16:07:31 -0000 1.1.2.36 *************** *** 3,8 **** * Add appearance support ! * Discuss property names: "html", "text" and "content" for QxText, QxHtml ! and QxLabel. * isDisplayed vs. isDisplayable (cleanups naming) --- 3,7 ---- * Add appearance support ! * Discuss property names: "html", "text" and "content" for QxText, QxHtml and QxLabel. * isDisplayed vs. isDisplayable (cleanups naming) *************** *** 11,31 **** * Reduce buildURI calls from Image handling stuff. * Optimize application load time ! * Optimize addProperty, use multiple functions for setters which themselves ! only call submethods and send the "p" variable to the handlers. Build ! setters which only do the stuff, which is needed for this property. Try ! to remove these "hasXXX" stuff. ! * Optimize singletons. Store singleton instance under the name of the class. ! Tests have shown that there is a major potentecial if we optimize this part. ! Mean instead of (new QxClient).getEngine() the code will be QxClient.getEngine(). ! * Optimize unit detection and unit handling and storage for dimension and location ! properties. Try to remove all these boolean flags. * Discuss if it is useful to also cache hasPercentX, hasAutoX, ... ! * Reimplement cached properties so that the invaliation will not set ! the old value to null, but set a isInvalid flag which will define that ! the next get must re-evaluate the value first. * Add depth property to widgets. Sort job queue according to depth before flush. * Speed-up toggling (tree, tabView) without re-layouting of children ! * Rework and cleanup disposer code - do we really need to dispose all ! this stuff? h4. Later --- 10,21 ---- * Reduce buildURI calls from Image handling stuff. * Optimize application load time ! * Optimize addProperty, use multiple functions for setters which themselves only call submethods and send the "p" variable to the handlers. Build setters which only do the stuff, which is needed for this property. Try to remove these "hasXXX" stuff. ! * Optimize singletons. Store singleton instance under the name of the class. Tests have shown that there is a major potentecial if we optimize this part. Mean instead of (new QxClient).getEngine() the code will be QxClient.getEngine(). ! * Optimize unit detection and unit handling and storage for dimension and location properties. Try to remove all these boolean flags. * Discuss if it is useful to also cache hasPercentX, hasAutoX, ... ! * Reimplement cached properties so that the invaliation will not set the old value to null, but set a isInvalid flag which will define that the next get must re-evaluate the value first. * Add depth property to widgets. Sort job queue according to depth before flush. * Speed-up toggling (tree, tabView) without re-layouting of children ! * Rework and cleanup disposer code - do we really need to dispose all this stuff? h4. Later *************** *** 36,40 **** * Add QxHiddenField widget (should be not a real widget) ! * Add QxAccordianWidget (naming?) * Add QxSlider * Add QxScrollBar --- 26,30 ---- * Add QxHiddenField widget (should be not a real widget) ! * Add QxAccordionWidget (naming?) * Add QxSlider * Add QxScrollBar *************** *** 59,64 **** * Add Mac OS X Theme ! * Move all layout depending properties from widgets to the used layout ! implementation like in Qt or SWT. * Compiler (mass recreation of an complete initialized application) --- 49,53 ---- * Add Mac OS X Theme ! * Move all layout depending properties from widgets to the used layout implementation like in Qt or SWT. * Compiler (mass recreation of an complete initialized application) |
|
From: Sebastian W. <wp...@us...> - 2006-01-06 10:33:37
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/widgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24720/source/script/widgets Modified Files: Tag: renderer QxTextField.js Log Message: Minor fix, changed default value, added new validation Index: QxTextField.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/QxTextField.js,v retrieving revision 1.5.2.37 retrieving revision 1.5.2.38 diff -C2 -d -r1.5.2.37 -r1.5.2.38 *** QxTextField.js 19 Dec 2005 15:23:07 -0000 1.5.2.37 --- QxTextField.js 6 Jan 2006 10:33:29 -0000 1.5.2.38 *************** *** 37,41 **** QxTerminator.call(this); ! this.setValue(vValue); --- 37,43 ---- QxTerminator.call(this); ! if (typeof vValue == QxConst.TYPEOF_STRING) { ! this.setValue(vValue); ! }; *************** *** 63,67 **** // *********************************************************************** this.enableInlineEvent(QxConst.EVENT_TYPE_INPUT); ! this.addEventListener(QxConst.EVENT_TYPE_BLUR, this._onblur); this.addEventListener(QxConst.EVENT_TYPE_FOCUS, this._onfocus); --- 65,69 ---- // *********************************************************************** this.enableInlineEvent(QxConst.EVENT_TYPE_INPUT); ! this.addEventListener(QxConst.EVENT_TYPE_BLUR, this._onblur); this.addEventListener(QxConst.EVENT_TYPE_FOCUS, this._onfocus); *************** *** 79,83 **** */ ! QxTextField.addProperty({ name : "value", type : QxConst.TYPEOF_STRING }); QxTextField.addProperty({ name : "maxLength", type : QxConst.TYPEOF_NUMBER }); QxTextField.addProperty({ name : "readOnly", type : QxConst.TYPEOF_BOOLEAN }); --- 81,85 ---- */ ! QxTextField.addProperty({ name : "value", type : QxConst.TYPEOF_STRING, defaultValue : QxConst.CORE_EMPTY }); QxTextField.addProperty({ name : "maxLength", type : QxConst.TYPEOF_NUMBER }); QxTextField.addProperty({ name : "readOnly", type : QxConst.TYPEOF_BOOLEAN }); *************** *** 87,91 **** QxTextField.addProperty({ name : "selectionText", type : QxConst.TYPEOF_STRING }); ! QxTextField.addProperty({ name : "validator", type : QxConst.TYPEOF_OBJECT }); --- 89,93 ---- QxTextField.addProperty({ name : "selectionText", type : QxConst.TYPEOF_STRING }); ! QxTextField.addProperty({ name : "validator", type : QxConst.TYPEOF_FUNCTION }); *************** *** 114,123 **** }; ! proto._modifyValue = function(propValue, propOldValue, propData) { this._inValueProperty = true; this.setHtmlProperty(propData.name, propValue == null ? QxConst.CORE_EMPTY : propValue); delete this._inValueProperty; ! return true; }; --- 116,125 ---- }; ! proto._modifyValue = function(propValue, propOldValue, propData) { this._inValueProperty = true; this.setHtmlProperty(propData.name, propValue == null ? QxConst.CORE_EMPTY : propValue); delete this._inValueProperty; ! return true; }; *************** *** 169,172 **** --- 171,180 ---- }; + proto.isComputedValid = function() + { + var vValidator = this.getValidator(); + return !vValidator || vValidator(this.getComputedValue()); + }; + |
|
From: Sebastian W. <wp...@us...> - 2005-12-29 16:26:52
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30877/source/script/gui Modified Files: Tag: renderer QxColor.js Log Message: Fixed a missing semicolon Index: QxColor.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/gui/Attic/QxColor.js,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -C2 -d -r1.1.2.5 -r1.1.2.6 *** QxColor.js 29 Oct 2005 21:32:59 -0000 1.1.2.5 --- QxColor.js 29 Dec 2005 16:26:44 -0000 1.1.2.6 *************** *** 147,151 **** if (this._isRgbColor) { ! this._style = QxColor.rgb2style(this._red, this._green, this._blue) } else if (this._isThemedColor) --- 147,151 ---- if (this._isRgbColor) { ! this._style = QxColor.rgb2style(this._red, this._green, this._blue); } else if (this._isThemedColor) *************** *** 179,196 **** if (this._isRgbColor) { ! var a = [QxConst.CORE_HASH]; ! var r = this.getRed(); a.push(QxColor.m_hex[Math.floor(r/16)]); a.push(QxColor.m_hex[Math.floor(r%16)]); ! var g = this.getGreen(); a.push(QxColor.m_hex[Math.floor(g/16)]); a.push(QxColor.m_hex[Math.floor(g%16)]); ! var b = this.getBlue(); a.push(QxColor.m_hex[Math.floor(b/16)]); a.push(QxColor.m_hex[Math.floor(b%16)]); ! this._hex = a.join(QxConst.CORE_EMPTY); } --- 179,196 ---- if (this._isRgbColor) { ! var a = [QxConst.CORE_HASH]; ! var r = this.getRed(); a.push(QxColor.m_hex[Math.floor(r/16)]); a.push(QxColor.m_hex[Math.floor(r%16)]); ! var g = this.getGreen(); a.push(QxColor.m_hex[Math.floor(g/16)]); a.push(QxColor.m_hex[Math.floor(g%16)]); ! var b = this.getBlue(); a.push(QxColor.m_hex[Math.floor(b/16)]); a.push(QxColor.m_hex[Math.floor(b%16)]); ! this._hex = a.join(QxConst.CORE_EMPTY); } *************** *** 299,303 **** this._green = (QxColor.m_rgb[RegExp.$2] * 16) + QxColor.m_rgb[RegExp.$2]; this._blue = (QxColor.m_rgb[RegExp.$3] * 16) + QxColor.m_rgb[RegExp.$3]; ! this._isRgbColor = true; } --- 299,303 ---- this._green = (QxColor.m_rgb[RegExp.$2] * 16) + QxColor.m_rgb[RegExp.$2]; this._blue = (QxColor.m_rgb[RegExp.$3] * 16) + QxColor.m_rgb[RegExp.$3]; ! this._isRgbColor = true; } *************** *** 305,309 **** { this._hex = vInValue; ! this._red = (QxColor.m_rgb[RegExp.$1] * 16) + QxColor.m_rgb[RegExp.$2]; this._green = (QxColor.m_rgb[RegExp.$3] * 16) + QxColor.m_rgb[RegExp.$4]; --- 305,309 ---- { this._hex = vInValue; ! this._red = (QxColor.m_rgb[RegExp.$1] * 16) + QxColor.m_rgb[RegExp.$2]; this._green = (QxColor.m_rgb[RegExp.$3] * 16) + QxColor.m_rgb[RegExp.$4]; |
|
From: Sebastian W. <wp...@us...> - 2005-12-29 16:26:18
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30732/source/script/core Modified Files: Tag: renderer QxTimeTracker.js Log Message: Make compatible with new parsers regexp search Index: QxTimeTracker.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/core/Attic/QxTimeTracker.js,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -C2 -d -r1.1.2.4 -r1.1.2.5 *** QxTimeTracker.js 20 Dec 2005 07:16:22 -0000 1.1.2.4 --- QxTimeTracker.js 29 Dec 2005 16:26:07 -0000 1.1.2.5 *************** *** 1,316 **** ! /* **************************************************************************** ! ! qooxdoo - the new era of web interface development ! ! Version: ! $Id$ ! ! 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(debug) ! ! **************************************************************************** */ ! ! function QxTimeTracker() ! { ! QxObject.call(this); ! ! this._functions = QxUtil.convertArgumentsToArray(arguments); ! ! this.buttonSets(); ! }; ! ! QxTimeTracker.extend(QxObject, "QxTimeTracker"); ! ! QxTimeTracker.compare = function(a, b) { ! return a-b; ! }; ! ! ! /* ! ------------------------------------------------------------------------------------ ! METHODS ! ------------------------------------------------------------------------------------ ! */ ! ! proto.buttonSets = function() ! { ! var btnLayout = new QxHorizontalBoxLayout; ! ! btnLayout.setLocation(20, 48); ! btnLayout.setSpacing(5); ! ! var loopLabel = new QxAtom("Method Loops: "); ! loopLabel.setAllowStretchY(false); ! loopLabel.setVerticalAlign("middle"); ! ! var loopInput = new QxTextField("100"); ! loopInput.setAllowStretchY(false); ! loopInput.setWidth(50); ! loopInput.setVerticalAlign("middle"); ! ! var repeatLabel = new QxAtom("Repeat Number: "); ! repeatLabel.setAllowStretchY(false); ! repeatLabel.setVerticalAlign("middle"); ! repeatLabel.setMarginLeft(30); ! ! var btnStart1 = new QxButton("Start 3x", "icons/16/buttonok.png"); ! var btnStart2 = new QxButton("Start 7x", "icons/16/buttonok.png"); ! var btnStart3 = new QxButton("Start 15x", "icons/16/buttonok.png"); ! var btnStart4 = new QxButton("Start 25x", "icons/16/buttonok.png"); ! ! btnStart1.addEventListener("execute", function() { this.start(3, parseInt(loopInput.getValue())) }, this); ! btnStart2.addEventListener("execute", function() { this.start(7, parseInt(loopInput.getValue())) }, this); ! btnStart3.addEventListener("execute", function() { this.start(15, parseInt(loopInput.getValue())) }, this); ! btnStart4.addEventListener("execute", function() { this.start(25, parseInt(loopInput.getValue())) }, this); ! ! var htmlOutput = this._output = new QxHtml(); ! ! htmlOutput.setHtml(""); ! htmlOutput.setLocation(20, 78); ! htmlOutput.setRight(335); ! htmlOutput.setBottom(48); ! htmlOutput.setBorder("1px solid black"); ! htmlOutput.setBackgroundColor("white"); ! htmlOutput.setPadding(10); ! htmlOutput.setOverflow("auto"); ! ! btnLayout.add(loopLabel, loopInput, repeatLabel, btnStart1, btnStart2, btnStart3, btnStart4); ! window.application.add(btnLayout, htmlOutput); ! }; ! ! proto.start = function(vRounds, vLoops) ! { ! var vFuncs = this._functions; ! var vLength = vFuncs.length; ! var vStart; ! var vLocalTimes; ! var vAllTimes = []; ! var vHtmlMeasured = []; ! var vHtmlResults = []; ! var vCellWidth = Math.round(100 / (vLength+1)) + "%"; ! ! vHtmlMeasured.push("<h3>Measured Values</h3>"); ! ! vHtmlMeasured.push("<style type='text/css'>.output{border: 1px solid black; width:100%; margin-bottom: 20px } .output thead{ font-weight: bold; } .output td, .output th{ text-align:left; width: " + vCellWidth + "; } .output td{padding:4px}</style>"); ! ! vHtmlMeasured.push("<table class='output'>"); ! ! vHtmlMeasured.push("<thead>"); ! ! vHtmlMeasured.push("<tr><td> </td>"); ! ! for (var j=0; j<vLength; j++) { ! vHtmlMeasured.push("<td>Method " + (j+1) + "</td>"); ! }; ! ! vHtmlMeasured.push("</thead><tbody>"); ! ! for (var i=0; i<vRounds; i++) ! { ! vLocalTimes = []; ! ! for (var j=0; j<vLength; j++) ! { ! vStart = (new Date).valueOf(); ! ! vFuncs[j](vLoops); ! ! vLocalTimes.push((new Date).valueOf()-vStart); ! }; ! ! vHtmlMeasured.push("<tr><th>Round " + i + "</th>"); ! ! for (var j=0; j<vLocalTimes.length; j++) { ! vHtmlMeasured.push("<td>" + vLocalTimes[j] + "</td>"); ! }; ! ! vHtmlMeasured.push("</tr>"); ! vAllTimes.push(vLocalTimes); ! }; ! ! vHtmlMeasured.push("</tbody></table>"); ! ! ! ! ! ! var vSum, vMeanValue, vMeanAll=[], vMeanMin=1e7, vMeanMax=0; ! ! for (var j=0; j<vLength; j++) ! { ! vSum = 0; ! ! for (var i=0; i<vRounds; i++) ! { ! vSum += vAllTimes[i][j]; ! }; ! ! vMeanValue = Math.round(vSum / vRounds); ! ! vMeanAll.push(vMeanValue); ! ! vMeanMin = Math.min(vMeanMin, vMeanValue); ! vMeanMax = Math.max(vMeanMax, vMeanValue); ! }; ! ! ! ! var vMedian, vMedianValue, vMedianAll=[], vMedianMin=1e7, vMedianMax=0; ! ! for (var j=0; j<vLength; j++) ! { ! vMedian = []; ! ! for (var i=0; i<vRounds; i++) ! { ! vMedian.push(vAllTimes[i][j]); ! }; ! ! vMedian.sort(QxTimeTracker.compare); ! vMedianValue = vMedian[Math.floor(vRounds / 2)].toString(); ! ! vMedianAll.push(vMedianValue); ! ! vMedianMin = Math.min(vMedianValue, vMedianMin); ! vMedianMax = Math.max(vMedianValue, vMedianMax); ! }; ! ! ! ! ! ! vHtmlResults.push("<h3>Results Summary</h3>"); ! ! vHtmlResults.push("<table class='output'>"); ! ! vHtmlResults.push("<thead>"); ! ! vHtmlResults.push("<tr><td> </td>"); ! ! for (var j=0; j<vLength; j++) { ! vHtmlResults.push("<td>Method " + (j+1) + "</td>"); ! }; ! ! vHtmlResults.push("</thead><tbody>"); ! ! ! vHtmlResults.push("<tr>"); ! ! vHtmlResults.push("<th>Median</th>"); ! ! for (var j=0; j<vLength; j++) { ! vHtmlResults.push("<td>" + vMedianAll[j] + "</td>"); ! }; ! ! vHtmlResults.push("</tr>"); ! ! ! ! vHtmlResults.push("<tr>"); ! ! vHtmlResults.push("<th>Median Factor</th>"); ! ! for (var j=0; j<vLength; j++) { ! vHtmlResults.push("<td>" + (vMedianMin > 0 ? Math.round(vMedianAll[j] / vMedianMin) : "1") + "x</td>"); ! }; ! ! vHtmlResults.push("</tr>"); ! ! ! ! vHtmlResults.push("<tr>"); ! ! vHtmlResults.push("<th>Mean</th>"); ! ! for (var j=0; j<vLength; j++) { ! vHtmlResults.push("<td>" + vMeanAll[j] + "</td>"); ! }; ! ! vHtmlResults.push("</tr>"); ! ! ! ! vHtmlResults.push("<tr>"); ! ! vHtmlResults.push("<th>Mean Factor</th>"); ! ! for (var j=0; j<vLength; j++) { ! vHtmlResults.push("<td>" + (vMeanMin > 0 ? Math.round(vMeanAll[j] / vMeanMin) : 1) + "x</td>"); ! }; ! ! vHtmlResults.push("</tr>"); ! ! ! ! vHtmlResults.push("<tr>"); ! ! vHtmlResults.push("<th>Winner</th>"); ! ! for (var j=0; j<vLength; j++) ! { ! vHtmlResults.push("<td>"); ! ! if (vMedianMin == vMedianAll[j] && vMeanMin == vMeanAll[j]) ! { ! vHtmlResults.push("BOTH"); ! } ! ! else if (vMedianMin == vMedianAll[j]) ! { ! vHtmlResults.push("MEDIAN"); ! } ! ! else if (vMeanMin == vMeanAll[j]) ! { ! vHtmlResults.push("MEAN"); ! }; ! ! vHtmlResults.push("</td>"); ! }; ! ! vHtmlResults.push("</tr>"); ! ! vHtmlResults.push("</tbody></table>"); ! ! this._output.setHtml(vHtmlResults.join("") + vHtmlMeasured.join("")); ! }; ! ! ! ! ! ! /* ! ------------------------------------------------------------------------------------ ! DISPOSER ! ------------------------------------------------------------------------------------ ! */ ! ! proto.dispose = function() ! { ! if (this.getDisposed()) { ! return; ! }; ! ! this._functions = null; ! ! return QxObject.prototype.dispose.call(this); ! }; --- 1,322 ---- ! /* **************************************************************************** ! ! qooxdoo - the new era of web interface development ! ! Version: ! $Id$ ! ! 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(debug) ! ! **************************************************************************** */ ! ! function QxTimeTracker() ! { ! QxObject.call(this); ! ! this._functions = QxUtil.convertArgumentsToArray(arguments); ! ! this.buttonSets(); ! }; ! ! QxTimeTracker.extend(QxObject, "QxTimeTracker"); ! ! QxTimeTracker.compare = function(a, b) { ! return a-b; ! }; ! ! ! /* ! ------------------------------------------------------------------------------------ ! METHODS ! ------------------------------------------------------------------------------------ ! */ ! ! proto.buttonSets = function() ! { ! var btnLayout = new QxHorizontalBoxLayout; ! ! btnLayout.setLocation(20, 48); ! btnLayout.setSpacing(5); ! ! var loopLabel = new QxAtom("Method Loops: "); ! loopLabel.setAllowStretchY(false); ! loopLabel.setVerticalAlign("middle"); ! ! var loopInput = new QxTextField("100"); ! loopInput.setAllowStretchY(false); ! loopInput.setWidth(50); ! loopInput.setVerticalAlign("middle"); ! ! var repeatLabel = new QxAtom("Repeat Number: "); ! repeatLabel.setAllowStretchY(false); ! repeatLabel.setVerticalAlign("middle"); ! repeatLabel.setMarginLeft(30); ! ! var btnStart1 = new QxButton("Start 3x", "icons/16/buttonok.png"); ! var btnStart2 = new QxButton("Start 7x", "icons/16/buttonok.png"); ! var btnStart3 = new QxButton("Start 15x", "icons/16/buttonok.png"); ! var btnStart4 = new QxButton("Start 25x", "icons/16/buttonok.png"); ! ! btnStart1.addEventListener("execute", function() { this.start(3, parseInt(loopInput.getValue())) }, this); ! btnStart2.addEventListener("execute", function() { this.start(7, parseInt(loopInput.getValue())) }, this); ! btnStart3.addEventListener("execute", function() { this.start(15, parseInt(loopInput.getValue())) }, this); ! btnStart4.addEventListener("execute", function() { this.start(25, parseInt(loopInput.getValue())) }, this); ! ! var htmlOutput = this._output = new QxHtml(); ! ! htmlOutput.setHtml(""); ! htmlOutput.setLocation(20, 78); ! htmlOutput.setRight(335); ! htmlOutput.setBottom(48); ! htmlOutput.setBorder("1px solid black"); ! htmlOutput.setBackgroundColor("white"); ! htmlOutput.setPadding(10); ! htmlOutput.setOverflow("auto"); ! ! btnLayout.add(loopLabel, loopInput, repeatLabel, btnStart1, btnStart2, btnStart3, btnStart4); ! window.application.add(btnLayout, htmlOutput); ! }; ! ! proto.start = function(vRounds, vLoops) ! { ! var vFuncs = this._functions; ! var vLength = vFuncs.length; ! var vStart; ! var vLocalTimes; ! var vAllTimes = []; ! var vHtmlMeasured = []; ! var vHtmlResults = []; ! var vCellWidth = Math.round(100 / (vLength+1)) + "%"; ! ! vHtmlMeasured.push("<h3>Measured Values</h3>"); ! ! vHtmlMeasured.push("<style type='text/css'>.output{border: 1px solid black; width:100%; margin-bottom: 20px } .output thead{ font-weight: bold; } .output td, .output th{ text-align:left; width: " + vCellWidth + "; } .output td{padding:4px}</style>"); ! ! vHtmlMeasured.push("<table class='output'>"); ! ! vHtmlMeasured.push("<thead>"); ! ! vHtmlMeasured.push("<tr><td> </td>"); ! ! for (var j=0; j<vLength; j++) { ! vHtmlMeasured.push("<td>Method " + (j+1) + "</td>"); ! }; ! ! vHtmlMeasured.push("</thead><tbody>"); ! ! for (var i=0; i<vRounds; i++) ! { ! vLocalTimes = []; ! ! for (var j=0; j<vLength; j++) ! { ! vStart = (new Date).valueOf(); ! ! vFuncs[j](vLoops); ! ! vLocalTimes.push((new Date).valueOf()-vStart); ! }; ! ! vHtmlMeasured.push("<tr><th>Round " + i + "</th>"); ! ! for (var j=0; j<vLocalTimes.length; j++) { ! vHtmlMeasured.push("<td>" + vLocalTimes[j] + "</td>"); ! }; ! ! vHtmlMeasured.push("</tr>"); ! vAllTimes.push(vLocalTimes); ! }; ! ! vHtmlMeasured.push("</tbody></table>"); ! ! ! ! ! ! var vSum, vMeanValue, vMeanAll=[], vMeanMin=1e7, vMeanMax=0; ! ! for (var j=0; j<vLength; j++) ! { ! vSum = 0; ! ! for (var i=0; i<vRounds; i++) ! { ! vSum += vAllTimes[i][j]; ! }; ! ! vMeanValue = Math.round(vSum / vRounds); ! ! vMeanAll.push(vMeanValue); ! ! vMeanMin = Math.min(vMeanMin, vMeanValue); ! vMeanMax = Math.max(vMeanMax, vMeanValue); ! }; ! ! ! ! var vMedian, vMedianValue, vMedianAll=[], vMedianMin=1e7, vMedianMax=0; ! ! for (var j=0; j<vLength; j++) ! { ! vMedian = []; ! ! for (var i=0; i<vRounds; i++) ! { ! vMedian.push(vAllTimes[i][j]); ! }; ! ! vMedian.sort(QxTimeTracker.compare); ! vMedianValue = vMedian[Math.floor(vRounds / 2)].toString(); ! ! vMedianAll.push(vMedianValue); ! ! vMedianMin = Math.min(vMedianValue, vMedianMin); ! vMedianMax = Math.max(vMedianValue, vMedianMax); ! }; ! ! ! ! ! ! vHtmlResults.push("<h3>Results Summary</h3>"); ! ! vHtmlResults.push("<table class='output'>"); ! ! vHtmlResults.push("<thead>"); ! ! vHtmlResults.push("<tr><td> </td>"); ! ! for (var j=0; j<vLength; j++) { ! vHtmlResults.push("<td>Method " + (j+1) + "</td>"); ! }; ! ! vHtmlResults.push("</thead><tbody>"); ! ! ! vHtmlResults.push("<tr>"); ! ! vHtmlResults.push("<th>Median</th>"); ! ! for (var j=0; j<vLength; j++) { ! vHtmlResults.push("<td>" + vMedianAll[j] + "</td>"); ! }; ! ! vHtmlResults.push("</tr>"); ! ! ! ! vHtmlResults.push("<tr>"); ! ! vHtmlResults.push("<th>Median Factor</th>"); ! ! for (var j=0; j<vLength; j++) ! { ! vHtmlResults.push("<td>"); ! vHtmlResults.push(vMedianMin > 0 ? Math.round(vMedianAll[j] / vMedianMin) : "1"); ! vHtmlResults.push("x</td>"); ! }; ! ! vHtmlResults.push("</tr>"); ! ! ! ! vHtmlResults.push("<tr>"); ! ! vHtmlResults.push("<th>Mean</th>"); ! ! for (var j=0; j<vLength; j++) { ! vHtmlResults.push("<td>" + vMeanAll[j] + "</td>"); ! }; ! ! vHtmlResults.push("</tr>"); ! ! ! ! vHtmlResults.push("<tr>"); ! ! vHtmlResults.push("<th>Mean Factor</th>"); ! ! for (var j=0; j<vLength; j++) ! { ! vHtmlResults.push("<td>"); ! vHtmlResults.push(vMeanMin > 0 ? Math.round(vMeanAll[j] / vMeanMin) : 1); ! vHtmlResults.push("x</td>"); ! }; ! ! vHtmlResults.push("</tr>"); ! ! ! ! vHtmlResults.push("<tr>"); ! ! vHtmlResults.push("<th>Winner</th>"); ! ! for (var j=0; j<vLength; j++) ! { ! vHtmlResults.push("<td>"); ! ! if (vMedianMin == vMedianAll[j] && vMeanMin == vMeanAll[j]) ! { ! vHtmlResults.push("BOTH"); ! } ! ! else if (vMedianMin == vMedianAll[j]) ! { ! vHtmlResults.push("MEDIAN"); ! } ! ! else if (vMeanMin == vMeanAll[j]) ! { ! vHtmlResults.push("MEAN"); ! }; ! ! vHtmlResults.push("</td>"); ! }; ! ! vHtmlResults.push("</tr>"); ! ! vHtmlResults.push("</tbody></table>"); ! ! this._output.setHtml(vHtmlResults.join("") + vHtmlMeasured.join("")); ! }; ! ! ! ! ! ! /* ! ------------------------------------------------------------------------------------ ! DISPOSER ! ------------------------------------------------------------------------------------ ! */ ! ! proto.dispose = function() ! { ! if (this.getDisposed()) { ! return; ! }; ! ! this._functions = null; ! ! return QxObject.prototype.dispose.call(this); ! }; |
|
From: Sebastian W. <wp...@us...> - 2005-12-21 10:35:09
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/widgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24987/source/script/widgets Modified Files: Tag: renderer QxListViewPane.js Log Message: Minor cleanups Index: QxListViewPane.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/Attic/QxListViewPane.js,v retrieving revision 1.1.2.30 retrieving revision 1.1.2.31 diff -C2 -d -r1.1.2.30 -r1.1.2.31 *** QxListViewPane.js 21 Dec 2005 09:12:48 -0000 1.1.2.30 --- QxListViewPane.js 21 Dec 2005 10:34:39 -0000 1.1.2.31 *************** *** 128,131 **** --- 128,133 ---- var vData = this._data; var vCell; + + // this.debug("Row-Count: " + this._lastRowCount + " => " + vRowCount); // Sync cells: Add new ones and configure them *************** *** 137,140 **** --- 139,143 ---- { vCell = new vColumns[vCol].contentClass; + this.add(vCell, j++, i); |
|
From: Sebastian W. <wp...@us...> - 2005-12-21 09:12:56
|
Update of /cvsroot/qooxdoo/qooxdoo/source/test/user In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10415/source/test/user Added Files: Tag: renderer List_View_14.html Log Message: Added new problematic test case --- NEW FILE: List_View_14.html --- <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de"> <head> <script type="text/javascript">window._htmlstart=(new Date).valueOf()</script> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" /> <meta http-equiv="MsThemeCompatible" content="yes" /> <meta http-equiv="ImageToolBar" content="no" /> <meta name="MSSmartTagsPreventParsing" content="yes" /> <title>qooxdoo demo dev</title> <link type="text/css" rel="stylesheet" href="../../style/qooxdoo.css"/> <link type="text/css" rel="stylesheet" href="../../style/demolayout.css"/> <script type="text/javascript" src="../../../tools/script/includer.js"></script> </head> <body> <script type="text/javascript" src="../../../tools/script/demolayout.js"></script> <div id="testDescription"> <p>Testing QxListView in a QxWindow.</p> <p>I am sorry, but this seems not to be fixable with the current layouter stuff in qooxdoo.</p> </div> <script type="text/javascript"> window.application.main = function() { var w = new QxWindow("ListView"); w.setWidth(400); w.setHeight(250); w.setLocation(50, 50); this.add(w); /* var cont = new QxCanvasLayout; cont.setEdge(0); cont.setBackgroundColor("white"); w.add(cont); */ var ld = []; var lt = [ "Image", "Text", "PDF", "Illustration", "Document" ]; for (var i=0, t; i<1000; i++) { t=Math.round(Math.random()*4); ld.push({ name : { text : "File " + i }, size : { text : Math.round(Math.random()*100) + "kb" }, type : { text : lt[t] }, modified : { text : "Nov " + Math.round(Math.random() * 30 + 1) + " 2005" }, rights: { text : "-rw-r--r--" }}); }; var lc = { name : { label : "Name", width : 100, type : "text" }, size: { label : "Size", width : 50, type : "text" }, type : { label : "Type", width : 80, type : "text" }, modified : { label : "Last Modified", width : 150, type : "text" }, rights : { label : "Rights", width: 80, type : "text" } }; var lv = new QxListView(ld, lc); lv.setBackgroundColor("white"); lv.setEdge(0); lv.setWidth(null); lv.setHeight(null); w.add(lv); //cont.add(lv); w.open(); // Color Themes QxColorManager.createThemeList(this.getClientWindow().getClientDocument(), 20, 448); }; </script> </body> </html> |
|
From: Sebastian W. <wp...@us...> - 2005-12-21 09:12:56
|
Update of /cvsroot/qooxdoo/qooxdoo/source/script/widgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10415/source/script/widgets Modified Files: Tag: renderer QxListViewPane.js Log Message: Added new problematic test case Index: QxListViewPane.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/widgets/Attic/QxListViewPane.js,v retrieving revision 1.1.2.29 retrieving revision 1.1.2.30 diff -C2 -d -r1.1.2.29 -r1.1.2.30 *** QxListViewPane.js 19 Dec 2005 12:34:59 -0000 1.1.2.29 --- QxListViewPane.js 21 Dec 2005 09:12:48 -0000 1.1.2.30 *************** *** 120,123 **** --- 120,127 ---- proto._updateLayout = function(vUpdate) { + // this.debug("InnerHeight: " + this._computeInnerHeight()); + // this.debug("BoxHeight: " + this._computeBoxHeight()); + // return + var vColumns = this._columns; var vRowCount = Math.ceil(this.getInnerHeight() / this._rowHeight); |