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/IconbarTheme.hh | |
parent | b20b243b48683d209f8134b46c6dcea4df94b6cc (diff) | |
download | fluxbox_pavel-60ba709c2f47cc2c7b877aef1b0f297b097853e5.zip fluxbox_pavel-60ba709c2f47cc2c7b877aef1b0f297b097853e5.tar.bz2 |
add a level of indirection to themes
Diffstat (limited to 'src/IconbarTheme.hh')
-rw-r--r-- | src/IconbarTheme.hh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/IconbarTheme.hh b/src/IconbarTheme.hh index 6d41f28..3a56eb8 100644 --- a/src/IconbarTheme.hh +++ b/src/IconbarTheme.hh | |||
@@ -28,7 +28,7 @@ | |||
28 | #include "FbTk/Texture.hh" | 28 | #include "FbTk/Texture.hh" |
29 | #include "FbTk/TextTheme.hh" | 29 | #include "FbTk/TextTheme.hh" |
30 | 30 | ||
31 | class IconbarTheme:public FbTk::Theme { | 31 | class IconbarTheme: public FbTk::Theme, public FbTk::ThemeProxy<IconbarTheme> { |
32 | public: | 32 | public: |
33 | IconbarTheme(int screen_num, const std::string &name, const std::string &altname); | 33 | IconbarTheme(int screen_num, const std::string &name, const std::string &altname); |
34 | virtual ~IconbarTheme(); | 34 | virtual ~IconbarTheme(); |
@@ -47,6 +47,12 @@ public: | |||
47 | const FbTk::Texture &unfocusedTexture() const { return *m_unfocused_texture; } | 47 | const FbTk::Texture &unfocusedTexture() const { return *m_unfocused_texture; } |
48 | const FbTk::Texture &emptyTexture() const { return *m_empty_texture; } | 48 | const FbTk::Texture &emptyTexture() const { return *m_empty_texture; } |
49 | 49 | ||
50 | virtual FbTk::Subject &reconfigSig() { return FbTk::Theme::reconfigSig(); } | ||
51 | virtual const FbTk::Subject &reconfigSig() const { return FbTk::Theme::reconfigSig(); } | ||
52 | |||
53 | virtual IconbarTheme *operator ->() { return this; } | ||
54 | virtual const IconbarTheme *operator ->() const { return this; } | ||
55 | |||
50 | private: | 56 | private: |
51 | FbTk::ThemeItem<FbTk::Texture> m_focused_texture, m_unfocused_texture, m_empty_texture; | 57 | FbTk::ThemeItem<FbTk::Texture> m_focused_texture, m_unfocused_texture, m_empty_texture; |
52 | FbTk::BorderTheme m_focused_border, m_unfocused_border, m_border; | 58 | FbTk::BorderTheme m_focused_border, m_unfocused_border, m_border; |