[yast-commit] r45087 - in /branches/tmp/bubli/ncurses-pkg/src: NCPkgPopupTree.cc NCPkgPopupTree.h
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/NCPkgPopupTree.cc?rev=45087&r1=45086&r2=45087&view=diff ============================================================================== --- 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/NCPkgPopupTree.h?rev=45087&r1=45086&r2=45087&view=diff ============================================================================== --- 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: -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
kmachalkova@svn.opensuse.org