|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Plugins.WizardPlugins.QRegularExpressionWizard.QRegularExpressionWizardDialog</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body> |
|
22 <a NAME="top" ID="top"></a> |
|
23 <h1>eric7.Plugins.WizardPlugins.QRegularExpressionWizard.QRegularExpressionWizardDialog</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing the QRegularExpression wizard dialog. |
|
27 </p> |
|
28 <h3>Global Attributes</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <h3>Classes</h3> |
|
34 |
|
35 <table> |
|
36 |
|
37 <tr> |
|
38 <td><a href="#QRegularExpressionWizardDialog">QRegularExpressionWizardDialog</a></td> |
|
39 <td>Class for the dialog variant.</td> |
|
40 </tr> |
|
41 <tr> |
|
42 <td><a href="#QRegularExpressionWizardWidget">QRegularExpressionWizardWidget</a></td> |
|
43 <td>Class implementing the QRegularExpression wizard dialog.</td> |
|
44 </tr> |
|
45 <tr> |
|
46 <td><a href="#QRegularExpressionWizardWindow">QRegularExpressionWizardWindow</a></td> |
|
47 <td>Main window class for the standalone dialog.</td> |
|
48 </tr> |
|
49 </table> |
|
50 <h3>Functions</h3> |
|
51 |
|
52 <table> |
|
53 <tr><td>None</td></tr> |
|
54 </table> |
|
55 <hr /> |
|
56 <hr /> |
|
57 <a NAME="QRegularExpressionWizardDialog" ID="QRegularExpressionWizardDialog"></a> |
|
58 <h2>QRegularExpressionWizardDialog</h2> |
|
59 |
|
60 <p> |
|
61 Class for the dialog variant. |
|
62 </p> |
|
63 <h3>Derived from</h3> |
|
64 QDialog |
|
65 <h3>Class Attributes</h3> |
|
66 |
|
67 <table> |
|
68 <tr><td>None</td></tr> |
|
69 </table> |
|
70 <h3>Class Methods</h3> |
|
71 |
|
72 <table> |
|
73 <tr><td>None</td></tr> |
|
74 </table> |
|
75 <h3>Methods</h3> |
|
76 |
|
77 <table> |
|
78 |
|
79 <tr> |
|
80 <td><a href="#QRegularExpressionWizardDialog.__init__">QRegularExpressionWizardDialog</a></td> |
|
81 <td>Constructor</td> |
|
82 </tr> |
|
83 <tr> |
|
84 <td><a href="#QRegularExpressionWizardDialog.accept">accept</a></td> |
|
85 <td>Public slot to hide the dialog and set the result code to Accepted.</td> |
|
86 </tr> |
|
87 <tr> |
|
88 <td><a href="#QRegularExpressionWizardDialog.getCode">getCode</a></td> |
|
89 <td>Public method to get the source code.</td> |
|
90 </tr> |
|
91 <tr> |
|
92 <td><a href="#QRegularExpressionWizardDialog.reject">reject</a></td> |
|
93 <td>Public slot to hide the dialog and set the result code to Rejected.</td> |
|
94 </tr> |
|
95 </table> |
|
96 <h3>Static Methods</h3> |
|
97 |
|
98 <table> |
|
99 <tr><td>None</td></tr> |
|
100 </table> |
|
101 |
|
102 <a NAME="QRegularExpressionWizardDialog.__init__" ID="QRegularExpressionWizardDialog.__init__"></a> |
|
103 <h4>QRegularExpressionWizardDialog (Constructor)</h4> |
|
104 <b>QRegularExpressionWizardDialog</b>(<i>parent=None, fromEric=True</i>) |
|
105 |
|
106 <p> |
|
107 Constructor |
|
108 </p> |
|
109 <dl> |
|
110 |
|
111 <dt><i>parent</i></dt> |
|
112 <dd> |
|
113 parent widget (QWidget) |
|
114 </dd> |
|
115 <dt><i>fromEric</i></dt> |
|
116 <dd> |
|
117 flag indicating a call from within eric |
|
118 </dd> |
|
119 </dl> |
|
120 <a NAME="QRegularExpressionWizardDialog.accept" ID="QRegularExpressionWizardDialog.accept"></a> |
|
121 <h4>QRegularExpressionWizardDialog.accept</h4> |
|
122 <b>accept</b>(<i></i>) |
|
123 |
|
124 <p> |
|
125 Public slot to hide the dialog and set the result code to Accepted. |
|
126 </p> |
|
127 <a NAME="QRegularExpressionWizardDialog.getCode" ID="QRegularExpressionWizardDialog.getCode"></a> |
|
128 <h4>QRegularExpressionWizardDialog.getCode</h4> |
|
129 <b>getCode</b>(<i>indLevel, indString</i>) |
|
130 |
|
131 <p> |
|
132 Public method to get the source code. |
|
133 </p> |
|
134 <dl> |
|
135 |
|
136 <dt><i>indLevel</i></dt> |
|
137 <dd> |
|
138 indentation level (int) |
|
139 </dd> |
|
140 <dt><i>indString</i></dt> |
|
141 <dd> |
|
142 string used for indentation (space or tab) (string) |
|
143 </dd> |
|
144 </dl> |
|
145 <dl> |
|
146 <dt>Return:</dt> |
|
147 <dd> |
|
148 generated code (string) |
|
149 </dd> |
|
150 </dl> |
|
151 <a NAME="QRegularExpressionWizardDialog.reject" ID="QRegularExpressionWizardDialog.reject"></a> |
|
152 <h4>QRegularExpressionWizardDialog.reject</h4> |
|
153 <b>reject</b>(<i></i>) |
|
154 |
|
155 <p> |
|
156 Public slot to hide the dialog and set the result code to Rejected. |
|
157 </p> |
|
158 <div align="right"><a href="#top">Up</a></div> |
|
159 <hr /> |
|
160 <hr /> |
|
161 <a NAME="QRegularExpressionWizardWidget" ID="QRegularExpressionWizardWidget"></a> |
|
162 <h2>QRegularExpressionWizardWidget</h2> |
|
163 |
|
164 <p> |
|
165 Class implementing the QRegularExpression wizard dialog. |
|
166 </p> |
|
167 <h3>Derived from</h3> |
|
168 QWidget, Ui_QRegularExpressionWizardDialog |
|
169 <h3>Class Attributes</h3> |
|
170 |
|
171 <table> |
|
172 <tr><td>None</td></tr> |
|
173 </table> |
|
174 <h3>Class Methods</h3> |
|
175 |
|
176 <table> |
|
177 <tr><td>None</td></tr> |
|
178 </table> |
|
179 <h3>Methods</h3> |
|
180 |
|
181 <table> |
|
182 |
|
183 <tr> |
|
184 <td><a href="#QRegularExpressionWizardWidget.__init__">QRegularExpressionWizardWidget</a></td> |
|
185 <td>Constructor</td> |
|
186 </tr> |
|
187 <tr> |
|
188 <td><a href="#QRegularExpressionWizardWidget.__insertString">__insertString</a></td> |
|
189 <td>Private method to insert a string into line edit and move cursor.</td> |
|
190 </tr> |
|
191 <tr> |
|
192 <td><a href="#QRegularExpressionWizardWidget.__receiveResponse">__receiveResponse</a></td> |
|
193 <td>Private method to receive a response from the PyQt5 server.</td> |
|
194 </tr> |
|
195 <tr> |
|
196 <td><a href="#QRegularExpressionWizardWidget.__sendCommand">__sendCommand</a></td> |
|
197 <td>Private method to send a command to the PyQt5 server.</td> |
|
198 </tr> |
|
199 <tr> |
|
200 <td><a href="#QRegularExpressionWizardWidget.getCode">getCode</a></td> |
|
201 <td>Public method to get the source code.</td> |
|
202 </tr> |
|
203 <tr> |
|
204 <td><a href="#QRegularExpressionWizardWidget.on_altnButton_clicked">on_altnButton_clicked</a></td> |
|
205 <td>Private slot to handle the alternatives toolbutton.</td> |
|
206 </tr> |
|
207 <tr> |
|
208 <td><a href="#QRegularExpressionWizardWidget.on_anycharButton_clicked">on_anycharButton_clicked</a></td> |
|
209 <td>Private slot to handle the any character toolbutton.</td> |
|
210 </tr> |
|
211 <tr> |
|
212 <td><a href="#QRegularExpressionWizardWidget.on_atomicGroupButton_clicked">on_atomicGroupButton_clicked</a></td> |
|
213 <td>Private slot to handle the atomic non group toolbutton.</td> |
|
214 </tr> |
|
215 <tr> |
|
216 <td><a href="#QRegularExpressionWizardWidget.on_beglineButton_clicked">on_beglineButton_clicked</a></td> |
|
217 <td>Private slot to handle the begin line toolbutton.</td> |
|
218 </tr> |
|
219 <tr> |
|
220 <td><a href="#QRegularExpressionWizardWidget.on_buttonBox_clicked">on_buttonBox_clicked</a></td> |
|
221 <td>Private slot called by a button of the button box clicked.</td> |
|
222 </tr> |
|
223 <tr> |
|
224 <td><a href="#QRegularExpressionWizardWidget.on_charButton_clicked">on_charButton_clicked</a></td> |
|
225 <td>Private slot to handle the characters toolbutton.</td> |
|
226 </tr> |
|
227 <tr> |
|
228 <td><a href="#QRegularExpressionWizardWidget.on_commentButton_clicked">on_commentButton_clicked</a></td> |
|
229 <td>Private slot to handle the comment toolbutton.</td> |
|
230 </tr> |
|
231 <tr> |
|
232 <td><a href="#QRegularExpressionWizardWidget.on_copyButton_clicked">on_copyButton_clicked</a></td> |
|
233 <td>Private slot to copy the QRegularExpression string into the clipboard.</td> |
|
234 </tr> |
|
235 <tr> |
|
236 <td><a href="#QRegularExpressionWizardWidget.on_endlineButton_clicked">on_endlineButton_clicked</a></td> |
|
237 <td>Private slot to handle the end line toolbutton.</td> |
|
238 </tr> |
|
239 <tr> |
|
240 <td><a href="#QRegularExpressionWizardWidget.on_executeButton_clicked">on_executeButton_clicked</a></td> |
|
241 <td>Private slot to execute the entered QRegularExpression on the test text.</td> |
|
242 </tr> |
|
243 <tr> |
|
244 <td><a href="#QRegularExpressionWizardWidget.on_groupButton_clicked">on_groupButton_clicked</a></td> |
|
245 <td>Private slot to handle the group toolbutton.</td> |
|
246 </tr> |
|
247 <tr> |
|
248 <td><a href="#QRegularExpressionWizardWidget.on_loadButton_clicked">on_loadButton_clicked</a></td> |
|
249 <td>Private slot to load a QRegularExpression from a file.</td> |
|
250 </tr> |
|
251 <tr> |
|
252 <td><a href="#QRegularExpressionWizardWidget.on_namedGroupButton_clicked">on_namedGroupButton_clicked</a></td> |
|
253 <td>Private slot to handle the named group toolbutton.</td> |
|
254 </tr> |
|
255 <tr> |
|
256 <td><a href="#QRegularExpressionWizardWidget.on_namedReferenceButton_clicked">on_namedReferenceButton_clicked</a></td> |
|
257 <td>Private slot to handle the named reference toolbutton.</td> |
|
258 </tr> |
|
259 <tr> |
|
260 <td><a href="#QRegularExpressionWizardWidget.on_neglookaheadButton_clicked">on_neglookaheadButton_clicked</a></td> |
|
261 <td>Private slot to handle the negative lookahead toolbutton.</td> |
|
262 </tr> |
|
263 <tr> |
|
264 <td><a href="#QRegularExpressionWizardWidget.on_neglookbehindButton_clicked">on_neglookbehindButton_clicked</a></td> |
|
265 <td>Private slot to handle the negative lookbehind toolbutton.</td> |
|
266 </tr> |
|
267 <tr> |
|
268 <td><a href="#QRegularExpressionWizardWidget.on_nextButton_clicked">on_nextButton_clicked</a></td> |
|
269 <td>Private slot to find the next match.</td> |
|
270 </tr> |
|
271 <tr> |
|
272 <td><a href="#QRegularExpressionWizardWidget.on_nonGroupButton_clicked">on_nonGroupButton_clicked</a></td> |
|
273 <td>Private slot to handle the non group toolbutton.</td> |
|
274 </tr> |
|
275 <tr> |
|
276 <td><a href="#QRegularExpressionWizardWidget.on_nonwordboundButton_clicked">on_nonwordboundButton_clicked</a></td> |
|
277 <td>Private slot to handle the non word boundary toolbutton.</td> |
|
278 </tr> |
|
279 <tr> |
|
280 <td><a href="#QRegularExpressionWizardWidget.on_poslookaheadButton_clicked">on_poslookaheadButton_clicked</a></td> |
|
281 <td>Private slot to handle the positive lookahead toolbutton.</td> |
|
282 </tr> |
|
283 <tr> |
|
284 <td><a href="#QRegularExpressionWizardWidget.on_poslookbehindButton_clicked">on_poslookbehindButton_clicked</a></td> |
|
285 <td>Private slot to handle the positive lookbehind toolbutton.</td> |
|
286 </tr> |
|
287 <tr> |
|
288 <td><a href="#QRegularExpressionWizardWidget.on_redoButton_clicked">on_redoButton_clicked</a></td> |
|
289 <td>Private slot to handle the redo action.</td> |
|
290 </tr> |
|
291 <tr> |
|
292 <td><a href="#QRegularExpressionWizardWidget.on_regexpTextEdit_textChanged">on_regexpTextEdit_textChanged</a></td> |
|
293 <td>Private slot called when the regexp changes.</td> |
|
294 </tr> |
|
295 <tr> |
|
296 <td><a href="#QRegularExpressionWizardWidget.on_repeatButton_clicked">on_repeatButton_clicked</a></td> |
|
297 <td>Private slot to handle the repeat toolbutton.</td> |
|
298 </tr> |
|
299 <tr> |
|
300 <td><a href="#QRegularExpressionWizardWidget.on_saveButton_clicked">on_saveButton_clicked</a></td> |
|
301 <td>Private slot to save the QRegularExpression to a file.</td> |
|
302 </tr> |
|
303 <tr> |
|
304 <td><a href="#QRegularExpressionWizardWidget.on_undoButton_clicked">on_undoButton_clicked</a></td> |
|
305 <td>Private slot to handle the undo action.</td> |
|
306 </tr> |
|
307 <tr> |
|
308 <td><a href="#QRegularExpressionWizardWidget.on_validateButton_clicked">on_validateButton_clicked</a></td> |
|
309 <td>Private slot to validate the entered QRegularExpression.</td> |
|
310 </tr> |
|
311 <tr> |
|
312 <td><a href="#QRegularExpressionWizardWidget.on_wordboundButton_clicked">on_wordboundButton_clicked</a></td> |
|
313 <td>Private slot to handle the word boundary toolbutton.</td> |
|
314 </tr> |
|
315 <tr> |
|
316 <td><a href="#QRegularExpressionWizardWidget.shutdown">shutdown</a></td> |
|
317 <td>Public method to shut down the PyQt5 server part.</td> |
|
318 </tr> |
|
319 </table> |
|
320 <h3>Static Methods</h3> |
|
321 |
|
322 <table> |
|
323 <tr><td>None</td></tr> |
|
324 </table> |
|
325 |
|
326 <a NAME="QRegularExpressionWizardWidget.__init__" ID="QRegularExpressionWizardWidget.__init__"></a> |
|
327 <h4>QRegularExpressionWizardWidget (Constructor)</h4> |
|
328 <b>QRegularExpressionWizardWidget</b>(<i>parent=None, fromEric=True</i>) |
|
329 |
|
330 <p> |
|
331 Constructor |
|
332 </p> |
|
333 <dl> |
|
334 |
|
335 <dt><i>parent</i></dt> |
|
336 <dd> |
|
337 parent widget (QWidget) |
|
338 </dd> |
|
339 <dt><i>fromEric</i></dt> |
|
340 <dd> |
|
341 flag indicating a call from within eric |
|
342 </dd> |
|
343 </dl> |
|
344 <a NAME="QRegularExpressionWizardWidget.__insertString" ID="QRegularExpressionWizardWidget.__insertString"></a> |
|
345 <h4>QRegularExpressionWizardWidget.__insertString</h4> |
|
346 <b>__insertString</b>(<i>s, steps=0</i>) |
|
347 |
|
348 <p> |
|
349 Private method to insert a string into line edit and move cursor. |
|
350 </p> |
|
351 <dl> |
|
352 |
|
353 <dt><i>s</i></dt> |
|
354 <dd> |
|
355 string to be inserted into the regexp line edit |
|
356 (string) |
|
357 </dd> |
|
358 <dt><i>steps</i></dt> |
|
359 <dd> |
|
360 number of characters to move the cursor (integer). |
|
361 Negative steps moves cursor back, positives forward. |
|
362 </dd> |
|
363 </dl> |
|
364 <a NAME="QRegularExpressionWizardWidget.__receiveResponse" ID="QRegularExpressionWizardWidget.__receiveResponse"></a> |
|
365 <h4>QRegularExpressionWizardWidget.__receiveResponse</h4> |
|
366 <b>__receiveResponse</b>(<i></i>) |
|
367 |
|
368 <p> |
|
369 Private method to receive a response from the PyQt5 server. |
|
370 </p> |
|
371 <dl> |
|
372 <dt>Return:</dt> |
|
373 <dd> |
|
374 response dictionary (dict) |
|
375 </dd> |
|
376 </dl> |
|
377 <a NAME="QRegularExpressionWizardWidget.__sendCommand" ID="QRegularExpressionWizardWidget.__sendCommand"></a> |
|
378 <h4>QRegularExpressionWizardWidget.__sendCommand</h4> |
|
379 <b>__sendCommand</b>(<i>command, **kw</i>) |
|
380 |
|
381 <p> |
|
382 Private method to send a command to the PyQt5 server. |
|
383 </p> |
|
384 <dl> |
|
385 |
|
386 <dt><i>command</i></dt> |
|
387 <dd> |
|
388 dictionary with command string and related |
|
389 data (dict) |
|
390 </dd> |
|
391 <dt><i>kw=</i></dt> |
|
392 <dd> |
|
393 parameters for the command |
|
394 </dd> |
|
395 </dl> |
|
396 <dl> |
|
397 <dt>Return:</dt> |
|
398 <dd> |
|
399 flag indicating a successful transmission (boolean) |
|
400 </dd> |
|
401 </dl> |
|
402 <a NAME="QRegularExpressionWizardWidget.getCode" ID="QRegularExpressionWizardWidget.getCode"></a> |
|
403 <h4>QRegularExpressionWizardWidget.getCode</h4> |
|
404 <b>getCode</b>(<i>indLevel, indString</i>) |
|
405 |
|
406 <p> |
|
407 Public method to get the source code. |
|
408 </p> |
|
409 <dl> |
|
410 |
|
411 <dt><i>indLevel</i></dt> |
|
412 <dd> |
|
413 indentation level (int) |
|
414 </dd> |
|
415 <dt><i>indString</i></dt> |
|
416 <dd> |
|
417 string used for indentation (space or tab) (string) |
|
418 </dd> |
|
419 </dl> |
|
420 <dl> |
|
421 <dt>Return:</dt> |
|
422 <dd> |
|
423 generated code (string) |
|
424 </dd> |
|
425 </dl> |
|
426 <a NAME="QRegularExpressionWizardWidget.on_altnButton_clicked" ID="QRegularExpressionWizardWidget.on_altnButton_clicked"></a> |
|
427 <h4>QRegularExpressionWizardWidget.on_altnButton_clicked</h4> |
|
428 <b>on_altnButton_clicked</b>(<i></i>) |
|
429 |
|
430 <p> |
|
431 Private slot to handle the alternatives toolbutton. |
|
432 </p> |
|
433 <a NAME="QRegularExpressionWizardWidget.on_anycharButton_clicked" ID="QRegularExpressionWizardWidget.on_anycharButton_clicked"></a> |
|
434 <h4>QRegularExpressionWizardWidget.on_anycharButton_clicked</h4> |
|
435 <b>on_anycharButton_clicked</b>(<i></i>) |
|
436 |
|
437 <p> |
|
438 Private slot to handle the any character toolbutton. |
|
439 </p> |
|
440 <a NAME="QRegularExpressionWizardWidget.on_atomicGroupButton_clicked" ID="QRegularExpressionWizardWidget.on_atomicGroupButton_clicked"></a> |
|
441 <h4>QRegularExpressionWizardWidget.on_atomicGroupButton_clicked</h4> |
|
442 <b>on_atomicGroupButton_clicked</b>(<i></i>) |
|
443 |
|
444 <p> |
|
445 Private slot to handle the atomic non group toolbutton. |
|
446 </p> |
|
447 <a NAME="QRegularExpressionWizardWidget.on_beglineButton_clicked" ID="QRegularExpressionWizardWidget.on_beglineButton_clicked"></a> |
|
448 <h4>QRegularExpressionWizardWidget.on_beglineButton_clicked</h4> |
|
449 <b>on_beglineButton_clicked</b>(<i></i>) |
|
450 |
|
451 <p> |
|
452 Private slot to handle the begin line toolbutton. |
|
453 </p> |
|
454 <a NAME="QRegularExpressionWizardWidget.on_buttonBox_clicked" ID="QRegularExpressionWizardWidget.on_buttonBox_clicked"></a> |
|
455 <h4>QRegularExpressionWizardWidget.on_buttonBox_clicked</h4> |
|
456 <b>on_buttonBox_clicked</b>(<i>button</i>) |
|
457 |
|
458 <p> |
|
459 Private slot called by a button of the button box clicked. |
|
460 </p> |
|
461 <dl> |
|
462 |
|
463 <dt><i>button</i></dt> |
|
464 <dd> |
|
465 button that was clicked (QAbstractButton) |
|
466 </dd> |
|
467 </dl> |
|
468 <a NAME="QRegularExpressionWizardWidget.on_charButton_clicked" ID="QRegularExpressionWizardWidget.on_charButton_clicked"></a> |
|
469 <h4>QRegularExpressionWizardWidget.on_charButton_clicked</h4> |
|
470 <b>on_charButton_clicked</b>(<i></i>) |
|
471 |
|
472 <p> |
|
473 Private slot to handle the characters toolbutton. |
|
474 </p> |
|
475 <a NAME="QRegularExpressionWizardWidget.on_commentButton_clicked" ID="QRegularExpressionWizardWidget.on_commentButton_clicked"></a> |
|
476 <h4>QRegularExpressionWizardWidget.on_commentButton_clicked</h4> |
|
477 <b>on_commentButton_clicked</b>(<i></i>) |
|
478 |
|
479 <p> |
|
480 Private slot to handle the comment toolbutton. |
|
481 </p> |
|
482 <a NAME="QRegularExpressionWizardWidget.on_copyButton_clicked" ID="QRegularExpressionWizardWidget.on_copyButton_clicked"></a> |
|
483 <h4>QRegularExpressionWizardWidget.on_copyButton_clicked</h4> |
|
484 <b>on_copyButton_clicked</b>(<i></i>) |
|
485 |
|
486 <p> |
|
487 Private slot to copy the QRegularExpression string into the clipboard. |
|
488 </p> |
|
489 <p> |
|
490 This slot is only available, if not called from within eric. |
|
491 </p> |
|
492 <a NAME="QRegularExpressionWizardWidget.on_endlineButton_clicked" ID="QRegularExpressionWizardWidget.on_endlineButton_clicked"></a> |
|
493 <h4>QRegularExpressionWizardWidget.on_endlineButton_clicked</h4> |
|
494 <b>on_endlineButton_clicked</b>(<i></i>) |
|
495 |
|
496 <p> |
|
497 Private slot to handle the end line toolbutton. |
|
498 </p> |
|
499 <a NAME="QRegularExpressionWizardWidget.on_executeButton_clicked" ID="QRegularExpressionWizardWidget.on_executeButton_clicked"></a> |
|
500 <h4>QRegularExpressionWizardWidget.on_executeButton_clicked</h4> |
|
501 <b>on_executeButton_clicked</b>(<i>startpos=0</i>) |
|
502 |
|
503 <p> |
|
504 Private slot to execute the entered QRegularExpression on the test |
|
505 text. |
|
506 </p> |
|
507 <p> |
|
508 This slot will execute the entered QRegularExpression on the entered |
|
509 test data and will display the result in the table part of the dialog. |
|
510 </p> |
|
511 <dl> |
|
512 |
|
513 <dt><i>startpos</i></dt> |
|
514 <dd> |
|
515 starting position for the QRegularExpression matching |
|
516 </dd> |
|
517 </dl> |
|
518 <a NAME="QRegularExpressionWizardWidget.on_groupButton_clicked" ID="QRegularExpressionWizardWidget.on_groupButton_clicked"></a> |
|
519 <h4>QRegularExpressionWizardWidget.on_groupButton_clicked</h4> |
|
520 <b>on_groupButton_clicked</b>(<i></i>) |
|
521 |
|
522 <p> |
|
523 Private slot to handle the group toolbutton. |
|
524 </p> |
|
525 <a NAME="QRegularExpressionWizardWidget.on_loadButton_clicked" ID="QRegularExpressionWizardWidget.on_loadButton_clicked"></a> |
|
526 <h4>QRegularExpressionWizardWidget.on_loadButton_clicked</h4> |
|
527 <b>on_loadButton_clicked</b>(<i></i>) |
|
528 |
|
529 <p> |
|
530 Private slot to load a QRegularExpression from a file. |
|
531 </p> |
|
532 <a NAME="QRegularExpressionWizardWidget.on_namedGroupButton_clicked" ID="QRegularExpressionWizardWidget.on_namedGroupButton_clicked"></a> |
|
533 <h4>QRegularExpressionWizardWidget.on_namedGroupButton_clicked</h4> |
|
534 <b>on_namedGroupButton_clicked</b>(<i></i>) |
|
535 |
|
536 <p> |
|
537 Private slot to handle the named group toolbutton. |
|
538 </p> |
|
539 <a NAME="QRegularExpressionWizardWidget.on_namedReferenceButton_clicked" ID="QRegularExpressionWizardWidget.on_namedReferenceButton_clicked"></a> |
|
540 <h4>QRegularExpressionWizardWidget.on_namedReferenceButton_clicked</h4> |
|
541 <b>on_namedReferenceButton_clicked</b>(<i></i>) |
|
542 |
|
543 <p> |
|
544 Private slot to handle the named reference toolbutton. |
|
545 </p> |
|
546 <a NAME="QRegularExpressionWizardWidget.on_neglookaheadButton_clicked" ID="QRegularExpressionWizardWidget.on_neglookaheadButton_clicked"></a> |
|
547 <h4>QRegularExpressionWizardWidget.on_neglookaheadButton_clicked</h4> |
|
548 <b>on_neglookaheadButton_clicked</b>(<i></i>) |
|
549 |
|
550 <p> |
|
551 Private slot to handle the negative lookahead toolbutton. |
|
552 </p> |
|
553 <a NAME="QRegularExpressionWizardWidget.on_neglookbehindButton_clicked" ID="QRegularExpressionWizardWidget.on_neglookbehindButton_clicked"></a> |
|
554 <h4>QRegularExpressionWizardWidget.on_neglookbehindButton_clicked</h4> |
|
555 <b>on_neglookbehindButton_clicked</b>(<i></i>) |
|
556 |
|
557 <p> |
|
558 Private slot to handle the negative lookbehind toolbutton. |
|
559 </p> |
|
560 <a NAME="QRegularExpressionWizardWidget.on_nextButton_clicked" ID="QRegularExpressionWizardWidget.on_nextButton_clicked"></a> |
|
561 <h4>QRegularExpressionWizardWidget.on_nextButton_clicked</h4> |
|
562 <b>on_nextButton_clicked</b>(<i></i>) |
|
563 |
|
564 <p> |
|
565 Private slot to find the next match. |
|
566 </p> |
|
567 <a NAME="QRegularExpressionWizardWidget.on_nonGroupButton_clicked" ID="QRegularExpressionWizardWidget.on_nonGroupButton_clicked"></a> |
|
568 <h4>QRegularExpressionWizardWidget.on_nonGroupButton_clicked</h4> |
|
569 <b>on_nonGroupButton_clicked</b>(<i></i>) |
|
570 |
|
571 <p> |
|
572 Private slot to handle the non group toolbutton. |
|
573 </p> |
|
574 <a NAME="QRegularExpressionWizardWidget.on_nonwordboundButton_clicked" ID="QRegularExpressionWizardWidget.on_nonwordboundButton_clicked"></a> |
|
575 <h4>QRegularExpressionWizardWidget.on_nonwordboundButton_clicked</h4> |
|
576 <b>on_nonwordboundButton_clicked</b>(<i></i>) |
|
577 |
|
578 <p> |
|
579 Private slot to handle the non word boundary toolbutton. |
|
580 </p> |
|
581 <a NAME="QRegularExpressionWizardWidget.on_poslookaheadButton_clicked" ID="QRegularExpressionWizardWidget.on_poslookaheadButton_clicked"></a> |
|
582 <h4>QRegularExpressionWizardWidget.on_poslookaheadButton_clicked</h4> |
|
583 <b>on_poslookaheadButton_clicked</b>(<i></i>) |
|
584 |
|
585 <p> |
|
586 Private slot to handle the positive lookahead toolbutton. |
|
587 </p> |
|
588 <a NAME="QRegularExpressionWizardWidget.on_poslookbehindButton_clicked" ID="QRegularExpressionWizardWidget.on_poslookbehindButton_clicked"></a> |
|
589 <h4>QRegularExpressionWizardWidget.on_poslookbehindButton_clicked</h4> |
|
590 <b>on_poslookbehindButton_clicked</b>(<i></i>) |
|
591 |
|
592 <p> |
|
593 Private slot to handle the positive lookbehind toolbutton. |
|
594 </p> |
|
595 <a NAME="QRegularExpressionWizardWidget.on_redoButton_clicked" ID="QRegularExpressionWizardWidget.on_redoButton_clicked"></a> |
|
596 <h4>QRegularExpressionWizardWidget.on_redoButton_clicked</h4> |
|
597 <b>on_redoButton_clicked</b>(<i></i>) |
|
598 |
|
599 <p> |
|
600 Private slot to handle the redo action. |
|
601 </p> |
|
602 <a NAME="QRegularExpressionWizardWidget.on_regexpTextEdit_textChanged" ID="QRegularExpressionWizardWidget.on_regexpTextEdit_textChanged"></a> |
|
603 <h4>QRegularExpressionWizardWidget.on_regexpTextEdit_textChanged</h4> |
|
604 <b>on_regexpTextEdit_textChanged</b>(<i></i>) |
|
605 |
|
606 <p> |
|
607 Private slot called when the regexp changes. |
|
608 </p> |
|
609 <a NAME="QRegularExpressionWizardWidget.on_repeatButton_clicked" ID="QRegularExpressionWizardWidget.on_repeatButton_clicked"></a> |
|
610 <h4>QRegularExpressionWizardWidget.on_repeatButton_clicked</h4> |
|
611 <b>on_repeatButton_clicked</b>(<i></i>) |
|
612 |
|
613 <p> |
|
614 Private slot to handle the repeat toolbutton. |
|
615 </p> |
|
616 <a NAME="QRegularExpressionWizardWidget.on_saveButton_clicked" ID="QRegularExpressionWizardWidget.on_saveButton_clicked"></a> |
|
617 <h4>QRegularExpressionWizardWidget.on_saveButton_clicked</h4> |
|
618 <b>on_saveButton_clicked</b>(<i></i>) |
|
619 |
|
620 <p> |
|
621 Private slot to save the QRegularExpression to a file. |
|
622 </p> |
|
623 <a NAME="QRegularExpressionWizardWidget.on_undoButton_clicked" ID="QRegularExpressionWizardWidget.on_undoButton_clicked"></a> |
|
624 <h4>QRegularExpressionWizardWidget.on_undoButton_clicked</h4> |
|
625 <b>on_undoButton_clicked</b>(<i></i>) |
|
626 |
|
627 <p> |
|
628 Private slot to handle the undo action. |
|
629 </p> |
|
630 <a NAME="QRegularExpressionWizardWidget.on_validateButton_clicked" ID="QRegularExpressionWizardWidget.on_validateButton_clicked"></a> |
|
631 <h4>QRegularExpressionWizardWidget.on_validateButton_clicked</h4> |
|
632 <b>on_validateButton_clicked</b>(<i></i>) |
|
633 |
|
634 <p> |
|
635 Private slot to validate the entered QRegularExpression. |
|
636 </p> |
|
637 <a NAME="QRegularExpressionWizardWidget.on_wordboundButton_clicked" ID="QRegularExpressionWizardWidget.on_wordboundButton_clicked"></a> |
|
638 <h4>QRegularExpressionWizardWidget.on_wordboundButton_clicked</h4> |
|
639 <b>on_wordboundButton_clicked</b>(<i></i>) |
|
640 |
|
641 <p> |
|
642 Private slot to handle the word boundary toolbutton. |
|
643 </p> |
|
644 <a NAME="QRegularExpressionWizardWidget.shutdown" ID="QRegularExpressionWizardWidget.shutdown"></a> |
|
645 <h4>QRegularExpressionWizardWidget.shutdown</h4> |
|
646 <b>shutdown</b>(<i></i>) |
|
647 |
|
648 <p> |
|
649 Public method to shut down the PyQt5 server part. |
|
650 </p> |
|
651 <div align="right"><a href="#top">Up</a></div> |
|
652 <hr /> |
|
653 <hr /> |
|
654 <a NAME="QRegularExpressionWizardWindow" ID="QRegularExpressionWizardWindow"></a> |
|
655 <h2>QRegularExpressionWizardWindow</h2> |
|
656 |
|
657 <p> |
|
658 Main window class for the standalone dialog. |
|
659 </p> |
|
660 <h3>Derived from</h3> |
|
661 EricMainWindow |
|
662 <h3>Class Attributes</h3> |
|
663 |
|
664 <table> |
|
665 <tr><td>None</td></tr> |
|
666 </table> |
|
667 <h3>Class Methods</h3> |
|
668 |
|
669 <table> |
|
670 <tr><td>None</td></tr> |
|
671 </table> |
|
672 <h3>Methods</h3> |
|
673 |
|
674 <table> |
|
675 |
|
676 <tr> |
|
677 <td><a href="#QRegularExpressionWizardWindow.__init__">QRegularExpressionWizardWindow</a></td> |
|
678 <td>Constructor</td> |
|
679 </tr> |
|
680 <tr> |
|
681 <td><a href="#QRegularExpressionWizardWindow.closeEvent">closeEvent</a></td> |
|
682 <td>Protected method handling the close event.</td> |
|
683 </tr> |
|
684 </table> |
|
685 <h3>Static Methods</h3> |
|
686 |
|
687 <table> |
|
688 <tr><td>None</td></tr> |
|
689 </table> |
|
690 |
|
691 <a NAME="QRegularExpressionWizardWindow.__init__" ID="QRegularExpressionWizardWindow.__init__"></a> |
|
692 <h4>QRegularExpressionWizardWindow (Constructor)</h4> |
|
693 <b>QRegularExpressionWizardWindow</b>(<i>parent=None</i>) |
|
694 |
|
695 <p> |
|
696 Constructor |
|
697 </p> |
|
698 <dl> |
|
699 |
|
700 <dt><i>parent</i></dt> |
|
701 <dd> |
|
702 reference to the parent widget (QWidget) |
|
703 </dd> |
|
704 </dl> |
|
705 <a NAME="QRegularExpressionWizardWindow.closeEvent" ID="QRegularExpressionWizardWindow.closeEvent"></a> |
|
706 <h4>QRegularExpressionWizardWindow.closeEvent</h4> |
|
707 <b>closeEvent</b>(<i>evt</i>) |
|
708 |
|
709 <p> |
|
710 Protected method handling the close event. |
|
711 </p> |
|
712 <dl> |
|
713 |
|
714 <dt><i>evt</i></dt> |
|
715 <dd> |
|
716 close event (QCloseEvent) |
|
717 </dd> |
|
718 </dl> |
|
719 <div align="right"><a href="#top">Up</a></div> |
|
720 <hr /> |
|
721 </body></html> |