summaryrefslogtreecommitdiffstats
path: root/kommander/kmdrtools
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commite9ae80694875f869892f13f4fcaf1170a00dea41 (patch)
treeaa2f8d8a217e2d376224c8d46b7397b68d35de2d /kommander/kmdrtools
downloadtdewebdev-e9ae80694875f869892f13f4fcaf1170a00dea41.tar.gz
tdewebdev-e9ae80694875f869892f13f4fcaf1170a00dea41.zip
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
Diffstat (limited to 'kommander/kmdrtools')
-rw-r--r--kommander/kmdrtools/Makefile.am3
-rwxr-xr-xkommander/kmdrtools/dcoptool-oldparser.kmdr2125
-rwxr-xr-xkommander/kmdrtools/examples.kmdr154
3 files changed, 2282 insertions, 0 deletions
diff --git a/kommander/kmdrtools/Makefile.am b/kommander/kmdrtools/Makefile.am
new file mode 100644
index 00000000..3a37d597
--- /dev/null
+++ b/kommander/kmdrtools/Makefile.am
@@ -0,0 +1,3 @@
+execkmdrdir = ${kde_datadir}/kmdr-editor/editor
+
+execkmdr_SCRIPTS = dcoptool-oldparser.kmdr examples.kmdr
diff --git a/kommander/kmdrtools/dcoptool-oldparser.kmdr b/kommander/kmdrtools/dcoptool-oldparser.kmdr
new file mode 100755
index 00000000..e6a8ec54
--- /dev/null
+++ b/kommander/kmdrtools/dcoptool-oldparser.kmdr
@@ -0,0 +1,2125 @@
+<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
+<class>dcoptool2</class>
+<widget class="Dialog">
+ <property name="name">
+ <cstring>dcoptool2</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>712</width>
+ <height>478</height>
+ </rect>
+ </property>
+ <property name="caption">
+ <string>DCOP Inserter Version 0.2 - Old Parser</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string>@##### put the following in init scripts #########
+ @widgetName.setVisible(false)
+@wname.setVisible(false)
+@TextParam1.setVisible(false)
+@param1.setVisible(false)
+@TextParam2.setVisible(false)
+@param2.setVisible(false)
+@TextParam3.setVisible(false)
+@param3.setVisible(false)
+@TextParam4.setVisible(false)
+@param4.setVisible(false)
+
+@setGlobal(Array,"values(QString)
+keys(QString)
+clear(QString)
+count(QString)
+count(QString)
+remove(QString,QString)
+remove(QString,QString)
+fromString(QString,QString)
+toString(QString)
+toString(QString)
+toString(QString)
+toString(QString)
+toString(QString)")
+
+@setGlobal(File,"read(QString)
+write(QString,QString)
+append(QString,QString)")
+
+@setGlobal(Input,"text(QString,QString,QString)
+password(QString,QString)
+value(QString,QString,int,int,int,int)
+double(QString,QString,double,double,double,double)
+openfile(QString,QString,QString)
+savefile(QString,QString,QString)
+directory(QString,QString,QString)
+openfiles(QString,QString,QString)")
+
+@setGlobal(DCOP,"addUniqueItem(QString,QString)
+associatedText(QString)
+cellText(QString,int,int)
+checked(QString)
+children(QString,bool)
+clear(QString)
+count(QString)
+currentColumn(QString)
+currentItem(QString)
+currentRow(QString)
+execute(QString)
+findItem(QString,QString)
+insertColumn(QString,int,int)
+insertItem(QString,QString,int)
+insertItems(QString,QStringList,int)
+insertRow(QString,int,int)
+item(QString,int)
+itemDepth(QString,int)
+itemPath(QString,int)
+removeColumn(QString,int,int)
+removeItem(QString,int)
+removeRow(QString,int,int)
+selection(QString)
+setAssociatedText(QString,QString)
+setEnabled(QString,bool)
+setCellText(QString,int,int,QString)
+setCellWidget(QString,int,int,QString)
+cellWidget(QString,int,int)
+setChecked(QString,bool)
+setColumnCaption(QString,int,QString)
+setCurrentItem(QString,int)
+insertTab(QString,QString,int)
+setMaximum(QString,int)
+setPixmap(QString,QString,int)
+setRowCaption(QString,int,QString)
+setSelection(QString,QString)
+setText(QString,QString)
+setVisible(QString,bool)
+type(QString)
+setEditable(QString,bool)")
+
+@setGlobal(File,"read(QString)
+write(QString,QString)
+append(QString,QString)")
+
+@setGlobal(KommanderMessage,"")
+
+@setGlobal(String,"length(QString)
+contains(QString,QString)
+find(QString,QString,int)
+findRev(QString,QString,int)
+left(QString,int)
+right(QString,int)
+mid(QString,int,int)
+remove(QString,QString)
+replace(QString,QString,QString)
+upper(QString)
+lower(QString)
+compare(QString,QString)
+isEmpty(QString)
+isNumber(QString)
+section(QString,QString,int)
+args(QString,QString,QString,QString)
+args(QString,QString,QString,QString)
+args(QString,QString,QString,QString)")
+
+
+@functiongroup.setCurrentItem(1)
+@proto.insertItems(@global(DCOP), 0)
+
+</string>
+ <string></string>
+ </stringlist>
+ </property>
+ <widget class="QLayoutWidget">
+ <property name="name">
+ <cstring>Layout9</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>10</y>
+ <width>202</width>
+ <height>380</height>
+ </rect>
+ </property>
+ <vbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="ComboBox">
+ <item>
+ <property name="text">
+ <string>dcop(</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>dcop</string>
+ </property>
+ </item>
+ <property name="name">
+ <cstring>dcopstr</cstring>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>select whether to use a Kommander call or console call</string>
+ </property>
+ </widget>
+ <widget class="Label">
+ <property name="name">
+ <cstring>Label6</cstring>
+ </property>
+ <property name="text">
+ <string>Function Group:</string>
+ </property>
+ </widget>
+ <widget class="ComboBox">
+ <item>
+ <property name="text">
+ <string>Array</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>DCOP</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>File</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Input</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Kommander</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Message</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>String</string>
+ </property>
+ </item>
+ <property name="name">
+ <cstring>functiongroup</cstring>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="QLabel">
+ <property name="name">
+ <cstring>TextLabel4</cstring>
+ </property>
+ <property name="text">
+ <string>Func/Proto:</string>
+ </property>
+ </widget>
+ <widget class="ListBox">
+ <property name="name">
+ <cstring>proto</cstring>
+ </property>
+ <property name="populationText">
+ <string>@global(@functiongroup.selection)</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ </widget>
+ </vbox>
+ </widget>
+ <widget class="QLayoutWidget">
+ <property name="name">
+ <cstring>Layout10</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>508</x>
+ <y>10</y>
+ <width>190</width>
+ <height>370</height>
+ </rect>
+ </property>
+ <vbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="QLabel">
+ <property name="name">
+ <cstring>TextLabel3</cstring>
+ </property>
+ <property name="text">
+ <string>Branch:</string>
+ </property>
+ </widget>
+ <widget class="ComboBox">
+ <item>
+ <property name="text">
+ <string>KommanderIf</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>QuantaIf</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>qt</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>MainApplication-Interface</string>
+ </property>
+ </item>
+ <property name="name">
+ <cstring>branch</cstring>
+ </property>
+ <property name="editable">
+ <bool>true</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="TextEdit">
+ <property name="name">
+ <cstring>TextDescription</cstring>
+ </property>
+ <property name="backgroundOrigin">
+ <enum>ParentOrigin</enum>
+ </property>
+ <property name="frameShadow">
+ <enum>Plain</enum>
+ </property>
+ <property name="readOnly">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </vbox>
+ </widget>
+ <widget class="QLayoutWidget">
+ <property name="name">
+ <cstring>Layout11</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>431</y>
+ <width>690</width>
+ <height>34</height>
+ </rect>
+ </property>
+ <hbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="CheckBox">
+ <property name="name">
+ <cstring>wfilter</cstring>
+ </property>
+ <property name="enabled">
+ <bool>true</bool>
+ </property>
+ <property name="text">
+ <string>Filter f&amp;unctions by widget</string>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string></string>
+ <string></string>
+ </stringlist>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>Requires widgets to be loaded from running dialog</string>
+ </property>
+ </widget>
+ <spacer>
+ <property name="name">
+ <cstring>Spacer8</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>80</width>
+ <height>0</height>
+ </size>
+ </property>
+ </spacer>
+ <widget class="ExecButton">
+ <property name="name">
+ <cstring>ExecButton18</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Insert</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@switch(@String.mid(@dcopstr.selection, 1, 4))
+@case(dcop)
+ @setGlobal("outstring","@dcopstr.selection @window.selection, @branch.selection, "@proto.selection", @String.mid(@wname.selection, 0, @String.find(@wname.selection, " ", ))@param1@param2@param3@param4)")
+@case(cop)
+ @setGlobal("outstring","@dcopstr.selection @window.selection @branch.selection @global(short) @String.mid(@wname.selection, 0, @String.find(@wname.selection, " ", ))@param1@param2@param3@param4")
+@case(*)
+ @setGlobal("outstring","@dcopstr.selection - not found")
+@end
+@outstring.setText(@global(outstring))
+@cbclip
+</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="CheckBox">
+ <property name="name">
+ <cstring>cbclip</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Add to clipboard</string>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string></string>
+ <string>@exec(dcop klipper klipper setClipboardContents "@global(outstring)")</string>
+ </stringlist>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>Requires Klipper</string>
+ </property>
+ </widget>
+ <spacer>
+ <property name="name">
+ <cstring>Spacer9</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>120</width>
+ <height>0</height>
+ </size>
+ </property>
+ </spacer>
+ </hbox>
+ </widget>
+ <widget class="LineEdit">
+ <property name="name">
+ <cstring>outstring</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>30</x>
+ <y>400</y>
+ <width>671</width>
+ <height>23</height>
+ </rect>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="ExecButton">
+ <property name="name">
+ <cstring>ExecButton59</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>400</y>
+ <width>20</width>
+ <height>20</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string></string>
+ </property>
+ <property name="pixmap">
+ <pixmap>image0</pixmap>
+ </property>
+ <property name="flat">
+ <bool>true</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@outstring.clear</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="GroupBox">
+ <property name="name">
+ <cstring>GroupBox1</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>220</x>
+ <y>10</y>
+ <width>278</width>
+ <height>375</height>
+ </rect>
+ </property>
+ <property name="title">
+ <string></string>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="Label" row="10" column="0">
+ <property name="name">
+ <cstring>TextParam4</cstring>
+ </property>
+ <property name="text">
+ <string>Parameter 4</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="Label" row="6" column="0">
+ <property name="name">
+ <cstring>TextParam2</cstring>
+ </property>
+ <property name="text">
+ <string>Parameter 2</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="LineEdit" row="11" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>param4</cstring>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@execBegin
+if [ "@widgetText" ]
+then
+ echo ', "@widgetText"'
+fi
+@execEnd</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="LineEdit" row="7" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>param2</cstring>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@execBegin
+if [ "@widgetText" ]
+then
+ echo ', "@widgetText"'
+fi
+@execEnd</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="QLabel" row="0" column="0">
+ <property name="name">
+ <cstring>TextLabel2</cstring>
+ </property>
+ <property name="text">
+ <string>Window:</string>
+ </property>
+ </widget>
+ <widget class="ComboBox" row="1" column="0" rowspan="1" colspan="2">
+ <item>
+ <property name="text">
+ <string>dcopid</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>"kmdr-executor-"+parentPid</string>
+ </property>
+ </item>
+ <property name="name">
+ <cstring>window</cstring>
+ </property>
+ <property name="editable">
+ <bool>true</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="Label" row="8" column="0">
+ <property name="name">
+ <cstring>TextParam3</cstring>
+ </property>
+ <property name="text">
+ <string>Parameter 3</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="ExecButton" row="2" column="0">
+ <property name="name">
+ <cstring>widgetName</cstring>
+ </property>
+ <property name="enabled">
+ <bool>true</bool>
+ </property>
+ <property name="text">
+ <string>Widget &amp;Name:</string>
+ </property>
+ <property name="flat">
+ <bool>true</bool>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@Array.clear(dlg)
+@Array.fromString(dlg,@exec(dcop | grep kmdr))
+@setGlobal(kdlg,"")
+@forEach(i, @Array.keys(dlg))
+ @setGlobal(kdlg, @global(kdlg) @i @i)
+@end
+@setGlobal(pdlg,@exec(kdialog --menu "Select a dialog other than pid @pid to parse" @global(kdlg)))
+@#@exec(kdialog --msgbox "@global(_KDDIR)\n")
+@# dcop kmdr-executor-32730 KommanderIf children kmdr-executor-32730 1
+@wname.clear
+@setGlobal(items,@dcop(@global(pdlg), KommanderIf, "children(QString,bool)", @global(pdlg), 1 ))
+@setGlobal(iwd,"")
+@forEach(i, @global(items))
+ @setGlobal(iwd, "@global(iwd)@i (@dcop(@global(pdlg), KommanderIf, "type(QString)", @i))\n")
+@end
+@wname.insertItems(@global(iwd),0)</string>
+ </stringlist>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>See Whats This for instructions</string>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>This will get the list of widgets from a running dialog. To use it simply launch your dialog and then select it from the list.</string>
+ </property>
+ </widget>
+ <widget class="LineEdit" row="9" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>param3</cstring>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@execBegin
+if [ "@widgetText" ]
+then
+ echo ', "@widgetText"'
+fi
+@execEnd</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="LineEdit" row="5" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>param1</cstring>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@execBegin
+if [ "@widgetText" ]
+then
+ echo ', "@widgetText"'
+fi
+@execEnd</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="ComboBox" row="3" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>wname</cstring>
+ </property>
+ <property name="editable">
+ <bool>true</bool>
+ </property>
+ <property name="populationText">
+ <string></string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="Label" row="4" column="0">
+ <property name="name">
+ <cstring>TextParam1</cstring>
+ </property>
+ <property name="text">
+ <string>Parameter 1</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ </widget>
+ <spacer row="2" column="1">
+ <property name="name">
+ <cstring>Spacer15</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>111</width>
+ <height>0</height>
+ </size>
+ </property>
+ </spacer>
+ </grid>
+ </widget>
+ <widget class="ScriptObject">
+ <property name="name">
+ <cstring>setfunction</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>610</x>
+ <y>380</y>
+ <width>32</width>
+ <height>32</height>
+ </rect>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@##### put the following in @setfunction #########
+@# set up dialog based on function
+@switch(@functiongroup.selection::@proto.selection)
+@case(DCOP::addUniqueItem(QString,QString))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"item")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,addUniqueItem)
+ @setGlobal(DESC,"Inserts the item if it will not create a duplicate.")
+@case(DCOP::associatedText(QString))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,associatedText)
+ @setGlobal(DESC,"Returns scripts associated with widget. This is an advanced feature that would not be commonly used.")
+@case(DCOP::cellText(QString,int,int))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"row")
+ @setGlobal(PARM2,"column")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,cellText)
+ @setGlobal(DESC,"Returns text of a cell in a table.")
+@case(DCOP::checked(QString))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,checked)
+ @setGlobal(DESC,"Returns 1 for checked boxes, 0 for unchecked.")
+@case(DCOP::children(QString,bool))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"recursive")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,children)
+ @setGlobal(DESC,"Returns the list of child widgets contained in the parent widget. Set the &lt;i&gt;recursive&lt;/i&gt; parameter to &lt;i&gt;true&lt;/i&gt; to include widgets contained by child widgets.")
+@case(DCOP::clear(QString))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,clear)
+ @setGlobal(DESC,"Removes all content from the widget.")
+@case(DCOP::count(QString))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,count)
+ @setGlobal(DESC,"Returns number of items in a widget such as combobox or listbox.")
+@case(DCOP::currentColumn(QString))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,currentColumn)
+ @setGlobal(DESC,"Returns index of current column.")
+@case(DCOP::currentItem(QString))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,currentItem)
+ @setGlobal(DESC,"Returns index of current item.")
+@case(DCOP::currentRow(QString))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,currentRow)
+ @setGlobal(DESC,"Returns index of current row.")
+@case(DCOP::execute(QString))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,execute)
+ @setGlobal(DESC,"Executes the script associated with the widget. With the new parser the execute method can take one or more arguments.")
+@case(DCOP::findItem(QString,QString))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"item")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,findItem)
+ @setGlobal(DESC,"Returns the index of an item with the given text.")
+@case(DCOP::insertColumn(QString,int,int))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"column")
+ @setGlobal(PARM2,"count")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,insertColumn)
+ @setGlobal(DESC,"Inserts new column &amp;#040;or &lt;i&gt;count&lt;/i&gt; columns&amp;#041; at &lt;i&gt;column&lt;/i&gt; position.")
+@case(DCOP::insertItem(QString,QString,int))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"item")
+ @setGlobal(PARM2,"index")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,insertItem)
+ @setGlobal(DESC,"Inserts item at &lt;i&gt;index&lt;/i&gt; position.")
+@case(DCOP::insertItems(QString,QStringList,int))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"items")
+ @setGlobal(PARM2,"index")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,insertItems)
+ @setGlobal(DESC,"Inserts multiple items &amp;#040;EOL-separated&amp;#041; at &lt;i&gt;index&lt;/i&gt; position.")
+@case(DCOP::insertRow(QString,int,int))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"row")
+ @setGlobal(PARM2,"count")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,insertRow)
+ @setGlobal(DESC,"Inserts new row &amp;#040;or &lt;i&gt;count&lt;/i&gt; rows&amp;#041; at &lt;i&gt;row&lt;/i&gt; position.")
+@case(DCOP::item(QString,int))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"index")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,item)
+ @setGlobal(DESC,"Returns the text of the item at the given index.")
+@case(DCOP::itemDepth(QString,int))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"index")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,itemDepth)
+ @setGlobal(DESC,"Returns the depth of the current item in the tree. Root items have depth 0.")
+@case(DCOP::itemPath(QString,int))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"index")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,itemPath)
+ @setGlobal(DESC,"Returns the slash-separated path to the given item in the tree.")
+@case(DCOP::removeColumn(QString,int,int))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"column")
+ @setGlobal(PARM2,"count")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,removeColumn)
+ @setGlobal(DESC,"Removes the column &amp;#040;or &lt;i&gt;count&lt;/i&gt; consecutive columns&amp;#041; with the given index.")
+@case(DCOP::removeItem(QString,int))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"index")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,removeItem)
+ @setGlobal(DESC,"Removes the item with the given index.")
+@case(DCOP::removeRow(QString,int,int))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"row")
+ @setGlobal(PARM2,"count")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,removeRow)
+ @setGlobal(DESC,"Removes the row &amp;#040;or &lt;i&gt;count&lt;/i&gt; consecutive rows&amp;#041; with the given index.")
+@case(DCOP::selection(QString))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,selection)
+ @setGlobal(DESC,"Returns selected text or text of current item.\nIn case of Table widgets, returns the selection coordinates, separated by commas in TopRow,LeftColumn,BottomRow,RightColumn form. ")
+@case(DCOP::setAssociatedText(QString,QString))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"text")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,setAssociatedText)
+ @setGlobal(DESC,"Sets scripts associated with widget. This is an advanced feature that would not be commonly used.")
+@case(DCOP::setEnabled(QString,bool))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"enabled")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,setEnabled)
+ @setGlobal(DESC,"Enables or disables widget.")
+@case(DCOP::setCellText(QString,int,int,QString))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"row")
+ @setGlobal(PARM2,"col")
+ @setGlobal(PARM3,"text")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,setCellText)
+ @setGlobal(DESC,"Sets text of a cell in a table.")
+@case(DCOP::setCellWidget(QString,int,int,QString))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"row")
+ @setGlobal(PARM2,"col")
+ @setGlobal(PARM3,"cellWidget")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,setCellWidget)
+ @setGlobal(DESC,"Inserts a widget into a cell of a table.")
+@case(DCOP::cellWidget(QString,int,int))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"row")
+ @setGlobal(PARM2,"col")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,cellWidget)
+ @setGlobal(DESC,"Returns the name of a widget inserted into a cell, or an empty string if the cell contains no widget or an unknown widget type.")
+@case(DCOP::setChecked(QString,bool))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"checked")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,setChecked)
+ @setGlobal(DESC,"Sets/unsets checkbox.")
+@case(DCOP::setColumnCaption(QString,int,QString))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"column")
+ @setGlobal(PARM2,"text")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,setColumnCaption)
+ @setGlobal(DESC,"Sets caption of the column &lt;i&gt;column&lt;/i&gt;.")
+@case(DCOP::setCurrentItem(QString,int))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"index")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,setCurrentItem)
+ @setGlobal(DESC,"Selects the item at the specified index. Indexes are zero based.")
+@case(DCOP::insertTab(QString,QString,int))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"label")
+ @setGlobal(PARM2,"index")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,insertTab)
+ @setGlobal(DESC,"Inserts a tab to the tabwidget with the specified label at the given index. Indexes are zero based.")
+@case(DCOP::setMaximum(QString,int))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"value")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,setMaximum)
+ @setGlobal(DESC,"Sets maximum numeric value")
+@case(DCOP::setPixmap(QString,QString,int))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"iconName")
+ @setGlobal(PARM2,"index")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,setPixmap)
+ @setGlobal(DESC,"Sets pixmap at the given index to the specified icon. Use &lt;i&gt;index = -1&lt;/i&gt; to set the pixmap for all items.")
+@case(DCOP::setRowCaption(QString,int,QString))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"row")
+ @setGlobal(PARM2,"text")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,setRowCaption)
+ @setGlobal(DESC,"Sets caption of the row &lt;i&gt;row&lt;/i&gt;.")
+@case(DCOP::setSelection(QString,QString))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"text")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,setSelection)
+ @setGlobal(DESC,"Selects given text or select item containing given text.")
+@case(DCOP::setText(QString,QString))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"text")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,setText)
+ @setGlobal(DESC,"Sets widget's content.")
+@case(DCOP::setVisible(QString,bool))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"visible")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,setVisible)
+ @setGlobal(DESC,"Shows/hides widget.")
+@case(DCOP::type(QString))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,type)
+ @setGlobal(DESC,"Returns type&amp;#040;class&amp;#041; of widget.")
+@case(DCOP::setEditable(QString,bool))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"editable")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,setEditable)
+ @setGlobal(DESC,"Makes the widget editable or read only, depending on the editable argument.")
+@case(Kommander::setEditable(QString,bool))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"editable")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,setEditable)
+ @setGlobal(DESC,"Returns current widget's content. This was required inside widget A to return widget A content when requested by widget B. The new method is to use &amp;#064;A.text inside B instead of just &amp;#064;A if you just want the unaltered text.")
+@case(Kommander::setEditable(QString,bool))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"editable")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,setEditable)
+ @setGlobal(DESC,"Returns selected text or text of current item. This is deprecated for &lt;i&gt;&amp;#064;mywidget.selected&lt;/i&gt;.")
+@case(Kommander::setEditable(QString,bool))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"editable")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,setEditable)
+ @setGlobal(DESC,"Does nothing. This is useful if you request a CheckBox or RadioButton to return a value where a state, typically the unchecked state, has no value. The &amp;#064;null prevents an error indicating it is empty.")
+@case(Kommander::pid(QString,bool))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"editable")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,pid)
+ @setGlobal(DESC,"Returns the pid &amp;#040;process ID&amp;#041; of the current process.")
+@case(Kommander::dcopid(QString,bool))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"editable")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,dcopid)
+ @setGlobal(DESC,"Returns DCOP identifier of current process. This is shorthand for &lt;i&gt;kmdr-executor-&amp;#064;pid&lt;/i&gt;.")
+@case(Kommander::parentPid(QString,bool))
+ @setGlobal(enWidget,1)
+ @setGlobal(PARM1,"editable")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,parentPid)
+ @setGlobal(DESC,"Returns the pid of the parent Kommander window.")
+@case(Kommander::debug(QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"text")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,debug)
+ @setGlobal(DESC,"Writes &lt;i&gt;text&lt;/i&gt; on stderr.")
+@case(Kommander::echo(QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"text")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,echo)
+ @setGlobal(DESC,"Writes &lt;i&gt;text&lt;/i&gt; on standard output.")
+@case(Kommander::echo(QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"text")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,echo)
+ @setGlobal(DESC,"Executes a script block. Bash is used if no shell is given. It is primarily for use in non-button widgets where script actions are not expected. Full path is not required for the shell which may be useful for portability. &lt;p&gt;&lt;i&gt;If this is used inside a button it allows alternate script languages to be used and will return a value to the main script, which may be unexpected.&lt;/i&gt;")
+@case(Kommander::env(QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"variable")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,env)
+ @setGlobal(DESC,"Returns value of an environment &amp;#040;shell&amp;#041; variable. Do not use &lt;i&gt;$&lt;/i&gt; in the name. For example, &lt;i&gt;&amp;#064;env&amp;#040;PATH&amp;#041;&lt;/i&gt;.")
+@case(Kommander::exec(QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"command")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,exec)
+ @setGlobal(DESC,"Executes an external shell command.")
+@case(Kommander::exec(QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"command")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,exec)
+ @setGlobal(DESC,"Parses an expression and returns computed value.")
+@case(Kommander::forEach(QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"variable")
+ @setGlobal(PARM2,"items")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,forEach)
+ @setGlobal(DESC,"Executes loop: values from &lt;i&gt;items&lt;/i&gt; list &amp;#040;passed as EOL-separated string&amp;#041; are assigned to the variable. &lt;br&gt;&lt;b&gt;Old&lt;/b&gt;&lt;br&gt; &lt;i&gt;&amp;#064;forEach&amp;#040;i,A\\nB\\nC\\n&amp;#041;&lt;br&gt; &amp;#064;# &amp;#064;i=A&lt;br&gt;&amp;#064;end&lt;/i&gt;&lt;br&gt;&lt;b&gt;New&lt;/b&gt;&lt;br&gt;&lt;i&gt;foreach i in MyArray do&lt;br&gt; //i = key, MyArray[i] = val&lt;br&gt;end ")
+@case(Kommander::for(QString,int,int,int))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"variable")
+ @setGlobal(PARM2,"start")
+ @setGlobal(PARM3,"end")
+ @setGlobal(PARM4,"step")
+ @setGlobal(short,for)
+ @setGlobal(DESC,"Executes loop: variable is set to &lt;i&gt;start&lt;/i&gt; and is increased by &lt;i&gt;step&lt;/i&gt; each time loop is executed. Execution stops when variable becomes larger then &lt;i&gt;end&lt;/i&gt;. &lt;br&gt;&lt;b&gt;Old&lt;/b&gt;&lt;br&gt;&lt;i&gt;&amp;#064;for&amp;#040;i,1,10,1&amp;#041;&lt;br&gt; &amp;#064;# &amp;#064;i=1&lt;br&gt;&amp;#064;endif&lt;/i&gt;&lt;br&gt;&lt;b&gt;New&lt;/b&gt;&lt;br&gt;&lt;i&gt;for i=0 to 20 step 5 do&lt;br&gt; debug&amp;#040;i&amp;#041;&lt;br&gt;end&lt;/i&gt;.")
+@case(Kommander::for(QString,int,int,int))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"variable")
+ @setGlobal(PARM2,"start")
+ @setGlobal(PARM3,"end")
+ @setGlobal(PARM4,"step")
+ @setGlobal(short,for)
+ @setGlobal(DESC,"Returns the value of a global variable.")
+@case(Kommander::i18n(QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"variable")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,i18n)
+ @setGlobal(DESC,"Translates the string into the current language. Texts in GUI would be automatically extracted for translation.")
+@case(Kommander::if(QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"expression")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,if)
+ @setGlobal(DESC,"Executes block if expression is true &amp;#040;non-zero number or non-empty string.&amp;#041; &lt;p&gt;&lt;b&gt;Old&lt;/b&gt;Close with &lt;b&gt;&amp;#064;endif&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;New&lt;/b&gt;&lt;br&gt;if val == true then&lt;br&gt;// do op&lt;br&gt;elseif cond&lt;br&gt;// second chance&lt;br&gt;else&lt;br&gt;// cond failed&lt;br&gt;endif&lt;/p&gt;")
+@case(Kommander::dialog(QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"file")
+ @setGlobal(PARM2,"args")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,dialog)
+ @setGlobal(DESC,"Executes another Kommander dialog. Current dialog directory is used if no path is given. Arguments may be given as named arguments which will become global variables in the new dialog. For instance: &lt;i&gt;var=val&lt;/i&gt;")
+@case(Kommander::readSetting(QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"key")
+ @setGlobal(PARM2,"default")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,readSetting)
+ @setGlobal(DESC,"Reads setting from configration file for this dialog.")
+@case(Kommander::setGlobal(QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"variable")
+ @setGlobal(PARM2,"value")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,setGlobal)
+ @setGlobal(DESC,"Sets the value of a global variable. Global variables exist for the life of the Kommander window.")
+@case(Kommander::writeSetting(QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"key")
+ @setGlobal(PARM2,"value")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,writeSetting)
+ @setGlobal(DESC,"Stores setting in configuration file for this dialog.")
+@case(Kommander::writeSetting(QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"key")
+ @setGlobal(PARM2,"value")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,writeSetting)
+ @setGlobal(DESC,"Begin of &lt;b&gt;switch&lt;/b&gt; block. Following &lt;b&gt;case&lt;/b&gt; values are compared to &lt;i&gt;expression&lt;/i&gt;.&lt;p&gt;&amp;#064;switch&amp;#040;&amp;#041;&lt;br&gt;&amp;#064;case&amp;#040;&amp;#041;&lt;br&gt;&amp;#064;end")
+@case(Kommander::dcop(QString,QString,QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"id")
+ @setGlobal(PARM2,"interface")
+ @setGlobal(PARM3,"function")
+ @setGlobal(PARM4,"args")
+ @setGlobal(short,dcop)
+ @setGlobal(DESC,"Executes an external DCOP call.")
+@case(Kommander::dcop(QString,QString,QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"id")
+ @setGlobal(PARM2,"interface")
+ @setGlobal(PARM3,"function")
+ @setGlobal(PARM4,"args")
+ @setGlobal(short,dcop)
+ @setGlobal(DESC,"Adds a comment to EOL that Kommander will not parse")
+@case(Kommander::dcop(QString,QString,QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"id")
+ @setGlobal(PARM2,"interface")
+ @setGlobal(PARM3,"function")
+ @setGlobal(PARM4,"args")
+ @setGlobal(short,dcop)
+ @setGlobal(DESC,"Creates a new widget with the specified type and as the child of parent.")
+@case(Kommander::dcop(QString,QString,QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"id")
+ @setGlobal(PARM2,"interface")
+ @setGlobal(PARM3,"function")
+ @setGlobal(PARM4,"args")
+ @setGlobal(short,dcop)
+ @setGlobal(DESC,"Returns true if there is a widget with the passed name, false otherwise.")
+@case(Kommander::dcop(QString,QString,QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"id")
+ @setGlobal(PARM2,"interface")
+ @setGlobal(PARM3,"function")
+ @setGlobal(PARM4,"args")
+ @setGlobal(short,dcop)
+ @setGlobal(DESC,"Connects the signal of sender with the slot of the receiver")
+@case(Kommander::dcop(QString,QString,QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"id")
+ @setGlobal(PARM2,"interface")
+ @setGlobal(PARM3,"function")
+ @setGlobal(PARM4,"args")
+ @setGlobal(short,dcop)
+ @setGlobal(DESC,"Disconnects the signal of sender from the slot of the receiver")
+@case(Kommander::dcop(QString,QString,QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"id")
+ @setGlobal(PARM2,"interface")
+ @setGlobal(PARM3,"function")
+ @setGlobal(PARM4,"args")
+ @setGlobal(short,dcop)
+ @setGlobal(DESC,"Exits script execution and returns")
+@case(Kommander::dcop(QString,QString,QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"id")
+ @setGlobal(PARM2,"interface")
+ @setGlobal(PARM3,"function")
+ @setGlobal(PARM4,"args")
+ @setGlobal(short,dcop)
+ @setGlobal(DESC,"Exits the current block of a while, for or foreach loop")
+@case(Kommander::dcop(QString,QString,QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"id")
+ @setGlobal(PARM2,"interface")
+ @setGlobal(PARM3,"function")
+ @setGlobal(PARM4,"args")
+ @setGlobal(short,dcop)
+ @setGlobal(DESC,"Exit a step and return to the beginning of a loop")
+@case(Kommander::dcop(QString,QString,QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"id")
+ @setGlobal(PARM2,"interface")
+ @setGlobal(PARM3,"function")
+ @setGlobal(PARM4,"args")
+ @setGlobal(short,dcop)
+ @setGlobal(DESC,"Return from a script, optionaly with a value from the script to the caller")
+@case(Array::values(QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"array")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,values)
+ @setGlobal(DESC,"Returns an EOL-separated list of all values in the array.")
+@case(Array::keys(QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"array")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,keys)
+ @setGlobal(DESC,"Returns an EOL-separated list of all keys in the array.")
+@case(Array::clear(QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"array")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,clear)
+ @setGlobal(DESC,"Removes all elements from the array.")
+@case(Array::count(QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"array")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,count)
+ @setGlobal(DESC,"Returns the number of elements in the array.")
+@case(Array::count(QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"array")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,count)
+ @setGlobal(DESC,"Returns the value associated with the given key.")
+@case(Array::remove(QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"array")
+ @setGlobal(PARM2,"key")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,remove)
+ @setGlobal(DESC,"Removes element with the given key from the array.")
+@case(Array::remove(QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"array")
+ @setGlobal(PARM2,"key")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,remove)
+ @setGlobal(DESC,"Adds element with the given key and value to the array")
+@case(Array::fromString(QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"array")
+ @setGlobal(PARM2,"string")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,fromString)
+ @setGlobal(DESC,"Adds all elements in the string to the array. ")
+@case(Array::toString(QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"array")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,toString)
+ @setGlobal(DESC,"Returns all elements in the array in &lt;pre&gt;key\\tvalue\\n&lt;/pre&gt; format.")
+@case(Array::toString(QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"array")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,toString)
+ @setGlobal(DESC,"")
+@case(Array::toString(QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"array")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,toString)
+ @setGlobal(DESC,"")
+@case(Array::toString(QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"array")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,toString)
+ @setGlobal(DESC,"")
+@case(Array::toString(QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"array")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,toString)
+ @setGlobal(DESC,"")
+@case(String::length(QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"string")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,length)
+ @setGlobal(DESC,"Returns number of chars in the string.")
+@case(String::contains(QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"string")
+ @setGlobal(PARM2,"substring")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,contains)
+ @setGlobal(DESC,"Checks if the the string contains the given substring.")
+@case(String::find(QString,QString,int))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"string")
+ @setGlobal(PARM2,"sought")
+ @setGlobal(PARM3,"index")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,find)
+ @setGlobal(DESC,"Returns the position of a substring in the string, or -1 if it is not found.")
+@case(String::findRev(QString,QString,int))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"string")
+ @setGlobal(PARM2,"sought")
+ @setGlobal(PARM3,"index")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,findRev)
+ @setGlobal(DESC,"Returns the position of a substring in the string, or -1 if it is not found. String is searched backwards")
+@case(String::left(QString,int))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"string")
+ @setGlobal(PARM2,"n")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,left)
+ @setGlobal(DESC,"Returns the first &lt;i&gt;n&lt;/i&gt; chars of the string.")
+@case(String::right(QString,int))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"string")
+ @setGlobal(PARM2,"n")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,right)
+ @setGlobal(DESC,"Returns the last &lt;i&gt;n&lt;/i&gt; chars of the string.")
+@case(String::mid(QString,int,int))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"string")
+ @setGlobal(PARM2,"start")
+ @setGlobal(PARM3,"n")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,mid)
+ @setGlobal(DESC,"Returns &lt;i&gt;n&lt;/i&gt; chars of the string, starting from &lt;i&gt;start&lt;/i&gt;.")
+@case(String::remove(QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"string")
+ @setGlobal(PARM2,"substring")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,remove)
+ @setGlobal(DESC,"Removes all occurrences of given substring.")
+@case(String::replace(QString,QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"string")
+ @setGlobal(PARM2,"substring")
+ @setGlobal(PARM3,"replacement")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,replace)
+ @setGlobal(DESC,"Replaces all occurrences of the given substring with the given replacement.")
+@case(String::upper(QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"string")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,upper)
+ @setGlobal(DESC,"Converts the string to uppercase.")
+@case(String::lower(QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"string")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,lower)
+ @setGlobal(DESC,"Converts the string to lowercase.")
+@case(String::compare(QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"string1")
+ @setGlobal(PARM2,"string2")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,compare)
+ @setGlobal(DESC,"Compares two strings. Returns 0 if they are equal, ")
+@case(String::isEmpty(QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"string")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,isEmpty)
+ @setGlobal(DESC,"Checks if the string is empty.")
+@case(String::isNumber(QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"string")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,isNumber)
+ @setGlobal(DESC,"Checks if the string is a valid number.")
+@case(String::section(QString,QString,int))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"string")
+ @setGlobal(PARM2,"separator")
+ @setGlobal(PARM3,"index")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,section)
+ @setGlobal(DESC,"Returns given section of a string.")
+@case(String::args(QString,QString,QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"string")
+ @setGlobal(PARM2,"arg1")
+ @setGlobal(PARM3,"arg2")
+ @setGlobal(PARM4,"arg3")
+ @setGlobal(short,args)
+ @setGlobal(DESC,"Returns the given string with %1, %2, %3 replaced with &lt;i&gt;arg1&lt;/i&gt;, &lt;i&gt;arg2&lt;/i&gt;, &lt;i&gt;arg3&lt;/i&gt; accordingly.")
+@case(String::args(QString,QString,QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"string")
+ @setGlobal(PARM2,"arg1")
+ @setGlobal(PARM3,"arg2")
+ @setGlobal(PARM4,"arg3")
+ @setGlobal(short,args)
+ @setGlobal(DESC,"Convert a string to an integer. If not possible use the default value")
+@case(String::args(QString,QString,QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"string")
+ @setGlobal(PARM2,"arg1")
+ @setGlobal(PARM3,"arg2")
+ @setGlobal(PARM4,"arg3")
+ @setGlobal(short,args)
+ @setGlobal(DESC,"Convert a string to a double precision floating point value. If not possible use the default value")
+@case(File::read(QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"")
+ @setGlobal(PARM2,"")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,read)
+ @setGlobal(DESC,"Returns content of given file.")
+@case(File::write(QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"file")
+ @setGlobal(PARM2,"string")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,write)
+ @setGlobal(DESC,"Writes given string to a file.")
+@case(File::append(QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"file")
+ @setGlobal(PARM2,"string")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,append)
+ @setGlobal(DESC,"Appends given string to the end of a file.")
+@case(Input::text(QString,QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"caption")
+ @setGlobal(PARM2,"label")
+ @setGlobal(PARM3,"default")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,text)
+ @setGlobal(DESC,"Shows text selection dialog. Returns entered text.")
+@case(Input::password(QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"caption")
+ @setGlobal(PARM2,"password")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,password)
+ @setGlobal(DESC,"Shows a dialog asking user for password and returns it.")
+@case(Input::value(QString,QString,int,int,int,int))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"caption")
+ @setGlobal(PARM2,"label")
+ @setGlobal(PARM3,"value")
+ @setGlobal(PARM4,"min")
+ @setGlobal(short,value)
+ @setGlobal(DESC,"Shows value selection dialog. Returns entered value.")
+@case(Input::double(QString,QString,double,double,double,double))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"caption")
+ @setGlobal(PARM2,"label")
+ @setGlobal(PARM3,"value")
+ @setGlobal(PARM4,"min")
+ @setGlobal(short,double)
+ @setGlobal(DESC,"Shows float value selection dialog. Returns entered value.")
+@case(Input::openfile(QString,QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"startdir")
+ @setGlobal(PARM2,"filter")
+ @setGlobal(PARM3,"caption")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,openfile)
+ @setGlobal(DESC,"Shows existing file selection dialog. Returns selected file.")
+@case(Input::savefile(QString,QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"startdir")
+ @setGlobal(PARM2,"filter")
+ @setGlobal(PARM3,"caption")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,savefile)
+ @setGlobal(DESC,"Shows save file selection dialog. Returns selected file.")
+@case(Input::directory(QString,QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"startdir")
+ @setGlobal(PARM2,"filter")
+ @setGlobal(PARM3,"caption")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,directory)
+ @setGlobal(DESC,"Shows directory selection dialog. Returns selected directory.")
+@case(Input::openfiles(QString,QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"startdir")
+ @setGlobal(PARM2,"filter")
+ @setGlobal(PARM3,"caption")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,openfiles)
+ @setGlobal(DESC,"Shows multiple files selection dialog. Returns EOL-separated list of selected files.")
+@case(Message::info(QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"text")
+ @setGlobal(PARM2,"caption")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,info)
+ @setGlobal(DESC,"Shows an information dialog.")
+@case(Message::error(QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"text")
+ @setGlobal(PARM2,"caption")
+ @setGlobal(PARM3,"")
+ @setGlobal(PARM4,"")
+ @setGlobal(short,error)
+ @setGlobal(DESC,"Shows an error dialog.")
+@case(Message::warning(QString,QString,QString,QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"text")
+ @setGlobal(PARM2,"caption")
+ @setGlobal(PARM3,"button1")
+ @setGlobal(PARM4,"button2")
+ @setGlobal(short,warning)
+ @setGlobal(DESC,"Shows a warning dialog with up to three buttons. Returns number of selected button.")
+@case(Message::question(QString,QString,QString,QString,QString))
+ @setGlobal(enWidget,0)
+ @setGlobal(PARM1,"text")
+ @setGlobal(PARM2,"caption")
+ @setGlobal(PARM3,"button1")
+ @setGlobal(PARM4,"button2")
+ @setGlobal(short,question)
+ @setGlobal(DESC,"Shows a question dialog with up to three buttons. Returns number of selected button.")
+@case(*)
+ @exec(kdialog --error "@functiongroup.selection::@proto.selection is not recognized")
+@end
+@setparams
+</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="ScriptObject">
+ <property name="name">
+ <cstring>setparams</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>570</x>
+ <y>380</y>
+ <width>32</width>
+ <height>32</height>
+ </rect>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@##### put the following in @setparams #########
+@if(@global(enWidget))
+ @widgetName.setVisible(true)
+ @wname.setVisible(true)
+@endif
+@if(!@global(enWidget))
+ @widgetName.setVisible(false)
+ @wname.setVisible(false)
+@endif
+@if(@String.length(@global(PARM1)))
+ @param1.setVisible(true)
+ @TextParam1.setVisible(true)
+ @TextParam1.setText(@global(PARM1))
+@endif
+@if(!@String.length(@global(PARM1)))
+ @param1.clear
+ @param1.setVisible(false)
+ @TextParam1.setVisible(false)
+@endif
+@if(@String.length(@global(PARM2)))
+ @param2.setVisible(true)
+ @TextParam2.setVisible(true)
+ @TextParam2.setText(@global(PARM2))
+@endif
+@if(!@String.length(@global(PARM2)))
+ @param2.clear
+ @param2.setVisible(false)
+ @TextParam2.setVisible(false)
+@endif
+@if(@String.length(@global(PARM3)))
+ @param3.setVisible(true)
+ @TextParam3.setVisible(true)
+ @TextParam3.setText(@global(PARM3))
+@endif
+@if(!@String.length(@global(PARM3)))
+ @param3.clear
+ @param3.setVisible(false)
+ @TextParam3.setVisible(false)
+@endif
+@if(@String.length(@global(PARM4)))
+ @param4.setVisible(true)
+ @TextParam4.setVisible(true)
+ @TextParam4.setText(@global(PARM4))
+@endif
+@if(!@String.length(@global(PARM4)))
+ @param4.clear
+ @param4.setVisible(false)
+ @TextParam4.setVisible(false)
+@endif
+@TextDescription.setText(&lt;html&gt;@global(DESC)&lt;/html&gt;)
+
+</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="ScriptObject">
+ <property name="name">
+ <cstring>filterscript</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>220</x>
+ <y>380</y>
+ <width>32</width>
+ <height>32</height>
+ </rect>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@if(@wfilter.checked)
+ @filteron
+@endif
+@if(!@wfilter.checked)
+ @filteroff
+@endif</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="ScriptObject">
+ <property name="name">
+ <cstring>filteroff</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>300</x>
+ <y>380</y>
+ <width>32</width>
+ <height>32</height>
+ </rect>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@##### put the following in the @filteroff script #########
+@setGlobal(DCOP,"addUniqueItem(QString,QString)
+associatedText(QString)
+cellText(QString,int,int)
+checked(QString)
+children(QString,bool)
+clear(QString)
+count(QString)
+currentColumn(QString)
+currentItem(QString)
+currentRow(QString)
+execute(QString)
+findItem(QString,QString)
+insertColumn(QString,int,int)
+insertItem(QString,QString,int)
+insertItems(QString,QStringList,int)
+insertRow(QString,int,int)
+item(QString,int)
+itemDepth(QString,int)
+itemPath(QString,int)
+removeColumn(QString,int,int)
+removeItem(QString,int)
+removeRow(QString,int,int)
+selection(QString)
+setAssociatedText(QString,QString)
+setEnabled(QString,bool)
+setCellText(QString,int,int,QString)
+setCellWidget(QString,int,int,QString)
+cellWidget(QString,int,int)
+setChecked(QString,bool)
+setColumnCaption(QString,int,QString)
+setCurrentItem(QString,int)
+insertTab(QString,QString,int)
+setMaximum(QString,int)
+setPixmap(QString,QString,int)
+setRowCaption(QString,int,QString)
+setSelection(QString,QString)
+setText(QString,QString)
+setVisible(QString,bool)
+type(QString)
+setEditable(QString,bool)")
+
+@proto.clear
+@proto.insertItems(@global(DCOP), 0)
+
+</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="ScriptObject">
+ <property name="name">
+ <cstring>filteron</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>260</x>
+ <y>380</y>
+ <width>32</width>
+ <height>32</height>
+ </rect>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@##### put the following in @wfilter checked #########
+@setGlobal(start,@expr(@String.find("@wname.selection", " ")+2))
+@setGlobal(stop,@expr(@String.length("@wname.selection")-1))
+@setGlobal(length,@expr(@global(stop)-@global(start)))
+@setGlobal(teststr, @String.lower(@String.mid("@wname.selection", @global(start), @global(length))))
+@# @exec(kdialog --msgbox "Base: @wname.selection\nStart: @global(start)\nStop: @global(start)\nLength: @global(length)\nString: @global(teststr)")
+@switch(@global(teststr))
+
+@##### put the following in the @filteron script #########
+@case(aboutdialog)
+ @setGlobal(DCOP,"execute(QString)")
+
+@case(buttongroup)
+ @setGlobal(DCOP,"checked(QString)
+setChecked(QString,bool)")
+
+@case(checkbox)
+ @setGlobal(DCOP,"setText(QString,QString)
+checked(QString)
+setChecked(QString,bool)")
+
+@case(closebutton)
+ @setGlobal(DCOP,"setText(QString,QString)")
+
+@case(combobox)
+ @setGlobal(DCOP,"selection(QString)
+setSelection(QString,QString)
+currentItem(QString)
+setCurrentItem(QString,int)
+item(QString,int)
+removeItem(QString,int)
+insertItem(QString,QString,int)
+insertItems(QString,QStringList,int)
+addUniqueItem(QString,QString)
+clear(QString)
+count(QString)
+setEditable(QString,bool)")
+
+@case(datepicker)
+ @setGlobal(DCOP,"setText(QString,QString)")
+
+@case(dialog)
+ @setGlobal(DCOP,"setText(QString,QString)")
+
+@case(execbutton)
+ @setGlobal(DCOP,"setText(QString,QString)
+execute(QString)")
+
+@case(fileselector)
+ @setGlobal(DCOP,"setText(QString,QString)
+selection(QString)
+setSelection(QString,QString)
+clear(QString)")
+
+@case(fontdialog)
+ @setGlobal(DCOP,"execute(QString)")
+
+@case(groupbox)
+ @setGlobal(DCOP,"setText(QString,QString)")
+
+@case(konsole)
+ @setGlobal(DCOP,"setText(QString,QString)
+clear(QString)
+execute(QString)")
+
+@case(label)
+ @setGlobal(DCOP,"setText(QString,QString)
+clear(QString)")
+
+@case(lineedit)
+ @setGlobal(DCOP,"setText(QString,QString)
+selection(QString)
+setSelection(QString,QString)
+clear(QString)
+setEditable(QString,bool)")
+
+@case(listbox)
+ @setGlobal(DCOP,"setText(QString,QString)
+selection(QString)
+setSelection(QString,QString)
+insertItems(QString,QStringList,int)
+insertItem(QString,QString,int)
+removeItem(QString,int)
+clear(QString)
+currentItem(QString)
+setCurrentItem(QString,int)
+item(QString,int)
+addUniqueItem(QString,QString)
+findItem(QString,QString)
+setPixmap(QString,QString,int)
+count(QString)")
+
+@case(pixmaplabel)
+ @setGlobal(DCOP,"setText(QString,QString)
+clear(QString)")
+
+@case(popupmenu)
+ @setGlobal(DCOP,"clear(QString)
+execute(QString)
+item(QString,int)
+count(QString)")
+
+@case(progressbar)
+ @setGlobal(DCOP,"setText(QString,QString)
+clear(QString)
+setMaximum(QString,int)")
+
+@case(radiobutton)
+ @setGlobal(DCOP,"setText(QString,QString)
+setChecked(QString,bool)
+checked(QString)")
+
+@case(richtexteditor)
+ @setGlobal(DCOP,"setText(QString,QString)
+clear(QString)
+selection(QString)
+setEditable(QString,bool)")
+
+@case(scriptobject)
+ @setGlobal(DCOP,"setText(QString,QString)
+clear(QString)
+execute(QString)
+item(QString,int)
+count(QString)")
+
+@case(slider)
+ @setGlobal(DCOP,"setText(QString,QString)
+clear(QString)
+setMaximum(QString,int)")
+
+@case(spinboxint)
+ @setGlobal(DCOP,"setText(QString,QString)
+setMaximum(QString,int)")
+
+@case(statusbar)
+ @setGlobal(DCOP,"setText(QString,QString)
+insertItem(QString,QString,int)
+removeItem(QString,int)
+clear(QString)")
+
+@case(table)
+ @setGlobal(DCOP,"currentColumn(QString)
+currentRow(QString)
+insertColumn(QString,int,int)
+insertRow(QString,int,int)
+cellText(QString,int,int)
+setCellText(QString,int,int,QString)
+setCellWidget(QString,int,int,QString)
+cellWidget(QString,int,int)
+removeRow(QString,int,int)
+removeColumn(QString,int,int)
+setColumnCaption(QString,int,QString)
+setRowCaption(QString,int,QString)
+setText(QString,QString)
+selection(QString)")
+
+@case(tabwidget)
+ @setGlobal(DCOP,"currentItem(QString)
+setCurrentItem(QString,int)
+insertTab(QString,QString,int)")
+
+@case(textbrowser)
+ @setGlobal(DCOP,"setText(QString,QString)
+selection(QString)
+clear(QString)")
+
+@case(textedit)
+ @setGlobal(DCOP,"setText(QString,QString)
+selection(QString)
+setSelection(QString,QString)
+clear(QString)
+setEditable(QString,bool)")
+
+@case(timer)
+ @setGlobal(DCOP,"setText(QString,QString)
+execute(QString)")
+
+@case(timewidget)
+ @setGlobal(DCOP,"setText(QString,QString)")
+
+@case(toolbox)
+ @setGlobal(DCOP,"count(QString)")
+
+@case(treewidget)
+ @setGlobal(DCOP,"insertItem(QString,QString,int)
+setText(QString,QString)
+insertItems(QString,QStringList,int)
+selection(QString)
+setSelection(QString,QString)
+clear(QString)
+removeItem(QString,int)
+currentItem(QString)
+setCurrentItem(QString,int)
+findItem(QString,QString)
+item(QString,int)
+itemPath(QString,int)
+itemDepth(QString,int)
+setPixmap(QString,QString,int)
+setColumnCaption(QString,int,QString)")
+
+@end
+@proto.clear
+@proto.insertItems(@global(DCOP), 0)
+
+</string>
+ </stringlist>
+ </property>
+ </widget>
+</widget>
+<images>
+ <image name="image0">
+ <data format="XPM.GZ" length="812">789cbd915d4bc3301846effb2b427357645b3b3f36c49fa07829881769f276fd600a3a2f44fcefe6bc9b9195f5529f274d737a28a4e9bc300ff7b7a698676f3bb7ebbcf1ad7b354578df6e3f1e9f6e3eb3bcaa4c1ce5d294f95996cf8c37772fcfc2dac6b55d68c0012c5714ecc12a50b003cf1714dc80178e822d78b9a66000571ab001d74b0a7ab0bea260ad1828e840df5050c046a3fb3f997f36f637d3c68e8dabbd67d43f2a9920121a9d0e2a998d88e8d5b67b954cd70be9bb1855c90c838d22de883dde9bbeb3df9e1c191e1f94cc46264d535f2a536720a33390943ffd3fa7ccd775f60d4b60a687</data>
+ </image>
+</images>
+<connections>
+ <connection>
+ <sender>wname</sender>
+ <signal>widgetTextChanged(const QString&amp;)</signal>
+ <receiver>filterscript</receiver>
+ <slot>execute()</slot>
+ </connection>
+ <connection>
+ <sender>functiongroup</sender>
+ <signal>widgetTextChanged(const QString&amp;)</signal>
+ <receiver>proto</receiver>
+ <slot>populate()</slot>
+ </connection>
+ <connection>
+ <sender>proto</sender>
+ <signal>selectionChanged()</signal>
+ <receiver>setfunction</receiver>
+ <slot>execute()</slot>
+ </connection>
+</connections>
+<tabstops>
+ <tabstop>wname</tabstop>
+ <tabstop>param1</tabstop>
+ <tabstop>param2</tabstop>
+ <tabstop>param3</tabstop>
+ <tabstop>ExecButton18</tabstop>
+ <tabstop>window</tabstop>
+ <tabstop>widgetName</tabstop>
+</tabstops>
+<layoutdefaults spacing="6" margin="11"/>
+</UI>
diff --git a/kommander/kmdrtools/examples.kmdr b/kommander/kmdrtools/examples.kmdr
new file mode 100755
index 00000000..4e63e80f
--- /dev/null
+++ b/kommander/kmdrtools/examples.kmdr
@@ -0,0 +1,154 @@
+<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
+<class>Form2</class>
+<widget class="Dialog">
+ <property name="name">
+ <cstring>Form2</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>371</width>
+ <height>491</height>
+ </rect>
+ </property>
+ <property name="caption">
+ <string>Kommander Examples</string>
+ </property>
+ <property name="icon">
+ <pixmap>image0</pixmap>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ <string>TreeWidget19.insertItem("current", -1)
+array_indexedFromString("a", exec("cd "+_KDDIR+" &amp;&amp; ls -1 current/*.kmdr"), "\n")
+c = TreeWidget19.currentItem
+for i=0 to array_count("a")-1 do
+ TreeWidget19.insertItem(a[i], c)
+ debug(a[i])
+end
+TreeWidget19.insertItem("old", -1)
+c = TreeWidget19.currentItem
+array_indexedFromString("a", exec("cd "+_KDDIR+" &amp;&amp; ls -1 old/*kmdr"), "\n")
+for i=0 to array_count("a")-1 do
+ TreeWidget19.insertItem(a[i], c)
+end
+c = TreeWidget19.currentItem
+array_indexedFromString("a", exec("cd "+_KDDIR+" &amp;&amp; ls -1 tutorial/*kmdr"), "\n")
+for i=0 to array_count("a")-1 do
+ TreeWidget19.insertItem(a[i], c)
+end
+//debug(exec("ls -1 /home/eric/kdesvn/kdewebdev/kommander/examples/current/*.kmdr"))</string>
+ <string></string>
+ </stringlist>
+ </property>
+ <property name="useInternalParser">
+ <bool>true</bool>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>11</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <widget class="TreeWidget" row="0" column="0">
+ <column>
+ <property name="text">
+ <string>Examples</string>
+ </property>
+ <property name="clickable">
+ <bool>true</bool>
+ </property>
+ <property name="resizeable">
+ <bool>true</bool>
+ </property>
+ </column>
+ <property name="name">
+ <cstring>TreeWidget19</cstring>
+ </property>
+ <property name="tooltipColumn">
+ <number>0</number>
+ </property>
+ </widget>
+ <widget class="QLayoutWidget" row="1" column="0">
+ <property name="name">
+ <cstring>Layout90</cstring>
+ </property>
+ <hbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <property name="margin">
+ <number>0</number>
+ </property>
+ <property name="spacing">
+ <number>6</number>
+ </property>
+ <spacer>
+ <property name="name">
+ <cstring>Spacer39</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>71</width>
+ <height>0</height>
+ </size>
+ </property>
+ </spacer>
+ <widget class="ExecButton">
+ <property name="name">
+ <cstring>ExecButton108</cstring>
+ </property>
+ <property name="text">
+ <string>Open in &amp;new editor</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>d = TreeWidget19.itemDepth(TreeWidget19.currentItem)
+if d == 1 then
+ execBackground("kmdr-editor "+_KDDIR+"/"+TreeWidget19.itemPath(TreeWidget19.currentItem)+"/"+TreeWidget19.selection)
+else //directory
+
+endif</string>
+ </stringlist>
+ </property>
+ </widget>
+ <spacer>
+ <property name="name">
+ <cstring>Spacer40</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>71</width>
+ <height>0</height>
+ </size>
+ </property>
+ </spacer>
+ </hbox>
+ </widget>
+ </grid>
+</widget>
+<images>
+ <image name="image0">
+ <data format="XPM.GZ" length="6350">789ca598d94f1fc911c7dff7af40db6faba877a667baa747511e8c01e3030c06cc11e5a1aa7a86cbdc603051fef734f5ad9fed5d2952a4f521fba3beeaae1a7eff6de9606b63e9b7df7fb9bba7fb53599213ba5dfaad3c5c5c7cfbe7bffef1ef5f7e0d61a9fee9425e0abffeed975fb7ef976469f3ea727a013f56708dfe7a61597069b372068729f6cabbe0dcc8acbc622c4599c1a10dad72f1ca5d1370bfc77d5dcb01e70770176252de51eebb1c21df96720c6d87f51edcd3202fec5e29a7c01dee3b541e43dfa9b2ee4699dbd88e2a0f2997861a5d97040ed441dfa83c776d8ff5a3176e9b466cff6be5b6ded7aabe07ca5d37f6f4c2f400ee1bc84f1f95fb2859d7654f39a6766495c729a7b66d3a5dc77d431fa2ca2b9f9573ecb2ae975999dafa80ae5f1a0f0df6ef83fb79507bf927701e65d0f39372b507cef3837102fb2be3a1d1fd1efb4b65f87f193c3454f4fcaaf294a3e8ba6b5e3834ed88f3a528b72d352a0fef1b33e4f5df9443655d776aefd02d582e94fb568c3be3b9813ddf2a577b6695df6d1bf3a8f662514eed64fa7c521e6a38ea79867c39b48dfa9f8e95c705fb1f0c79d55f8142d7a8feee1a9cbaacfafb013c24d8c7df29f398912fee8db2c431e17d562ea137ff41be52eda9f2ca15784c05f10e7da7ba5fe5e3afc6b1d1789333f0200cff6e2acf21415f4fc643837cd5f8ace99971de6bfe756d65bc770aee52d0f8e77be550d7555efe0c4e09f1e95ae52e8c382fe7e0ae4680aeef832345e4eb2a788cd08f351fbb18b8d1fc70deb858bee1be983bc67b9aef55ba453c6d1b4b8b7a73094e7d823d37c15944f575b7ca43985ae4f7163813d6f98b71417c7bd82b6766c8ff9d8bbe479a9fdd1826e8ef173c9bfc199c02e4f167e09c08f1fb4e9916e749c0718c6a0f817e9ce70279b5fe75656c0bce6bfdeea6b1401e79569ec750903fa7c65dd1f749fdd7b75d84bd68cf3899bc1d38ce51f7b3c64f1f6a81837f37c0fdd4e9fb45e3b9efbb01f6a457c6638bf7efc07966c4eb9a721c09fef7e0347403de3b048f52501fd51ffdd091f94beb479fc75c50bfb5fef463c7886f5f8ca5457d5a07f78dc973021e479ca76cccd6dfde1897a2f92cd7df19f9f200e66e02639d3a8b57ff15cc11eb1c94b9ea83fc1fc1d4a27ffa4730e709f9a9fda697b117f873dd7886bd44fb5b5f16e759e3a79faa01105ff7604eb8af683cf573df427fd27c8c4ddfc05ea2fe8b6dead0cfbcde17bb61863fc4836998d05fb53ebdb4e309f5f69371467cb1d6c318fb8c7940b41fc594ad3e8bda230ebdc59fc3f9816982fce7606967f85bf329e6aa2fcedf1a0f93dadbad19cf13f255e3258e6326f81ffa513fb6e89fc7600a45f38b5be3cee23119cf13ea9dc67be47a5edff747e034637e21cdafda0c09eb0c798426d88b36c1dc9a7c9067ea6dde7207e03a5ea01fdc1bd714d3f31a4f351bfb80fe7e011ed3a8f672cf606a102facf1949a7ec67d740fe61efef26aff3a8d7419f553e33d853a70a1bf6b7ca5eaff84fa7c09e63a10eafe689c2dbe351f534fc4e87f9b6066cb8ff7c613e291d4be29d6fc80fe97c684fda4fd28a52a0fe6870b70951ff1a5f99e061a11ffe2c0dfe5db302e33fa81ceaf29c7087bf30c1e53863c03b8ca83fa087dc6d8e37dbf0c669970df0765926646bdd478484c05eb0c7b72f537e261c738435fdf8317e77d671c26d85ffb7d7a891f5d27e823d59ee8075a8f53a9fae2fd2be31efa5334a609fd17f217e9cc7eda4fd2944a07be06d7fbd0efcf8c05e7a9372e789fb51ea5991bab072acfd04446fcc83b6369e1ff67e3a9457e9d825313109f5bc66d40fdd1fe31b4291beb7b43a8e7f57eeac0d2c05e148c5bc48fcbc619f6259d67872ece013c82ebf8827ab307ce92d45fa4fd63e853ead01fb51e0fb1be8f7e7108ce39a1be607fa49170ff07f0c29feec27898314f6bbd1952b4fc746aef614813be47dc399832a17edc81a5b7fcb9361e511f59fd33e4dabe21df93710c88e7b7e0fa3ee4d37a338ca9833dbc185bbde1c9389abd9e8d5340fdb835ce01f322de1f47ca8807cdf781d380fa4f2b0b0e88cf2fe03aeec1deb65fac5f11e247aaffd01fb4df0ea59e473eed826b3d417d867da6349a7c37c6847ac94fc605eb04f9a76a3fdc8ff89917e769d7d8ced3155826f88f35bf7293d8d64f8ca780786fc143d3a17e1b2fdea31b63863f44e325b7f53eb59fc77dede2bc4ce04c09f6d57a9043ae21a8f2ec81ab3de0ff75b0c80c7be1fe2e31fce1ee8d05f9e4eec0436bf1cee05a2f50ff347e725fc73bc4db7be301f2b947b044f467a7f37dfd9a317b91379e218f837e491af45fa7f3681eaaff11af3a0fe43c04c4179f82c5fa0d69bdafd3fae23eed8f99eb38827eb40c9638213ebf804b67fb35de6b3a0c01f543f3af0e2f09f586b51ee56960e4a3877c53e94d9fcbef8cefd7c138ce9897609f3a3d05f8e7192cd6df58e51fdb41ccde6b6059f40fad7f6390d1ea19f6f7b9ef313fbc06978cf748eb6ffd5a0ce66f9d6fea746cf313a93feab8dbf69837b57fd66c8df6f31331ce3df245fd33723d8ff96ad378b07eba62cc33ea95c6d72839a19ed2b231c11f74042ec9eedb3266c8ef57bf33ecadf5b54ebb56df48e38b9a2c3de637adb7d48e8dfdfca50117abaf7edf58709f68fda0900bf4753be0ba8efea7f580fa3ce1e73f746e3cf78897042ec5f455fd292e5834fe285579b05ffb130d63077fc9a371847d49e7833abd14bcef3e1acf33fa81e63351b507f24feb35f1d4d8bafabf7eac36789f35bfa88cf58341d7b57ed15426bb7f024f2dce93f6a33add2e58e781fa315d2750dd1fc153b0f7745eaa5f3b61c63ca1f5f4659a34d678abd3d382757eaa5f1fc6dbf7ffffefbfb6df3b4ffa2f7bf1c54ff57fb33ffe5ffbfdb13ff1a7fecc9ffb2ffec25ffa2b7fed6ffcadbff3f7fec17ff58ffee90ffbbff967ffca2ffbd77ec5affa35ffc6affbb7fe9d7fef3ff80dbfe93ffaadc57ebfed3ff91dbfebf7fc67bfef0ffca13ff28d6f7df09def7df4c90f3efb11fb9d77ce916327aeb8c9cdeed89db85377e6cedd1777e12edd95bb76377e5cc8ef6edd9dbb770feeab7b744fee5bfdfbec5eb965f7daadb855b7e6deb875f7f6677ddd3bf7de7d701b6eb3defed16db96df7c9edb85db7e73ebb7d77e00eddd18ffdae71ad0bae73bd8b2eb9c1e55a1e3cd5982426a15207cb998e7feca7133aa5333aa72f7441977445d77443b77447f7f4405fe9919ee81b3dd3abeffb97e935add02aadd11b5aa7b7f48eded307daa04dfa485bb44d9f68877669effbfecfb44f07744847d4504b813aea2952a297196964cf8e8999e587beb5384d3cf3319ff0299ff1397fe10bbee42bbee61bbee53bbee7871ff2f3577ee427fec6cffc8a97f935aff02aaff11b5ee7b7fc8edff307dee0cd9ff67fe42ddee64fbcc3bbbcc79f799f0ff8908fea44d372e08e7bae9f873fdb9f07ae9fbfe2c509098b4891496639961339953339972f72f1f37eb9942bb9961bb9953bb99707f92a8ff224dfe4595ed513cbf2fa8ff12c2bb22a6bf246d6e52d277927efe5836cc8a67c942dd9964fb2f3a7fdbbb2279f655f0ee4508ea491568274527bb8241924cbf8e77cf1a31f8b2faed40c2b5c84e652eaffa632ffa5fcfdcfdf7ff92f64b3cec5</data>
+ </image>
+</images>
+<layoutdefaults spacing="6" margin="11"/>
+</UI>