aboutsummaryrefslogtreecommitdiff
path: root/src/ToolbarTheme.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/ToolbarTheme.hh
parentb20b243b48683d209f8134b46c6dcea4df94b6cc (diff)
downloadfluxbox_pavel-60ba709c2f47cc2c7b877aef1b0f297b097853e5.zip
fluxbox_pavel-60ba709c2f47cc2c7b877aef1b0f297b097853e5.tar.bz2
add a level of indirection to themes
Diffstat (limited to 'src/ToolbarTheme.hh')
-rw-r--r--src/ToolbarTheme.hh9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ToolbarTheme.hh b/src/ToolbarTheme.hh
index 57f8eb1..1a183e2 100644
--- a/src/ToolbarTheme.hh
+++ b/src/ToolbarTheme.hh
@@ -27,7 +27,7 @@
27#include "FbTk/BorderTheme.hh" 27#include "FbTk/BorderTheme.hh"
28 28
29/// toolbar theme class container 29/// toolbar theme class container
30class ToolbarTheme: public FbTk::Theme { 30class ToolbarTheme: public FbTk::Theme, public FbTk::ThemeProxy<ToolbarTheme> {
31public: 31public:
32 explicit ToolbarTheme(int screen_num); 32 explicit ToolbarTheme(int screen_num);
33 virtual ~ToolbarTheme(); 33 virtual ~ToolbarTheme();
@@ -43,6 +43,13 @@ public:
43 bool shape() const { return *m_shape; } 43 bool shape() const { return *m_shape; }
44 int height() const { return *m_height; } 44 int height() const { return *m_height; }
45 int buttonSize() const { return *m_button_size; } 45 int buttonSize() const { return *m_button_size; }
46
47 virtual FbTk::Subject &reconfigSig() { return FbTk::Theme::reconfigSig(); }
48 virtual const FbTk::Subject &reconfigSig() const { return FbTk::Theme::reconfigSig(); }
49
50 virtual ToolbarTheme *operator ->() { return this; }
51 virtual const ToolbarTheme *operator ->() const { return this; }
52
46private: 53private:
47 FbTk::ThemeItem<FbTk::Texture> m_toolbar; 54 FbTk::ThemeItem<FbTk::Texture> m_toolbar;
48 FbTk::BorderTheme m_border; 55 FbTk::BorderTheme m_border;