aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Theme.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/Theme.hh')
-rw-r--r--src/FbTk/Theme.hh11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/FbTk/Theme.hh b/src/FbTk/Theme.hh
index c331ba5..c700f9b 100644
--- a/src/FbTk/Theme.hh
+++ b/src/FbTk/Theme.hh
@@ -26,8 +26,8 @@
26#ifndef FBTK_THEME_HH 26#ifndef FBTK_THEME_HH
27#define FBTK_THEME_HH 27#define FBTK_THEME_HH
28 28
29#include "Signal.hh"
29#include "XrmDatabaseHelper.hh" 30#include "XrmDatabaseHelper.hh"
30#include "Subject.hh"
31 31
32#include <string> 32#include <string>
33#include <list> 33#include <list>
@@ -107,15 +107,13 @@ public:
107 template <typename T> 107 template <typename T>
108 void remove(ThemeItem<T> &item); 108 void remove(ThemeItem<T> &item);
109 virtual bool fallback(ThemeItem_base &) { return false; } 109 virtual bool fallback(ThemeItem_base &) { return false; }
110 FbTk::Subject &reconfigSig() { return m_reconfig_sig; } 110 Signal<void> &reconfigSig() { return m_reconfig_sig; }
111 const FbTk::Subject &reconfigSig() const { return m_reconfig_sig; }
112
113 111
114private: 112private:
115 const int m_screen_num; 113 const int m_screen_num;
116 114
117 ItemList m_themeitems; 115 ItemList m_themeitems;
118 FbTk::Subject m_reconfig_sig; 116 Signal<void> m_reconfig_sig;
119}; 117};
120 118
121/// Proxy interface for themes, so they can be substituted dynamically 119/// Proxy interface for themes, so they can be substituted dynamically
@@ -124,8 +122,7 @@ class ThemeProxy {
124public: 122public:
125 virtual ~ThemeProxy() { } 123 virtual ~ThemeProxy() { }
126 124
127 virtual Subject &reconfigSig() = 0; 125 virtual Signal<void> &reconfigSig() = 0;
128 virtual const Subject &reconfigSig() const = 0;
129 126
130 virtual BaseTheme &operator *() = 0; 127 virtual BaseTheme &operator *() = 0;
131 virtual const BaseTheme &operator *() const = 0; 128 virtual const BaseTheme &operator *() const = 0;