diff options
Diffstat (limited to 'swat2/style/qooxdoo/widgets/widgets/QxToolBarButton.js')
-rw-r--r-- | swat2/style/qooxdoo/widgets/widgets/QxToolBarButton.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/swat2/style/qooxdoo/widgets/widgets/QxToolBarButton.js b/swat2/style/qooxdoo/widgets/widgets/QxToolBarButton.js new file mode 100644 index 00000000000..2e7aef7e9cf --- /dev/null +++ b/swat2/style/qooxdoo/widgets/widgets/QxToolBarButton.js @@ -0,0 +1,2 @@ +/* Copyright (c): 2002-2005 (Germany): United Internet, 1&1, GMX, Schlund+Partner, Alturo */ +function QxToolBarButton(vText,vIcon,vIconWidth,vIconHeight){QxAtom.call(this,vText,vIcon,vIconWidth,vIconHeight);this.setHeight(null);this.setTop(0);this.setBottom(0);this.addEventListener("mouseover",this._onmouseover);this.addEventListener("mouseout",this._onmouseout);this.addEventListener("mousedown",this._g1);this.addEventListener("mouseup",this._g2);};QxToolBarButton.extend(QxAtom,"QxToolBarButton");proto._modifyEnabled=function(_b1,_b2,_b3,_b4){QxAtom.prototype._modifyEnabled.call(this,_b1,_b2,_b3,_b4);this.setState(null,_b4);return true;};proto._onmouseover=function(e){this.setState("hover");};proto._onmouseout=function(e){this.setState(null);};proto._g1=function(e){if(e.isNotLeftButton()){return;};this.setState("pressed");};proto._g2=function(e){if(e.isNotLeftButton()){return;};this.setState("hover");this.execute();};
\ No newline at end of file |