[yast-commit] r39222 - in /branches/tmp/sh/mod-ui/core/libyui/doc/examples: Tree1.ycp Tree2.ycp

Author: sh-sh-sh Date: Fri Jul 6 18:15:53 2007 New Revision: 39222 URL: http://svn.opensuse.org/viewcvs/yast?rev=39222&view=rev Log: improved examples Modified: branches/tmp/sh/mod-ui/core/libyui/doc/examples/Tree1.ycp branches/tmp/sh/mod-ui/core/libyui/doc/examples/Tree2.ycp Modified: branches/tmp/sh/mod-ui/core/libyui/doc/examples/Tree1.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/doc/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/doc/examples/Tree1.ycp (original) +++ branches/tmp/sh/mod-ui/core/libyui/doc/examples/Tree1.ycp Fri Jul 6 18:15:53 2007 @@ -1,3 +1,4 @@ +// Simple tree example { UI::OpenDialog( `VBox( @@ -75,6 +76,8 @@ // Rather, it returns the ID of the widget (normally the PushButton) // that caused UI::UserInput() to return. string dest_dir = (string) UI::QueryWidget(`dest_dir, `CurrentItem); + y2debug( "Selected: %1", dest_dir ); + if ( dest_dir == nil ) dest_dir = ""; Modified: branches/tmp/sh/mod-ui/core/libyui/doc/examples/Tree2.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/doc/... ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/doc/examples/Tree2.ycp (original) +++ branches/tmp/sh/mod-ui/core/libyui/doc/examples/Tree2.ycp Fri Jul 6 18:15:53 2007 @@ -91,7 +91,8 @@ } y2milestone( "Items:\n%1", UI::QueryWidget(`dest_dir, `Items ) ); - y2milestone( "OpenItems:\n%1", UI::QueryWidget(`dest_dir, `OpenItems ) ); + y2milestone( "OpenItems: %1", UI::QueryWidget(`dest_dir, `OpenItems ) ); + y2milestone( "Current Branch: %1", UI::QueryWidget(`dest_dir, `CurrentBranch ) ); } until ( id == `ok ); -- 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