[yast-commit] r41352 - in /branches/tmp/sh/mod-ui/core/libyui/doc/examples: MenuButton1.ycp MenuButton2.ycp
Author: sh-sh-sh Date: Wed Oct 10 21:44:12 2007 New Revision: 41352 URL: http://svn.opensuse.org/viewcvs/yast?rev=41352&view=rev Log: formatting Modified: branches/tmp/sh/mod-ui/core/libyui/doc/examples/MenuButton1.ycp branches/tmp/sh/mod-ui/core/libyui/doc/examples/MenuButton2.ycp Modified: branches/tmp/sh/mod-ui/core/libyui/doc/examples/MenuButton1.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/doc/examples/MenuButton1.ycp?rev=41352&r1=41351&r2=41352&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/doc/examples/MenuButton1.ycp (original) +++ branches/tmp/sh/mod-ui/core/libyui/doc/examples/MenuButton1.ycp Wed Oct 10 21:44:12 2007 @@ -1,20 +1,19 @@ +// Build a dialog with one menu button. +// Wait the user selects a menu entry, +// then close the dialog and terminate. +// +// Please note that it's pretty pointless to create menu entries without an ID: +// You'd never know what entry the user selected. { - // Build a dialog with one menu button. - // Wait the user selects a menu entry, - // then close the dialog and terminate. - - // Please note it's pretty pointless to create menu entries without an ID - - // you'd never know what entry the user selected. - UI::OpenDialog( - `MenuButton( "&Create", - [ - `item(`id(`folder), "&Folder" ), - `item(`id(`text), "&Text File" ), - `item(`id(`image), "&Image" ) - ] - ) - ); + `MenuButton( "&Create", + [ + `item(`id(`folder), "&Folder" ), + `item(`id(`text), "&Text File" ), + `item(`id(`image), "&Image" ) + ] + ) + ); any id = UI::UserInput(); UI::CloseDialog(); Modified: branches/tmp/sh/mod-ui/core/libyui/doc/examples/MenuButton2.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/doc/examples/MenuButton2.ycp?rev=41352&r1=41351&r2=41352&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/doc/examples/MenuButton2.ycp (original) +++ branches/tmp/sh/mod-ui/core/libyui/doc/examples/MenuButton2.ycp Wed Oct 10 21:44:12 2007 @@ -1,24 +1,23 @@ +// Build a dialog with one menu button with a submenu. +// Wait the user selects a menu entry, +// then close the dialog and terminate. +// +// Please note that it's pretty pointless to create menu entries without an ID: +// You'd never know what entry the user selected. { - // Build a dialog with one menu button with a submenu. - // Wait the user selects a menu entry, - // then close the dialog and terminate. - - // Please note it's pretty pointless to create menu entries without an ID - - // you'd never know what entry the user selected. - - UI::OpenDialog( - `MenuButton( "&Create", - [ - `item(`id(`folder), "&Folder" ), - `menu( "&Document", - [ - `item(`id(`text), "&Text File" ), - `item(`id(`image), "&Image" ) - ] - ) - ] - ) - ); + UI::OpenDialog( + `MenuButton( "&Create", + [ + `item(`id(`folder), "&Folder" ), + `menu( "&Document", + [ + `item(`id(`text), "&Text File" ), + `item(`id(`image), "&Image" ) + ] + ) + ] + ) + ); any id = UI::UserInput(); UI::CloseDialog(); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
sh-sh-sh@svn.opensuse.org