Author: gs Date: Thu Mar 15 10:31:54 2012 New Revision: 67634 URL: http://svn.opensuse.org/viewcvs/yast?rev=67634&view=rev Log: examples for orderd/unorderd lists, headline Added: trunk/ycp-ui-bindings/examples/RichText6.ycp Added: trunk/ycp-ui-bindings/examples/RichText6.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/ycp-ui-bindings/examples/RichText6.ycp?rev=67634&view=auto ============================================================================== --- trunk/ycp-ui-bindings/examples/RichText6.ycp (added) +++ trunk/ycp-ui-bindings/examples/RichText6.ycp Thu Mar 15 10:31:54 2012 @@ -0,0 +1,46 @@ +// Example for a RichText widget +{ + UI::OpenDialog( `opt(`defaultsize), + `VBox( + `RichText( "<h1>The big headline (level 1)</h1>" + + "<p>This is a <i>RichText</i> widget.</p>" + + "<p>It's very much like <i>HTML</i>, but not quite as powerful.</p>" + + "<p><b>bold</b> and <i>italic</i> you can rely on.</p>" + + "<p>" + + "<h2>An ordered list (headline level 2)</h2>" + + "<ol>" + + "<li>First list entry</li>" + + "<li>Second one </li>" + + "<ol>" + + "<li>and more info</li>" + + "<li>and more and more</li>" + + "</ol>" + + "<li>And so on</li>" + + "<li>and even more</li>" + + "</ol>" + + "<h2>An unordered list</h2>" + + "<ul>" + + "<li>An unordered list entry </li>" + + "<li>and another...</li>" + + "<ul>" + + "<li>Argumets are these:</li>" + + "<ol>" + + "<li>first point is...</li>" + + "<li>second point is that</li>" + + "</ol>" + + "<li>and another argument</li>" + + "</ul>" + + "<li>and last entry</li>" + + "</ul>" + + "<h2>Text mode ignores:</h2>" + + "<pre>" + + "<big> <small> <font>\n" + + " <big>big</big> <small>small</small> <font>font</font>" + + "</pre>" + ), + `PushButton(`opt(`default), "&OK") + ) + ); + UI::UserInput(); + UI::CloseDialog(); +} -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org