[yast-commit] r40585 - /branches/tmp/sh/mod-ui/ncurses/src/NCAskForDirectory.cc
Author: gs Date: Wed Aug 29 15:22:36 2007 New Revision: 40585 URL: http://svn.opensuse.org/viewcvs/yast?rev=40585&view=rev Log: setFunctionKey Modified: branches/tmp/sh/mod-ui/ncurses/src/NCAskForDirectory.cc Modified: branches/tmp/sh/mod-ui/ncurses/src/NCAskForDirectory.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCAskForDirectory.cc?rev=40585&r1=40584&r2=40585&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/NCAskForDirectory.cc (original) +++ branches/tmp/sh/mod-ui/ncurses/src/NCAskForDirectory.cc Wed Aug 29 15:22:36 2007 @@ -152,20 +152,24 @@ //hSplit1->addChild( new NCSpacing( hSplit1, opt, 0.2, true, false ) ); new NCSpacing( hSplit1, YD_HORIZ, true, 0.2 ); // stretchable = true + opt.key_Fxx.setValue( 10 ); // see okButton + // add the OK button - opt.key_Fxx.setValue( 10 ); - // the label of an OK button okButton = new NCPushButton( hSplit1, _( "&OK" ) ); + okButton->setFunctionKey( 10 ); + YStringWidgetID * okID = new YStringWidgetID ( idOk ); okButton->setId( okID ); //hSplit1->addChild( new NCSpacing( hSplit1, opt, 0.4, true, false ) ); new NCSpacing( hSplit1, YD_HORIZ, true, 0.4 ); + opt.key_Fxx.setValue( 9 ); // see cancelButton + // add the Cancel button - opt.key_Fxx.setValue( 9 ); - // the label of the Cancel button cancelButton = new NCPushButton( hSplit1, _( "&Cancel" ) ); + cancelButton->setFunctionKey( 9 ); + YStringWidgetID * cancelID = new YStringWidgetID (idCancel ); cancelButton->setId( cancelID ); -- 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