diff options
author | Henrik Kinnunen <fluxgen@fluxbox.org> | 2010-03-26 17:15:45 (GMT) |
---|---|---|
committer | Henrik Kinnunen <fluxgen@fluxbox.org> | 2010-03-26 17:15:45 (GMT) |
commit | dd8fcc8b7b4c2bccf90edf9b0acfa52e21f5d1ce (patch) | |
tree | 9847618adbc8b6c156e8c3ad41bb2d55d74c1916 /src/WinButton.hh | |
parent | 9ad388c5bf160c8a6c90d76065286540274685fd (diff) | |
download | fluxbox-dd8fcc8b7b4c2bccf90edf9b0acfa52e21f5d1ce.zip fluxbox-dd8fcc8b7b4c2bccf90edf9b0acfa52e21f5d1ce.tar.bz2 |
Changed title signal in Focusable to new signal system
Diffstat (limited to 'src/WinButton.hh')
-rw-r--r-- | src/WinButton.hh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/WinButton.hh b/src/WinButton.hh index 7f40f1a..a116a15 100644 --- a/src/WinButton.hh +++ b/src/WinButton.hh | |||
@@ -25,6 +25,7 @@ | |||
25 | #include "FbTk/Button.hh" | 25 | #include "FbTk/Button.hh" |
26 | #include "FbTk/Observer.hh" | 26 | #include "FbTk/Observer.hh" |
27 | #include "FbTk/FbPixmap.hh" | 27 | #include "FbTk/FbPixmap.hh" |
28 | #include "FbTk/Signal.hh" | ||
28 | 29 | ||
29 | class FluxboxWindow; | 30 | class FluxboxWindow; |
30 | class WinButtonTheme; | 31 | class WinButtonTheme; |
@@ -35,7 +36,7 @@ template <class T> class ThemeProxy; | |||
35 | } | 36 | } |
36 | 37 | ||
37 | /// draws and handles basic window button graphic | 38 | /// draws and handles basic window button graphic |
38 | class WinButton:public FbTk::Button, public FbTk::Observer { | 39 | class WinButton:public FbTk::Button, public FbTk::Observer, public FbTk::SignalTracker { |
39 | public: | 40 | public: |
40 | /// draw type for the button | 41 | /// draw type for the button |
41 | enum Type {MAXIMIZE, MINIMIZE, SHADE, STICK, CLOSE, MENUICON}; | 42 | enum Type {MAXIMIZE, MINIMIZE, SHADE, STICK, CLOSE, MENUICON}; |
@@ -57,6 +58,7 @@ public: | |||
57 | /// override for redrawing | 58 | /// override for redrawing |
58 | void clear(); | 59 | void clear(); |
59 | void update(FbTk::Subject *subj); | 60 | void update(FbTk::Subject *subj); |
61 | void updateAll(); | ||
60 | private: | 62 | private: |
61 | void drawType(); | 63 | void drawType(); |
62 | Type m_type; ///< the button type | 64 | Type m_type; ///< the button type |