commit some examples
authordmacvicar <dmacvicar@e0cc52ee-31ee-0310-8b87-e83c4596d67c>
Tue, 13 Nov 2007 13:13:06 +0000 (13:13 +0000)
committerdmacvicar <dmacvicar@e0cc52ee-31ee-0310-8b87-e83c4596d67c>
Tue, 13 Nov 2007 13:13:06 +0000 (13:13 +0000)
git-svn-id: http://svn.opensuse.org/svn/yast/branches/tmp/sh/mod-ui/web-wt@42010 e0cc52ee-31ee-0310-8b87-e83c4596d67c

examples/example-1.ycp [new file with mode: 0644]
examples/example-2.ycp [new file with mode: 0644]
examples/example-3.ycp [new file with mode: 0644]

diff --git a/examples/example-1.ycp b/examples/example-1.ycp
new file mode 100644 (file)
index 0000000..4997e13
--- /dev/null
@@ -0,0 +1,13 @@
+{
+    // Build a dialog with one button.
+    // Wait until that button is clicked,
+    // then close the dialog and terminate.
+
+    UI::OpenDialog(
+               `Label( "&OK" )
+               );
+
+    UI::UserInput();
+    UI::CloseDialog();
+}
+
diff --git a/examples/example-2.ycp b/examples/example-2.ycp
new file mode 100644 (file)
index 0000000..81b26cb
--- /dev/null
@@ -0,0 +1 @@
+{        y2security ("%1", UI::GetDisplayInfo() );}
\ No newline at end of file
diff --git a/examples/example-3.ycp b/examples/example-3.ycp
new file mode 100644 (file)
index 0000000..49abed3
--- /dev/null
@@ -0,0 +1 @@
+{        y2security ("hello there");}
\ No newline at end of file