Author: gs Date: Mon Apr 18 15:13:03 2011 New Revision: 63808 URL: http://svn.opensuse.org/viewcvs/yast?rev=63808&view=rev Log: option `recursiveSelection added Modified: trunk/ncurses/src/NCTree.cc trunk/ncurses/src/NCTree.h trunk/ncurses/src/NCWidgetFactory.cc trunk/ncurses/src/NCWidgetFactory.h Modified: trunk/ncurses/src/NCTree.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCTree.cc?rev=63808&r1=63807&r2=63808&view=diff ============================================================================== --- trunk/ncurses/src/NCTree.cc (original) +++ trunk/ncurses/src/NCTree.cc Mon Apr 18 15:13:03 2011 @@ -242,12 +242,18 @@ -NCTree::NCTree( YWidget * parent, const string & nlabel, bool multiselection ) - : YTree( parent, nlabel, multiselection ) +NCTree::NCTree( YWidget * parent, const string & nlabel, bool multiselection, bool recursiveselection ) + : YTree( parent, nlabel, multiselection, recursiveselection ) , NCPadWidget( parent ) , multiSel ( multiselection ) { yuiDebug() << endl; + + if ( multiselection && recursiveselection ) + yuiMilestone() << "NCTree recursive multi selection ON" << endl; + else if ( multiselection ) + yuiMilestone() << "NCTree multi selection ON" << endl; + setLabel( nlabel ); } Modified: trunk/ncurses/src/NCTree.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCTree.h?rev=63808&r1=63807&r2=63808&view=diff ============================================================================== --- trunk/ncurses/src/NCTree.h (original) +++ trunk/ncurses/src/NCTree.h Mon Apr 18 15:13:03 2011 @@ -60,7 +60,7 @@ public: - NCTree( YWidget * parent, const string & label, bool multiselection ); + NCTree( YWidget * parent, const string & label, bool multiselection, bool recursiveSelection ); virtual ~NCTree(); virtual int preferredWidth(); Modified: trunk/ncurses/src/NCWidgetFactory.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCWidgetFactory.cc?rev=63808&r1=63807&r2=63808&view=diff ============================================================================== --- trunk/ncurses/src/NCWidgetFactory.cc (original) +++ trunk/ncurses/src/NCWidgetFactory.cc Mon Apr 18 15:13:03 2011 @@ -153,9 +153,9 @@ NCTree * -NCWidgetFactory::createTree( YWidget * parent, const string & label, bool multiselection ) +NCWidgetFactory::createTree( YWidget * parent, const string & label, bool multiselection, bool recursiveselection ) { - NCTree * tree = new NCTree( parent, label, multiselection ); + NCTree * tree = new NCTree( parent, label, multiselection, recursiveselection ); YUI_CHECK_NEW( tree ); return tree; Modified: trunk/ncurses/src/NCWidgetFactory.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCWidgetFactory.h?rev=63808&r1=63807&r2=63808&view=diff ============================================================================== --- trunk/ncurses/src/NCWidgetFactory.h (original) +++ trunk/ncurses/src/NCWidgetFactory.h Mon Apr 18 15:13:03 2011 @@ -93,7 +93,7 @@ virtual NCRadioButton * createRadioButton ( YWidget * parent, const string & label, bool isChecked = false ); virtual NCComboBox * createComboBox ( YWidget * parent, const string & label, bool editable = false ); virtual NCSelectionBox * createSelectionBox ( YWidget * parent, const string & label ); - virtual NCTree * createTree ( YWidget * parent, const string & label, bool multiselection = false ); + virtual NCTree * createTree ( YWidget * parent, const string & label, bool multiselection = false, bool recursiveselection = false ); virtual NCTable * createTable ( YWidget * parent, YTableHeader * tableHeader, bool multiSelection = false ); virtual NCProgressBar * createProgressBar ( YWidget * parent, const string & label, int maxValue = 100 ); virtual NCRichText * createRichText ( YWidget * parent, const string & text = string(), bool plainTextMode = false ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org