aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Theme.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-08-19 21:25:26 (GMT)
committerfluxgen <fluxgen>2003-08-19 21:25:26 (GMT)
commit46ea237c383b6d305dfbea77c6bff54c7b73c2b3 (patch)
tree7301941923822c5e2f90fc50eaf6ab2541ea64f1 /src/FbTk/Theme.hh
parentce77642a0eb1901304cc56a879d6d2e21612c850 (diff)
downloadfluxbox_pavel-46ea237c383b6d305dfbea77c6bff54c7b73c2b3.zip
fluxbox_pavel-46ea237c383b6d305dfbea77c6bff54c7b73c2b3.tar.bz2
fixed load item
Diffstat (limited to 'src/FbTk/Theme.hh')
-rw-r--r--src/FbTk/Theme.hh8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/FbTk/Theme.hh b/src/FbTk/Theme.hh
index a857f67..ef9a13f 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.6 2003/08/13 09:24:33 fluxgen Exp $ 22// $Id: Theme.hh,v 1.7 2003/08/19 21:25:26 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
@@ -80,6 +80,8 @@ public:
80 inline T *operator->() { return &m_value; } 80 inline T *operator->() { return &m_value; }
81 inline const T *operator->() const { return &m_value; } 81 inline const T *operator->() const { return &m_value; }
82 /**@}*/ 82 /**@}*/
83
84 FbTk::Theme &theme() { return m_tm; }
83private: 85private:
84 86
85 T m_value; 87 T m_value;
@@ -102,6 +104,7 @@ public:
102 /// remove ThemeItem 104 /// remove ThemeItem
103 template <typename T> 105 template <typename T>
104 void remove(ThemeItem<T> &item); 106 void remove(ThemeItem<T> &item);
107 virtual bool fallback(ThemeItem_base &base) { return false; }
105 FbTk::Subject &reconfigSig() { return m_reconfig_sig; } 108 FbTk::Subject &reconfigSig() { return m_reconfig_sig; }
106private: 109private:
107 const int m_screen_num; 110 const int m_screen_num;
@@ -121,7 +124,8 @@ public:
121 bool load(const std::string &filename); 124 bool load(const std::string &filename);
122 std::string resourceValue(const std::string &name, const std::string &altname); 125 std::string resourceValue(const std::string &name, const std::string &altname);
123 void loadTheme(Theme &tm); 126 void loadTheme(Theme &tm);
124 void loadItem(ThemeItem_base &resource); 127 bool loadItem(ThemeItem_base &resource);
128 bool loadItem(ThemeItem_base &resource, const std::string &name, const std::string &altname);
125private: 129private:
126 ThemeManager(); 130 ThemeManager();
127 ~ThemeManager() { } 131 ~ThemeManager() { }