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/ButtonTheme.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/ButtonTheme.hh')
-rw-r--r-- | src/ButtonTheme.hh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ButtonTheme.hh b/src/ButtonTheme.hh index 00c6446..7f43eb9 100644 --- a/src/ButtonTheme.hh +++ b/src/ButtonTheme.hh | |||
@@ -27,7 +27,7 @@ | |||
27 | 27 | ||
28 | #include "FbTk/GContext.hh" | 28 | #include "FbTk/GContext.hh" |
29 | 29 | ||
30 | class ButtonTheme: public ToolTheme { | 30 | class ButtonTheme: public ToolTheme, public FbTk::ThemeProxy<ButtonTheme> { |
31 | public: | 31 | public: |
32 | ButtonTheme(int screen_num, | 32 | ButtonTheme(int screen_num, |
33 | const std::string &name, const std::string &alt_name, | 33 | const std::string &name, const std::string &alt_name, |
@@ -43,6 +43,12 @@ public: | |||
43 | int scale() const { return *m_scale; } // scale factor for inside objects | 43 | int scale() const { return *m_scale; } // scale factor for inside objects |
44 | const std::string &name() { return m_name; } | 44 | const std::string &name() { return m_name; } |
45 | 45 | ||
46 | virtual FbTk::Subject &reconfigSig() { return FbTk::Theme::reconfigSig(); } | ||
47 | virtual const FbTk::Subject &reconfigSig() const { return FbTk::Theme::reconfigSig(); } | ||
48 | |||
49 | virtual ButtonTheme *operator ->() { return this; } | ||
50 | virtual const ButtonTheme *operator ->() const { return this; } | ||
51 | |||
46 | private: | 52 | private: |
47 | FbTk::ThemeItem<FbTk::Color> m_pic_color; | 53 | FbTk::ThemeItem<FbTk::Color> m_pic_color; |
48 | FbTk::ThemeItem<FbTk::Texture> m_pressed_texture; | 54 | FbTk::ThemeItem<FbTk::Texture> m_pressed_texture; |