|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <ui version="4.0"> |
|
3 <class>PyRegExpWizardDialog</class> |
|
4 <widget class="QWidget" name="PyRegExpWizardDialog"> |
|
5 <property name="geometry"> |
|
6 <rect> |
|
7 <x>0</x> |
|
8 <y>0</y> |
|
9 <width>750</width> |
|
10 <height>700</height> |
|
11 </rect> |
|
12 </property> |
|
13 <property name="windowTitle"> |
|
14 <string>Python re Wizard</string> |
|
15 </property> |
|
16 <property name="sizeGripEnabled" stdset="0"> |
|
17 <bool>true</bool> |
|
18 </property> |
|
19 <layout class="QVBoxLayout" name="verticalLayout"> |
|
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 </widget> |
|
28 </item> |
|
29 <item> |
|
30 <widget class="QLineEdit" name="variableLineEdit"/> |
|
31 </item> |
|
32 </layout> |
|
33 </item> |
|
34 <item> |
|
35 <widget class="QCheckBox" name="importCheckBox"> |
|
36 <property name="text"> |
|
37 <string>Include import statement</string> |
|
38 </property> |
|
39 </widget> |
|
40 </item> |
|
41 <item> |
|
42 <widget class="Line" name="variableLine"> |
|
43 <property name="frameShape"> |
|
44 <enum>QFrame::HLine</enum> |
|
45 </property> |
|
46 <property name="frameShadow"> |
|
47 <enum>QFrame::Sunken</enum> |
|
48 </property> |
|
49 <property name="orientation"> |
|
50 <enum>Qt::Horizontal</enum> |
|
51 </property> |
|
52 </widget> |
|
53 </item> |
|
54 <item> |
|
55 <layout class="QHBoxLayout"> |
|
56 <item> |
|
57 <widget class="QToolButton" name="commentButton"> |
|
58 <property name="toolTip"> |
|
59 <string><b>Comment: (?#)</b> |
|
60 <p>Insert some comment inside your regexp.</p></string> |
|
61 </property> |
|
62 <property name="whatsThis"> |
|
63 <string><b>Comment: (?#)</b> |
|
64 <p>Insert some comment inside your regexp.The regex engine ignores everything after the (?# until the first closing round bracket. |
|
65 The following example could clarify the regexp which match a valid date: </p> |
|
66 <p>(?#year)(19|20)\d\d[- /.](?#month)(0[1-9]|1[012])[- /.](?#day)(0[1-9]|[12][0-9]|3[01])</p></string> |
|
67 </property> |
|
68 </widget> |
|
69 </item> |
|
70 <item> |
|
71 <widget class="QToolButton" name="charButton"> |
|
72 <property name="toolTip"> |
|
73 <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> |
|
74 </property> |
|
75 <property name="whatsThis"> |
|
76 <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> |
|
77 </property> |
|
78 </widget> |
|
79 </item> |
|
80 <item> |
|
81 <widget class="QToolButton" name="anycharButton"> |
|
82 <property name="toolTip"> |
|
83 <string><b>Any character: '.'</b> |
|
84 <p>Select to insert a dot (.) in your regexp.</p></string> |
|
85 </property> |
|
86 <property name="whatsThis"> |
|
87 <string><b>Any character: '.'</b> |
|
88 <p>Select to insert a dot (.) in your regexp. The dot matches a single character, except line break characters (by default). |
|
89 E.g. 'gr.y' matches 'gray', 'grey', 'gr%y', etc. Use the dot sparingly. Often, a character class or negated |
|
90 character class is faster and more precise.</p></string> |
|
91 </property> |
|
92 </widget> |
|
93 </item> |
|
94 <item> |
|
95 <widget class="QToolButton" name="repeatButton"> |
|
96 <property name="toolTip"> |
|
97 <string><b>Repeat contents</b> |
|
98 <p>Select a repetition condition via a specific dialog. This dialog will help to specify the allowed range for repetitions.</p></string> |
|
99 </property> |
|
100 <property name="whatsThis"> |
|
101 <string><b>Repeat contents</b> |
|
102 <p>Select a repetition condition via a specific dialog. This dialog will help to specify the allowed range for repetitions.</p></string> |
|
103 </property> |
|
104 </widget> |
|
105 </item> |
|
106 <item> |
|
107 <widget class="QToolButton" name="nonGroupButton"> |
|
108 <property name="toolTip"> |
|
109 <string><b>Non capturing parentheses: (?:)</b> |
|
110 <p>Select to insert some non capturing brackets.</p></string> |
|
111 </property> |
|
112 <property name="whatsThis"> |
|
113 <string><b>Non capturing parentheses: (?:)</b> |
|
114 <p>Select to insert some non capturing brackets. It can be used to apply a regexp quantifier (eg. '?' or '+') to the entire |
|
115 group of characters inside the brakets. E.g. the regex 'Set(?:Value)?' matches 'Set' or 'SetValue'. The '?:' inside the brakets |
|
116 means that the content of the match (called the backreference) is not stored for further use.</p></string> |
|
117 </property> |
|
118 </widget> |
|
119 </item> |
|
120 <item> |
|
121 <widget class="QToolButton" name="groupButton"> |
|
122 <property name="toolTip"> |
|
123 <string><b>Group: ()</b> |
|
124 <p>Select to insert some capturing brackets.</p></string> |
|
125 </property> |
|
126 <property name="whatsThis"> |
|
127 <string><b>Group: ()</b> |
|
128 <p>Select to insert some capturing brackets. They can be used to apply a regexp quantifier (e.g. '?' or '+') to the entire group of |
|
129 characters inside the brakets. E.g. the regex 'Set(Value)?' matches 'Set' or 'SetValue'. Contrary to non-capturing parentheses, |
|
130 the backreference matched inside the brakets is stored for further use (i.e. 'Value' in the second example above). |
|
131 One can access the backereference with the '\1' expression. </p> |
|
132 <p>E.g. '([a-c])x\1x\1' will match 'axaxa', 'bxbxb' and 'cxcxc'.</p></string> |
|
133 </property> |
|
134 </widget> |
|
135 </item> |
|
136 <item> |
|
137 <widget class="QToolButton" name="namedGroupButton"> |
|
138 <property name="toolTip"> |
|
139 <string><b>Named group: (?P&lt;<i>groupname</i>&gt;)</b> |
|
140 <p>Select to insert some named group brackets.</p></string> |
|
141 </property> |
|
142 <property name="whatsThis"> |
|
143 <string><b>Named group: (?P&lt;<i>groupname</i>&gt;)</b> |
|
144 <p>Select to insert some named group brackets. Usage is similar to standard group parentheses as the matched |
|
145 backreference is also stored for further usage. The difference is that a name is given to the match. This is useful when |
|
146 the work to do on the match becomes a bit complicated. One can access the backreference via the group name (i.e (?P=<i>groupname</i>)). |
|
147 E.g. (?P<foo>[abc])x(?P=foo)x(?P=foo)x matches 'axaxax','bxbxbx' or 'cxcxcx' ('foo' is the group name)</p></string> |
|
148 </property> |
|
149 </widget> |
|
150 </item> |
|
151 <item> |
|
152 <widget class="QToolButton" name="namedReferenceButton"> |
|
153 <property name="toolTip"> |
|
154 <string><b>Reference named group: (?P=<i>groupname</i>)</b> |
|
155 <p>Select to insert a reference to named group previously declared.</p></string> |
|
156 </property> |
|
157 <property name="whatsThis"> |
|
158 <string><b>Reference named group: (?P=<i>groupname</i>)</b> |
|
159 <p>Select to insert a reference to named group previously declared. Each reference group refers to the match |
|
160 found by the corresponding named group. In the following example, (?P=foo) may refer to the charaters 'a','b' or 'c'.</p> |
|
161 <p>E.g. (?P<foo>[abc])x(?P=foo)x(?P=foo)x matches 'axaxax','bxbxbx' or 'cxcxcx'.</p></string> |
|
162 </property> |
|
163 </widget> |
|
164 </item> |
|
165 <item> |
|
166 <widget class="QToolButton" name="altnButton"> |
|
167 <property name="toolTip"> |
|
168 <string><b>Alternatives: '|'</b> |
|
169 <p>Select to insert the alternation symbol '|'. </p></string> |
|
170 </property> |
|
171 <property name="whatsThis"> |
|
172 <string><b>Alternatives: '|'</b> |
|
173 <p>Select to insert the alternation symbol '|'. The alternation is used to match a single regular expression out of |
|
174 several possible regular expressions. E.g. 'cat|dog|mouse|fish' matches words containing the word 'cat', 'dog','mouse' or 'fish'. |
|
175 Be aware that in the above example, the alternatives refer to whole or part of words. If you want to match exactly the |
|
176 words 'cat', 'dog', ... you should express the fact that you only want to match complete words: '\b(cat|dog|mouse|fish)\b'</p></string> |
|
177 </property> |
|
178 </widget> |
|
179 </item> |
|
180 <item> |
|
181 <widget class="QToolButton" name="beglineButton"> |
|
182 <property name="toolTip"> |
|
183 <string><b>Begin of line: '^'</b> |
|
184 <p>Select to insert the start line character (^).</p></string> |
|
185 </property> |
|
186 <property name="whatsThis"> |
|
187 <string><b>Begin of line: '^'</b> |
|
188 <p>Select to insert the start line character (^). It is used to find some expressions at the begining of lines. |
|
189 E.g. '^[A-Z]' match lines starting with a capitalized character. </p></string> |
|
190 </property> |
|
191 </widget> |
|
192 </item> |
|
193 <item> |
|
194 <widget class="QToolButton" name="endlineButton"> |
|
195 <property name="toolTip"> |
|
196 <string><b>End of line: '$'</b> |
|
197 <p>Select to insert the end of line character ($).</p></string> |
|
198 </property> |
|
199 <property name="whatsThis"> |
|
200 <string><b>End of line: '$'</b> |
|
201 <p>Select to insert the end of line character ($). It is used to find some expressions at the end of lines.</p></string> |
|
202 </property> |
|
203 </widget> |
|
204 </item> |
|
205 <item> |
|
206 <widget class="QToolButton" name="wordboundButton"> |
|
207 <property name="toolTip"> |
|
208 <string><b>Word boundary</b> |
|
209 <p>Select to insert the word boudary character (\b).</p></string> |
|
210 </property> |
|
211 <property name="whatsThis"> |
|
212 <string><b>Word boundary</b> |
|
213 <p>Select to insert the word boudary character (\b). This character is used to express the fact that word |
|
214 must begin or end at this position. E.g. '\bcat\b' matches exactly the word 'cat' while 'concatenation' is ignored.</p></string> |
|
215 </property> |
|
216 </widget> |
|
217 </item> |
|
218 <item> |
|
219 <widget class="QToolButton" name="nonwordboundButton"> |
|
220 <property name="toolTip"> |
|
221 <string><b>Non word boundary</b> |
|
222 <p>Select to insert the word boudary character (\B). \B is the negated version of \b.</p></string> |
|
223 </property> |
|
224 <property name="whatsThis"> |
|
225 <string><b>Non word boundary</b> |
|
226 <p>Select to insert the word boudary character (\B). \B is the negated version of \b. \B matches at every position where \b |
|
227 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> |
|
228 </property> |
|
229 </widget> |
|
230 </item> |
|
231 <item> |
|
232 <widget class="QToolButton" name="poslookaheadButton"> |
|
233 <property name="toolTip"> |
|
234 <string><b>Positive lookahead: (?=<i>regexpr</i>)</b> |
|
235 <p>Select to insert the positive lookhead brackets.</p></string> |
|
236 </property> |
|
237 <property name="whatsThis"> |
|
238 <string><b>Positive lookahead: (?=<i>regexpr</i>)</b> |
|
239 <p>Select to insert the positive lookhead brackets. Basically, positive lookhead is used to match a character only if followed by another one. |
|
240 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 |
|
241 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> |
|
242 </property> |
|
243 </widget> |
|
244 </item> |
|
245 <item> |
|
246 <widget class="QToolButton" name="neglookaheadButton"> |
|
247 <property name="toolTip"> |
|
248 <string><b>Negative lookahead: (?!<i>regexpr</i>)</b> |
|
249 <p>Select to insert the negative lookhead brackets.</p></string> |
|
250 </property> |
|
251 <property name="whatsThis"> |
|
252 <string><b>Negative lookahead: (?!<i>regexpr</i>)</b> |
|
253 <p>Select to insert the negative lookhead brackets. Basically, negative lookhead is used to match a character only if it is not |
|
254 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 |
|
255 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> |
|
256 </property> |
|
257 </widget> |
|
258 </item> |
|
259 <item> |
|
260 <widget class="QToolButton" name="poslookbehindButton"> |
|
261 <property name="toolTip"> |
|
262 <string><b>Positive lookbehind: (?&lt;=<i>regexpr</i>)</b> |
|
263 <p>Select to insert the positive lookbehind brackets.</p></string> |
|
264 </property> |
|
265 <property name="whatsThis"> |
|
266 <string><b>Positive lookbehind: (?&lt;=<i>regexpr</i>)</b> |
|
267 <p>Select to insert the positive lookbehind brackets. Lookbehind has the same effect as lookahead, but works backwards. |
|
268 It is used to match a character only if preceded by another one. Writting '(?&lt;=u)q' means that you want to match the 'q' character |
|
269 only if it is preceded by 'u'. As with lookhead, 'u' may be replaced by a more complex expression; '(?&lt;=[abc])q' will match a 'q' if preceded by either 'a', 'b' or 'c'.</p></string> |
|
270 </property> |
|
271 </widget> |
|
272 </item> |
|
273 <item> |
|
274 <widget class="QToolButton" name="neglookbehindButton"> |
|
275 <property name="toolTip"> |
|
276 <string><b>Negative lookbehind (?&lt;!<i>regexpr</i>)</b> |
|
277 <p>Select to insert the negative lookbehind brackets.</p></string> |
|
278 </property> |
|
279 <property name="whatsThis"> |
|
280 <string><b>Negative lookbehind (?&lt;!<i>regexpr</i>)</b> |
|
281 <p>Select to insert the negative lookbehind brackets. Lookbehind has the same effect as lookahead, |
|
282 but works backwards. It is used to match a character only if not preceded by another one. Writting '(?&lt;!u)q' means that you want to match the 'q' |
|
283 character only if it is not preceded by 'u'. As other lookaround, 'u' may be replaced by a more complex |
|
284 expression; '(?&lt;![abc])q' will match a 'q' only if not preceded by either 'a', 'b' nor 'c'.</p></string> |
|
285 </property> |
|
286 </widget> |
|
287 </item> |
|
288 <item> |
|
289 <spacer> |
|
290 <property name="orientation"> |
|
291 <enum>Qt::Horizontal</enum> |
|
292 </property> |
|
293 <property name="sizeType"> |
|
294 <enum>QSizePolicy::Fixed</enum> |
|
295 </property> |
|
296 <property name="sizeHint" stdset="0"> |
|
297 <size> |
|
298 <width>16</width> |
|
299 <height>20</height> |
|
300 </size> |
|
301 </property> |
|
302 </spacer> |
|
303 </item> |
|
304 <item> |
|
305 <widget class="QToolButton" name="undoButton"> |
|
306 <property name="toolTip"> |
|
307 <string><b>Undo last edit</b></string> |
|
308 </property> |
|
309 </widget> |
|
310 </item> |
|
311 <item> |
|
312 <widget class="QToolButton" name="redoButton"> |
|
313 <property name="toolTip"> |
|
314 <string><b>Redo last edit</b></string> |
|
315 </property> |
|
316 </widget> |
|
317 </item> |
|
318 <item> |
|
319 <spacer> |
|
320 <property name="orientation"> |
|
321 <enum>Qt::Horizontal</enum> |
|
322 </property> |
|
323 <property name="sizeType"> |
|
324 <enum>QSizePolicy::Expanding</enum> |
|
325 </property> |
|
326 <property name="sizeHint" stdset="0"> |
|
327 <size> |
|
328 <width>20</width> |
|
329 <height>20</height> |
|
330 </size> |
|
331 </property> |
|
332 </spacer> |
|
333 </item> |
|
334 </layout> |
|
335 </item> |
|
336 <item> |
|
337 <layout class="QGridLayout"> |
|
338 <item row="0" column="0"> |
|
339 <widget class="QLabel" name="textLabel1"> |
|
340 <property name="text"> |
|
341 <string>Regexp:</string> |
|
342 </property> |
|
343 <property name="alignment"> |
|
344 <set>Qt::AlignTop</set> |
|
345 </property> |
|
346 </widget> |
|
347 </item> |
|
348 <item row="0" column="1"> |
|
349 <widget class="QTextEdit" name="regexpTextEdit"> |
|
350 <property name="sizePolicy"> |
|
351 <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> |
|
352 <horstretch>0</horstretch> |
|
353 <verstretch>1</verstretch> |
|
354 </sizepolicy> |
|
355 </property> |
|
356 <property name="acceptRichText"> |
|
357 <bool>false</bool> |
|
358 </property> |
|
359 </widget> |
|
360 </item> |
|
361 <item row="3" column="0" colspan="2"> |
|
362 <widget class="QTableWidget" name="resultTable"> |
|
363 <property name="sizePolicy"> |
|
364 <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> |
|
365 <horstretch>0</horstretch> |
|
366 <verstretch>2</verstretch> |
|
367 </sizepolicy> |
|
368 </property> |
|
369 <property name="editTriggers"> |
|
370 <set>QAbstractItemView::NoEditTriggers</set> |
|
371 </property> |
|
372 </widget> |
|
373 </item> |
|
374 <item row="2" column="0" colspan="2"> |
|
375 <layout class="QGridLayout"> |
|
376 <item row="0" column="1"> |
|
377 <widget class="QCheckBox" name="multilineCheckBox"> |
|
378 <property name="toolTip"> |
|
379 <string>"^" matches beginning of line, "$" matches end of line</string> |
|
380 </property> |
|
381 <property name="text"> |
|
382 <string>Match Linebreaks</string> |
|
383 </property> |
|
384 </widget> |
|
385 </item> |
|
386 <item row="1" column="0"> |
|
387 <widget class="QCheckBox" name="verboseCheckBox"> |
|
388 <property name="text"> |
|
389 <string>Verbose Regexp</string> |
|
390 </property> |
|
391 </widget> |
|
392 </item> |
|
393 <item row="0" column="0"> |
|
394 <widget class="QCheckBox" name="caseSensitiveCheckBox"> |
|
395 <property name="text"> |
|
396 <string>Case Sensitive</string> |
|
397 </property> |
|
398 <property name="checked"> |
|
399 <bool>true</bool> |
|
400 </property> |
|
401 </widget> |
|
402 </item> |
|
403 <item row="1" column="1"> |
|
404 <widget class="QCheckBox" name="unicodeCheckBox"> |
|
405 <property name="text"> |
|
406 <string>ASCII</string> |
|
407 </property> |
|
408 </widget> |
|
409 </item> |
|
410 <item row="0" column="2"> |
|
411 <widget class="QCheckBox" name="dotallCheckBox"> |
|
412 <property name="toolTip"> |
|
413 <string>"." matches linebreaks as well</string> |
|
414 </property> |
|
415 <property name="text"> |
|
416 <string>Dot matches Linebreak</string> |
|
417 </property> |
|
418 </widget> |
|
419 </item> |
|
420 </layout> |
|
421 </item> |
|
422 <item row="1" column="0"> |
|
423 <widget class="QLabel" name="textLabel2"> |
|
424 <property name="text"> |
|
425 <string>Text:</string> |
|
426 </property> |
|
427 <property name="alignment"> |
|
428 <set>Qt::AlignTop</set> |
|
429 </property> |
|
430 </widget> |
|
431 </item> |
|
432 <item row="1" column="1"> |
|
433 <widget class="QTextEdit" name="textTextEdit"> |
|
434 <property name="sizePolicy"> |
|
435 <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> |
|
436 <horstretch>0</horstretch> |
|
437 <verstretch>1</verstretch> |
|
438 </sizepolicy> |
|
439 </property> |
|
440 <property name="acceptRichText"> |
|
441 <bool>false</bool> |
|
442 </property> |
|
443 </widget> |
|
444 </item> |
|
445 </layout> |
|
446 </item> |
|
447 <item> |
|
448 <widget class="QDialogButtonBox" name="buttonBox"> |
|
449 <property name="orientation"> |
|
450 <enum>Qt::Horizontal</enum> |
|
451 </property> |
|
452 <property name="standardButtons"> |
|
453 <set>QDialogButtonBox::Cancel|QDialogButtonBox::Close|QDialogButtonBox::Ok</set> |
|
454 </property> |
|
455 </widget> |
|
456 </item> |
|
457 </layout> |
|
458 </widget> |
|
459 <pixmapfunction>qPixmapFromMimeSource</pixmapfunction> |
|
460 <tabstops> |
|
461 <tabstop>variableLineEdit</tabstop> |
|
462 <tabstop>importCheckBox</tabstop> |
|
463 <tabstop>commentButton</tabstop> |
|
464 <tabstop>charButton</tabstop> |
|
465 <tabstop>anycharButton</tabstop> |
|
466 <tabstop>repeatButton</tabstop> |
|
467 <tabstop>nonGroupButton</tabstop> |
|
468 <tabstop>groupButton</tabstop> |
|
469 <tabstop>namedGroupButton</tabstop> |
|
470 <tabstop>namedReferenceButton</tabstop> |
|
471 <tabstop>altnButton</tabstop> |
|
472 <tabstop>beglineButton</tabstop> |
|
473 <tabstop>endlineButton</tabstop> |
|
474 <tabstop>wordboundButton</tabstop> |
|
475 <tabstop>nonwordboundButton</tabstop> |
|
476 <tabstop>poslookaheadButton</tabstop> |
|
477 <tabstop>neglookaheadButton</tabstop> |
|
478 <tabstop>poslookbehindButton</tabstop> |
|
479 <tabstop>neglookbehindButton</tabstop> |
|
480 <tabstop>undoButton</tabstop> |
|
481 <tabstop>redoButton</tabstop> |
|
482 <tabstop>regexpTextEdit</tabstop> |
|
483 <tabstop>textTextEdit</tabstop> |
|
484 <tabstop>caseSensitiveCheckBox</tabstop> |
|
485 <tabstop>multilineCheckBox</tabstop> |
|
486 <tabstop>dotallCheckBox</tabstop> |
|
487 <tabstop>verboseCheckBox</tabstop> |
|
488 <tabstop>unicodeCheckBox</tabstop> |
|
489 <tabstop>resultTable</tabstop> |
|
490 </tabstops> |
|
491 <resources/> |
|
492 <connections/> |
|
493 </ui> |