diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-04 09:06:38 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-04 09:06:38 (GMT) |
commit | 60ba709c2f47cc2c7b877aef1b0f297b097853e5 (patch) | |
tree | c722b0dacce3c7c0b1df7bf6ccb2b322bc819f6b /src/ToolTheme.hh | |
parent | b20b243b48683d209f8134b46c6dcea4df94b6cc (diff) | |
download | fluxbox-60ba709c2f47cc2c7b877aef1b0f297b097853e5.zip fluxbox-60ba709c2f47cc2c7b877aef1b0f297b097853e5.tar.bz2 |
add a level of indirection to themes
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 | ||