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/dcop.kmdr | 139 ++++++++++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 kommander/examples/tutorial/dcop.kmdr (limited to 'kommander/examples/tutorial/dcop.kmdr') diff --git a/kommander/examples/tutorial/dcop.kmdr b/kommander/examples/tutorial/dcop.kmdr new file mode 100644 index 00000000..9ceae259 --- /dev/null +++ b/kommander/examples/tutorial/dcop.kmdr @@ -0,0 +1,139 @@ + +Form1 + + + Form1 + + + + 0 + 0 + 399 + 247 + + + + KMail communication + + + + unnamed + + + 11 + + + 6 + + + + AccountListBox + + + + @selectedWidgetText + + + + + + Layout2 + + + + unnamed + + + 0 + + + 6 + + + + Spacer3 + + + Horizontal + + + Expanding + + + + 30 + 0 + + + + + + AccountButton + + + Get accounts + + + + # Get list of accounts from KMail +LIST=`dcop kmail KMailIface accounts` + +# Add each account to the list and enable 'Check Account' button +if [ "$LIST" ]; then + for i in $LIST; do + dcop @dcopid KommanderIf addListItem AccountListBox "$i" 1000; + done + dcop @dcopid KommanderIf enableWidget CheckButton true +fi + + + + + true + + + + + CheckButton + + + false + + + Check account + + + + # Get current account +# Look at AccountListBox script to see how @AccountListBox is calculated + +dcop kmail KMailIface checkAccount @AccountListBox + + + + true + + + + + Spacer2 + + + Horizontal + + + Expanding + + + + 30 + 0 + + + + + + + + + -- cgit v1.2.1