diff options
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; |