diff options
author | Sebastian Geerken <devnull@localhost> | 2013-01-05 12:33:01 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2013-01-05 12:33:01 +0100 |
commit | d9f1239bade6a1781ebc5626bbd405ecbe5ff253 (patch) | |
tree | 866d008726956d81ad85126b6a397d093883d5a3 /dw/iterator.cc | |
parent | 824cd84f321d358ab878b99cbaaef936823d8c8b (diff) |
More debugging stuff.
Diffstat (limited to 'dw/iterator.cc')
-rw-r--r-- | dw/iterator.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dw/iterator.cc b/dw/iterator.cc index 019d8e07..78ac55f6 100644 --- a/dw/iterator.cc +++ b/dw/iterator.cc @@ -507,14 +507,25 @@ DeepIterator::DeepIterator (Iterator *it) // \todo There may be a faster way instead of iterating through the // parent widgets. + //printf ("STARTING WITH: "); + //it->print (); + //printf ("\n"); + // Construct the iterators. int thisLevel = it->getWidget()->getLevel (), level; Widget *w; for (w = it->getWidget (), level = thisLevel; w->getParent() != NULL; w = w->getParent (), level--) { Iterator *it = w->getParent()->iterator (mask, false); + + //printf (" parent: %s %p\n", w->getClassName (), w); + stack.put (it, level - 1); while (true) { + //printf (" "); + //it->print (); + //printf ("\n"); + bool hasNext = it->next(); assert (hasNext); @@ -522,6 +533,7 @@ DeepIterator::DeepIterator (Iterator *it) it->getContent()->widget == w) break; } + } stack.put (it, thisLevel); |