aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrameTheme.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-02-15 01:59:00 (GMT)
committerfluxgen <fluxgen>2003-02-15 01:59:00 (GMT)
commitf25cf733d6fc1496f02514695948c09797755dae (patch)
tree33844f1a73c288d6d21dd4656920b3a2268f6e1b /src/FbWinFrameTheme.hh
parent2031f46de3475f52a54165740bf8c2b891b3bebe (diff)
downloadfluxbox-f25cf733d6fc1496f02514695948c09797755dae.zip
fluxbox-f25cf733d6fc1496f02514695948c09797755dae.tar.bz2
added theme listener subject
Diffstat (limited to 'src/FbWinFrameTheme.hh')
-rw-r--r--src/FbWinFrameTheme.hh8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/FbWinFrameTheme.hh b/src/FbWinFrameTheme.hh
index 4c702c4..d98b629 100644
--- a/src/FbWinFrameTheme.hh
+++ b/src/FbWinFrameTheme.hh
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbWinFrameTheme.hh,v 1.1 2003/01/05 22:14:10 fluxgen Exp $ 22// $Id: FbWinFrameTheme.hh,v 1.2 2003/02/15 01:55:27 fluxgen Exp $
23 23
24#ifndef FBWINFRAMETHEME_HH 24#ifndef FBWINFRAMETHEME_HH
25#define FBWINFRAMETHEME_HH 25#define FBWINFRAMETHEME_HH
@@ -29,6 +29,7 @@
29#include "Text.hh" 29#include "Text.hh"
30#include "Color.hh" 30#include "Color.hh"
31#include "FbTk/Theme.hh" 31#include "FbTk/Theme.hh"
32#include "Subject.hh"
32 33
33class FbWinFrameTheme: public FbTk::Theme { 34class FbWinFrameTheme: public FbTk::Theme {
34public: 35public:
@@ -76,6 +77,9 @@ public:
76 GC labelTextUnfocusGC() const { return m_label_text_unfocus_gc; } 77 GC labelTextUnfocusGC() const { return m_label_text_unfocus_gc; }
77 78
78 void reconfigTheme(); 79 void reconfigTheme();
80
81 void addListener(FbTk::Observer &obs) { m_theme_change.attach(&obs); }
82 void removeListener(FbTk::Observer &obs) { m_theme_change.detach(&obs); }
79private: 83private:
80 FbTk::ThemeItem<FbTk::Texture> m_label_focus, m_label_unfocus; 84 FbTk::ThemeItem<FbTk::Texture> m_label_focus, m_label_unfocus;
81 FbTk::ThemeItem<FbTk::Texture> m_title_focus, m_title_unfocus; 85 FbTk::ThemeItem<FbTk::Texture> m_title_focus, m_title_unfocus;
@@ -91,6 +95,8 @@ private:
91 FbTk::ThemeItem<FbTk::Justify> m_textjustify; 95 FbTk::ThemeItem<FbTk::Justify> m_textjustify;
92 96
93 GC m_label_text_focus_gc, m_label_text_unfocus_gc; 97 GC m_label_text_focus_gc, m_label_text_unfocus_gc;
98
99 FbTk::Subject m_theme_change;
94}; 100};
95 101
96#endif // FBWINFRAMETHEME_HH 102#endif // FBWINFRAMETHEME_HH