summaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/Theme.hh7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/FbTk/Theme.hh b/src/FbTk/Theme.hh
index 1872084..48e151d 100644
--- a/src/FbTk/Theme.hh
+++ b/src/FbTk/Theme.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: Theme.hh,v 1.4 2003/05/18 22:12:23 fluxgen Exp $ 22// $Id: Theme.hh,v 1.5 2003/08/11 14:55:14 fluxgen Exp $
23 23
24/** 24/**
25 @file holds ThemeItem<T>, Theme and ThemeManager which is the base for any theme 25 @file holds ThemeItem<T>, Theme and ThemeManager which is the base for any theme
@@ -33,6 +33,7 @@
33#include <string> 33#include <string>
34 34
35#include "XrmDatabaseHelper.hh" 35#include "XrmDatabaseHelper.hh"
36#include "Subject.hh"
36 37
37namespace FbTk { 38namespace FbTk {
38 39
@@ -101,10 +102,12 @@ public:
101 /// remove ThemeItem 102 /// remove ThemeItem
102 template <typename T> 103 template <typename T>
103 void remove(ThemeItem<T> &item); 104 void remove(ThemeItem<T> &item);
105 FbTk::Subject &reconfigSig() { return m_reconfig_sig; }
104private: 106private:
105 const int m_screen_num; 107 const int m_screen_num;
106 typedef std::list<ThemeItem_base *> ItemList; 108 typedef std::list<ThemeItem_base *> ItemList;
107 ItemList m_themeitems; 109 ItemList m_themeitems;
110 FbTk::Subject m_reconfig_sig;
108}; 111};
109 112
110 113
@@ -115,7 +118,7 @@ private:
115class ThemeManager { 118class ThemeManager {
116public: 119public:
117 static ThemeManager &instance(); 120 static ThemeManager &instance();
118 bool load(const char *filename); 121 bool load(const std::string &filename);
119 std::string resourceValue(const std::string &name, const std::string &altname); 122 std::string resourceValue(const std::string &name, const std::string &altname);
120 void loadTheme(Theme &tm); 123 void loadTheme(Theme &tm);
121private: 124private: