diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-12-25 22:02:34 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-12-25 22:02:34 +0000 |
| commit | 2ae2b257d39ea62640c2590f794e4275c6db1cd4 (patch) | |
| tree | f26abe4a0601d263fbc460eddc012c1d674c868b /src/buttonwidget.hh | |
| parent | 3c61812e588fb3c34d0713d7f82ccbf21091f032 (diff) | |
might not compile... ob uses its own widgets now, which subclass only the base otk widget. working on compressing focus events and handling them etc.
Diffstat (limited to 'src/buttonwidget.hh')
| -rw-r--r-- | src/buttonwidget.hh | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/buttonwidget.hh b/src/buttonwidget.hh index bb23dd90..66a9cf37 100644 --- a/src/buttonwidget.hh +++ b/src/buttonwidget.hh @@ -2,14 +2,17 @@ #ifndef __obbuttonwidget_hh #define __obbuttonwidget_hh -#include "otk/button.hh" +#include "otk/widget.hh" #include "widget.hh" namespace ob { -class OBButtonWidget : public otk::OtkButton, public OBWidget +class OBButtonWidget : public otk::OtkWidget, public OBWidget { private: + void setTextures(); + bool _pressed; + unsigned int _button; public: OBButtonWidget(otk::OtkWidget *parent, OBWidget::WidgetType type); @@ -18,6 +21,12 @@ public: virtual void setStyle(otk::Style *style); virtual void adjust(); + + virtual void focus(); + virtual void unfocus(); + + virtual void buttonPressHandler(const XButtonEvent &e); + virtual void buttonReleaseHandler(const XButtonEvent &e); }; } |
