toolprops.ui 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. <ui version="4.0" stdsetdef="1" >
  2. <author></author>
  3. <comment></comment>
  4. <exportmacro></exportmacro>
  5. <class>ToolProperties</class>
  6. <widget class="QDialog" name="ToolProperties" >
  7. <property name="geometry" >
  8. <rect>
  9. <x>0</x>
  10. <y>0</y>
  11. <width>600</width>
  12. <height>184</height>
  13. </rect>
  14. </property>
  15. <property name="windowTitle" >
  16. <string>Tool Properties</string>
  17. </property>
  18. <layout class="QVBoxLayout" >
  19. <item>
  20. <layout class="QGridLayout" >
  21. <property name="margin" >
  22. <number>0</number>
  23. </property>
  24. <item row="1" column="0" >
  25. <widget class="QLabel" name="commandLineLabel" >
  26. <property name="text" >
  27. <string>Command &amp;Line:</string>
  28. </property>
  29. <property name="alignment" >
  30. <set>Qt::AlignVCenter|Qt::AlignRight</set>
  31. </property>
  32. <property name="buddy" stdset="0" >
  33. <cstring>commandLine</cstring>
  34. </property>
  35. <property name="wordWrap" >
  36. <bool>false</bool>
  37. </property>
  38. </widget>
  39. </item>
  40. <item rowspan="2" row="2" column="0" colspan="1" >
  41. <widget class="QLabel" name="workingDirectoryLabel" >
  42. <property name="text" >
  43. <string>&amp;Working Directory:</string>
  44. </property>
  45. <property name="alignment" >
  46. <set>Qt::AlignVCenter|Qt::AlignRight</set>
  47. </property>
  48. <property name="buddy" stdset="0" >
  49. <cstring>workingDirectory</cstring>
  50. </property>
  51. <property name="wordWrap" >
  52. <bool>false</bool>
  53. </property>
  54. </widget>
  55. </item>
  56. <item rowspan="1" row="3" column="1" colspan="2" >
  57. <widget class="KUrlRequester" name="workingDirectory" >
  58. <property name="mode" >
  59. <set>KFile::LocalOnly|KFile::ExistingOnly|KFile::Directory</set>
  60. </property>
  61. </widget>
  62. </item>
  63. <item rowspan="2" row="1" column="1" colspan="1" >
  64. <widget class="KLineEdit" name="commandLine" />
  65. </item>
  66. <item rowspan="1" row="4" column="0" colspan="3" >
  67. <widget class="QCheckBox" name="runInTerminal" >
  68. <property name="text" >
  69. <string>&amp;Run in Terminal</string>
  70. </property>
  71. <property name="shortcut" >
  72. <string>Alt+R</string>
  73. </property>
  74. </widget>
  75. </item>
  76. <item rowspan="1" row="0" column="1" colspan="2" >
  77. <widget class="KLineEdit" name="toolTitle" />
  78. </item>
  79. <item rowspan="2" row="1" column="2" colspan="1" >
  80. <widget class="KPushButton" name="browseButton" >
  81. <property name="text" >
  82. <string>&amp;Browse...</string>
  83. </property>
  84. <property name="shortcut" >
  85. <string>Alt+B</string>
  86. </property>
  87. </widget>
  88. </item>
  89. <item row="0" column="0" >
  90. <widget class="QLabel" name="toolTitleLabel" >
  91. <property name="text" >
  92. <string>&amp;Title:</string>
  93. </property>
  94. <property name="alignment" >
  95. <set>Qt::AlignVCenter|Qt::AlignRight</set>
  96. </property>
  97. <property name="buddy" stdset="0" >
  98. <cstring>toolTitle</cstring>
  99. </property>
  100. <property name="wordWrap" >
  101. <bool>false</bool>
  102. </property>
  103. </widget>
  104. </item>
  105. </layout>
  106. </item>
  107. <item>
  108. <spacer name="spacer18" >
  109. <property name="sizeHint" >
  110. <size>
  111. <width>20</width>
  112. <height>21</height>
  113. </size>
  114. </property>
  115. <property name="sizeType" >
  116. <enum>Expanding</enum>
  117. </property>
  118. <property name="orientation" >
  119. <enum>Vertical</enum>
  120. </property>
  121. </spacer>
  122. </item>
  123. <item>
  124. <layout class="QHBoxLayout" >
  125. <property name="margin" >
  126. <number>0</number>
  127. </property>
  128. <item>
  129. <spacer name="spacer2" >
  130. <property name="sizeHint" >
  131. <size>
  132. <width>321</width>
  133. <height>20</height>
  134. </size>
  135. </property>
  136. <property name="sizeType" >
  137. <enum>Expanding</enum>
  138. </property>
  139. <property name="orientation" >
  140. <enum>Horizontal</enum>
  141. </property>
  142. </spacer>
  143. </item>
  144. <item>
  145. <widget class="KPushButton" name="okButton" >
  146. <property name="enabled" >
  147. <bool>false</bool>
  148. </property>
  149. <property name="text" >
  150. <string>&amp;OK</string>
  151. </property>
  152. <property name="shortcut" >
  153. <string>Alt+O</string>
  154. </property>
  155. <property name="stdItem" stdset="0" >
  156. <number>1</number>
  157. </property>
  158. </widget>
  159. </item>
  160. <item>
  161. <widget class="KPushButton" name="cancelButton" >
  162. <property name="text" >
  163. <string>&amp;Cancel</string>
  164. </property>
  165. <property name="shortcut" >
  166. <string>Alt+C</string>
  167. </property>
  168. <property name="stdItem" stdset="0" >
  169. <number>2</number>
  170. </property>
  171. </widget>
  172. </item>
  173. </layout>
  174. </item>
  175. </layout>
  176. </widget>
  177. <layoutdefault spacing="6" margin="11" />
  178. <tabstops>
  179. <tabstop>toolTitle</tabstop>
  180. <tabstop>commandLine</tabstop>
  181. <tabstop>workingDirectory</tabstop>
  182. <tabstop>runInTerminal</tabstop>
  183. <tabstop>browseButton</tabstop>
  184. <tabstop>okButton</tabstop>
  185. <tabstop>cancelButton</tabstop>
  186. </tabstops>
  187. <includes>
  188. <include location="local" >kurlrequester.h</include>
  189. <include location="local" >klineedit.h</include>
  190. <include location="local" >kpushbutton.h</include>
  191. <include location="local" >klineedit.h</include>
  192. <include location="local" >klineedit.h</include>
  193. <include location="local" >kpushbutton.h</include>
  194. <include location="local" >kpushbutton.h</include>
  195. <include location="local" >kpushbutton.h</include>
  196. </includes>
  197. <connections>
  198. <connection>
  199. <sender>okButton</sender>
  200. <signal>clicked()</signal>
  201. <receiver>ToolProperties</receiver>
  202. <slot>accept()</slot>
  203. </connection>
  204. <connection>
  205. <sender>cancelButton</sender>
  206. <signal>clicked()</signal>
  207. <receiver>ToolProperties</receiver>
  208. <slot>reject()</slot>
  209. </connection>
  210. <connection>
  211. <sender>toolTitle</sender>
  212. <signal>textChanged(QString)</signal>
  213. <receiver>ToolProperties</receiver>
  214. <slot>validate()</slot>
  215. </connection>
  216. <connection>
  217. <sender>commandLine</sender>
  218. <signal>textChanged(QString)</signal>
  219. <receiver>ToolProperties</receiver>
  220. <slot>validate()</slot>
  221. </connection>
  222. <connection>
  223. <sender>workingDirectory</sender>
  224. <signal>textChanged(QString)</signal>
  225. <receiver>ToolProperties</receiver>
  226. <slot>validate()</slot>
  227. </connection>
  228. <connection>
  229. <sender>browseButton</sender>
  230. <signal>clicked()</signal>
  231. <receiver>ToolProperties</receiver>
  232. <slot>browseButton_clicked()</slot>
  233. </connection>
  234. </connections>
  235. </ui>