diff options
Diffstat (limited to 'src/ToolTheme.hh')
-rw-r--r-- | src/ToolTheme.hh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ToolTheme.hh b/src/ToolTheme.hh index b9d98df..552e8f8 100644 --- a/src/ToolTheme.hh +++ b/src/ToolTheme.hh | |||
@@ -29,7 +29,8 @@ | |||
29 | #include "FbTk/Texture.hh" | 29 | #include "FbTk/Texture.hh" |
30 | 30 | ||
31 | /// Handles toolbar item theme for text and texture | 31 | /// Handles toolbar item theme for text and texture |
32 | class ToolTheme: public FbTk::Theme, public FbTk::TextTheme { | 32 | class ToolTheme: public FbTk::Theme, public FbTk::TextTheme, |
33 | public FbTk::ThemeProxy<ToolTheme> { | ||
33 | public: | 34 | public: |
34 | ToolTheme(int screen_num, const std::string &name, const std::string &altname); | 35 | ToolTheme(int screen_num, const std::string &name, const std::string &altname); |
35 | virtual ~ToolTheme(); | 36 | virtual ~ToolTheme(); |
@@ -43,6 +44,12 @@ public: | |||
43 | unsigned char alpha() const { return m_alpha; } | 44 | unsigned char alpha() const { return m_alpha; } |
44 | void setAlpha(unsigned char alpha) { m_alpha = alpha; } | 45 | void setAlpha(unsigned char alpha) { m_alpha = alpha; } |
45 | 46 | ||
47 | virtual FbTk::Subject &reconfigSig() { return FbTk::Theme::reconfigSig(); } | ||
48 | virtual const FbTk::Subject &reconfigSig() const { return FbTk::Theme::reconfigSig(); } | ||
49 | |||
50 | virtual ToolTheme *operator ->() { return this; } | ||
51 | virtual const ToolTheme *operator ->() const { return this; } | ||
52 | |||
46 | protected: | 53 | protected: |
47 | FbTk::ThemeItem<FbTk::Texture> &textureTheme() { return m_texture; } | 54 | FbTk::ThemeItem<FbTk::Texture> &textureTheme() { return m_texture; } |
48 | 55 | ||