diff options
author | fluxgen <fluxgen> | 2003-09-14 11:17:21 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-09-14 11:17:21 (GMT) |
commit | 7a20120bbcba2ff9ca1465bc8d9a9a94b19c3a05 (patch) | |
tree | 15a08be4ad919ebba68f7cd852d2149c6ac8e015 /src/FbTk | |
parent | 6ecc78fb5c23472281b093a9ce62d397b99573b6 (diff) | |
download | fluxbox_paul-7a20120bbcba2ff9ca1465bc8d9a9a94b19c3a05.zip fluxbox_paul-7a20120bbcba2ff9ca1465bc8d9a9a94b19c3a05.tar.bz2 |
minor debug stuff
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/Theme.cc | 49 | ||||
-rw-r--r-- | src/FbTk/Theme.hh | 3 |
2 files changed, 34 insertions, 18 deletions
diff --git a/src/FbTk/Theme.cc b/src/FbTk/Theme.cc index fab91b6..0c13a9c 100644 --- a/src/FbTk/Theme.cc +++ b/src/FbTk/Theme.cc | |||
@@ -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.cc,v 1.18 2003/09/10 21:22:25 fluxgen Exp $ | 22 | // $Id: Theme.cc,v 1.19 2003/09/14 11:17:21 fluxgen Exp $ |
23 | 23 | ||
24 | #include "Theme.hh" | 24 | #include "Theme.hh" |
25 | 25 | ||
@@ -294,22 +294,37 @@ std::string ThemeManager::resourceValue(const std::string &name, const std::stri | |||
294 | } | 294 | } |
295 | 295 | ||
296 | /* | 296 | /* |
297 | void ThemeManager::listItems() { | 297 | void ThemeManager::listItems() { |
298 | ThemeList::iterator it = m_themelist.begin(); | 298 | ThemeList::iterator it = m_themelist.begin(); |
299 | ThemeList::iterator it_end = m_themelist.end(); | 299 | ThemeList::iterator it_end = m_themelist.end(); |
300 | for (; it != it_end; ++it) { | 300 | for (; it != it_end; ++it) { |
301 | std::list<ThemeItem_base *>::iterator item = (*it)->itemList().begin(); | 301 | std::list<ThemeItem_base *>::iterator item = (*it)->itemList().begin(); |
302 | std::list<ThemeItem_base *>::iterator item_end = (*it)->itemList().end(); | 302 | std::list<ThemeItem_base *>::iterator item_end = (*it)->itemList().end(); |
303 | for (; item != item_end; ++item) { | 303 | for (; item != item_end; ++item) { |
304 | cerr<<(*item)->name()<<":"<<endl; | 304 | |
305 | if (typeid(**item) == typeid(ThemeItem<Texture>)) { | 305 | if (typeid(**item) == typeid(ThemeItem<Texture>)) { |
306 | cerr<<(*item)->name()<<".pixmap:"<<endl; | 306 | cerr<<(*item)->name()<<": <texture type>"<<endl; |
307 | cerr<<(*item)->name()<<".color:"<<endl; | 307 | cerr<<(*item)->name()<<".pixmap: <filename>"<<endl; |
308 | cerr<<(*item)->name()<<".colorTo:"<<endl; | 308 | cerr<<(*item)->name()<<".color: <color>"<<endl; |
309 | } | 309 | cerr<<(*item)->name()<<".colorTo: <color>"<<endl; |
310 | } | 310 | } else if (typeid(**item) == typeid(ThemeItem<Color>)) { |
311 | } | 311 | cerr<<(*item)->name()<<": <color>"<<endl; |
312 | } else if (typeid(**item) == typeid(ThemeItem<int>)) { | ||
313 | cerr<<(*item)->name()<<": <integer>"<<endl; | ||
314 | } else if (typeid(**item) == typeid(ThemeItem<bool>)) { | ||
315 | cerr<<(*item)->name()<<": <boolean>"<<endl; | ||
316 | } else if (typeid(**item) == typeid(ThemeItem<PixmapWithMask>)) { | ||
317 | cerr<<(*item)->name()<<": <filename>"<<endl; | ||
318 | } else if (typeid(**item) == typeid(ThemeItem<std::string>)) { | ||
319 | cerr<<(*item)->name()<<": <string>"<<endl; | ||
320 | } else if (typeid(**item) == typeid(ThemeItem<Font>)) { | ||
321 | cerr<<(*item)->name()<<": <font>"<<endl; | ||
322 | } else { | ||
323 | cerr<<(*item)->name()<<":"<<endl; | ||
324 | } | ||
325 | } | ||
326 | } | ||
312 | 327 | ||
313 | } | 328 | } |
314 | */ | 329 | */ |
315 | }; // end namespace FbTk | 330 | }; // end namespace FbTk |
diff --git a/src/FbTk/Theme.hh b/src/FbTk/Theme.hh index b939747..42064f8 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.9 2003/08/28 23:05:29 fluxgen Exp $ | 22 | // $Id: Theme.hh,v 1.10 2003/09/14 11:17:21 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 |
@@ -132,6 +132,7 @@ public: | |||
132 | 132 | ||
133 | bool verbose() const { return m_verbose; } | 133 | bool verbose() const { return m_verbose; } |
134 | void setVerbose(bool value) { m_verbose = value; } | 134 | void setVerbose(bool value) { m_verbose = value; } |
135 | // void listItems(); | ||
135 | private: | 136 | private: |
136 | ThemeManager(); | 137 | ThemeManager(); |
137 | ~ThemeManager() { } | 138 | ~ThemeManager() { } |