|
@@ -1,235 +1,318 @@
|
|
|
-<ui version="4.0" stdsetdef="1" >
|
|
|
- <author></author>
|
|
|
- <comment></comment>
|
|
|
- <exportmacro></exportmacro>
|
|
|
- <class>ToolProperties</class>
|
|
|
- <widget class="QDialog" name="ToolProperties" >
|
|
|
- <property name="geometry" >
|
|
|
- <rect>
|
|
|
- <x>0</x>
|
|
|
- <y>0</y>
|
|
|
- <width>600</width>
|
|
|
- <height>184</height>
|
|
|
- </rect>
|
|
|
- </property>
|
|
|
- <property name="windowTitle" >
|
|
|
- <string>Tool Properties</string>
|
|
|
- </property>
|
|
|
- <layout class="QVBoxLayout" >
|
|
|
- <item>
|
|
|
- <layout class="QGridLayout" >
|
|
|
- <property name="margin" >
|
|
|
- <number>0</number>
|
|
|
- </property>
|
|
|
- <item row="1" column="0" >
|
|
|
- <widget class="QLabel" name="commandLineLabel" >
|
|
|
- <property name="text" >
|
|
|
- <string>Command &Line:</string>
|
|
|
- </property>
|
|
|
- <property name="alignment" >
|
|
|
- <set>Qt::AlignVCenter|Qt::AlignRight</set>
|
|
|
- </property>
|
|
|
- <property name="buddy" stdset="0" >
|
|
|
- <cstring>commandLine</cstring>
|
|
|
- </property>
|
|
|
- <property name="wordWrap" >
|
|
|
- <bool>false</bool>
|
|
|
- </property>
|
|
|
- </widget>
|
|
|
- </item>
|
|
|
- <item rowspan="2" row="2" column="0" colspan="1" >
|
|
|
- <widget class="QLabel" name="workingDirectoryLabel" >
|
|
|
- <property name="text" >
|
|
|
- <string>&Working Directory:</string>
|
|
|
- </property>
|
|
|
- <property name="alignment" >
|
|
|
- <set>Qt::AlignVCenter|Qt::AlignRight</set>
|
|
|
- </property>
|
|
|
- <property name="buddy" stdset="0" >
|
|
|
- <cstring>workingDirectory</cstring>
|
|
|
- </property>
|
|
|
- <property name="wordWrap" >
|
|
|
- <bool>false</bool>
|
|
|
- </property>
|
|
|
- </widget>
|
|
|
- </item>
|
|
|
- <item rowspan="1" row="3" column="1" colspan="2" >
|
|
|
- <widget class="KUrlRequester" name="workingDirectory" >
|
|
|
- <property name="mode" >
|
|
|
- <set>KFile::LocalOnly|KFile::ExistingOnly|KFile::Directory</set>
|
|
|
- </property>
|
|
|
- </widget>
|
|
|
- </item>
|
|
|
- <item rowspan="2" row="1" column="1" colspan="1" >
|
|
|
- <widget class="KLineEdit" name="commandLine" />
|
|
|
- </item>
|
|
|
- <item rowspan="1" row="4" column="0" colspan="3" >
|
|
|
- <widget class="QCheckBox" name="runInTerminal" >
|
|
|
- <property name="text" >
|
|
|
- <string>&Run in Terminal</string>
|
|
|
- </property>
|
|
|
- <property name="shortcut" >
|
|
|
- <string>Alt+R</string>
|
|
|
- </property>
|
|
|
- </widget>
|
|
|
- </item>
|
|
|
- <item rowspan="1" row="0" column="1" colspan="2" >
|
|
|
- <widget class="KLineEdit" name="toolTitle" />
|
|
|
- </item>
|
|
|
- <item rowspan="2" row="1" column="2" colspan="1" >
|
|
|
- <widget class="KPushButton" name="browseButton" >
|
|
|
- <property name="text" >
|
|
|
- <string>&Browse...</string>
|
|
|
- </property>
|
|
|
- <property name="shortcut" >
|
|
|
- <string>Alt+B</string>
|
|
|
- </property>
|
|
|
- </widget>
|
|
|
- </item>
|
|
|
- <item row="0" column="0" >
|
|
|
- <widget class="QLabel" name="toolTitleLabel" >
|
|
|
- <property name="text" >
|
|
|
- <string>&Title:</string>
|
|
|
- </property>
|
|
|
- <property name="alignment" >
|
|
|
- <set>Qt::AlignVCenter|Qt::AlignRight</set>
|
|
|
- </property>
|
|
|
- <property name="buddy" stdset="0" >
|
|
|
- <cstring>toolTitle</cstring>
|
|
|
- </property>
|
|
|
- <property name="wordWrap" >
|
|
|
- <bool>false</bool>
|
|
|
- </property>
|
|
|
- </widget>
|
|
|
- </item>
|
|
|
- </layout>
|
|
|
- </item>
|
|
|
- <item>
|
|
|
- <spacer name="spacer18" >
|
|
|
- <property name="sizeHint" >
|
|
|
- <size>
|
|
|
- <width>20</width>
|
|
|
- <height>21</height>
|
|
|
- </size>
|
|
|
- </property>
|
|
|
- <property name="sizeType" >
|
|
|
- <enum>Expanding</enum>
|
|
|
- </property>
|
|
|
- <property name="orientation" >
|
|
|
- <enum>Vertical</enum>
|
|
|
- </property>
|
|
|
- </spacer>
|
|
|
- </item>
|
|
|
- <item>
|
|
|
- <layout class="QHBoxLayout" >
|
|
|
- <property name="margin" >
|
|
|
- <number>0</number>
|
|
|
- </property>
|
|
|
- <item>
|
|
|
- <spacer name="spacer2" >
|
|
|
- <property name="sizeHint" >
|
|
|
- <size>
|
|
|
- <width>321</width>
|
|
|
- <height>20</height>
|
|
|
- </size>
|
|
|
- </property>
|
|
|
- <property name="sizeType" >
|
|
|
- <enum>Expanding</enum>
|
|
|
- </property>
|
|
|
- <property name="orientation" >
|
|
|
- <enum>Horizontal</enum>
|
|
|
- </property>
|
|
|
- </spacer>
|
|
|
- </item>
|
|
|
- <item>
|
|
|
- <widget class="KPushButton" name="okButton" >
|
|
|
- <property name="enabled" >
|
|
|
- <bool>false</bool>
|
|
|
- </property>
|
|
|
- <property name="text" >
|
|
|
- <string>&OK</string>
|
|
|
- </property>
|
|
|
- <property name="shortcut" >
|
|
|
- <string>Alt+O</string>
|
|
|
- </property>
|
|
|
- <property name="stdItem" stdset="0" >
|
|
|
- <number>1</number>
|
|
|
- </property>
|
|
|
- </widget>
|
|
|
- </item>
|
|
|
- <item>
|
|
|
- <widget class="KPushButton" name="cancelButton" >
|
|
|
- <property name="text" >
|
|
|
- <string>&Cancel</string>
|
|
|
- </property>
|
|
|
- <property name="shortcut" >
|
|
|
- <string>Alt+C</string>
|
|
|
- </property>
|
|
|
- <property name="stdItem" stdset="0" >
|
|
|
- <number>2</number>
|
|
|
- </property>
|
|
|
- </widget>
|
|
|
- </item>
|
|
|
- </layout>
|
|
|
- </item>
|
|
|
+<ui version="4.0" >
|
|
|
+ <class>ToolProperties</class>
|
|
|
+ <widget class="QDialog" name="ToolProperties" >
|
|
|
+ <property name="geometry" >
|
|
|
+ <rect>
|
|
|
+ <x>0</x>
|
|
|
+ <y>0</y>
|
|
|
+ <width>600</width>
|
|
|
+ <height>184</height>
|
|
|
+ </rect>
|
|
|
+ </property>
|
|
|
+ <property name="windowTitle" >
|
|
|
+ <string>Tool Properties</string>
|
|
|
+ </property>
|
|
|
+ <layout class="QVBoxLayout" >
|
|
|
+ <item>
|
|
|
+ <layout class="QGridLayout" >
|
|
|
+ <property name="leftMargin" >
|
|
|
+ <number>0</number>
|
|
|
+ </property>
|
|
|
+ <property name="topMargin" >
|
|
|
+ <number>0</number>
|
|
|
+ </property>
|
|
|
+ <property name="rightMargin" >
|
|
|
+ <number>0</number>
|
|
|
+ </property>
|
|
|
+ <property name="bottomMargin" >
|
|
|
+ <number>0</number>
|
|
|
+ </property>
|
|
|
+ <item row="1" column="0" >
|
|
|
+ <widget class="QLabel" name="commandLineLabel" >
|
|
|
+ <property name="text" >
|
|
|
+ <string>Command &Line:</string>
|
|
|
+ </property>
|
|
|
+ <property name="alignment" >
|
|
|
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
|
+ </property>
|
|
|
+ <property name="wordWrap" >
|
|
|
+ <bool>false</bool>
|
|
|
+ </property>
|
|
|
+ <property name="buddy" >
|
|
|
+ <cstring>commandLine</cstring>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item rowspan="2" row="2" column="0" >
|
|
|
+ <widget class="QLabel" name="workingDirectoryLabel" >
|
|
|
+ <property name="text" >
|
|
|
+ <string>&Working Directory:</string>
|
|
|
+ </property>
|
|
|
+ <property name="alignment" >
|
|
|
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
|
+ </property>
|
|
|
+ <property name="wordWrap" >
|
|
|
+ <bool>false</bool>
|
|
|
+ </property>
|
|
|
+ <property name="buddy" >
|
|
|
+ <cstring>workingDirectory</cstring>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="3" column="1" colspan="2" >
|
|
|
+ <widget class="KUrlRequester" name="workingDirectory" />
|
|
|
+ </item>
|
|
|
+ <item rowspan="2" row="1" column="1" >
|
|
|
+ <widget class="KLineEdit" name="commandLine" />
|
|
|
+ </item>
|
|
|
+ <item row="4" column="0" colspan="3" >
|
|
|
+ <widget class="QCheckBox" name="runInTerminal" >
|
|
|
+ <property name="text" >
|
|
|
+ <string>&Run in Terminal</string>
|
|
|
+ </property>
|
|
|
+ <property name="shortcut" >
|
|
|
+ <string>Alt+R</string>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="0" column="1" colspan="2" >
|
|
|
+ <widget class="KLineEdit" name="toolTitle" />
|
|
|
+ </item>
|
|
|
+ <item rowspan="2" row="1" column="2" >
|
|
|
+ <widget class="KPushButton" name="browseButton" >
|
|
|
+ <property name="text" >
|
|
|
+ <string>&Browse...</string>
|
|
|
+ </property>
|
|
|
+ <property name="shortcut" >
|
|
|
+ <string>Alt+B</string>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="0" column="0" >
|
|
|
+ <widget class="QLabel" name="toolTitleLabel" >
|
|
|
+ <property name="text" >
|
|
|
+ <string>&Title:</string>
|
|
|
+ </property>
|
|
|
+ <property name="alignment" >
|
|
|
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
|
+ </property>
|
|
|
+ <property name="wordWrap" >
|
|
|
+ <bool>false</bool>
|
|
|
+ </property>
|
|
|
+ <property name="buddy" >
|
|
|
+ <cstring>toolTitle</cstring>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
</layout>
|
|
|
- </widget>
|
|
|
- <layoutdefault spacing="6" margin="11" />
|
|
|
- <tabstops>
|
|
|
- <tabstop>toolTitle</tabstop>
|
|
|
- <tabstop>commandLine</tabstop>
|
|
|
- <tabstop>workingDirectory</tabstop>
|
|
|
- <tabstop>runInTerminal</tabstop>
|
|
|
- <tabstop>browseButton</tabstop>
|
|
|
- <tabstop>okButton</tabstop>
|
|
|
- <tabstop>cancelButton</tabstop>
|
|
|
- </tabstops>
|
|
|
- <includes>
|
|
|
- <include location="local" >kurlrequester.h</include>
|
|
|
- <include location="local" >klineedit.h</include>
|
|
|
- <include location="local" >kpushbutton.h</include>
|
|
|
- <include location="local" >klineedit.h</include>
|
|
|
- <include location="local" >klineedit.h</include>
|
|
|
- <include location="local" >kpushbutton.h</include>
|
|
|
- <include location="local" >kpushbutton.h</include>
|
|
|
- <include location="local" >kpushbutton.h</include>
|
|
|
- </includes>
|
|
|
- <connections>
|
|
|
- <connection>
|
|
|
- <sender>okButton</sender>
|
|
|
- <signal>clicked()</signal>
|
|
|
- <receiver>ToolProperties</receiver>
|
|
|
- <slot>accept()</slot>
|
|
|
- </connection>
|
|
|
- <connection>
|
|
|
- <sender>cancelButton</sender>
|
|
|
- <signal>clicked()</signal>
|
|
|
- <receiver>ToolProperties</receiver>
|
|
|
- <slot>reject()</slot>
|
|
|
- </connection>
|
|
|
- <connection>
|
|
|
- <sender>toolTitle</sender>
|
|
|
- <signal>textChanged(QString)</signal>
|
|
|
- <receiver>ToolProperties</receiver>
|
|
|
- <slot>validate()</slot>
|
|
|
- </connection>
|
|
|
- <connection>
|
|
|
- <sender>commandLine</sender>
|
|
|
- <signal>textChanged(QString)</signal>
|
|
|
- <receiver>ToolProperties</receiver>
|
|
|
- <slot>validate()</slot>
|
|
|
- </connection>
|
|
|
- <connection>
|
|
|
- <sender>workingDirectory</sender>
|
|
|
- <signal>textChanged(QString)</signal>
|
|
|
- <receiver>ToolProperties</receiver>
|
|
|
- <slot>validate()</slot>
|
|
|
- </connection>
|
|
|
- <connection>
|
|
|
- <sender>browseButton</sender>
|
|
|
- <signal>clicked()</signal>
|
|
|
- <receiver>ToolProperties</receiver>
|
|
|
- <slot>browseButton_clicked()</slot>
|
|
|
- </connection>
|
|
|
- </connections>
|
|
|
+ </item>
|
|
|
+ <item>
|
|
|
+ <spacer>
|
|
|
+ <property name="orientation" >
|
|
|
+ <enum>Qt::Vertical</enum>
|
|
|
+ </property>
|
|
|
+ <property name="sizeType" >
|
|
|
+ <enum>QSizePolicy::Expanding</enum>
|
|
|
+ </property>
|
|
|
+ <property name="sizeHint" >
|
|
|
+ <size>
|
|
|
+ <width>20</width>
|
|
|
+ <height>21</height>
|
|
|
+ </size>
|
|
|
+ </property>
|
|
|
+ </spacer>
|
|
|
+ </item>
|
|
|
+ <item>
|
|
|
+ <layout class="QHBoxLayout" >
|
|
|
+ <property name="leftMargin" >
|
|
|
+ <number>0</number>
|
|
|
+ </property>
|
|
|
+ <property name="topMargin" >
|
|
|
+ <number>0</number>
|
|
|
+ </property>
|
|
|
+ <property name="rightMargin" >
|
|
|
+ <number>0</number>
|
|
|
+ </property>
|
|
|
+ <property name="bottomMargin" >
|
|
|
+ <number>0</number>
|
|
|
+ </property>
|
|
|
+ <item>
|
|
|
+ <spacer>
|
|
|
+ <property name="orientation" >
|
|
|
+ <enum>Qt::Horizontal</enum>
|
|
|
+ </property>
|
|
|
+ <property name="sizeType" >
|
|
|
+ <enum>QSizePolicy::Expanding</enum>
|
|
|
+ </property>
|
|
|
+ <property name="sizeHint" >
|
|
|
+ <size>
|
|
|
+ <width>321</width>
|
|
|
+ <height>20</height>
|
|
|
+ </size>
|
|
|
+ </property>
|
|
|
+ </spacer>
|
|
|
+ </item>
|
|
|
+ <item>
|
|
|
+ <widget class="KPushButton" name="okButton" >
|
|
|
+ <property name="enabled" >
|
|
|
+ <bool>false</bool>
|
|
|
+ </property>
|
|
|
+ <property name="text" >
|
|
|
+ <string>&OK</string>
|
|
|
+ </property>
|
|
|
+ <property name="shortcut" >
|
|
|
+ <string>Alt+O</string>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item>
|
|
|
+ <widget class="KPushButton" name="cancelButton" >
|
|
|
+ <property name="text" >
|
|
|
+ <string>&Cancel</string>
|
|
|
+ </property>
|
|
|
+ <property name="shortcut" >
|
|
|
+ <string>Alt+C</string>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ </layout>
|
|
|
+ </item>
|
|
|
+ </layout>
|
|
|
+ </widget>
|
|
|
+ <layoutdefault spacing="6" margin="11" />
|
|
|
+ <customwidgets>
|
|
|
+ <customwidget>
|
|
|
+ <class>KLineEdit</class>
|
|
|
+ <extends>QLineEdit</extends>
|
|
|
+ <header>klineedit.h</header>
|
|
|
+ </customwidget>
|
|
|
+ <customwidget>
|
|
|
+ <class>KPushButton</class>
|
|
|
+ <extends>QPushButton</extends>
|
|
|
+ <header>kpushbutton.h</header>
|
|
|
+ </customwidget>
|
|
|
+ <customwidget>
|
|
|
+ <class>KUrlRequester</class>
|
|
|
+ <extends>QFrame</extends>
|
|
|
+ <header>kurlrequester.h</header>
|
|
|
+ </customwidget>
|
|
|
+ </customwidgets>
|
|
|
+ <tabstops>
|
|
|
+ <tabstop>toolTitle</tabstop>
|
|
|
+ <tabstop>commandLine</tabstop>
|
|
|
+ <tabstop>workingDirectory</tabstop>
|
|
|
+ <tabstop>runInTerminal</tabstop>
|
|
|
+ <tabstop>browseButton</tabstop>
|
|
|
+ <tabstop>okButton</tabstop>
|
|
|
+ <tabstop>cancelButton</tabstop>
|
|
|
+ </tabstops>
|
|
|
+ <includes>
|
|
|
+ <include location="local" >kurlrequester.h</include>
|
|
|
+ <include location="local" >klineedit.h</include>
|
|
|
+ <include location="local" >kpushbutton.h</include>
|
|
|
+ <include location="local" >klineedit.h</include>
|
|
|
+ <include location="local" >klineedit.h</include>
|
|
|
+ <include location="local" >kpushbutton.h</include>
|
|
|
+ <include location="local" >kpushbutton.h</include>
|
|
|
+ <include location="local" >kpushbutton.h</include>
|
|
|
+ </includes>
|
|
|
+ <resources/>
|
|
|
+ <connections>
|
|
|
+ <connection>
|
|
|
+ <sender>okButton</sender>
|
|
|
+ <signal>clicked()</signal>
|
|
|
+ <receiver>ToolProperties</receiver>
|
|
|
+ <slot>accept()</slot>
|
|
|
+ <hints>
|
|
|
+ <hint type="sourcelabel" >
|
|
|
+ <x>20</x>
|
|
|
+ <y>20</y>
|
|
|
+ </hint>
|
|
|
+ <hint type="destinationlabel" >
|
|
|
+ <x>20</x>
|
|
|
+ <y>20</y>
|
|
|
+ </hint>
|
|
|
+ </hints>
|
|
|
+ </connection>
|
|
|
+ <connection>
|
|
|
+ <sender>cancelButton</sender>
|
|
|
+ <signal>clicked()</signal>
|
|
|
+ <receiver>ToolProperties</receiver>
|
|
|
+ <slot>reject()</slot>
|
|
|
+ <hints>
|
|
|
+ <hint type="sourcelabel" >
|
|
|
+ <x>20</x>
|
|
|
+ <y>20</y>
|
|
|
+ </hint>
|
|
|
+ <hint type="destinationlabel" >
|
|
|
+ <x>20</x>
|
|
|
+ <y>20</y>
|
|
|
+ </hint>
|
|
|
+ </hints>
|
|
|
+ </connection>
|
|
|
+ <connection>
|
|
|
+ <sender>toolTitle</sender>
|
|
|
+ <signal>textChanged(QString)</signal>
|
|
|
+ <receiver>ToolProperties</receiver>
|
|
|
+ <slot>validate()</slot>
|
|
|
+ <hints>
|
|
|
+ <hint type="sourcelabel" >
|
|
|
+ <x>20</x>
|
|
|
+ <y>20</y>
|
|
|
+ </hint>
|
|
|
+ <hint type="destinationlabel" >
|
|
|
+ <x>20</x>
|
|
|
+ <y>20</y>
|
|
|
+ </hint>
|
|
|
+ </hints>
|
|
|
+ </connection>
|
|
|
+ <connection>
|
|
|
+ <sender>commandLine</sender>
|
|
|
+ <signal>textChanged(QString)</signal>
|
|
|
+ <receiver>ToolProperties</receiver>
|
|
|
+ <slot>validate()</slot>
|
|
|
+ <hints>
|
|
|
+ <hint type="sourcelabel" >
|
|
|
+ <x>20</x>
|
|
|
+ <y>20</y>
|
|
|
+ </hint>
|
|
|
+ <hint type="destinationlabel" >
|
|
|
+ <x>20</x>
|
|
|
+ <y>20</y>
|
|
|
+ </hint>
|
|
|
+ </hints>
|
|
|
+ </connection>
|
|
|
+ <connection>
|
|
|
+ <sender>workingDirectory</sender>
|
|
|
+ <signal>textChanged(QString)</signal>
|
|
|
+ <receiver>ToolProperties</receiver>
|
|
|
+ <slot>validate()</slot>
|
|
|
+ <hints>
|
|
|
+ <hint type="sourcelabel" >
|
|
|
+ <x>20</x>
|
|
|
+ <y>20</y>
|
|
|
+ </hint>
|
|
|
+ <hint type="destinationlabel" >
|
|
|
+ <x>20</x>
|
|
|
+ <y>20</y>
|
|
|
+ </hint>
|
|
|
+ </hints>
|
|
|
+ </connection>
|
|
|
+ <connection>
|
|
|
+ <sender>browseButton</sender>
|
|
|
+ <signal>clicked()</signal>
|
|
|
+ <receiver>ToolProperties</receiver>
|
|
|
+ <slot>browseButton_clicked()</slot>
|
|
|
+ <hints>
|
|
|
+ <hint type="sourcelabel" >
|
|
|
+ <x>20</x>
|
|
|
+ <y>20</y>
|
|
|
+ </hint>
|
|
|
+ <hint type="destinationlabel" >
|
|
|
+ <x>20</x>
|
|
|
+ <y>20</y>
|
|
|
+ </hint>
|
|
|
+ </hints>
|
|
|
+ </connection>
|
|
|
+ </connections>
|
|
|
</ui>
|