[yast-commit] r63416 - /trunk/ycp-ui-bindings/examples/Tree-Checkbox2.ycp

Author: gs Date: Tue Feb 15 12:20:25 2011 New Revision: 63416 URL: http://svn.opensuse.org/viewcvs/yast?rev=63416&view=rev Log: log current item Modified: trunk/ycp-ui-bindings/examples/Tree-Checkbox2.ycp Modified: trunk/ycp-ui-bindings/examples/Tree-Checkbox2.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/ycp-ui-bindings/examples/Tree-Che... ============================================================================== --- trunk/ycp-ui-bindings/examples/Tree-Checkbox2.ycp (original) +++ trunk/ycp-ui-bindings/examples/Tree-Checkbox2.ycp Tue Feb 15 12:20:25 2011 @@ -14,8 +14,8 @@ ), `item(`id( "mouse" ), `icon( "yast-mouse.png" ), "Mouse" ), `item(`id( "lan" ), `icon( "yast-lan.png" ), "Network" ), - `item(`id( `xmas ), `icon( "yast-software.png" ), "Merry X-Mas" ), - `item(`id( `newyear ), `icon( "yast-software.png" ), "Happy New Year" ) + `item(`id( "xmas" ), `icon( "yast-software.png" ), "Merry X-Mas" ), + `item(`id( "newyear" ), `icon( "yast-software.png" ), "Happy New Year" ) ] ), `HBox(`PushButton(`id(`ok), `opt(`default), "&OK"), `PushButton(`id(`deselect), "&Log selected" ) @@ -23,7 +23,7 @@ ) ); - UI::ChangeWidget(`mod, `SelectedItems, ["keyboard", `xmas, `newyear ] ); + UI::ChangeWidget(`mod, `SelectedItems, ["keyboard", "xmas", "newyear" ] ); any id = nil; repeat @@ -31,5 +31,7 @@ id = UI::UserInput(); list selected_items = (list) UI::QueryWidget( `id(`mod), `SelectedItems ); y2milestone( "Selected items: %1", selected_items ); + string current = (string) UI::QueryWidget( `id(`mod), `CurrentItem ); + y2milestone( "Current item: %1", current ); } until (id == `ok); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
gs@svn2.opensuse.org