Changeset View
Changeset View
Standalone View
Standalone View
addons/externaltools/tooldialog.ui
- This file was added.
1 | <?xml version="1.0" encoding="UTF-8"?> | ||||
---|---|---|---|---|---|
2 | <ui version="4.0"> | ||||
3 | <class>ToolDialog</class> | ||||
4 | <widget class="QDialog" name="ToolDialog"> | ||||
5 | <property name="geometry"> | ||||
6 | <rect> | ||||
7 | <x>0</x> | ||||
8 | <y>0</y> | ||||
9 | <width>470</width> | ||||
10 | <height>510</height> | ||||
11 | </rect> | ||||
12 | </property> | ||||
13 | <property name="windowTitle"> | ||||
14 | <string>Edit Tool</string> | ||||
15 | </property> | ||||
16 | <layout class="QFormLayout" name="formLayout"> | ||||
17 | <item row="0" column="0"> | ||||
18 | <widget class="QLabel" name="lblName"> | ||||
19 | <property name="text"> | ||||
20 | <string>Name:</string> | ||||
21 | </property> | ||||
22 | </widget> | ||||
23 | </item> | ||||
24 | <item row="0" column="1"> | ||||
25 | <layout class="QHBoxLayout" name="horizontalLayout_2"> | ||||
26 | <item> | ||||
27 | <widget class="QLineEdit" name="edtName"> | ||||
28 | <property name="whatsThis"> | ||||
29 | <string>The name will be displayed in the 'Tools->External Tools' menu.</string> | ||||
30 | </property> | ||||
31 | <property name="placeholderText"> | ||||
32 | <string>Short name of the tool</string> | ||||
33 | </property> | ||||
34 | </widget> | ||||
35 | </item> | ||||
36 | <item> | ||||
37 | <widget class="KIconButton" name="btnIcon"/> | ||||
38 | </item> | ||||
39 | </layout> | ||||
40 | </item> | ||||
41 | <item row="1" column="0"> | ||||
42 | <widget class="QLabel" name="lblExecutable"> | ||||
43 | <property name="text"> | ||||
44 | <string>Executable:</string> | ||||
45 | </property> | ||||
46 | </widget> | ||||
47 | </item> | ||||
48 | <item row="1" column="1"> | ||||
49 | <layout class="QHBoxLayout" name="horizontalLayout_3"> | ||||
50 | <item> | ||||
51 | <widget class="QLineEdit" name="edtExecutable"> | ||||
52 | <property name="whatsThis"> | ||||
53 | <string>The executable used by the command. This is used to check if a tool should be displayed; if not set, the first word of <em>command</em> will be used.</string> | ||||
54 | </property> | ||||
55 | <property name="placeholderText"> | ||||
56 | <string>Application or interpreter</string> | ||||
57 | </property> | ||||
58 | </widget> | ||||
59 | </item> | ||||
60 | <item> | ||||
61 | <widget class="QToolButton" name="btnExecutable"> | ||||
62 | <property name="icon"> | ||||
63 | <iconset theme="folder-open"> | ||||
64 | <normaloff>../../../../../../../../.designer/backup</normaloff>../../../../../../../../.designer/backup</iconset> | ||||
65 | </property> | ||||
66 | <property name="popupMode"> | ||||
67 | <enum>QToolButton::InstantPopup</enum> | ||||
68 | </property> | ||||
69 | </widget> | ||||
70 | </item> | ||||
71 | </layout> | ||||
72 | </item> | ||||
73 | <item row="2" column="0"> | ||||
74 | <widget class="QLabel" name="lblArgs"> | ||||
75 | <property name="text"> | ||||
76 | <string>Arguments:</string> | ||||
77 | </property> | ||||
78 | </widget> | ||||
79 | </item> | ||||
80 | <item row="3" column="0"> | ||||
81 | <widget class="QLabel" name="lblInput"> | ||||
82 | <property name="text"> | ||||
83 | <string>Input:</string> | ||||
84 | </property> | ||||
85 | </widget> | ||||
86 | </item> | ||||
87 | <item row="3" column="1"> | ||||
88 | <layout class="QHBoxLayout" name="loArgs"> | ||||
89 | <item> | ||||
90 | <widget class="QTextEdit" name="edtInput"> | ||||
91 | <property name="whatsThis"> | ||||
92 | <string><p>The script to execute to invoke the tool. The script is passed to /bin/sh for execution. The following macros will be expanded:</p><ul><li><code>%URL</code> - the URL of the current document.</li><li><code>%URLs</code> - a list of the URLs of all open documents.</li><li><code>%directory</code> - the URL of the directory containing the current document.</li><li><code>%filename</code> - the filename of the current document.</li><li><code>%line</code> - the current line of the text cursor in the current view.</li><li><code>%column</code> - the column of the text cursor in the current view.</li><li><code>%selection</code> - the selected text in the current view.</li><li><code>%text</code> - the text of the current document.</li></ul></string> | ||||
93 | </property> | ||||
94 | <property name="placeholderText"> | ||||
95 | <string>Optional standard input</string> | ||||
96 | </property> | ||||
97 | </widget> | ||||
98 | </item> | ||||
99 | <item alignment="Qt::AlignTop"> | ||||
100 | <widget class="QToolButton" name="btnInput"> | ||||
101 | <property name="icon"> | ||||
102 | <iconset theme="arrow-down"> | ||||
103 | <normaloff>../../../../../../../../.designer/backup</normaloff>../../../../../../../../.designer/backup</iconset> | ||||
104 | </property> | ||||
105 | <property name="popupMode"> | ||||
106 | <enum>QToolButton::InstantPopup</enum> | ||||
107 | </property> | ||||
108 | </widget> | ||||
109 | </item> | ||||
110 | </layout> | ||||
111 | </item> | ||||
112 | <item row="5" column="0"> | ||||
113 | <widget class="QLabel" name="lblMimeType"> | ||||
114 | <property name="text"> | ||||
115 | <string>Mime types:</string> | ||||
116 | </property> | ||||
117 | </widget> | ||||
118 | </item> | ||||
119 | <item row="5" column="1"> | ||||
120 | <layout class="QHBoxLayout" name="horizontalLayout"> | ||||
121 | <item> | ||||
122 | <widget class="QLineEdit" name="edtMimeType"> | ||||
123 | <property name="whatsThis"> | ||||
124 | <string>A semicolon-separated list of mime types for which this tool should be available; if this is left empty, the tool is always available. To choose from known mimetypes, press the button on the right.</string> | ||||
125 | </property> | ||||
126 | <property name="placeholderText"> | ||||
127 | <string>Show tool only for given mime types</string> | ||||
128 | </property> | ||||
129 | </widget> | ||||
130 | </item> | ||||
131 | <item> | ||||
132 | <widget class="QToolButton" name="btnMimeType"> | ||||
133 | <property name="whatsThis"> | ||||
134 | <string>Click for a dialog that can help you create a list of mimetypes.</string> | ||||
135 | </property> | ||||
136 | <property name="icon"> | ||||
137 | <iconset theme="tools-wizard"> | ||||
138 | <normaloff>../../../../../../../../.designer/backup</normaloff>../../../../../../../../.designer/backup</iconset> | ||||
139 | </property> | ||||
140 | </widget> | ||||
141 | </item> | ||||
142 | </layout> | ||||
143 | </item> | ||||
144 | <item row="6" column="0"> | ||||
145 | <widget class="QLabel" name="lblSave"> | ||||
146 | <property name="text"> | ||||
147 | <string>Save:</string> | ||||
148 | </property> | ||||
149 | </widget> | ||||
150 | </item> | ||||
151 | <item row="6" column="1"> | ||||
152 | <widget class="QComboBox" name="cmbSave"> | ||||
153 | <property name="whatsThis"> | ||||
154 | <string>You can choose to save the current or all [modified] documents prior to running the command. This is helpful if you want to pass URLs to an application like, for example, an FTP client.</string> | ||||
155 | </property> | ||||
156 | <item> | ||||
157 | <property name="text"> | ||||
158 | <string>None</string> | ||||
159 | </property> | ||||
160 | </item> | ||||
161 | <item> | ||||
162 | <property name="text"> | ||||
163 | <string>Current Document</string> | ||||
164 | </property> | ||||
165 | </item> | ||||
166 | <item> | ||||
167 | <property name="text"> | ||||
168 | <string>All Documents</string> | ||||
169 | </property> | ||||
170 | </item> | ||||
171 | </widget> | ||||
172 | </item> | ||||
173 | <item row="7" column="1"> | ||||
174 | <widget class="QCheckBox" name="chkReload"> | ||||
175 | <property name="text"> | ||||
176 | <string>Reload current document after execution</string> | ||||
177 | </property> | ||||
178 | </widget> | ||||
179 | </item> | ||||
180 | <item row="8" column="0"> | ||||
181 | <widget class="QLabel" name="label"> | ||||
182 | <property name="text"> | ||||
183 | <string>Output:</string> | ||||
184 | </property> | ||||
185 | </widget> | ||||
186 | </item> | ||||
187 | <item row="8" column="1"> | ||||
188 | <widget class="QComboBox" name="cmbOutput"> | ||||
189 | <item> | ||||
190 | <property name="text"> | ||||
191 | <string>Ignore</string> | ||||
192 | </property> | ||||
193 | </item> | ||||
194 | <item> | ||||
195 | <property name="text"> | ||||
196 | <string>Insert at Cursor Position</string> | ||||
197 | </property> | ||||
198 | </item> | ||||
199 | <item> | ||||
200 | <property name="text"> | ||||
201 | <string>Replace Selected Text</string> | ||||
202 | </property> | ||||
203 | </item> | ||||
204 | <item> | ||||
205 | <property name="text"> | ||||
206 | <string>Replace Current Document</string> | ||||
207 | </property> | ||||
208 | </item> | ||||
209 | <item> | ||||
210 | <property name="text"> | ||||
211 | <string>Append to Current Document</string> | ||||
212 | </property> | ||||
213 | </item> | ||||
214 | <item> | ||||
215 | <property name="text"> | ||||
216 | <string>Insert in New Document</string> | ||||
217 | </property> | ||||
218 | </item> | ||||
219 | <item> | ||||
220 | <property name="text"> | ||||
221 | <string>Display in Pane</string> | ||||
222 | </property> | ||||
223 | </item> | ||||
224 | <item> | ||||
225 | <property name="text"> | ||||
226 | <string>Embedded Console</string> | ||||
227 | </property> | ||||
228 | </item> | ||||
229 | </widget> | ||||
230 | </item> | ||||
231 | <item row="10" column="0"> | ||||
232 | <widget class="QLabel" name="label_6"> | ||||
233 | <property name="text"> | ||||
234 | <string>Editor command:</string> | ||||
235 | </property> | ||||
236 | </widget> | ||||
237 | </item> | ||||
238 | <item row="10" column="1"> | ||||
239 | <widget class="QLineEdit" name="edtCommand"> | ||||
240 | <property name="whatsThis"> | ||||
241 | <string>If you specify a name here, you can invoke the command from the view command line with exttool-the_name_you_specified_here. Please do not use spaces or tabs in the name.</string> | ||||
242 | </property> | ||||
243 | <property name="placeholderText"> | ||||
244 | <string>Optional command bar name</string> | ||||
245 | </property> | ||||
246 | </widget> | ||||
247 | </item> | ||||
248 | <item row="11" column="1"> | ||||
249 | <widget class="QDialogButtonBox" name="buttonBox"> | ||||
250 | <property name="orientation"> | ||||
251 | <enum>Qt::Horizontal</enum> | ||||
252 | </property> | ||||
253 | <property name="standardButtons"> | ||||
254 | <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> | ||||
255 | </property> | ||||
256 | </widget> | ||||
257 | </item> | ||||
258 | <item row="4" column="0"> | ||||
259 | <widget class="QLabel" name="lblWorkingDir"> | ||||
260 | <property name="text"> | ||||
261 | <string>Working directory:</string> | ||||
262 | </property> | ||||
263 | </widget> | ||||
264 | </item> | ||||
265 | <item row="4" column="1"> | ||||
266 | <layout class="QHBoxLayout" name="horizontalLayout_4"> | ||||
267 | <item> | ||||
268 | <widget class="QLineEdit" name="edtWorkingDir"> | ||||
269 | <property name="placeholderText"> | ||||
270 | <string>Uses current document path if empty</string> | ||||
271 | </property> | ||||
272 | </widget> | ||||
273 | </item> | ||||
274 | <item> | ||||
275 | <widget class="QToolButton" name="btnWorkingDir"> | ||||
276 | <property name="icon"> | ||||
277 | <iconset theme="folder-open"> | ||||
278 | <normaloff>../../../../../../../../.designer/backup</normaloff>../../../../../../../../.designer/backup</iconset> | ||||
279 | </property> | ||||
280 | <property name="popupMode"> | ||||
281 | <enum>QToolButton::InstantPopup</enum> | ||||
282 | </property> | ||||
283 | </widget> | ||||
284 | </item> | ||||
285 | </layout> | ||||
286 | </item> | ||||
287 | <item row="2" column="1"> | ||||
288 | <layout class="QHBoxLayout" name="horizontalLayout_5"> | ||||
289 | <item> | ||||
290 | <widget class="QLineEdit" name="edtArgs"> | ||||
291 | <property name="placeholderText"> | ||||
292 | <string>Command line arguments</string> | ||||
293 | </property> | ||||
294 | </widget> | ||||
295 | </item> | ||||
296 | <item> | ||||
297 | <widget class="QToolButton" name="btnArgs"> | ||||
298 | <property name="icon"> | ||||
299 | <iconset theme="arrow-down"> | ||||
300 | <normaloff>../../../../../../../../.designer/backup</normaloff>../../../../../../../../.designer/backup</iconset> | ||||
301 | </property> | ||||
302 | <property name="popupMode"> | ||||
303 | <enum>QToolButton::InstantPopup</enum> | ||||
304 | </property> | ||||
305 | </widget> | ||||
306 | </item> | ||||
307 | </layout> | ||||
308 | </item> | ||||
309 | <item row="9" column="1"> | ||||
310 | <widget class="QCheckBox" name="chkIncludeStderr"> | ||||
311 | <property name="text"> | ||||
312 | <string>Include output from stderr</string> | ||||
313 | </property> | ||||
314 | </widget> | ||||
315 | </item> | ||||
316 | </layout> | ||||
317 | </widget> | ||||
318 | <customwidgets> | ||||
319 | <customwidget> | ||||
320 | <class>KIconButton</class> | ||||
321 | <extends>QPushButton</extends> | ||||
322 | <header>kiconbutton.h</header> | ||||
323 | </customwidget> | ||||
324 | </customwidgets> | ||||
325 | <tabstops> | ||||
326 | <tabstop>edtName</tabstop> | ||||
327 | <tabstop>btnIcon</tabstop> | ||||
328 | <tabstop>edtExecutable</tabstop> | ||||
329 | <tabstop>btnExecutable</tabstop> | ||||
330 | <tabstop>edtArgs</tabstop> | ||||
331 | <tabstop>btnArgs</tabstop> | ||||
332 | <tabstop>edtInput</tabstop> | ||||
333 | <tabstop>btnInput</tabstop> | ||||
334 | <tabstop>edtWorkingDir</tabstop> | ||||
335 | <tabstop>btnWorkingDir</tabstop> | ||||
336 | <tabstop>edtMimeType</tabstop> | ||||
337 | <tabstop>btnMimeType</tabstop> | ||||
338 | <tabstop>cmbSave</tabstop> | ||||
339 | <tabstop>chkReload</tabstop> | ||||
340 | <tabstop>cmbOutput</tabstop> | ||||
341 | <tabstop>chkIncludeStderr</tabstop> | ||||
342 | <tabstop>edtCommand</tabstop> | ||||
343 | </tabstops> | ||||
344 | <resources/> | ||||
345 | <connections> | ||||
346 | <connection> | ||||
347 | <sender>buttonBox</sender> | ||||
348 | <signal>accepted()</signal> | ||||
349 | <receiver>ToolDialog</receiver> | ||||
350 | <slot>accept()</slot> | ||||
351 | <hints> | ||||
352 | <hint type="sourcelabel"> | ||||
353 | <x>248</x> | ||||
354 | <y>254</y> | ||||
355 | </hint> | ||||
356 | <hint type="destinationlabel"> | ||||
357 | <x>157</x> | ||||
358 | <y>274</y> | ||||
359 | </hint> | ||||
360 | </hints> | ||||
361 | </connection> | ||||
362 | <connection> | ||||
363 | <sender>buttonBox</sender> | ||||
364 | <signal>rejected()</signal> | ||||
365 | <receiver>ToolDialog</receiver> | ||||
366 | <slot>reject()</slot> | ||||
367 | <hints> | ||||
368 | <hint type="sourcelabel"> | ||||
369 | <x>316</x> | ||||
370 | <y>260</y> | ||||
371 | </hint> | ||||
372 | <hint type="destinationlabel"> | ||||
373 | <x>286</x> | ||||
374 | <y>274</y> | ||||
375 | </hint> | ||||
376 | </hints> | ||||
377 | </connection> | ||||
378 | </connections> | ||||
379 | </ui> |