aboutsummaryrefslogtreecommitdiff
path: root/src/ToolbarTheme.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/ToolbarTheme.hh')
-rw-r--r--src/ToolbarTheme.hh13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/ToolbarTheme.hh b/src/ToolbarTheme.hh
index f40ed19..cbe9c90 100644
--- a/src/ToolbarTheme.hh
+++ b/src/ToolbarTheme.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: ToolbarTheme.hh,v 1.1 2002/12/02 19:56:08 fluxgen Exp $ 22// $Id: ToolbarTheme.hh,v 1.2 2003/02/15 01:58:52 fluxgen Exp $
23 23
24#ifndef TOOLBARTHEME_HH 24#ifndef TOOLBARTHEME_HH
25#define TOOLBARTHEME_HH 25#define TOOLBARTHEME_HH
@@ -29,9 +29,9 @@
29#include "Texture.hh" 29#include "Texture.hh"
30#include "Color.hh" 30#include "Color.hh"
31#include "Text.hh" 31#include "Text.hh"
32/** 32#include "Subject.hh"
33 Toolbar theme class container 33
34*/ 34/// toolbar theme class container
35class ToolbarTheme: public FbTk::Theme { 35class ToolbarTheme: public FbTk::Theme {
36public: 36public:
37 explicit ToolbarTheme(int screen_num); 37 explicit ToolbarTheme(int screen_num);
@@ -71,6 +71,9 @@ public:
71 GC buttonPicGC() const { return m_button_pic_gc; } 71 GC buttonPicGC() const { return m_button_pic_gc; }
72 ///@} 72 ///@}
73 FbTk::Justify justify() const { return *m_justify; } 73 FbTk::Justify justify() const { return *m_justify; }
74
75 void addListener(FbTk::Observer &obs) { m_theme_change_sig.attach(&obs); }
76 void removeListener(FbTk::Observer &obs) { m_theme_change_sig.detach(&obs); }
74private: 77private:
75 // text colors 78 // text colors
76 FbTk::ThemeItem<FbTk::Color> m_label_textcolor, m_window_textcolor, m_clock_textcolor; 79 FbTk::ThemeItem<FbTk::Color> m_label_textcolor, m_window_textcolor, m_clock_textcolor;
@@ -82,6 +85,8 @@ private:
82 // graphic context 85 // graphic context
83 GC m_label_text_gc, m_window_text_gc, m_clock_text_gc, m_button_pic_gc; 86 GC m_label_text_gc, m_window_text_gc, m_clock_text_gc, m_button_pic_gc;
84 Display *m_display; 87 Display *m_display;
88
89 FbTk::Subject m_theme_change_sig;
85}; 90};
86 91
87#endif // TOOLBARTHEME_HH 92#endif // TOOLBARTHEME_HH