<!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(TQString)
keys(TQString)
clear(TQString)
count(TQString)
count(TQString)
remove(TQString,TQString)
remove(TQString,TQString)
fromString(TQString,TQString)
toString(TQString)
toString(TQString)
toString(TQString)
toString(TQString)
toString(TQString)")
@setGlobal(File,"read(TQString)
write(TQString,TQString)
append(TQString,TQString)")
@setGlobal(Input,"text(TQString,TQString,TQString)
password(TQString,TQString)
value(TQString,TQString,int,int,int,int)
double(TQString,TQString,double,double,double,double)
openfile(TQString,TQString,TQString)
savefile(TQString,TQString,TQString)
directory(TQString,TQString,TQString)
openfiles(TQString,TQString,TQString)")
@setGlobal(DCOP,"addUniqueItem(TQString,TQString)
associatedText(TQString)
cellText(TQString,int,int)
checked(TQString)
children(TQString,bool)
clear(TQString)
count(TQString)
currentColumn(TQString)
currentItem(TQString)
currentRow(TQString)
execute(TQString)
findItem(TQString,TQString)
insertColumn(TQString,int,int)
insertItem(TQString,TQString,int)
insertItems(TQString,QStringList,int)
insertRow(TQString,int,int)
item(TQString,int)
itemDepth(TQString,int)
itemPath(TQString,int)
removeColumn(TQString,int,int)
removeItem(TQString,int)
removeRow(TQString,int,int)
selection(TQString)
setAssociatedText(TQString,TQString)
setEnabled(TQString,bool)
setCellText(TQString,int,int,TQString)
setCellWidget(TQString,int,int,TQString)
cellWidget(TQString,int,int)
setChecked(TQString,bool)
setColumnCaption(TQString,int,TQString)
setCurrentItem(TQString,int)
insertTab(TQString,TQString,int)
setMaximum(TQString,int)
setPixmap(TQString,TQString,int)
setRowCaption(TQString,int,TQString)
setSelection(TQString,TQString)
setText(TQString,TQString)
setVisible(TQString,bool)
type(TQString)
setEditable(TQString,bool)")
@setGlobal(File,"read(TQString)
write(TQString,TQString)
append(TQString,TQString)")
@setGlobal(KommanderMessage,"")
@setGlobal(String,"length(TQString)
contains(TQString,TQString)
find(TQString,TQString,int)
findRev(TQString,TQString,int)
left(TQString,int)
right(TQString,int)
mid(TQString,int,int)
remove(TQString,TQString)
replace(TQString,TQString,TQString)
upper(TQString)
lower(TQString)
compare(TQString,TQString)
isEmpty(TQString)
isNumber(TQString)
section(TQString,TQString,int)
args(TQString,TQString,TQString,TQString)
args(TQString,TQString,TQString,TQString)
args(TQString,TQString,TQString,TQString)")
@functiongroup.setCurrentItem(1)
@proto.insertItems(@global(DCOP), 0)
</string>
<string></string>
</stringlist>
</property>
<widget class="TQLayoutWidget">
<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="TQLabel">
<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="TQLayoutWidget">
<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="TQLabel">
<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="TQLayoutWidget">
<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&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>&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>&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="TQLabel" 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 &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(TQString,bool)", @global(pdlg), 1 ))
@setGlobal(iwd,"")
@forEach(i, @global(items))
@setGlobal(iwd, "@global(iwd)@i (@dcop(@global(pdlg), KommanderIf, "type(TQString)", @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(TQString,TQString))
@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(TQString))
@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(TQString,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(TQString))
@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(TQString,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 <i>recursive</i> parameter to <i>true</i> to include widgets contained by child widgets.")
@case(DCOP::clear(TQString))
@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(TQString))
@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(TQString))
@setGlobal(enWidget,1)
@setGlobal(PARM1,"")
@setGlobal(PARM2,"")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,currentColumn)
@setGlobal(DESC,"Returns index of current column.")
@case(DCOP::currentItem(TQString))
@setGlobal(enWidget,1)
@setGlobal(PARM1,"")
@setGlobal(PARM2,"")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,currentItem)
@setGlobal(DESC,"Returns index of current item.")
@case(DCOP::currentRow(TQString))
@setGlobal(enWidget,1)
@setGlobal(PARM1,"")
@setGlobal(PARM2,"")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,currentRow)
@setGlobal(DESC,"Returns index of current row.")
@case(DCOP::execute(TQString))
@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(TQString,TQString))
@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(TQString,int,int))
@setGlobal(enWidget,1)
@setGlobal(PARM1,"column")
@setGlobal(PARM2,"count")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,insertColumn)
@setGlobal(DESC,"Inserts new column &#040;or <i>count</i> columns&#041; at <i>column</i> position.")
@case(DCOP::insertItem(TQString,TQString,int))
@setGlobal(enWidget,1)
@setGlobal(PARM1,"item")
@setGlobal(PARM2,"index")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,insertItem)
@setGlobal(DESC,"Inserts item at <i>index</i> position.")
@case(DCOP::insertItems(TQString,QStringList,int))
@setGlobal(enWidget,1)
@setGlobal(PARM1,"items")
@setGlobal(PARM2,"index")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,insertItems)
@setGlobal(DESC,"Inserts multiple items &#040;EOL-separated&#041; at <i>index</i> position.")
@case(DCOP::insertRow(TQString,int,int))
@setGlobal(enWidget,1)
@setGlobal(PARM1,"row")
@setGlobal(PARM2,"count")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,insertRow)
@setGlobal(DESC,"Inserts new row &#040;or <i>count</i> rows&#041; at <i>row</i> position.")
@case(DCOP::item(TQString,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(TQString,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(TQString,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(TQString,int,int))
@setGlobal(enWidget,1)
@setGlobal(PARM1,"column")
@setGlobal(PARM2,"count")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,removeColumn)
@setGlobal(DESC,"Removes the column &#040;or <i>count</i> consecutive columns&#041; with the given index.")
@case(DCOP::removeItem(TQString,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(TQString,int,int))
@setGlobal(enWidget,1)
@setGlobal(PARM1,"row")
@setGlobal(PARM2,"count")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,removeRow)
@setGlobal(DESC,"Removes the row &#040;or <i>count</i> consecutive rows&#041; with the given index.")
@case(DCOP::selection(TQString))
@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(TQString,TQString))
@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(TQString,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(TQString,int,int,TQString))
@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(TQString,int,int,TQString))
@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(TQString,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(TQString,bool))
@setGlobal(enWidget,1)
@setGlobal(PARM1,"checked")
@setGlobal(PARM2,"")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,setChecked)
@setGlobal(DESC,"Sets/unsets checkbox.")
@case(DCOP::setColumnCaption(TQString,int,TQString))
@setGlobal(enWidget,1)
@setGlobal(PARM1,"column")
@setGlobal(PARM2,"text")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,setColumnCaption)
@setGlobal(DESC,"Sets caption of the column <i>column</i>.")
@case(DCOP::setCurrentItem(TQString,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(TQString,TQString,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(TQString,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(TQString,TQString,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 <i>index = -1</i> to set the pixmap for all items.")
@case(DCOP::setRowCaption(TQString,int,TQString))
@setGlobal(enWidget,1)
@setGlobal(PARM1,"row")
@setGlobal(PARM2,"text")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,setRowCaption)
@setGlobal(DESC,"Sets caption of the row <i>row</i>.")
@case(DCOP::setSelection(TQString,TQString))
@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(TQString,TQString))
@setGlobal(enWidget,1)
@setGlobal(PARM1,"text")
@setGlobal(PARM2,"")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,setText)
@setGlobal(DESC,"Sets widget's content.")
@case(DCOP::setVisible(TQString,bool))
@setGlobal(enWidget,1)
@setGlobal(PARM1,"visible")
@setGlobal(PARM2,"")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,setVisible)
@setGlobal(DESC,"Shows/hides widget.")
@case(DCOP::type(TQString))
@setGlobal(enWidget,1)
@setGlobal(PARM1,"")
@setGlobal(PARM2,"")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,type)
@setGlobal(DESC,"Returns type&#040;class&#041; of widget.")
@case(DCOP::setEditable(TQString,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(TQString,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 &#064;A.text inside B instead of just &#064;A if you just want the unaltered text.")
@case(Kommander::setEditable(TQString,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 <i>&#064;mywidget.selected</i>.")
@case(Kommander::setEditable(TQString,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 &#064;null prevents an error indicating it is empty.")
@case(Kommander::pid(TQString,bool))
@setGlobal(enWidget,1)
@setGlobal(PARM1,"editable")
@setGlobal(PARM2,"")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,pid)
@setGlobal(DESC,"Returns the pid &#040;process ID&#041; of the current process.")
@case(Kommander::dcopid(TQString,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 <i>kmdr-executor-&#064;pid</i>.")
@case(Kommander::parentPid(TQString,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(TQString))
@setGlobal(enWidget,0)
@setGlobal(PARM1,"text")
@setGlobal(PARM2,"")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,debug)
@setGlobal(DESC,"Writes <i>text</i> on stderr.")
@case(Kommander::echo(TQString))
@setGlobal(enWidget,0)
@setGlobal(PARM1,"text")
@setGlobal(PARM2,"")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,echo)
@setGlobal(DESC,"Writes <i>text</i> on standard output.")
@case(Kommander::echo(TQString))
@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. <p><i>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.</i>")
@case(Kommander::env(TQString))
@setGlobal(enWidget,0)
@setGlobal(PARM1,"variable")
@setGlobal(PARM2,"")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,env)
@setGlobal(DESC,"Returns value of an environment &#040;shell&#041; variable. Do not use <i>$</i> in the name. For example, <i>&#064;env&#040;PATH&#041;</i>.")
@case(Kommander::exec(TQString))
@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(TQString))
@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(TQString,TQString))
@setGlobal(enWidget,0)
@setGlobal(PARM1,"variable")
@setGlobal(PARM2,"items")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,forEach)
@setGlobal(DESC,"Executes loop: values from <i>items</i> list &#040;passed as EOL-separated string&#041; are assigned to the variable. <br><b>Old</b><br> <i>&#064;forEach&#040;i,A\\nB\\nC\\n&#041;<br> &#064;# &#064;i=A<br>&#064;end</i><br><b>New</b><br><i>foreach i in MyArray do<br> //i = key, MyArray[i] = val<br>end ")
@case(Kommander::for(TQString,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 <i>start</i> and is increased by <i>step</i> each time loop is executed. Execution stops when variable becomes larger then <i>end</i>. <br><b>Old</b><br><i>&#064;for&#040;i,1,10,1&#041;<br> &#064;# &#064;i=1<br>&#064;endif</i><br><b>New</b><br><i>for i=0 to 20 step 5 do<br> debug&#040;i&#041;<br>end</i>.")
@case(Kommander::for(TQString,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(TQString))
@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(TQString))
@setGlobal(enWidget,0)
@setGlobal(PARM1,"expression")
@setGlobal(PARM2,"")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,if)
@setGlobal(DESC,"Executes block if expression is true &#040;non-zero number or non-empty string.&#041; <p><b>Old</b>Close with <b>&#064;endif</b></p><p><b>New</b><br>if val == true then<br>// do op<br>elseif cond<br>// second chance<br>else<br>// cond failed<br>endif</p>")
@case(Kommander::dialog(TQString,TQString))
@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: <i>var=val</i>")
@case(Kommander::readSetting(TQString,TQString))
@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(TQString,TQString))
@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(TQString,TQString))
@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(TQString,TQString))
@setGlobal(enWidget,0)
@setGlobal(PARM1,"key")
@setGlobal(PARM2,"value")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,writeSetting)
@setGlobal(DESC,"Begin of <b>switch</b> block. Following <b>case</b> values are compared to <i>expression</i>.<p>&#064;switch&#040;&#041;<br>&#064;case&#040;&#041;<br>&#064;end")
@case(Kommander::dcop(TQString,TQString,TQString,TQString))
@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(TQString,TQString,TQString,TQString))
@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(TQString,TQString,TQString,TQString))
@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(TQString,TQString,TQString,TQString))
@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(TQString,TQString,TQString,TQString))
@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(TQString,TQString,TQString,TQString))
@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(TQString,TQString,TQString,TQString))
@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(TQString,TQString,TQString,TQString))
@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(TQString,TQString,TQString,TQString))
@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(TQString,TQString,TQString,TQString))
@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(TQString))
@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(TQString))
@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(TQString))
@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(TQString))
@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(TQString))
@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(TQString,TQString))
@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(TQString,TQString))
@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(TQString,TQString))
@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(TQString))
@setGlobal(enWidget,0)
@setGlobal(PARM1,"array")
@setGlobal(PARM2,"")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,toString)
@setGlobal(DESC,"Returns all elements in the array in <pre>key\\tvalue\\n</pre> format.")
@case(Array::toString(TQString))
@setGlobal(enWidget,0)
@setGlobal(PARM1,"array")
@setGlobal(PARM2,"")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,toString)
@setGlobal(DESC,"")
@case(Array::toString(TQString))
@setGlobal(enWidget,0)
@setGlobal(PARM1,"array")
@setGlobal(PARM2,"")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,toString)
@setGlobal(DESC,"")
@case(Array::toString(TQString))
@setGlobal(enWidget,0)
@setGlobal(PARM1,"array")
@setGlobal(PARM2,"")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,toString)
@setGlobal(DESC,"")
@case(Array::toString(TQString))
@setGlobal(enWidget,0)
@setGlobal(PARM1,"array")
@setGlobal(PARM2,"")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,toString)
@setGlobal(DESC,"")
@case(String::length(TQString))
@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(TQString,TQString))
@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(TQString,TQString,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(TQString,TQString,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(TQString,int))
@setGlobal(enWidget,0)
@setGlobal(PARM1,"string")
@setGlobal(PARM2,"n")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,left)
@setGlobal(DESC,"Returns the first <i>n</i> chars of the string.")
@case(String::right(TQString,int))
@setGlobal(enWidget,0)
@setGlobal(PARM1,"string")
@setGlobal(PARM2,"n")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,right)
@setGlobal(DESC,"Returns the last <i>n</i> chars of the string.")
@case(String::mid(TQString,int,int))
@setGlobal(enWidget,0)
@setGlobal(PARM1,"string")
@setGlobal(PARM2,"start")
@setGlobal(PARM3,"n")
@setGlobal(PARM4,"")
@setGlobal(short,mid)
@setGlobal(DESC,"Returns <i>n</i> chars of the string, starting from <i>start</i>.")
@case(String::remove(TQString,TQString))
@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(TQString,TQString,TQString))
@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(TQString))
@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(TQString))
@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(TQString,TQString))
@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(TQString))
@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(TQString))
@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(TQString,TQString,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(TQString,TQString,TQString,TQString))
@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 <i>arg1</i>, <i>arg2</i>, <i>arg3</i> accordingly.")
@case(String::args(TQString,TQString,TQString,TQString))
@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(TQString,TQString,TQString,TQString))
@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(TQString))
@setGlobal(enWidget,0)
@setGlobal(PARM1,"")
@setGlobal(PARM2,"")
@setGlobal(PARM3,"")
@setGlobal(PARM4,"")
@setGlobal(short,read)
@setGlobal(DESC,"Returns content of given file.")
@case(File::write(TQString,TQString))
@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(TQString,TQString))
@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(TQString,TQString,TQString))
@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(TQString,TQString))
@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(TQString,TQString,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(TQString,TQString,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(TQString,TQString,TQString))
@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(TQString,TQString,TQString))
@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(TQString,TQString,TQString))
@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(TQString,TQString,TQString))
@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(TQString,TQString))
@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(TQString,TQString))
@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(TQString,TQString,TQString,TQString,TQString))
@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(TQString,TQString,TQString,TQString,TQString))
@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(<html>@global(DESC)</html>)
</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(TQString,TQString)
associatedText(TQString)
cellText(TQString,int,int)
checked(TQString)
children(TQString,bool)
clear(TQString)
count(TQString)
currentColumn(TQString)
currentItem(TQString)
currentRow(TQString)
execute(TQString)
findItem(TQString,TQString)
insertColumn(TQString,int,int)
insertItem(TQString,TQString,int)
insertItems(TQString,QStringList,int)
insertRow(TQString,int,int)
item(TQString,int)
itemDepth(TQString,int)
itemPath(TQString,int)
removeColumn(TQString,int,int)
removeItem(TQString,int)
removeRow(TQString,int,int)
selection(TQString)
setAssociatedText(TQString,TQString)
setEnabled(TQString,bool)
setCellText(TQString,int,int,TQString)
setCellWidget(TQString,int,int,TQString)
cellWidget(TQString,int,int)
setChecked(TQString,bool)
setColumnCaption(TQString,int,TQString)
setCurrentItem(TQString,int)
insertTab(TQString,TQString,int)
setMaximum(TQString,int)
setPixmap(TQString,TQString,int)
setRowCaption(TQString,int,TQString)
setSelection(TQString,TQString)
setText(TQString,TQString)
setVisible(TQString,bool)
type(TQString)
setEditable(TQString,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(TQString)")
@case(buttongroup)
@setGlobal(DCOP,"checked(TQString)
setChecked(TQString,bool)")
@case(checkbox)
@setGlobal(DCOP,"setText(TQString,TQString)
checked(TQString)
setChecked(TQString,bool)")
@case(closebutton)
@setGlobal(DCOP,"setText(TQString,TQString)")
@case(combobox)
@setGlobal(DCOP,"selection(TQString)
setSelection(TQString,TQString)
currentItem(TQString)
setCurrentItem(TQString,int)
item(TQString,int)
removeItem(TQString,int)
insertItem(TQString,TQString,int)
insertItems(TQString,QStringList,int)
addUniqueItem(TQString,TQString)
clear(TQString)
count(TQString)
setEditable(TQString,bool)")
@case(datepicker)
@setGlobal(DCOP,"setText(TQString,TQString)")
@case(dialog)
@setGlobal(DCOP,"setText(TQString,TQString)")
@case(execbutton)
@setGlobal(DCOP,"setText(TQString,TQString)
execute(TQString)")
@case(fileselector)
@setGlobal(DCOP,"setText(TQString,TQString)
selection(TQString)
setSelection(TQString,TQString)
clear(TQString)")
@case(fontdialog)
@setGlobal(DCOP,"execute(TQString)")
@case(groupbox)
@setGlobal(DCOP,"setText(TQString,TQString)")
@case(konsole)
@setGlobal(DCOP,"setText(TQString,TQString)
clear(TQString)
execute(TQString)")
@case(label)
@setGlobal(DCOP,"setText(TQString,TQString)
clear(TQString)")
@case(lineedit)
@setGlobal(DCOP,"setText(TQString,TQString)
selection(TQString)
setSelection(TQString,TQString)
clear(TQString)
setEditable(TQString,bool)")
@case(listbox)
@setGlobal(DCOP,"setText(TQString,TQString)
selection(TQString)
setSelection(TQString,TQString)
insertItems(TQString,QStringList,int)
insertItem(TQString,TQString,int)
removeItem(TQString,int)
clear(TQString)
currentItem(TQString)
setCurrentItem(TQString,int)
item(TQString,int)
addUniqueItem(TQString,TQString)
findItem(TQString,TQString)
setPixmap(TQString,TQString,int)
count(TQString)")
@case(pixmaplabel)
@setGlobal(DCOP,"setText(TQString,TQString)
clear(TQString)")
@case(popupmenu)
@setGlobal(DCOP,"clear(TQString)
execute(TQString)
item(TQString,int)
count(TQString)")
@case(progressbar)
@setGlobal(DCOP,"setText(TQString,TQString)
clear(TQString)
setMaximum(TQString,int)")
@case(radiobutton)
@setGlobal(DCOP,"setText(TQString,TQString)
setChecked(TQString,bool)
checked(TQString)")
@case(richtexteditor)
@setGlobal(DCOP,"setText(TQString,TQString)
clear(TQString)
selection(TQString)
setEditable(TQString,bool)")
@case(scriptobject)
@setGlobal(DCOP,"setText(TQString,TQString)
clear(TQString)
execute(TQString)
item(TQString,int)
count(TQString)")
@case(slider)
@setGlobal(DCOP,"setText(TQString,TQString)
clear(TQString)
setMaximum(TQString,int)")
@case(spinboxint)
@setGlobal(DCOP,"setText(TQString,TQString)
setMaximum(TQString,int)")
@case(statusbar)
@setGlobal(DCOP,"setText(TQString,TQString)
insertItem(TQString,TQString,int)
removeItem(TQString,int)
clear(TQString)")
@case(table)
@setGlobal(DCOP,"currentColumn(TQString)
currentRow(TQString)
insertColumn(TQString,int,int)
insertRow(TQString,int,int)
cellText(TQString,int,int)
setCellText(TQString,int,int,TQString)
setCellWidget(TQString,int,int,TQString)
cellWidget(TQString,int,int)
removeRow(TQString,int,int)
removeColumn(TQString,int,int)
setColumnCaption(TQString,int,TQString)
setRowCaption(TQString,int,TQString)
setText(TQString,TQString)
selection(TQString)")
@case(tabwidget)
@setGlobal(DCOP,"currentItem(TQString)
setCurrentItem(TQString,int)
insertTab(TQString,TQString,int)")
@case(textbrowser)
@setGlobal(DCOP,"setText(TQString,TQString)
selection(TQString)
clear(TQString)")
@case(textedit)
@setGlobal(DCOP,"setText(TQString,TQString)
selection(TQString)
setSelection(TQString,TQString)
clear(TQString)
setEditable(TQString,bool)")
@case(timer)
@setGlobal(DCOP,"setText(TQString,TQString)
execute(TQString)")
@case(timewidget)
@setGlobal(DCOP,"setText(TQString,TQString)")
@case(toolbox)
@setGlobal(DCOP,"count(TQString)")
@case(treewidget)
@setGlobal(DCOP,"insertItem(TQString,TQString,int)
setText(TQString,TQString)
insertItems(TQString,QStringList,int)
selection(TQString)
setSelection(TQString,TQString)
clear(TQString)
removeItem(TQString,int)
currentItem(TQString)
setCurrentItem(TQString,int)
findItem(TQString,TQString)
item(TQString,int)
itemPath(TQString,int)
itemDepth(TQString,int)
setPixmap(TQString,TQString,int)
setColumnCaption(TQString,int,TQString)")
@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 TQString&)</signal>
<receiver>filterscript</receiver>
<slot>execute()</slot>
</connection>
<connection>
<sender>functiongroup</sender>
<signal>widgetTextChanged(const TQString&)</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>