aboutsummaryrefslogtreecommitdiff
path: root/src/WorkspaceNameTool.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/WorkspaceNameTool.hh')
-rw-r--r--src/WorkspaceNameTool.hh7
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
31class BScreen; 32class BScreen;
32class ToolTheme; 33class ToolTheme;
@@ -35,7 +36,8 @@ namespace FbTk {
35template <class T> class ThemeProxy; 36template <class T> class ThemeProxy;
36} 37}
37 38
38class WorkspaceNameTool: public ToolbarItem, public FbTk::Observer { 39class WorkspaceNameTool: public ToolbarItem, public FbTk::Observer,
40 private FbTk::SignalTracker {
39public: 41public:
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
61private: 63private:
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();