toolprops.ui 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. <ui version="4.0" >
  2. <class>ToolProperties</class>
  3. <widget class="QDialog" name="ToolProperties" >
  4. <property name="geometry" >
  5. <rect>
  6. <x>0</x>
  7. <y>0</y>
  8. <width>600</width>
  9. <height>184</height>
  10. </rect>
  11. </property>
  12. <property name="windowTitle" >
  13. <string>Tool Properties</string>
  14. </property>
  15. <layout class="QVBoxLayout" >
  16. <item>
  17. <layout class="QGridLayout" >
  18. <property name="leftMargin" >
  19. <number>0</number>
  20. </property>
  21. <property name="topMargin" >
  22. <number>0</number>
  23. </property>
  24. <property name="rightMargin" >
  25. <number>0</number>
  26. </property>
  27. <property name="bottomMargin" >
  28. <number>0</number>
  29. </property>
  30. <item row="1" column="0" >
  31. <widget class="QLabel" name="commandLineLabel" >
  32. <property name="text" >
  33. <string>Command &amp;Line:</string>
  34. </property>
  35. <property name="alignment" >
  36. <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
  37. </property>
  38. <property name="wordWrap" >
  39. <bool>false</bool>
  40. </property>
  41. <property name="buddy" >
  42. <cstring>commandLine</cstring>
  43. </property>
  44. </widget>
  45. </item>
  46. <item rowspan="2" row="2" column="0" >
  47. <widget class="QLabel" name="workingDirectoryLabel" >
  48. <property name="text" >
  49. <string>&amp;Working Directory:</string>
  50. </property>
  51. <property name="alignment" >
  52. <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
  53. </property>
  54. <property name="wordWrap" >
  55. <bool>false</bool>
  56. </property>
  57. <property name="buddy" >
  58. <cstring>workingDirectory</cstring>
  59. </property>
  60. </widget>
  61. </item>
  62. <item row="3" column="1" colspan="2" >
  63. <widget class="KUrlRequester" name="workingDirectory" />
  64. </item>
  65. <item rowspan="2" row="1" column="1" >
  66. <widget class="KLineEdit" name="commandLine" />
  67. </item>
  68. <item row="4" column="0" colspan="3" >
  69. <widget class="QCheckBox" name="runInTerminal" >
  70. <property name="text" >
  71. <string>&amp;Run in Terminal</string>
  72. </property>
  73. <property name="shortcut" >
  74. <string>Alt+R</string>
  75. </property>
  76. </widget>
  77. </item>
  78. <item row="0" column="1" colspan="2" >
  79. <widget class="KLineEdit" name="toolTitle" />
  80. </item>
  81. <item rowspan="2" row="1" column="2" >
  82. <widget class="KPushButton" name="browseButton" >
  83. <property name="text" >
  84. <string>&amp;Browse...</string>
  85. </property>
  86. <property name="shortcut" >
  87. <string>Alt+B</string>
  88. </property>
  89. </widget>
  90. </item>
  91. <item row="0" column="0" >
  92. <widget class="QLabel" name="toolTitleLabel" >
  93. <property name="text" >
  94. <string>&amp;Title:</string>
  95. </property>
  96. <property name="alignment" >
  97. <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
  98. </property>
  99. <property name="wordWrap" >
  100. <bool>false</bool>
  101. </property>
  102. <property name="buddy" >
  103. <cstring>toolTitle</cstring>
  104. </property>
  105. </widget>
  106. </item>
  107. </layout>
  108. </item>
  109. <item>
  110. <spacer>
  111. <property name="orientation" >
  112. <enum>Qt::Vertical</enum>
  113. </property>
  114. <property name="sizeType" >
  115. <enum>QSizePolicy::Expanding</enum>
  116. </property>
  117. <property name="sizeHint" >
  118. <size>
  119. <width>20</width>
  120. <height>21</height>
  121. </size>
  122. </property>
  123. </spacer>
  124. </item>
  125. <item>
  126. <layout class="QHBoxLayout" >
  127. <property name="leftMargin" >
  128. <number>0</number>
  129. </property>
  130. <property name="topMargin" >
  131. <number>0</number>
  132. </property>
  133. <property name="rightMargin" >
  134. <number>0</number>
  135. </property>
  136. <property name="bottomMargin" >
  137. <number>0</number>
  138. </property>
  139. <item>
  140. <spacer>
  141. <property name="orientation" >
  142. <enum>Qt::Horizontal</enum>
  143. </property>
  144. <property name="sizeType" >
  145. <enum>QSizePolicy::Expanding</enum>
  146. </property>
  147. <property name="sizeHint" >
  148. <size>
  149. <width>321</width>
  150. <height>20</height>
  151. </size>
  152. </property>
  153. </spacer>
  154. </item>
  155. <item>
  156. <widget class="KPushButton" name="okButton" >
  157. <property name="enabled" >
  158. <bool>false</bool>
  159. </property>
  160. <property name="text" >
  161. <string>&amp;OK</string>
  162. </property>
  163. <property name="shortcut" >
  164. <string>Alt+O</string>
  165. </property>
  166. </widget>
  167. </item>
  168. <item>
  169. <widget class="KPushButton" name="cancelButton" >
  170. <property name="text" >
  171. <string>&amp;Cancel</string>
  172. </property>
  173. <property name="shortcut" >
  174. <string>Alt+C</string>
  175. </property>
  176. </widget>
  177. </item>
  178. </layout>
  179. </item>
  180. </layout>
  181. </widget>
  182. <layoutdefault spacing="6" margin="11" />
  183. <customwidgets>
  184. <customwidget>
  185. <class>KLineEdit</class>
  186. <extends>QLineEdit</extends>
  187. <header>klineedit.h</header>
  188. </customwidget>
  189. <customwidget>
  190. <class>KPushButton</class>
  191. <extends>QPushButton</extends>
  192. <header>kpushbutton.h</header>
  193. </customwidget>
  194. <customwidget>
  195. <class>KUrlRequester</class>
  196. <extends>QFrame</extends>
  197. <header>kurlrequester.h</header>
  198. </customwidget>
  199. </customwidgets>
  200. <tabstops>
  201. <tabstop>toolTitle</tabstop>
  202. <tabstop>commandLine</tabstop>
  203. <tabstop>workingDirectory</tabstop>
  204. <tabstop>runInTerminal</tabstop>
  205. <tabstop>browseButton</tabstop>
  206. <tabstop>okButton</tabstop>
  207. <tabstop>cancelButton</tabstop>
  208. </tabstops>
  209. <includes>
  210. <include location="local" >kurlrequester.h</include>
  211. <include location="local" >klineedit.h</include>
  212. <include location="local" >kpushbutton.h</include>
  213. <include location="local" >klineedit.h</include>
  214. <include location="local" >klineedit.h</include>
  215. <include location="local" >kpushbutton.h</include>
  216. <include location="local" >kpushbutton.h</include>
  217. <include location="local" >kpushbutton.h</include>
  218. </includes>
  219. <resources/>
  220. <connections>
  221. <connection>
  222. <sender>okButton</sender>
  223. <signal>clicked()</signal>
  224. <receiver>ToolProperties</receiver>
  225. <slot>accept()</slot>
  226. <hints>
  227. <hint type="sourcelabel" >
  228. <x>20</x>
  229. <y>20</y>
  230. </hint>
  231. <hint type="destinationlabel" >
  232. <x>20</x>
  233. <y>20</y>
  234. </hint>
  235. </hints>
  236. </connection>
  237. <connection>
  238. <sender>cancelButton</sender>
  239. <signal>clicked()</signal>
  240. <receiver>ToolProperties</receiver>
  241. <slot>reject()</slot>
  242. <hints>
  243. <hint type="sourcelabel" >
  244. <x>20</x>
  245. <y>20</y>
  246. </hint>
  247. <hint type="destinationlabel" >
  248. <x>20</x>
  249. <y>20</y>
  250. </hint>
  251. </hints>
  252. </connection>
  253. <connection>
  254. <sender>toolTitle</sender>
  255. <signal>textChanged(QString)</signal>
  256. <receiver>ToolProperties</receiver>
  257. <slot>validate()</slot>
  258. <hints>
  259. <hint type="sourcelabel" >
  260. <x>20</x>
  261. <y>20</y>
  262. </hint>
  263. <hint type="destinationlabel" >
  264. <x>20</x>
  265. <y>20</y>
  266. </hint>
  267. </hints>
  268. </connection>
  269. <connection>
  270. <sender>commandLine</sender>
  271. <signal>textChanged(QString)</signal>
  272. <receiver>ToolProperties</receiver>
  273. <slot>validate()</slot>
  274. <hints>
  275. <hint type="sourcelabel" >
  276. <x>20</x>
  277. <y>20</y>
  278. </hint>
  279. <hint type="destinationlabel" >
  280. <x>20</x>
  281. <y>20</y>
  282. </hint>
  283. </hints>
  284. </connection>
  285. <connection>
  286. <sender>workingDirectory</sender>
  287. <signal>textChanged(QString)</signal>
  288. <receiver>ToolProperties</receiver>
  289. <slot>validate()</slot>
  290. <hints>
  291. <hint type="sourcelabel" >
  292. <x>20</x>
  293. <y>20</y>
  294. </hint>
  295. <hint type="destinationlabel" >
  296. <x>20</x>
  297. <y>20</y>
  298. </hint>
  299. </hints>
  300. </connection>
  301. <connection>
  302. <sender>browseButton</sender>
  303. <signal>clicked()</signal>
  304. <receiver>ToolProperties</receiver>
  305. <slot>browseButton_clicked()</slot>
  306. <hints>
  307. <hint type="sourcelabel" >
  308. <x>20</x>
  309. <y>20</y>
  310. </hint>
  311. <hint type="destinationlabel" >
  312. <x>20</x>
  313. <y>20</y>
  314. </hint>
  315. </hints>
  316. </connection>
  317. </connections>
  318. </ui>