[yast-commit] r48521 - in /trunk/ncurses/src: NCDumbTab.cc NCDumbTab.h
Author: gs Date: Wed Jun 25 11:59:44 2008 New Revision: 48521 URL: http://svn.opensuse.org/viewcvs/yast?rev=48521&view=rev Log: redraw all childs Modified: trunk/ncurses/src/NCDumbTab.cc trunk/ncurses/src/NCDumbTab.h Modified: trunk/ncurses/src/NCDumbTab.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCDumbTab.cc?rev=4852... ============================================================================== --- trunk/ncurses/src/NCDumbTab.cc (original) +++ trunk/ncurses/src/NCDumbTab.cc Wed Jun 25 11:59:44 2008 @@ -184,6 +184,31 @@ winWidth -= (*listIt).width() -1; } }; - NCWidget * child = dynamic_cast<NCWidget *>(firstChild()); - child->Redraw(); + + if ( firstChild() ) + { + NCWidget * child = dynamic_cast<NCWidget *>(firstChild()); + if ( child ) + child->Redraw(); + + redrawChilds( firstChild() ); + } + } + +void NCDumbTab::redrawChilds( YWidget *widget ) +{ + NCWidget * child; + + if ( widget->hasChildren() ) + { + YWidgetListConstIterator widgetIt = widget->childrenBegin(); + while ( widgetIt != widget->childrenEnd() ) + { + child = dynamic_cast<NCWidget *>(*widgetIt); + if ( child ) + child->Redraw(); + redrawChilds( *widgetIt ); + ++widgetIt; + } + } } Modified: trunk/ncurses/src/NCDumbTab.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCDumbTab.h?rev=48521... ============================================================================== --- trunk/ncurses/src/NCDumbTab.h (original) +++ trunk/ncurses/src/NCDumbTab.h Wed Jun 25 11:59:44 2008 @@ -42,7 +42,8 @@ virtual const char * location() const { return "NCDumbTab"; } virtual void wRedraw(); - + void redrawChilds( YWidget *widget ); + public: NCDumbTab( YWidget * parent ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
gs@svn.opensuse.org