Author: kmachalkova Date: Wed Feb 27 17:35:13 2008 New Revision: 45087
URL: http://svn.opensuse.org/viewcvs/yast?rev=45087&view=rev Log: event handling
Modified: branches/tmp/bubli/ncurses-pkg/src/NCPkgPopupTree.cc branches/tmp/bubli/ncurses-pkg/src/NCPkgPopupTree.h
Modified: branches/tmp/bubli/ncurses-pkg/src/NCPkgPopupTree.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/bubli/ncurses-pkg/src/NCPk... ============================================================================== --- branches/tmp/bubli/ncurses-pkg/src/NCPkgPopupTree.cc (original) +++ branches/tmp/bubli/ncurses-pkg/src/NCPkgPopupTree.cc Wed Feb 27 17:35:13 2008 @@ -88,6 +88,7 @@ // create the layout (the NCTree) //createLayout( NCPkgNames::RpmTreeLabel() );
+ setNotify(true); if ( pkg->rpmGroupsTree() ) { // clone the tree (fill the NCTree) @@ -256,13 +257,13 @@ //// //// DESCRIPTION : //// -//NCursesEvent NCPkgPopupTree::wHandleInput( wint_t ch ) -//{ -// if ( ch == 27 ) // ESC -// return NCursesEvent::cancel; -// -// return NCDialog::wHandleInput( ch ); -//} +NCursesEvent NCPkgPopupTree::wHandleInput( wint_t ch ) +{ + if ( ch == 27 ) // ESC + return NCursesEvent::cancel; + + return NCTree::wHandleInput( ch ); +} // ///////////////////////////////////////////////////////////////////// ////
Modified: branches/tmp/bubli/ncurses-pkg/src/NCPkgPopupTree.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/bubli/ncurses-pkg/src/NCPk... ============================================================================== --- branches/tmp/bubli/ncurses-pkg/src/NCPkgPopupTree.h (original) +++ branches/tmp/bubli/ncurses-pkg/src/NCPkgPopupTree.h Wed Feb 27 17:35:13 2008 @@ -63,7 +63,7 @@
//virtual bool postAgain();
- //virtual NCursesEvent wHandleInput( wint_t ch ); + virtual NCursesEvent wHandleInput( wint_t ch );
public:
yast-commit@lists.opensuse.org