Author: sh-sh-sh Date: Tue Mar 4 17:46:05 2008 New Revision: 45191 URL: http://svn.opensuse.org/viewcvs/yast?rev=45191&view=rev Log: examples Modified: trunk/ycp-ui-bindings/examples/Events.ycp trunk/ycp-ui-bindings/examples/SelectionBox3.ycp Modified: trunk/ycp-ui-bindings/examples/Events.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/ycp-ui-bindings/examples/Events.ycp?rev=45191&r1=45190&r2=45191&view=diff ============================================================================== --- trunk/ycp-ui-bindings/examples/Events.ycp (original) +++ trunk/ycp-ui-bindings/examples/Events.ycp Tue Mar 4 17:46:05 2008 @@ -10,7 +10,7 @@ { /** * Nicely (HTML-) format an event map. - + * * @param event The event map to format * @return html HTML code for the formatted event **/ @@ -249,6 +249,7 @@ } else if ( event["ID"]:nil == `cancel_order ) { + y2milestone( "Cancelling order" ); UI::ChangeWidget(`delivery_service, `Value, nil ); UI::ChangeWidget(`pizza, `Value, nil ); UI::ChangeWidget(`toppings, `CurrentItem, nil ); Modified: trunk/ycp-ui-bindings/examples/SelectionBox3.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/ycp-ui-bindings/examples/SelectionBox3.ycp?rev=45191&r1=45190&r2=45191&view=diff ============================================================================== --- trunk/ycp-ui-bindings/examples/SelectionBox3.ycp (original) +++ trunk/ycp-ui-bindings/examples/SelectionBox3.ycp Tue Mar 4 17:46:05 2008 @@ -18,7 +18,8 @@ ] ), `HBox( `PushButton(`id(`todays_special), `opt(`hstretch), "&Today's special" ), - `PushButton(`id(`veggie), `opt(`hstretch), "&Veggie" ) + `PushButton(`id(`veggie), `opt(`hstretch), "&Veggie" ), + `PushButton(`id(`none), `opt(`hstretch), "&Nothing" ) ), `PushButton(`id(`ok), `opt(`default), "&OK") ) @@ -30,8 +31,9 @@ { id = UI::UserInput(); - if ( id == `todays_special ) UI::ChangeWidget( `id( `pizza ), `CurrentItem, `nap ); - else if ( id == `veggie ) UI::ChangeWidget( `id( `pizza ), `CurrentItem, `fun ); + if ( id == `todays_special ) UI::ChangeWidget( `pizza, `CurrentItem, `nap ); + else if ( id == `veggie ) UI::ChangeWidget( `pizza, `CurrentItem, `fun ); + else if ( id == `none ) UI::ChangeWidget( `pizza, `CurrentItem, nil ); } until ( id == `ok ); // Get the input from the selection box. -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org