aboutsummaryrefslogtreecommitdiff
path: root/src/ToolTheme.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/ToolTheme.hh')
-rw-r--r--src/ToolTheme.hh9
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
32class ToolTheme: public FbTk::Theme, public FbTk::TextTheme { 32class ToolTheme: public FbTk::Theme, public FbTk::TextTheme,
33 public FbTk::ThemeProxy<ToolTheme> {
33public: 34public:
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
46protected: 53protected:
47 FbTk::ThemeItem<FbTk::Texture> &textureTheme() { return m_texture; } 54 FbTk::ThemeItem<FbTk::Texture> &textureTheme() { return m_texture; }
48 55