From 7a20120bbcba2ff9ca1465bc8d9a9a94b19c3a05 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 14 Sep 2003 11:17:21 +0000 Subject: minor debug stuff --- src/FbTk/Theme.cc | 49 ++++++++++++++++++++++++++++++++----------------- 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 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Theme.cc,v 1.18 2003/09/10 21:22:25 fluxgen Exp $ +// $Id: Theme.cc,v 1.19 2003/09/14 11:17:21 fluxgen Exp $ #include "Theme.hh" @@ -294,22 +294,37 @@ std::string ThemeManager::resourceValue(const std::string &name, const std::stri } /* - void ThemeManager::listItems() { - ThemeList::iterator it = m_themelist.begin(); - ThemeList::iterator it_end = m_themelist.end(); - for (; it != it_end; ++it) { - std::list::iterator item = (*it)->itemList().begin(); - std::list::iterator item_end = (*it)->itemList().end(); - for (; item != item_end; ++item) { - cerr<<(*item)->name()<<":"<)) { - cerr<<(*item)->name()<<".pixmap:"<name()<<".color:"<name()<<".colorTo:"<::iterator item = (*it)->itemList().begin(); + std::list::iterator item_end = (*it)->itemList().end(); + for (; item != item_end; ++item) { + + if (typeid(**item) == typeid(ThemeItem)) { + cerr<<(*item)->name()<<": "<name()<<".pixmap: "<name()<<".color: "<name()<<".colorTo: "<)) { + cerr<<(*item)->name()<<": "<)) { + cerr<<(*item)->name()<<": "<)) { + cerr<<(*item)->name()<<": "<)) { + cerr<<(*item)->name()<<": "<)) { + cerr<<(*item)->name()<<": "<)) { + cerr<<(*item)->name()<<": "<name()<<":"<, Theme and ThemeManager which is the base for any theme @@ -132,6 +132,7 @@ public: bool verbose() const { return m_verbose; } void setVerbose(bool value) { m_verbose = value; } + // void listItems(); private: ThemeManager(); ~ThemeManager() { } -- cgit v0.11.2