aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Theme.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-09-14 11:17:21 (GMT)
committerfluxgen <fluxgen>2003-09-14 11:17:21 (GMT)
commit7a20120bbcba2ff9ca1465bc8d9a9a94b19c3a05 (patch)
tree15a08be4ad919ebba68f7cd852d2149c6ac8e015 /src/FbTk/Theme.cc
parent6ecc78fb5c23472281b093a9ce62d397b99573b6 (diff)
downloadfluxbox_pavel-7a20120bbcba2ff9ca1465bc8d9a9a94b19c3a05.zip
fluxbox_pavel-7a20120bbcba2ff9ca1465bc8d9a9a94b19c3a05.tar.bz2
minor debug stuff
Diffstat (limited to 'src/FbTk/Theme.cc')
-rw-r--r--src/FbTk/Theme.cc49
1 files changed, 32 insertions, 17 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() { 297void 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