aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Theme.hh
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-04-29 08:52:28 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-05-10 11:00:45 (GMT)
commitf7d7dfd2a8047207dbe90bc77592c25acf4ca15c (patch)
tree46eb8596d15fb0450f07e3e5d58e2c5449c4c020 /src/FbTk/Theme.hh
parent54230c9a4474baf4f1c56773992212093e222349 (diff)
downloadfluxbox-f7d7dfd2a8047207dbe90bc77592c25acf4ca15c.zip
fluxbox-f7d7dfd2a8047207dbe90bc77592c25acf4ca15c.tar.bz2
Convert FbTk::Theme::reconfigSig and friends to the new Signal system
I removed the const versions of reconfigSig() in the process since FbTk::Signal has no const methods anyway.
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;