aboutsummaryrefslogtreecommitdiff
path: root/src/WinButton.hh
diff options
context:
space:
mode:
authorHenrik Kinnunen <fluxgen@fluxbox.org>2010-03-26 17:15:45 (GMT)
committerHenrik Kinnunen <fluxgen@fluxbox.org>2010-03-26 17:15:45 (GMT)
commitdd8fcc8b7b4c2bccf90edf9b0acfa52e21f5d1ce (patch)
tree9847618adbc8b6c156e8c3ad41bb2d55d74c1916 /src/WinButton.hh
parent9ad388c5bf160c8a6c90d76065286540274685fd (diff)
downloadfluxbox-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.hh4
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
29class FluxboxWindow; 30class FluxboxWindow;
30class WinButtonTheme; 31class 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
38class WinButton:public FbTk::Button, public FbTk::Observer { 39class WinButton:public FbTk::Button, public FbTk::Observer, public FbTk::SignalTracker {
39public: 40public:
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();
60private: 62private:
61 void drawType(); 63 void drawType();
62 Type m_type; ///< the button type 64 Type m_type; ///< the button type