From e9ae80694875f869892f13f4fcaf1170a00dea41 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kommander/examples/tutorial/dialogs.kmdr | 198 +++++++++++++++++++++++++++++++ 1 file changed, 198 insertions(+) create mode 100644 kommander/examples/tutorial/dialogs.kmdr (limited to 'kommander/examples/tutorial/dialogs.kmdr') diff --git a/kommander/examples/tutorial/dialogs.kmdr b/kommander/examples/tutorial/dialogs.kmdr new file mode 100644 index 00000000..62c97bc0 --- /dev/null +++ b/kommander/examples/tutorial/dialogs.kmdr @@ -0,0 +1,198 @@ + +DialogTest +This is my program +MichaƂ Rudolf +GPL +0.1 + + + DialogTest + + + + 0 + 0 + 600 + 428 + + + + Test of Dialogs + + + + + + + + + + true + + + + unnamed + + + 11 + + + 6 + + + + ExecButton1 + + + Run dialogs... + + + + message_info("This is a demonstration of various KDE dialogs", "Demo") +message_error("Cannot enter 3D mode") +if message_question("Do you want to continue?") <> 1 then + debug("Cancelled") +endif +if message_warning("Are you sure you want to continue?") <> 1 then + debug("Aborted") +endif + + +echo("Hello world!") +a = input_text("Input text", "Text", "Default text") +LineEdit1.setText(a) + +a = input_color +LineEdit2.setText(a) + +a = input_value("Input value", "Value", 10, 1, 100) +LineEdit3.setText(a) + +a = input_openfile +LineEdit4.setText(a) + +echo("This is a test too") +a = input_savefile +LineEdit5.setText(a) + +a = input_directory +LineEdit6.setText(a) + +a = input_openfiles +ListBox1.setText(a) + + + + + + + + Layout1 + + + + unnamed + + + 0 + + + 6 + + + + Label6 + + + File to save: + + + + + Label2 + + + Color: + + + + + ListBox1 + + + + + Label5 + + + Files to open: + + + + + Label7 + + + Directory: + + + + + Label3 + + + Value: + + + + + LineEdit1 + + + + + Label4 + + + File to open: + + + + + LineEdit3 + + + + + LineEdit4 + + + + + LineEdit5 + + + + + LineEdit2 + + + + + LineEdit6 + + + + + Label1 + + + Text: + + + + + + + + -- cgit v1.2.3