aboutsummaryrefslogtreecommitdiff
path: root/src/IconbarTheme.hh
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-01-04 09:06:38 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-01-04 09:06:38 (GMT)
commit60ba709c2f47cc2c7b877aef1b0f297b097853e5 (patch)
treec722b0dacce3c7c0b1df7bf6ccb2b322bc819f6b /src/IconbarTheme.hh
parentb20b243b48683d209f8134b46c6dcea4df94b6cc (diff)
downloadfluxbox-60ba709c2f47cc2c7b877aef1b0f297b097853e5.zip
fluxbox-60ba709c2f47cc2c7b877aef1b0f297b097853e5.tar.bz2
add a level of indirection to themes
Diffstat (limited to 'src/IconbarTheme.hh')
-rw-r--r--src/IconbarTheme.hh8
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
31class IconbarTheme:public FbTk::Theme { 31class IconbarTheme: public FbTk::Theme, public FbTk::ThemeProxy<IconbarTheme> {
32public: 32public:
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
50private: 56private:
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;