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>Na&me:</string> | ||||
21 | </property> | ||||
22 | <property name="buddy"> | ||||
23 | <cstring>edtName</cstring> | ||||
24 | </property> | ||||
25 | </widget> | ||||
26 | </item> | ||||
27 | <item row="0" column="1"> | ||||
28 | <layout class="QHBoxLayout" name="horizontalLayout_2"> | ||||
29 | <item> | ||||
30 | <widget class="QLineEdit" name="edtName"> | ||||
31 | <property name="whatsThis"> | ||||
32 | <string>The name will be displayed in the 'Tools->External Tools' menu.</string> | ||||
33 | </property> | ||||
34 | <property name="placeholderText"> | ||||
35 | <string>Short name of the tool</string> | ||||
36 | </property> | ||||
37 | </widget> | ||||
38 | </item> | ||||
39 | <item> | ||||
40 | <widget class="KIconButton" name="btnIcon"/> | ||||
41 | </item> | ||||
42 | </layout> | ||||
43 | </item> | ||||
44 | <item row="1" column="0"> | ||||
45 | <widget class="QLabel" name="lblExecutable"> | ||||
46 | <property name="text"> | ||||
47 | <string>E&xecutable:</string> | ||||
48 | </property> | ||||
49 | <property name="buddy"> | ||||
50 | <cstring>edtExecutable</cstring> | ||||
51 | </property> | ||||
52 | </widget> | ||||
53 | </item> | ||||
54 | <item row="1" column="1"> | ||||
55 | <layout class="QHBoxLayout" name="horizontalLayout_3"> | ||||
56 | <item> | ||||
57 | <widget class="QLineEdit" name="edtExecutable"> | ||||
58 | <property name="whatsThis"> | ||||
59 | <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> | ||||
60 | </property> | ||||
61 | <property name="placeholderText"> | ||||
62 | <string>Application or interpreter</string> | ||||
63 | </property> | ||||
64 | </widget> | ||||
65 | </item> | ||||
66 | <item> | ||||
67 | <widget class="QToolButton" name="btnExecutable"> | ||||
68 | <property name="icon"> | ||||
69 | <iconset theme="folder-open"> | ||||
70 | <normaloff>../../../../../../../../.designer/backup</normaloff>../../../../../../../../.designer/backup</iconset> | ||||
71 | </property> | ||||
72 | <property name="popupMode"> | ||||
73 | <enum>QToolButton::InstantPopup</enum> | ||||
74 | </property> | ||||
75 | </widget> | ||||
76 | </item> | ||||
77 | </layout> | ||||
78 | </item> | ||||
79 | <item row="2" column="0"> | ||||
80 | <widget class="QLabel" name="lblArgs"> | ||||
81 | <property name="text"> | ||||
82 | <string>Ar&guments:</string> | ||||
83 | </property> | ||||
84 | <property name="buddy"> | ||||
85 | <cstring>edtArgs</cstring> | ||||
86 | </property> | ||||
87 | </widget> | ||||
88 | </item> | ||||
89 | <item row="3" column="0"> | ||||
90 | <widget class="QLabel" name="lblInput"> | ||||
91 | <property name="text"> | ||||
92 | <string>&Input:</string> | ||||
93 | </property> | ||||
94 | <property name="buddy"> | ||||
95 | <cstring>edtInput</cstring> | ||||
96 | </property> | ||||
97 | </widget> | ||||
98 | </item> | ||||
99 | <item row="3" column="1"> | ||||
100 | <layout class="QHBoxLayout" name="loArgs"> | ||||
101 | <item> | ||||
102 | <widget class="QTextEdit" name="edtInput"> | ||||
103 | <property name="whatsThis"> | ||||
104 | <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> | ||||
105 | </property> | ||||
106 | <property name="placeholderText"> | ||||
107 | <string>Optional standard input</string> | ||||
108 | </property> | ||||
109 | </widget> | ||||
110 | </item> | ||||
111 | <item alignment="Qt::AlignTop"> | ||||
112 | <widget class="QToolButton" name="btnInput"> | ||||
113 | <property name="icon"> | ||||
114 | <iconset theme="arrow-down"> | ||||
115 | <normaloff>../../../../../../../../.designer/backup</normaloff>../../../../../../../../.designer/backup</iconset> | ||||
116 | </property> | ||||
117 | <property name="popupMode"> | ||||
118 | <enum>QToolButton::InstantPopup</enum> | ||||
119 | </property> | ||||
120 | </widget> | ||||
121 | </item> | ||||
122 | </layout> | ||||
123 | </item> | ||||
124 | <item row="5" column="0"> | ||||
125 | <widget class="QLabel" name="lblMimeType"> | ||||
126 | <property name="text"> | ||||
127 | <string>Mime &types:</string> | ||||
128 | </property> | ||||
129 | <property name="buddy"> | ||||
130 | <cstring>edtMimeType</cstring> | ||||
131 | </property> | ||||
132 | </widget> | ||||
133 | </item> | ||||
134 | <item row="5" column="1"> | ||||
135 | <layout class="QHBoxLayout" name="horizontalLayout"> | ||||
136 | <item> | ||||
137 | <widget class="QLineEdit" name="edtMimeType"> | ||||
138 | <property name="whatsThis"> | ||||
139 | <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> | ||||
140 | </property> | ||||
141 | <property name="placeholderText"> | ||||
142 | <string>Show tool only for given mime types</string> | ||||
143 | </property> | ||||
144 | </widget> | ||||
145 | </item> | ||||
146 | <item> | ||||
147 | <widget class="QToolButton" name="btnMimeType"> | ||||
148 | <property name="whatsThis"> | ||||
149 | <string>Click for a dialog that can help you create a list of mimetypes.</string> | ||||
150 | </property> | ||||
151 | <property name="icon"> | ||||
152 | <iconset theme="tools-wizard"> | ||||
153 | <normaloff>../../../../../../../../.designer/backup</normaloff>../../../../../../../../.designer/backup</iconset> | ||||
154 | </property> | ||||
155 | </widget> | ||||
156 | </item> | ||||
157 | </layout> | ||||
158 | </item> | ||||
159 | <item row="6" column="0"> | ||||
160 | <widget class="QLabel" name="lblSave"> | ||||
161 | <property name="text"> | ||||
162 | <string>Save:</string> | ||||
163 | </property> | ||||
164 | <property name="buddy"> | ||||
165 | <cstring>cmbSave</cstring> | ||||
166 | </property> | ||||
167 | </widget> | ||||
168 | </item> | ||||
169 | <item row="6" column="1"> | ||||
170 | <widget class="QComboBox" name="cmbSave"> | ||||
171 | <property name="whatsThis"> | ||||
172 | <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> | ||||
173 | </property> | ||||
174 | <item> | ||||
175 | <property name="text"> | ||||
176 | <string>None</string> | ||||
177 | </property> | ||||
178 | </item> | ||||
179 | <item> | ||||
180 | <property name="text"> | ||||
181 | <string>Current Document</string> | ||||
182 | </property> | ||||
183 | </item> | ||||
184 | <item> | ||||
185 | <property name="text"> | ||||
186 | <string>All Documents</string> | ||||
187 | </property> | ||||
188 | </item> | ||||
189 | </widget> | ||||
190 | </item> | ||||
191 | <item row="7" column="1"> | ||||
192 | <widget class="QCheckBox" name="chkReload"> | ||||
193 | <property name="text"> | ||||
194 | <string>Reload current document after execution</string> | ||||
195 | </property> | ||||
196 | </widget> | ||||
197 | </item> | ||||
198 | <item row="8" column="0"> | ||||
199 | <widget class="QLabel" name="label"> | ||||
200 | <property name="text"> | ||||
201 | <string>O&utput:</string> | ||||
202 | </property> | ||||
203 | <property name="buddy"> | ||||
204 | <cstring>cmbOutput</cstring> | ||||
205 | </property> | ||||
206 | </widget> | ||||
207 | </item> | ||||
208 | <item row="8" column="1"> | ||||
209 | <widget class="QComboBox" name="cmbOutput"> | ||||
210 | <item> | ||||
211 | <property name="text"> | ||||
212 | <string>Ignore</string> | ||||
213 | </property> | ||||
214 | </item> | ||||
215 | <item> | ||||
216 | <property name="text"> | ||||
217 | <string>Insert at Cursor Position</string> | ||||
218 | </property> | ||||
219 | </item> | ||||
220 | <item> | ||||
221 | <property name="text"> | ||||
222 | <string>Replace Selected Text</string> | ||||
223 | </property> | ||||
224 | </item> | ||||
225 | <item> | ||||
226 | <property name="text"> | ||||
227 | <string>Replace Current Document</string> | ||||
228 | </property> | ||||
229 | </item> | ||||
230 | <item> | ||||
231 | <property name="text"> | ||||
232 | <string>Append to Current Document</string> | ||||
233 | </property> | ||||
234 | </item> | ||||
235 | <item> | ||||
236 | <property name="text"> | ||||
237 | <string>Insert in New Document</string> | ||||
238 | </property> | ||||
239 | </item> | ||||
240 | <item> | ||||
241 | <property name="text"> | ||||
242 | <string>Display in Pane</string> | ||||
243 | </property> | ||||
244 | </item> | ||||
245 | </widget> | ||||
246 | </item> | ||||
247 | <item row="10" column="0"> | ||||
248 | <widget class="QLabel" name="label_6"> | ||||
249 | <property name="text"> | ||||
250 | <string>Editor command:</string> | ||||
251 | </property> | ||||
252 | <property name="buddy"> | ||||
253 | <cstring>edtCommand</cstring> | ||||
254 | </property> | ||||
255 | </widget> | ||||
256 | </item> | ||||
257 | <item row="10" column="1"> | ||||
258 | <widget class="QLineEdit" name="edtCommand"> | ||||
259 | <property name="whatsThis"> | ||||
260 | <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> | ||||
261 | </property> | ||||
262 | <property name="placeholderText"> | ||||
263 | <string>Optional command bar name</string> | ||||
264 | </property> | ||||
265 | </widget> | ||||
266 | </item> | ||||
267 | <item row="11" column="1"> | ||||
268 | <widget class="QDialogButtonBox" name="buttonBox"> | ||||
269 | <property name="standardButtons"> | ||||
270 | <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> | ||||
271 | </property> | ||||
272 | </widget> | ||||
273 | </item> | ||||
274 | <item row="4" column="0"> | ||||
275 | <widget class="QLabel" name="lblWorkingDir"> | ||||
276 | <property name="text"> | ||||
277 | <string>Working &directory:</string> | ||||
278 | </property> | ||||
279 | <property name="buddy"> | ||||
280 | <cstring>edtWorkingDir</cstring> | ||||
281 | </property> | ||||
282 | </widget> | ||||
283 | </item> | ||||
284 | <item row="4" column="1"> | ||||
285 | <layout class="QHBoxLayout" name="horizontalLayout_4"> | ||||
286 | <item> | ||||
287 | <widget class="QLineEdit" name="edtWorkingDir"> | ||||
288 | <property name="placeholderText"> | ||||
289 | <string>Uses current document path if empty</string> | ||||
290 | </property> | ||||
291 | </widget> | ||||
292 | </item> | ||||
293 | <item> | ||||
294 | <widget class="QToolButton" name="btnWorkingDir"> | ||||
295 | <property name="icon"> | ||||
296 | <iconset theme="folder-open"> | ||||
297 | <normaloff>../../../../../../../../.designer/backup</normaloff>../../../../../../../../.designer/backup</iconset> | ||||
298 | </property> | ||||
299 | <property name="popupMode"> | ||||
300 | <enum>QToolButton::InstantPopup</enum> | ||||
301 | </property> | ||||
302 | </widget> | ||||
303 | </item> | ||||
304 | </layout> | ||||
305 | </item> | ||||
306 | <item row="2" column="1"> | ||||
307 | <layout class="QHBoxLayout" name="horizontalLayout_5"> | ||||
308 | <item> | ||||
309 | <widget class="QLineEdit" name="edtArgs"> | ||||
310 | <property name="placeholderText"> | ||||
311 | <string>Command line arguments</string> | ||||
312 | </property> | ||||
313 | </widget> | ||||
314 | </item> | ||||
315 | <item> | ||||
316 | <widget class="QToolButton" name="btnArgs"> | ||||
317 | <property name="icon"> | ||||
318 | <iconset theme="arrow-down"> | ||||
319 | <normaloff>../../../../../../../../.designer/backup</normaloff>../../../../../../../../.designer/backup</iconset> | ||||
320 | </property> | ||||
321 | <property name="popupMode"> | ||||
322 | <enum>QToolButton::InstantPopup</enum> | ||||
323 | </property> | ||||
324 | </widget> | ||||
325 | </item> | ||||
326 | </layout> | ||||
327 | </item> | ||||
328 | <item row="9" column="1"> | ||||
329 | <widget class="QCheckBox" name="chkIncludeStderr"> | ||||
330 | <property name="text"> | ||||
331 | <string>Include output from stderr</string> | ||||
332 | </property> | ||||
333 | </widget> | ||||
334 | </item> | ||||
335 | </layout> | ||||
336 | </widget> | ||||
337 | <customwidgets> | ||||
338 | <customwidget> | ||||
339 | <class>KIconButton</class> | ||||
340 | <extends>QPushButton</extends> | ||||
341 | <header>kiconbutton.h</header> | ||||
342 | </customwidget> | ||||
343 | </customwidgets> | ||||
344 | <tabstops> | ||||
345 | <tabstop>edtName</tabstop> | ||||
346 | <tabstop>btnIcon</tabstop> | ||||
347 | <tabstop>edtExecutable</tabstop> | ||||
348 | <tabstop>btnExecutable</tabstop> | ||||
349 | <tabstop>edtArgs</tabstop> | ||||
350 | <tabstop>btnArgs</tabstop> | ||||
351 | <tabstop>edtInput</tabstop> | ||||
352 | <tabstop>btnInput</tabstop> | ||||
353 | <tabstop>edtWorkingDir</tabstop> | ||||
354 | <tabstop>btnWorkingDir</tabstop> | ||||
355 | <tabstop>edtMimeType</tabstop> | ||||
356 | <tabstop>btnMimeType</tabstop> | ||||
357 | <tabstop>cmbSave</tabstop> | ||||
358 | <tabstop>chkReload</tabstop> | ||||
359 | <tabstop>cmbOutput</tabstop> | ||||
360 | <tabstop>chkIncludeStderr</tabstop> | ||||
361 | <tabstop>edtCommand</tabstop> | ||||
362 | </tabstops> | ||||
363 | <resources/> | ||||
364 | <connections/> | ||||
365 | </ui> |