[yast-commit] r39869 - /branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.cc
Author: gs Date: Wed Aug 1 14:26:53 2007 New Revision: 39869 URL: http://svn.opensuse.org/viewcvs/yast?rev=39869&view=rev Log: should work like this - but NCTable is not in widget tree ? Modified: branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.cc Modified: branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.cc?rev=39869&r1=39868&r2=39869&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.cc (original) +++ branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.cc Wed Aug 1 14:26:53 2007 @@ -21,6 +21,7 @@ #include "NCTable.h" #include "YMenuButton.h" +#include "NCLayoutBox.h" /////////////////////////////////////////////////////////////////// // @@ -64,14 +65,22 @@ YWidgetOpt opt; opt.notifyMode.setValue( true ); - sellist = new NCTable( this, opt, row, false ); + NCMIL << "CurrentDialog: " << dynamic_cast<NCDialog *>(currentDialog()) << endl; + + NCLayoutBox * box = new NCLayoutBox( this, YD_VERT ); + NCMIL << "CurrentDialog firstChild: " << dynamic_cast<NCWidget *>(currentDialog()->firstChild()) << endl; + + sellist = new NCTable( box, opt, row, false ); + + //sellist= new NCTable( this, opt, row, false ); + sellist->setBigList( true ); sellist->SetSepChar( ' ' ); sellist->SetSepWidht( 0 ); sellist->SetHotCol( 0 ); - // don' t call addChild any longer! //addChild( sellist ); + currentDialog()->dumpWidgetTree(); } /////////////////////////////////////////////////////////////////// -- 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