source: s10k/Vago/xmlToolsInterface/xmltoolsinterface.ui@ 1115

Last change on this file since 1115 was 1061, checked in by s10k, 8 years ago

Added Vago 1.3

File size: 17.5 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<ui version="4.0">
3 <class>XmlToolsInterface</class>
4 <widget class="QMainWindow" name="XmlToolsInterface">
5 <property name="geometry">
6 <rect>
7 <x>0</x>
8 <y>0</y>
9 <width>650</width>
10 <height>660</height>
11 </rect>
12 </property>
13 <property name="minimumSize">
14 <size>
15 <width>650</width>
16 <height>660</height>
17 </size>
18 </property>
19 <property name="acceptDrops">
20 <bool>true</bool>
21 </property>
22 <property name="windowTitle">
23 <string>XmlTools Interface</string>
24 </property>
25 <property name="windowIcon">
26 <iconset resource="../resources.qrc">
27 <normaloff>:/new/icons/xmltoolsinterface.png</normaloff>:/new/icons/xmltoolsinterface.png</iconset>
28 </property>
29 <widget class="QWidget" name="centralwidget">
30 <layout class="QVBoxLayout" name="verticalLayout_5">
31 <item>
32 <layout class="QFormLayout" name="formLayout_5">
33 <item row="0" column="0">
34 <widget class="QLabel" name="label">
35 <property name="toolTip">
36 <string>XmlTools Operation that you want to perform.
37Learn more about them in XmlTools documentation page:
38http://wiki.oni2.net/XmlTools</string>
39 </property>
40 <property name="text">
41 <string>XmlTools Operation:</string>
42 </property>
43 </widget>
44 </item>
45 <item row="0" column="1">
46 <widget class="QComboBox" name="cbXmlToolsOperation">
47 <property name="toolTip">
48 <string>XmlTools Operation that you want to perform.
49Learn more about them in XmlTools documentation page:
50http://wiki.oni2.net/XmlTools</string>
51 </property>
52 <item>
53 <property name="text">
54 <string>Add Values</string>
55 </property>
56 </item>
57 <item>
58 <property name="text">
59 <string>Remove Values</string>
60 </property>
61 </item>
62 <item>
63 <property name="text">
64 <string>Replace Single Value</string>
65 </property>
66 </item>
67 <item>
68 <property name="text">
69 <string>Replace All Values</string>
70 </property>
71 </item>
72 <item>
73 <property name="text">
74 <string>Update Elements</string>
75 </property>
76 </item>
77 <item>
78 <property name="text">
79 <string>Invert Elements</string>
80 </property>
81 </item>
82 </widget>
83 </item>
84 </layout>
85 </item>
86 <item>
87 <spacer name="verticalSpacer_6">
88 <property name="orientation">
89 <enum>Qt::Vertical</enum>
90 </property>
91 <property name="sizeHint" stdset="0">
92 <size>
93 <width>20</width>
94 <height>40</height>
95 </size>
96 </property>
97 </spacer>
98 </item>
99 <item>
100 <widget class="QGroupBox" name="groupBox">
101 <property name="title">
102 <string>Filter</string>
103 </property>
104 <layout class="QVBoxLayout" name="verticalLayout_3">
105 <item>
106 <layout class="QVBoxLayout" name="verticalLayout">
107 <item>
108 <layout class="QHBoxLayout" name="horizontalLayout">
109 <item>
110 <widget class="QRadioButton" name="rbFilterRelativeElements">
111 <property name="minimumSize">
112 <size>
113 <width>140</width>
114 <height>0</height>
115 </size>
116 </property>
117 <property name="text">
118 <string>Relative Elements</string>
119 </property>
120 <property name="checked">
121 <bool>true</bool>
122 </property>
123 </widget>
124 </item>
125 <item>
126 <layout class="QGridLayout" name="gridLayout">
127 <item row="0" column="0">
128 <widget class="QLabel" name="lbFilterElement">
129 <property name="sizePolicy">
130 <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
131 <horstretch>0</horstretch>
132 <verstretch>0</verstretch>
133 </sizepolicy>
134 </property>
135 <property name="text">
136 <string>Element:</string>
137 </property>
138 </widget>
139 </item>
140 <item row="0" column="1">
141 <widget class="QLineEdit" name="leFilterElement"/>
142 </item>
143 <item row="0" column="2">
144 <widget class="QCheckBox" name="cbFilterParentElement">
145 <property name="text">
146 <string>Parent Element:</string>
147 </property>
148 </widget>
149 </item>
150 <item row="0" column="3">
151 <widget class="QLineEdit" name="leFilterParentElement"/>
152 </item>
153 <item row="1" column="0">
154 <widget class="QCheckBox" name="cbFilterAttributeName">
155 <property name="text">
156 <string>Attribute Name:</string>
157 </property>
158 </widget>
159 </item>
160 <item row="1" column="1">
161 <widget class="QLineEdit" name="leFilterAttributeName"/>
162 </item>
163 <item row="1" column="2">
164 <widget class="QLabel" name="lbFilterAttributeValue">
165 <property name="text">
166 <string>Attribute Value:</string>
167 </property>
168 </widget>
169 </item>
170 <item row="1" column="3">
171 <widget class="QLineEdit" name="leFilterAttributeValue">
172 <property name="minimumSize">
173 <size>
174 <width>80</width>
175 <height>0</height>
176 </size>
177 </property>
178 </widget>
179 </item>
180 </layout>
181 </item>
182 </layout>
183 </item>
184 <item>
185 <layout class="QHBoxLayout" name="horizontalLayout_2">
186 <item>
187 <widget class="QRadioButton" name="rbFilterXPathExpression">
188 <property name="minimumSize">
189 <size>
190 <width>140</width>
191 <height>0</height>
192 </size>
193 </property>
194 <property name="text">
195 <string>X-Path Expression</string>
196 </property>
197 </widget>
198 </item>
199 <item>
200 <widget class="QLineEdit" name="leFilterXPathExpression"/>
201 </item>
202 </layout>
203 </item>
204 </layout>
205 </item>
206 </layout>
207 </widget>
208 </item>
209 <item>
210 <spacer name="verticalSpacer">
211 <property name="orientation">
212 <enum>Qt::Vertical</enum>
213 </property>
214 <property name="sizeHint" stdset="0">
215 <size>
216 <width>20</width>
217 <height>40</height>
218 </size>
219 </property>
220 </spacer>
221 </item>
222 <item>
223 <widget class="QGroupBox" name="groupBox_2">
224 <property name="title">
225 <string>Input</string>
226 </property>
227 <layout class="QVBoxLayout" name="verticalLayout_4">
228 <item>
229 <layout class="QGridLayout" name="gridLayout_2">
230 <item row="0" column="0">
231 <widget class="QLabel" name="label_2">
232 <property name="sizePolicy">
233 <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
234 <horstretch>0</horstretch>
235 <verstretch>0</verstretch>
236 </sizepolicy>
237 </property>
238 <property name="toolTip">
239 <string>XML files to process (wildcards supported)
240
241If you are processing only one file you can also drag and drop it here.</string>
242 </property>
243 <property name="text">
244 <string>Input File(s):</string>
245 </property>
246 </widget>
247 </item>
248 <item row="0" column="1">
249 <layout class="QGridLayout" name="gridLayout_3">
250 <item row="0" column="0">
251 <widget class="QLineEdit" name="leInputInputFiles">
252 <property name="minimumSize">
253 <size>
254 <width>200</width>
255 <height>0</height>
256 </size>
257 </property>
258 <property name="toolTip">
259 <string>XML files to process (wildcards supported)
260
261If you are processing only one file you can also drag and drop it here.</string>
262 </property>
263 </widget>
264 </item>
265 <item row="0" column="1">
266 <widget class="QPushButton" name="pbInputBrowse">
267 <property name="text">
268 <string>Browse...</string>
269 </property>
270 </widget>
271 </item>
272 </layout>
273 </item>
274 <item row="1" column="0">
275 <widget class="QLabel" name="lbInputCurrentValues">
276 <property name="sizePolicy">
277 <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
278 <horstretch>0</horstretch>
279 <verstretch>0</verstretch>
280 </sizepolicy>
281 </property>
282 <property name="toolTip">
283 <string>Value to be replaced or removed (use space as separator)</string>
284 </property>
285 <property name="text">
286 <string>Current Value(s):</string>
287 </property>
288 </widget>
289 </item>
290 <item row="1" column="1">
291 <widget class="QLineEdit" name="leInputCurrentValues">
292 <property name="toolTip">
293 <string>Value to be replaced or removed (use space as separator)</string>
294 </property>
295 <property name="text">
296 <string/>
297 </property>
298 </widget>
299 </item>
300 <item row="2" column="0">
301 <widget class="QLabel" name="lbInputNewValues">
302 <property name="sizePolicy">
303 <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
304 <horstretch>0</horstretch>
305 <verstretch>0</verstretch>
306 </sizepolicy>
307 </property>
308 <property name="toolTip">
309 <string>New value(s) to add or replace current value (use space as separator)</string>
310 </property>
311 <property name="text">
312 <string>New Value(s):</string>
313 </property>
314 </widget>
315 </item>
316 <item row="2" column="1">
317 <widget class="QLineEdit" name="leInputNewValues">
318 <property name="toolTip">
319 <string>New value(s) to add or replace current value (use space as separator)</string>
320 </property>
321 </widget>
322 </item>
323 <item row="3" column="0">
324 <widget class="QLabel" name="lbInputPositions">
325 <property name="sizePolicy">
326 <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
327 <horstretch>0</horstretch>
328 <verstretch>0</verstretch>
329 </sizepolicy>
330 </property>
331 <property name="toolTip">
332 <string>Positions to be replaced [use space as separator] (zero-based index)</string>
333 </property>
334 <property name="text">
335 <string>Position(s):</string>
336 </property>
337 </widget>
338 </item>
339 <item row="3" column="1">
340 <widget class="QLineEdit" name="leInputPositions">
341 <property name="toolTip">
342 <string>Positions to be replaced [use space as separator] (zero-based index)</string>
343 </property>
344 <property name="text">
345 <string/>
346 </property>
347 </widget>
348 </item>
349 <item row="4" column="0">
350 <widget class="QLabel" name="lbInputDiffOldNewValue">
351 <property name="toolTip">
352 <string>Difference to adjust values by.
353
354For instance if the current value is 1 and you want it to become 3 (new value), you should input -2:
355
3561 (current value) - 3 (new value) = -2
357
358---
359
360You can also update multi dimensional values like &quot;1 2 3&quot;, type the difference here like &quot;-1 -1 -1&quot;. Result would be &quot;2 3 4&quot;.</string>
361 </property>
362 <property name="text">
363 <string>Diff between old and new value:</string>
364 </property>
365 </widget>
366 </item>
367 <item row="4" column="1">
368 <widget class="QLineEdit" name="leInputDiffOldNewValue">
369 <property name="toolTip">
370 <string>Difference to adjust values by.
371
372For instance if the current value is 1 and you want it to become 3 (new value), you should input -2:
373
3741 (current value) - 3 (new value) = -2
375
376---
377
378You can also update multi dimensional values like &quot;1 2 3&quot;, type the difference here like &quot;-1 -1 -1&quot;. Result would be &quot;2 3 4&quot;.</string>
379 </property>
380 </widget>
381 </item>
382 </layout>
383 </item>
384 </layout>
385 </widget>
386 </item>
387 <item>
388 <spacer name="verticalSpacer_3">
389 <property name="orientation">
390 <enum>Qt::Vertical</enum>
391 </property>
392 <property name="sizeHint" stdset="0">
393 <size>
394 <width>20</width>
395 <height>40</height>
396 </size>
397 </property>
398 </spacer>
399 </item>
400 <item>
401 <widget class="QGroupBox" name="groupBox_3">
402 <property name="title">
403 <string>Options</string>
404 </property>
405 <layout class="QVBoxLayout" name="verticalLayout_2">
406 <item>
407 <widget class="QCheckBox" name="cbOptionsNoBackups">
408 <property name="toolTip">
409 <string>Don't make backups of XML files (faster processing)</string>
410 </property>
411 <property name="text">
412 <string>No Backups</string>
413 </property>
414 </widget>
415 </item>
416 </layout>
417 </widget>
418 </item>
419 <item>
420 <spacer name="verticalSpacer_4">
421 <property name="orientation">
422 <enum>Qt::Vertical</enum>
423 </property>
424 <property name="sizeHint" stdset="0">
425 <size>
426 <width>20</width>
427 <height>40</height>
428 </size>
429 </property>
430 </spacer>
431 </item>
432 <item>
433 <widget class="QGroupBox" name="groupBox_4">
434 <property name="title">
435 <string>XmlTools Operation Command</string>
436 </property>
437 <layout class="QHBoxLayout" name="horizontalLayout_5">
438 <item>
439 <widget class="QLineEdit" name="leOperationCommandGenCommand">
440 <property name="enabled">
441 <bool>true</bool>
442 </property>
443 <property name="toolTip">
444 <string>Command for XmlTools generated by this interface, you can copy it, to later input directly in XmlTools</string>
445 </property>
446 <property name="readOnly">
447 <bool>true</bool>
448 </property>
449 </widget>
450 </item>
451 <item>
452 <widget class="QPushButton" name="pbOperationCommandCopyToClipboard">
453 <property name="text">
454 <string>Copy to clipboard</string>
455 </property>
456 </widget>
457 </item>
458 </layout>
459 </widget>
460 </item>
461 <item>
462 <spacer name="verticalSpacer_5">
463 <property name="orientation">
464 <enum>Qt::Vertical</enum>
465 </property>
466 <property name="sizeHint" stdset="0">
467 <size>
468 <width>20</width>
469 <height>40</height>
470 </size>
471 </property>
472 </spacer>
473 </item>
474 <item>
475 <layout class="QHBoxLayout" name="horizontalLayout_4">
476 <item>
477 <spacer name="horizontalSpacer">
478 <property name="orientation">
479 <enum>Qt::Horizontal</enum>
480 </property>
481 <property name="sizeHint" stdset="0">
482 <size>
483 <width>40</width>
484 <height>20</height>
485 </size>
486 </property>
487 </spacer>
488 </item>
489 <item>
490 <widget class="QPushButton" name="pbPreviewOperation">
491 <property name="minimumSize">
492 <size>
493 <width>150</width>
494 <height>0</height>
495 </size>
496 </property>
497 <property name="toolTip">
498 <string>Opens a windows which previews your operation. It does NOT make any changes to the input files.
499
500(only available when exists only one file as input)</string>
501 </property>
502 <property name="text">
503 <string>Preview Operation</string>
504 </property>
505 </widget>
506 </item>
507 <item>
508 <spacer name="horizontalSpacer_2">
509 <property name="orientation">
510 <enum>Qt::Horizontal</enum>
511 </property>
512 <property name="sizeType">
513 <enum>QSizePolicy::Fixed</enum>
514 </property>
515 <property name="sizeHint" stdset="0">
516 <size>
517 <width>20</width>
518 <height>20</height>
519 </size>
520 </property>
521 </spacer>
522 </item>
523 <item>
524 <widget class="QPushButton" name="pbApplyOperation">
525 <property name="minimumSize">
526 <size>
527 <width>100</width>
528 <height>0</height>
529 </size>
530 </property>
531 <property name="toolTip">
532 <string>Applies the operation to the input files</string>
533 </property>
534 <property name="text">
535 <string>Apply Operation</string>
536 </property>
537 </widget>
538 </item>
539 </layout>
540 </item>
541 </layout>
542 </widget>
543 </widget>
544 <resources>
545 <include location="../resources.qrc"/>
546 </resources>
547 <connections/>
548</ui>
Note: See TracBrowser for help on using the repository browser.