diff options
Diffstat (limited to 'src/WorkspaceNameTool.hh')
-rw-r--r-- | src/WorkspaceNameTool.hh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/WorkspaceNameTool.hh b/src/WorkspaceNameTool.hh index 0bdb528..bd034b7 100644 --- a/src/WorkspaceNameTool.hh +++ b/src/WorkspaceNameTool.hh | |||
@@ -27,6 +27,7 @@ | |||
27 | 27 | ||
28 | #include "FbTk/TextButton.hh" | 28 | #include "FbTk/TextButton.hh" |
29 | #include "FbTk/Observer.hh" | 29 | #include "FbTk/Observer.hh" |
30 | #include "FbTk/Signal.hh" | ||
30 | 31 | ||
31 | class BScreen; | 32 | class BScreen; |
32 | class ToolTheme; | 33 | class ToolTheme; |
@@ -35,7 +36,8 @@ namespace FbTk { | |||
35 | template <class T> class ThemeProxy; | 36 | template <class T> class ThemeProxy; |
36 | } | 37 | } |
37 | 38 | ||
38 | class WorkspaceNameTool: public ToolbarItem, public FbTk::Observer { | 39 | class WorkspaceNameTool: public ToolbarItem, public FbTk::Observer, |
40 | private FbTk::SignalTracker { | ||
39 | public: | 41 | public: |
40 | WorkspaceNameTool(const FbTk::FbWindow &parent, FbTk::ThemeProxy<ToolTheme> &theme, BScreen &screen); | 42 | WorkspaceNameTool(const FbTk::FbWindow &parent, FbTk::ThemeProxy<ToolTheme> &theme, BScreen &screen); |
41 | virtual ~WorkspaceNameTool(); | 43 | virtual ~WorkspaceNameTool(); |
@@ -59,6 +61,9 @@ public: | |||
59 | void parentMoved() { m_button.parentMoved(); } | 61 | void parentMoved() { m_button.parentMoved(); } |
60 | 62 | ||
61 | private: | 63 | private: |
64 | /// Called when workspace changed on \c screen | ||
65 | void updateForScreen(BScreen &screen); | ||
66 | |||
62 | void renderTheme(unsigned char alpha); | 67 | void renderTheme(unsigned char alpha); |
63 | void reRender(); | 68 | void reRender(); |
64 | void updateSizing(); | 69 | void updateSizing(); |