|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <ui version="4.0"> |
|
3 <class>QRegExpWizardDialog</class> |
|
4 <widget class="QWidget" name="QRegExpWizardDialog"> |
|
5 <property name="geometry"> |
|
6 <rect> |
|
7 <x>0</x> |
|
8 <y>0</y> |
|
9 <width>749</width> |
|
10 <height>600</height> |
|
11 </rect> |
|
12 </property> |
|
13 <property name="windowTitle"> |
|
14 <string>QRegExp Wizard</string> |
|
15 </property> |
|
16 <property name="sizeGripEnabled" stdset="0"> |
|
17 <bool>true</bool> |
|
18 </property> |
|
19 <layout class="QVBoxLayout"> |
|
20 <item> |
|
21 <layout class="QHBoxLayout"> |
|
22 <item> |
|
23 <widget class="QLabel" name="variableLabel"> |
|
24 <property name="text"> |
|
25 <string>&Variable Name:</string> |
|
26 </property> |
|
27 <property name="buddy"> |
|
28 <cstring>variableLineEdit</cstring> |
|
29 </property> |
|
30 </widget> |
|
31 </item> |
|
32 <item> |
|
33 <widget class="QLineEdit" name="variableLineEdit"/> |
|
34 </item> |
|
35 </layout> |
|
36 </item> |
|
37 <item> |
|
38 <widget class="Line" name="variableLine"> |
|
39 <property name="orientation"> |
|
40 <enum>Qt::Horizontal</enum> |
|
41 </property> |
|
42 </widget> |
|
43 </item> |
|
44 <item> |
|
45 <layout class="QHBoxLayout"> |
|
46 <item> |
|
47 <widget class="QToolButton" name="charButton"> |
|
48 <property name="toolTip"> |
|
49 <string><b>Single character of a range (e.g. [abcd])</b><p>Select a single character of a range via a specific dialog.</p></string> |
|
50 </property> |
|
51 <property name="whatsThis"> |
|
52 <string><b>Single character of a range (e.g. [abcd])</b><p>Select a single character of a range via a specific dialog. This dialog will help to edit the range of characters and add some specific conditions.</p>s</string> |
|
53 </property> |
|
54 <property name="text"> |
|
55 <string>...</string> |
|
56 </property> |
|
57 </widget> |
|
58 </item> |
|
59 <item> |
|
60 <widget class="QToolButton" name="anycharButton"> |
|
61 <property name="toolTip"> |
|
62 <string><b>Any character: '.'</b> |
|
63 <p>Select to insert a dot (.) in your regexp.</p></string> |
|
64 </property> |
|
65 <property name="whatsThis"> |
|
66 <string><b>Any character: '.'</b> |
|
67 <p>Select to insert a dot (.) in your regexp. The dot matches a single character, except line break characters (by default). |
|
68 E.g. 'gr.y' matches 'gray', 'grey', 'gr%y', etc. Use the dot sparingly. Often, a character class or negated |
|
69 character class is faster and more precise.</p></string> |
|
70 </property> |
|
71 <property name="text"> |
|
72 <string>...</string> |
|
73 </property> |
|
74 </widget> |
|
75 </item> |
|
76 <item> |
|
77 <widget class="QToolButton" name="repeatButton"> |
|
78 <property name="toolTip"> |
|
79 <string><b>Repeat contents</b> |
|
80 <p>Select a repetition condition via a specific dialog. This dialog will help to specify the allowed range for repetitions.</p></string> |
|
81 </property> |
|
82 <property name="whatsThis"> |
|
83 <string><b>Repeat contents</b> |
|
84 <p>Select a repetition condition via a specific dialog. This dialog will help to specify the allowed range for repetitions.</p></string> |
|
85 </property> |
|
86 <property name="text"> |
|
87 <string>...</string> |
|
88 </property> |
|
89 </widget> |
|
90 </item> |
|
91 <item> |
|
92 <widget class="QToolButton" name="nonGroupButton"> |
|
93 <property name="toolTip"> |
|
94 <string><b>Non capturing parentheses: (?:)</b> |
|
95 <p>Select to insert some non capturing brackets.</p></string> |
|
96 </property> |
|
97 <property name="whatsThis"> |
|
98 <string><b>Non capturing parentheses: (?:)</b> |
|
99 <p>Select to insert some non capturing brackets. It can be used to apply a regexp quantifier (eg. '?' or '+') to the entire |
|
100 group of characters inside the brakets. E.g. the regex 'Set(?:Value)?' matches 'Set' or 'SetValue'. The '?:' inside the brakets |
|
101 means that the content of the match (called the backreference) is not stored for further use.</p></string> |
|
102 </property> |
|
103 <property name="text"> |
|
104 <string>...</string> |
|
105 </property> |
|
106 </widget> |
|
107 </item> |
|
108 <item> |
|
109 <widget class="QToolButton" name="groupButton"> |
|
110 <property name="toolTip"> |
|
111 <string><b>Group: ()</b> |
|
112 <p>Select to insert some capturing brackets.</p></string> |
|
113 </property> |
|
114 <property name="whatsThis"> |
|
115 <string><b>Group: ()</b> |
|
116 <p>Select to insert some capturing brackets. They can be used to apply a regexp quantifier (e.g. '?' or '+') to the entire group of |
|
117 characters inside the brakets. E.g. the regex 'Set(Value)?' matches 'Set' or 'SetValue'. Contrary to non-capturing parentheses, |
|
118 the backreference matched inside the brakets is stored for further use (i.e. 'Value' in the second example above). |
|
119 One can access the backereference with the '\1' expression. </p> |
|
120 <p>E.g. '([a-c])x\1x\1' will match 'axaxa', 'bxbxb' and 'cxcxc'.</p></string> |
|
121 </property> |
|
122 <property name="text"> |
|
123 <string>...</string> |
|
124 </property> |
|
125 </widget> |
|
126 </item> |
|
127 <item> |
|
128 <widget class="QToolButton" name="altnButton"> |
|
129 <property name="toolTip"> |
|
130 <string><b>Alternatives: '|'</b> |
|
131 <p>Select to insert the alternation symbol '|'. </p></string> |
|
132 </property> |
|
133 <property name="whatsThis"> |
|
134 <string><b>Alternatives: '|'</b> |
|
135 <p>Select to insert the alternation symbol '|'. The alternation is used to match a single regular expression out of |
|
136 several possible regular expressions. E.g. 'cat|dog|mouse|fish' matches words containing the word 'cat', 'dog','mouse' or 'fish'. |
|
137 Be aware that in the above example, the alternatives refer to whole or part of words. If you want to match exactly the |
|
138 words 'cat', 'dog', ... you should express the fact that you only want to match complete words: '\b(cat|dog|mouse|fish)\b'</p></string> |
|
139 </property> |
|
140 <property name="text"> |
|
141 <string>...</string> |
|
142 </property> |
|
143 </widget> |
|
144 </item> |
|
145 <item> |
|
146 <widget class="QToolButton" name="beglineButton"> |
|
147 <property name="toolTip"> |
|
148 <string><b>Begin of line: '^'</b> |
|
149 <p>Select to insert the start line character (^).</p></string> |
|
150 </property> |
|
151 <property name="whatsThis"> |
|
152 <string><b>Begin of line: '^'</b> |
|
153 <p>Select to insert the start line character (^). It is used to find some expressions at the begining of lines. |
|
154 E.g. '^[A-Z]' match lines starting with a capitalized character. </p></string> |
|
155 </property> |
|
156 <property name="text"> |
|
157 <string>...</string> |
|
158 </property> |
|
159 </widget> |
|
160 </item> |
|
161 <item> |
|
162 <widget class="QToolButton" name="endlineButton"> |
|
163 <property name="toolTip"> |
|
164 <string><b>End of line: '$'</b> |
|
165 <p>Select to insert the end of line character ($).</p></string> |
|
166 </property> |
|
167 <property name="whatsThis"> |
|
168 <string><b>End of line: '$'</b> |
|
169 <p>Select to insert the end of line character ($). It is used to find some expressions at the end of lines.</p></string> |
|
170 </property> |
|
171 <property name="text"> |
|
172 <string>...</string> |
|
173 </property> |
|
174 </widget> |
|
175 </item> |
|
176 <item> |
|
177 <widget class="QToolButton" name="wordboundButton"> |
|
178 <property name="toolTip"> |
|
179 <string><b>Word boundary</b> |
|
180 <p>Select to insert the word boudary character (\b).</p></string> |
|
181 </property> |
|
182 <property name="whatsThis"> |
|
183 <string><b>Word boundary</b> |
|
184 <p>Select to insert the word boudary character (\b). This character is used to express the fact that word |
|
185 must begin or end at this position. E.g. '\bcat\b' matches exactly the word 'cat' while 'concatenation' is ignored.</p></string> |
|
186 </property> |
|
187 <property name="text"> |
|
188 <string>...</string> |
|
189 </property> |
|
190 </widget> |
|
191 </item> |
|
192 <item> |
|
193 <widget class="QToolButton" name="nonwordboundButton"> |
|
194 <property name="toolTip"> |
|
195 <string><b>Non word boundary</b> |
|
196 <p>Select to insert the word boudary character (\B). \B is the negated version of \b.</p></string> |
|
197 </property> |
|
198 <property name="whatsThis"> |
|
199 <string><b>Non word boundary</b> |
|
200 <p>Select to insert the word boudary character (\B). \B is the negated version of \b. \B matches at every position where \b |
|
201 does not. Effectively, \B matches at any position between two word characters as well as at any position between two non-word characters.</p></string> |
|
202 </property> |
|
203 <property name="text"> |
|
204 <string>...</string> |
|
205 </property> |
|
206 </widget> |
|
207 </item> |
|
208 <item> |
|
209 <widget class="QToolButton" name="poslookaheadButton"> |
|
210 <property name="toolTip"> |
|
211 <string><b>Positive lookahead: (?=<i>regexpr</i>)</b> |
|
212 <p>Select to insert the positive lookhead brackets.</p></string> |
|
213 </property> |
|
214 <property name="whatsThis"> |
|
215 <string><b>Positive lookahead: (?=<i>regexpr</i>)</b> |
|
216 <p>Select to insert the positive lookhead brackets. Basically, positive lookhead is used to match a character only if followed by another one. |
|
217 Writting 'q(?=u)' means that you want to match the 'q' character only if it is followed by 'u'. In this statement 'u' is a trivial |
|
218 regexp which may be replaced by a more complex expression; q(?=[abc])' will match a 'q' if followed by either 'a', 'b' or 'c'.</p></string> |
|
219 </property> |
|
220 <property name="text"> |
|
221 <string>...</string> |
|
222 </property> |
|
223 </widget> |
|
224 </item> |
|
225 <item> |
|
226 <widget class="QToolButton" name="neglookaheadButton"> |
|
227 <property name="toolTip"> |
|
228 <string><b>Negative lookahead: (?!<i>regexpr</i>)</b> |
|
229 <p>Select to insert the negative lookhead brackets.</p></string> |
|
230 </property> |
|
231 <property name="whatsThis"> |
|
232 <string><b>Negative lookahead: (?!<i>regexpr</i>)</b> |
|
233 <p>Select to insert the negative lookhead brackets. Basically, negative lookhead is used to match a character only if it is not |
|
234 followed by a another one. Writting 'q(?!u)' means that you want to match 'q' only if it is not followed by 'u'. In this statement, 'u' is a |
|
235 trivial regexp which may be replaced by a more complex expression; 'q(?![abc])' will match a 'q' if it is followed by anything else than 'a', 'b' or 'c'.</p></string> |
|
236 </property> |
|
237 <property name="text"> |
|
238 <string>...</string> |
|
239 </property> |
|
240 </widget> |
|
241 </item> |
|
242 <item> |
|
243 <spacer> |
|
244 <property name="orientation"> |
|
245 <enum>Qt::Horizontal</enum> |
|
246 </property> |
|
247 <property name="sizeType"> |
|
248 <enum>QSizePolicy::Fixed</enum> |
|
249 </property> |
|
250 <property name="sizeHint" stdset="0"> |
|
251 <size> |
|
252 <width>16</width> |
|
253 <height>20</height> |
|
254 </size> |
|
255 </property> |
|
256 </spacer> |
|
257 </item> |
|
258 <item> |
|
259 <widget class="QToolButton" name="undoButton"> |
|
260 <property name="toolTip"> |
|
261 <string><b>Undo last edit</b></string> |
|
262 </property> |
|
263 <property name="text"> |
|
264 <string>...</string> |
|
265 </property> |
|
266 </widget> |
|
267 </item> |
|
268 <item> |
|
269 <widget class="QToolButton" name="redoButton"> |
|
270 <property name="toolTip"> |
|
271 <string><b>Redo last edit</b></string> |
|
272 </property> |
|
273 <property name="text"> |
|
274 <string>...</string> |
|
275 </property> |
|
276 </widget> |
|
277 </item> |
|
278 <item> |
|
279 <spacer> |
|
280 <property name="orientation"> |
|
281 <enum>Qt::Horizontal</enum> |
|
282 </property> |
|
283 <property name="sizeType"> |
|
284 <enum>QSizePolicy::Expanding</enum> |
|
285 </property> |
|
286 <property name="sizeHint" stdset="0"> |
|
287 <size> |
|
288 <width>81</width> |
|
289 <height>24</height> |
|
290 </size> |
|
291 </property> |
|
292 </spacer> |
|
293 </item> |
|
294 </layout> |
|
295 </item> |
|
296 <item> |
|
297 <layout class="QGridLayout"> |
|
298 <item row="0" column="0"> |
|
299 <widget class="QLabel" name="textLabel1"> |
|
300 <property name="text"> |
|
301 <string>&Regexp:</string> |
|
302 </property> |
|
303 <property name="buddy"> |
|
304 <cstring>regexpLineEdit</cstring> |
|
305 </property> |
|
306 </widget> |
|
307 </item> |
|
308 <item row="1" column="0"> |
|
309 <widget class="QLabel" name="textLabel2"> |
|
310 <property name="text"> |
|
311 <string>&Text:</string> |
|
312 </property> |
|
313 <property name="alignment"> |
|
314 <set>Qt::AlignTop</set> |
|
315 </property> |
|
316 <property name="buddy"> |
|
317 <cstring>textTextEdit</cstring> |
|
318 </property> |
|
319 </widget> |
|
320 </item> |
|
321 <item row="0" column="1"> |
|
322 <widget class="QLineEdit" name="regexpLineEdit"/> |
|
323 </item> |
|
324 <item row="1" column="1"> |
|
325 <widget class="QTextEdit" name="textTextEdit"/> |
|
326 </item> |
|
327 </layout> |
|
328 </item> |
|
329 <item> |
|
330 <layout class="QHBoxLayout"> |
|
331 <item> |
|
332 <widget class="QCheckBox" name="caseSensitiveCheckBox"> |
|
333 <property name="text"> |
|
334 <string>Case &Sensitive</string> |
|
335 </property> |
|
336 <property name="shortcut"> |
|
337 <string>Alt+S</string> |
|
338 </property> |
|
339 <property name="checked"> |
|
340 <bool>true</bool> |
|
341 </property> |
|
342 </widget> |
|
343 </item> |
|
344 <item> |
|
345 <widget class="QCheckBox" name="minimalCheckBox"> |
|
346 <property name="text"> |
|
347 <string>&Minimal</string> |
|
348 </property> |
|
349 <property name="shortcut"> |
|
350 <string>Alt+M</string> |
|
351 </property> |
|
352 </widget> |
|
353 </item> |
|
354 <item> |
|
355 <widget class="QCheckBox" name="wildcardCheckBox"> |
|
356 <property name="text"> |
|
357 <string>&Wildcard</string> |
|
358 </property> |
|
359 <property name="shortcut"> |
|
360 <string>Alt+W</string> |
|
361 </property> |
|
362 </widget> |
|
363 </item> |
|
364 <item> |
|
365 <spacer> |
|
366 <property name="orientation"> |
|
367 <enum>Qt::Horizontal</enum> |
|
368 </property> |
|
369 <property name="sizeType"> |
|
370 <enum>QSizePolicy::Expanding</enum> |
|
371 </property> |
|
372 <property name="sizeHint" stdset="0"> |
|
373 <size> |
|
374 <width>40</width> |
|
375 <height>20</height> |
|
376 </size> |
|
377 </property> |
|
378 </spacer> |
|
379 </item> |
|
380 </layout> |
|
381 </item> |
|
382 <item> |
|
383 <widget class="QTableWidget" name="resultTable"> |
|
384 <property name="editTriggers"> |
|
385 <set>QAbstractItemView::NoEditTriggers</set> |
|
386 </property> |
|
387 </widget> |
|
388 </item> |
|
389 <item> |
|
390 <widget class="QDialogButtonBox" name="buttonBox"> |
|
391 <property name="orientation"> |
|
392 <enum>Qt::Horizontal</enum> |
|
393 </property> |
|
394 <property name="standardButtons"> |
|
395 <set>QDialogButtonBox::Cancel|QDialogButtonBox::Close|QDialogButtonBox::Ok</set> |
|
396 </property> |
|
397 </widget> |
|
398 </item> |
|
399 </layout> |
|
400 </widget> |
|
401 <layoutdefault spacing="6" margin="6"/> |
|
402 <pixmapfunction>qPixmapFromMimeSource</pixmapfunction> |
|
403 <tabstops> |
|
404 <tabstop>variableLineEdit</tabstop> |
|
405 <tabstop>regexpLineEdit</tabstop> |
|
406 <tabstop>textTextEdit</tabstop> |
|
407 <tabstop>caseSensitiveCheckBox</tabstop> |
|
408 <tabstop>minimalCheckBox</tabstop> |
|
409 <tabstop>wildcardCheckBox</tabstop> |
|
410 <tabstop>resultTable</tabstop> |
|
411 <tabstop>charButton</tabstop> |
|
412 <tabstop>anycharButton</tabstop> |
|
413 <tabstop>repeatButton</tabstop> |
|
414 <tabstop>nonGroupButton</tabstop> |
|
415 <tabstop>groupButton</tabstop> |
|
416 <tabstop>altnButton</tabstop> |
|
417 <tabstop>beglineButton</tabstop> |
|
418 <tabstop>endlineButton</tabstop> |
|
419 <tabstop>wordboundButton</tabstop> |
|
420 <tabstop>nonwordboundButton</tabstop> |
|
421 <tabstop>poslookaheadButton</tabstop> |
|
422 <tabstop>neglookaheadButton</tabstop> |
|
423 <tabstop>undoButton</tabstop> |
|
424 <tabstop>redoButton</tabstop> |
|
425 </tabstops> |
|
426 <resources/> |
|
427 <connections> |
|
428 <connection> |
|
429 <sender>undoButton</sender> |
|
430 <signal>clicked()</signal> |
|
431 <receiver>regexpLineEdit</receiver> |
|
432 <slot>undo()</slot> |
|
433 <hints> |
|
434 <hint type="sourcelabel"> |
|
435 <x>490</x> |
|
436 <y>132</y> |
|
437 </hint> |
|
438 <hint type="destinationlabel"> |
|
439 <x>487</x> |
|
440 <y>163</y> |
|
441 </hint> |
|
442 </hints> |
|
443 </connection> |
|
444 <connection> |
|
445 <sender>redoButton</sender> |
|
446 <signal>clicked()</signal> |
|
447 <receiver>regexpLineEdit</receiver> |
|
448 <slot>redo()</slot> |
|
449 <hints> |
|
450 <hint type="sourcelabel"> |
|
451 <x>526</x> |
|
452 <y>132</y> |
|
453 </hint> |
|
454 <hint type="destinationlabel"> |
|
455 <x>529</x> |
|
456 <y>163</y> |
|
457 </hint> |
|
458 </hints> |
|
459 </connection> |
|
460 </connections> |
|
461 </ui> |