diff options
Diffstat (limited to 'src/ToolbarTheme.hh')
-rw-r--r-- | src/ToolbarTheme.hh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ToolbarTheme.hh b/src/ToolbarTheme.hh index 57f8eb1..1a183e2 100644 --- a/src/ToolbarTheme.hh +++ b/src/ToolbarTheme.hh | |||
@@ -27,7 +27,7 @@ | |||
27 | #include "FbTk/BorderTheme.hh" | 27 | #include "FbTk/BorderTheme.hh" |
28 | 28 | ||
29 | /// toolbar theme class container | 29 | /// toolbar theme class container |
30 | class ToolbarTheme: public FbTk::Theme { | 30 | class ToolbarTheme: public FbTk::Theme, public FbTk::ThemeProxy<ToolbarTheme> { |
31 | public: | 31 | public: |
32 | explicit ToolbarTheme(int screen_num); | 32 | explicit ToolbarTheme(int screen_num); |
33 | virtual ~ToolbarTheme(); | 33 | virtual ~ToolbarTheme(); |
@@ -43,6 +43,13 @@ public: | |||
43 | bool shape() const { return *m_shape; } | 43 | bool shape() const { return *m_shape; } |
44 | int height() const { return *m_height; } | 44 | int height() const { return *m_height; } |
45 | int buttonSize() const { return *m_button_size; } | 45 | int buttonSize() const { return *m_button_size; } |
46 | |||
47 | virtual FbTk::Subject &reconfigSig() { return FbTk::Theme::reconfigSig(); } | ||
48 | virtual const FbTk::Subject &reconfigSig() const { return FbTk::Theme::reconfigSig(); } | ||
49 | |||
50 | virtual ToolbarTheme *operator ->() { return this; } | ||
51 | virtual const ToolbarTheme *operator ->() const { return this; } | ||
52 | |||
46 | private: | 53 | private: |
47 | FbTk::ThemeItem<FbTk::Texture> m_toolbar; | 54 | FbTk::ThemeItem<FbTk::Texture> m_toolbar; |
48 | FbTk::BorderTheme m_border; | 55 | FbTk::BorderTheme m_border; |