Author: gs Date: Wed Feb 9 13:41:19 2011 New Revision: 63383 URL: http://svn.opensuse.org/viewcvs/yast?rev=63383&view=rev Log: currentItem implemented correctly Modified: trunk/ncurses/src/NCTree.cc trunk/ncurses/src/NCTree.h Modified: trunk/ncurses/src/NCTree.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCTree.cc?rev=63383&r1=63382&r2=63383&view=diff ============================================================================== --- trunk/ncurses/src/NCTree.cc (original) +++ trunk/ncurses/src/NCTree.cc Wed Feb 9 13:41:19 2011 @@ -472,8 +472,11 @@ } } - - +// Returns current item (pure virtual in YTree) +YTreeItem * NCTree::currentItem() +{ + return getCurrentItem(); +} // Fills TreePad with lines (uses CreateTreeLines to create them) void NCTree::DrawPad() Modified: trunk/ncurses/src/NCTree.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCTree.h?rev=63383&r1=63382&r2=63383&view=diff ============================================================================== --- trunk/ncurses/src/NCTree.h (original) +++ trunk/ncurses/src/NCTree.h Wed Feb 9 13:41:19 2011 @@ -73,6 +73,8 @@ virtual YTreeItem * getCurrentItem() const; + virtual YTreeItem * currentItem(); + virtual void selectItem( YItem *item, bool selected ); virtual void selectItem( int index ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org