aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Theme.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-08-28 23:06:27 (GMT)
committerfluxgen <fluxgen>2003-08-28 23:06:27 (GMT)
commitec235918df48427817521d6df9fde4cbe56c82d7 (patch)
tree10bb5170094eb004b5b294ecf882168b611572bd /src/FbTk/Theme.hh
parent95021a60ab0017c0544b3d239d5aa5e3d0d6daf9 (diff)
downloadfluxbox-ec235918df48427817521d6df9fde4cbe56c82d7.zip
fluxbox-ec235918df48427817521d6df9fde4cbe56c82d7.tar.bz2
verbose setting on theme warnings
Diffstat (limited to 'src/FbTk/Theme.hh')
-rw-r--r--src/FbTk/Theme.hh9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/FbTk/Theme.hh b/src/FbTk/Theme.hh
index 563796d..b939747 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.8 2003/08/28 14:19:27 fluxgen Exp $ 22// $Id: Theme.hh,v 1.9 2003/08/28 23:05:29 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
@@ -106,6 +106,8 @@ public:
106 void remove(ThemeItem<T> &item); 106 void remove(ThemeItem<T> &item);
107 virtual bool fallback(ThemeItem_base &base) { return false; } 107 virtual bool fallback(ThemeItem_base &base) { return false; }
108 FbTk::Subject &reconfigSig() { return m_reconfig_sig; } 108 FbTk::Subject &reconfigSig() { return m_reconfig_sig; }
109
110
109private: 111private:
110 const int m_screen_num; 112 const int m_screen_num;
111 typedef std::list<ThemeItem_base *> ItemList; 113 typedef std::list<ThemeItem_base *> ItemList;
@@ -121,11 +123,15 @@ private:
121class ThemeManager { 123class ThemeManager {
122public: 124public:
123 static ThemeManager &instance(); 125 static ThemeManager &instance();
126
124 bool load(const std::string &filename); 127 bool load(const std::string &filename);
125 std::string resourceValue(const std::string &name, const std::string &altname); 128 std::string resourceValue(const std::string &name, const std::string &altname);
126 void loadTheme(Theme &tm); 129 void loadTheme(Theme &tm);
127 bool loadItem(ThemeItem_base &resource); 130 bool loadItem(ThemeItem_base &resource);
128 bool loadItem(ThemeItem_base &resource, const std::string &name, const std::string &altname); 131 bool loadItem(ThemeItem_base &resource, const std::string &name, const std::string &altname);
132
133 bool verbose() const { return m_verbose; }
134 void setVerbose(bool value) { m_verbose = value; }
129private: 135private:
130 ThemeManager(); 136 ThemeManager();
131 ~ThemeManager() { } 137 ~ThemeManager() { }
@@ -141,6 +147,7 @@ private:
141 ThemeList m_themelist; 147 ThemeList m_themelist;
142 const int m_max_screens; 148 const int m_max_screens;
143 XrmDatabaseHelper m_database; 149 XrmDatabaseHelper m_database;
150 bool m_verbose;
144}; 151};
145 152
146 153