Attached are all the files... Included in the package are 4 diff files. In the theme.js there has been added appearance för statusbar and in the QxColorCore the same. This will change later according to Sebastian. But to get it working, put these files instead of the ones already there. make.sh and then you are ready to test it. Please report any errors or bugs. Kent
Index: QxColorCore.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/script/gui/Attic/QxColorCore.js,v retrieving revision 1.1.2.7 diff -r1.1.2.7 QxColorCore.js 168c168,169 < windowtext : 1 --- > windowtext : 1, > statusbar : 1
Index: QxStatusBar.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/contributed/statusbar_olsson/Attic/QxStatusBar.js,v retrieving revision 1.1.2.2 diff -r1.1.2.2 QxStatusBar.js 6c6 < $Id: QxStatusBar.js,v 1.1.2.2 2006/02/03 09:58:01 wpbasti Exp $ --- > $Id: QxStatusBar.js,v 1.1.2.3 2006/02/07 01:02:31 kols Exp $ 33,35c33 < this.setHeight(24); < this.setWidth(null);// Can not use this QxConst.CORE_AUTO); -> gets an error "It is not allowed to define any horizontal dimension for 'vertical' placed children" when the QxStatusBar is layed out by QxDockLayout : potential bug < this.setOverflow(QxConst.CORE_HIDDEN); --- > this.setAppearance("statusbar"); 43,55d40 < STYLES & BEHAVIOR < ------------------------------------------------------------------------------------ < */ < < proto._applyInitialStyle = function() < { < this.setBorder(QxBorderObject.presets.thinOutset); < this.setColor("windowtext"); < this.setBackgroundColor("threedface"); < }; < < /* < ------------------------------------------------------------------------------------ 66,73d50 < var children = this.getChildren(); < < // if (this._statusText) < // { < // this._statusText.dispose(); < // this._statusText = null; < // }; < 75c52 < }; \ No newline at end of file --- > };
Index: QxStatusBarPane.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/contributed/statusbar_olsson/Attic/QxStatusBarPane.js,v retrieving revision 1.1.2.2 diff -r1.1.2.2 QxStatusBarPane.js 6c6 < $Id: QxStatusBarPane.js,v 1.1.2.2 2006/02/03 09:58:01 wpbasti Exp $ --- > $Id: QxStatusBarPane.js,v 1.1.2.3 2006/02/07 01:08:49 kols Exp $ 33c33 < this.setWidth(QxConst.CORE_AUTO); --- > this.setAppearance("statusbar-pane"); 35,39c35,37 < this._component = vComponent; < vComponent.setPaddingLeft(1); < vComponent.setPaddingRight(1); < < this.add(vComponent); --- > if(QxUtil.isValidObject(vComponent)) { > this.setComponent(vComponent); > }; 44a43,53 > /* > ------------------------------------------------------------------------------------ > PROPERTIES > ------------------------------------------------------------------------------------ > */ > > /*! > The main menu bar if any. > */ > QxStatusBarPane.addProperty({ name : "component", type : QxConst.TYPEOF_OBJECT, allowNull : true }); > 48c57 < STYLES & BEHAVIOR --- > MODIFIERS 52c61 < proto._applyInitialStyle = function() --- > proto._modifyComponent = function(propValue, propOldValue, propData) 54,57c63,73 < this.setBorder(QxBorderObject.presets.inset); < this.setColor("windowtext"); < this.setBackgroundColor("threedface"); < // this.setBorder(1, QxConst.BORDER_STYLE_INSET, "windowtext"); --- > if(propOldValue != null) { > this.remove(propOldValue); > propOldValue.dispose(); > propOldValue = null; > }; > > this.add(propValue); > > propValue.setAppearance("statusbar-component"); > > return true; 73c89,91 < if (this._component) --- > var component = this.getComponent(); > > if (component) 75,76c93,94 < this._component.dispose(); < this._component = null; --- > component.dispose(); > component = null; 80c98 < }; \ No newline at end of file --- > };
Index: theme.js =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/source/themes/appearance/default/Attic/theme.js,v retrieving revision 1.1.2.6 diff -r1.1.2.6 theme.js 874,879d873 < < < < < < 1998a1993,2116 > > > /* > --------------------------------------------------------------------------- > STATUSBAR > --------------------------------------------------------------------------- > */ > > theme.registerAppearance("statusbar", > { > setup : function() > { > this.bgcolor = new QxColorObject("statusbar"); > }, > > initial : function(vWidget, vTheme) > { > return { > width : null, > height : 24, > overflow : QxConst.OVERFLOW_VALUE_HIDDEN, > backgroundColor : this.bgcolor, > border : QxBorderObject.presets.thinOutset, > paddingTop : 1, > paddingRight : 1, > paddingBottom : 1, > paddingLeft : 1 > }; > } > }); > > theme.registerAppearance("statusbar-pane", > { > initial : function(vWidget,vTheme) > { > return{ > width : QxConst.CORE_AUTO, > height : null, > border : QxBorderObject.presets.thinInset, > verticalChildrenAlign : QxConst.ALIGN_MIDDLE > }; > } > }); > > theme.registerAppearance("statusbar-component", > { > initial : function(vWidget,vTheme) > { > return{ > paddingRight : 1, > paddingLeft : 1 > }; > } > }); > > > /* > --------------------------------------------------------------------------- > SPLITPANE > --------------------------------------------------------------------------- > */ > > theme.registerAppearance("splitpane", > { > setup : function() > { > this.bgcolor = new QxColorObject("statusbar"); > }, > > initial : function(vWidget, vTheme) > { > return { > width : null, > height : 24, > overflow : QxConst.OVERFLOW_VALUE_HIDDEN, > backgroundColor : this.bgcolor, > border : QxBorderObject.presets.thinOutset, > paddingTop : 1, > paddingRight : 1, > paddingBottom : 1, > paddingLeft : 1 > }; > } > }); > > theme.registerAppearance("splitpane-component", > { > setup : function() > { > this.bgcolor = new QxColorObject("statusbar"); > }, > > initial : function(vWidget, vTheme) > { > return { > width : null, > height : 24, > overflow : QxConst.OVERFLOW_VALUE_HIDDEN, > backgroundColor : this.bgcolor, > border : QxBorderObject.presets.thinOutset > }; > } > }); > > theme.registerAppearance("splitpane-divider", > { > setup : function() > { > this.bgcolor = new QxColorObject("statusbar"); > }, > > initial : function(vWidget, vTheme) > { > return { > width : null, > height : 24, > overflow : QxConst.OVERFLOW_VALUE_HIDDEN, > backgroundColor : this.bgcolor, > border : QxBorderObject.presets.thinOutset > // sb.setBackgroundColor("red");//QxColorObject("threedface")); > // sb.setBorder(QxBorderObject.presets.verticalDivider); > }; > } > });