eric6/Documentation/Source/eric6.QScintilla.SearchReplaceWidget.html

branch
maintenance
changeset 6989
8b8cadf8d7e9
parent 6942
2602857055c5
child 7273
391d6b7b1eff
equal deleted inserted replaced
6938:7926553b7509 6989:8b8cadf8d7e9
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.QScintilla.SearchReplaceWidget</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><a NAME="top" ID="top"></a>
22 <h1>eric6.QScintilla.SearchReplaceWidget</h1>
23 <p>
24 Module implementing the search and replace widget.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>None</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr>
33 <td><a href="#SearchReplaceSlidingWidget">SearchReplaceSlidingWidget</a></td>
34 <td>Class implementing the search and replace widget with sliding behavior.</td>
35 </tr><tr>
36 <td><a href="#SearchReplaceWidget">SearchReplaceWidget</a></td>
37 <td>Class implementing the search and replace widget.</td>
38 </tr>
39 </table>
40 <h3>Functions</h3>
41 <table>
42 <tr><td>None</td></tr>
43 </table>
44 <hr /><hr />
45 <a NAME="SearchReplaceSlidingWidget" ID="SearchReplaceSlidingWidget"></a>
46 <h2>SearchReplaceSlidingWidget</h2>
47 <p>
48 Class implementing the search and replace widget with sliding behavior.
49 </p><h3>Signals</h3>
50 <dl>
51 <dt>searchListChanged()</dt>
52 <dd>
53 emitted to indicate a change of the search list
54 </dd>
55 </dl>
56 <h3>Derived from</h3>
57 QWidget
58 <h3>Class Attributes</h3>
59 <table>
60 <tr><td>None</td></tr>
61 </table>
62 <h3>Class Methods</h3>
63 <table>
64 <tr><td>None</td></tr>
65 </table>
66 <h3>Methods</h3>
67 <table>
68 <tr>
69 <td><a href="#SearchReplaceSlidingWidget.__init__">SearchReplaceSlidingWidget</a></td>
70 <td>Constructor</td>
71 </tr><tr>
72 <td><a href="#SearchReplaceSlidingWidget.__enableScrollerButtons">__enableScrollerButtons</a></td>
73 <td>Private method to set the enabled state of the scroll buttons.</td>
74 </tr><tr>
75 <td><a href="#SearchReplaceSlidingWidget.__slide">__slide</a></td>
76 <td>Private method to move the sliding widget.</td>
77 </tr><tr>
78 <td><a href="#SearchReplaceSlidingWidget.__slideLeft">__slideLeft</a></td>
79 <td>Private slot to move the widget to the left, i.e.</td>
80 </tr><tr>
81 <td><a href="#SearchReplaceSlidingWidget.__slideRight">__slideRight</a></td>
82 <td>Private slot to move the widget to the right, i.e.</td>
83 </tr><tr>
84 <td><a href="#SearchReplaceSlidingWidget.changeEvent">changeEvent</a></td>
85 <td>Protected method handling state changes.</td>
86 </tr><tr>
87 <td><a href="#SearchReplaceSlidingWidget.findNext">findNext</a></td>
88 <td>Public slot to find the next occurrence of text.</td>
89 </tr><tr>
90 <td><a href="#SearchReplaceSlidingWidget.findPrev">findPrev</a></td>
91 <td>Public slot to find the next previous of text.</td>
92 </tr><tr>
93 <td><a href="#SearchReplaceSlidingWidget.replace">replace</a></td>
94 <td>Public method to replace the current selection.</td>
95 </tr><tr>
96 <td><a href="#SearchReplaceSlidingWidget.replaceAll">replaceAll</a></td>
97 <td>Public method to replace all occurrences.</td>
98 </tr><tr>
99 <td><a href="#SearchReplaceSlidingWidget.replaceSearch">replaceSearch</a></td>
100 <td>Public method to replace the current selection and search again.</td>
101 </tr><tr>
102 <td><a href="#SearchReplaceSlidingWidget.resizeEvent">resizeEvent</a></td>
103 <td>Protected method to handle resize events.</td>
104 </tr><tr>
105 <td><a href="#SearchReplaceSlidingWidget.selectionChanged">selectionChanged</a></td>
106 <td>Public slot tracking changes of selected text.</td>
107 </tr><tr>
108 <td><a href="#SearchReplaceSlidingWidget.show">show</a></td>
109 <td>Public slot to show the widget.</td>
110 </tr><tr>
111 <td><a href="#SearchReplaceSlidingWidget.updateSelectionCheckBox">updateSelectionCheckBox</a></td>
112 <td>Public slot to update the selection check box.</td>
113 </tr>
114 </table>
115 <h3>Static Methods</h3>
116 <table>
117 <tr><td>None</td></tr>
118 </table>
119 <a NAME="SearchReplaceSlidingWidget.__init__" ID="SearchReplaceSlidingWidget.__init__"></a>
120 <h4>SearchReplaceSlidingWidget (Constructor)</h4>
121 <b>SearchReplaceSlidingWidget</b>(<i>replace, vm, parent=None</i>)
122 <p>
123 Constructor
124 </p><dl>
125 <dt><i>replace</i></dt>
126 <dd>
127 flag indicating a replace widget is called
128 </dd><dt><i>vm</i></dt>
129 <dd>
130 reference to the viewmanager object
131 </dd><dt><i>parent</i></dt>
132 <dd>
133 parent widget of this widget (QWidget)
134 </dd>
135 </dl><a NAME="SearchReplaceSlidingWidget.__enableScrollerButtons" ID="SearchReplaceSlidingWidget.__enableScrollerButtons"></a>
136 <h4>SearchReplaceSlidingWidget.__enableScrollerButtons</h4>
137 <b>__enableScrollerButtons</b>(<i></i>)
138 <p>
139 Private method to set the enabled state of the scroll buttons.
140 </p><a NAME="SearchReplaceSlidingWidget.__slide" ID="SearchReplaceSlidingWidget.__slide"></a>
141 <h4>SearchReplaceSlidingWidget.__slide</h4>
142 <b>__slide</b>(<i>toLeft</i>)
143 <p>
144 Private method to move the sliding widget.
145 </p><dl>
146 <dt><i>toLeft</i></dt>
147 <dd>
148 flag indicating to move to the left (boolean)
149 </dd>
150 </dl><a NAME="SearchReplaceSlidingWidget.__slideLeft" ID="SearchReplaceSlidingWidget.__slideLeft"></a>
151 <h4>SearchReplaceSlidingWidget.__slideLeft</h4>
152 <b>__slideLeft</b>(<i></i>)
153 <p>
154 Private slot to move the widget to the left, i.e. show contents to the
155 right.
156 </p><a NAME="SearchReplaceSlidingWidget.__slideRight" ID="SearchReplaceSlidingWidget.__slideRight"></a>
157 <h4>SearchReplaceSlidingWidget.__slideRight</h4>
158 <b>__slideRight</b>(<i></i>)
159 <p>
160 Private slot to move the widget to the right, i.e. show contents to
161 the left.
162 </p><a NAME="SearchReplaceSlidingWidget.changeEvent" ID="SearchReplaceSlidingWidget.changeEvent"></a>
163 <h4>SearchReplaceSlidingWidget.changeEvent</h4>
164 <b>changeEvent</b>(<i>evt</i>)
165 <p>
166 Protected method handling state changes.
167 </p><dl>
168 <dt><i>evt</i></dt>
169 <dd>
170 event containing the state change (QEvent)
171 </dd>
172 </dl><a NAME="SearchReplaceSlidingWidget.findNext" ID="SearchReplaceSlidingWidget.findNext"></a>
173 <h4>SearchReplaceSlidingWidget.findNext</h4>
174 <b>findNext</b>(<i></i>)
175 <p>
176 Public slot to find the next occurrence of text.
177 </p><a NAME="SearchReplaceSlidingWidget.findPrev" ID="SearchReplaceSlidingWidget.findPrev"></a>
178 <h4>SearchReplaceSlidingWidget.findPrev</h4>
179 <b>findPrev</b>(<i></i>)
180 <p>
181 Public slot to find the next previous of text.
182 </p><a NAME="SearchReplaceSlidingWidget.replace" ID="SearchReplaceSlidingWidget.replace"></a>
183 <h4>SearchReplaceSlidingWidget.replace</h4>
184 <b>replace</b>(<i></i>)
185 <p>
186 Public method to replace the current selection.
187 </p><a NAME="SearchReplaceSlidingWidget.replaceAll" ID="SearchReplaceSlidingWidget.replaceAll"></a>
188 <h4>SearchReplaceSlidingWidget.replaceAll</h4>
189 <b>replaceAll</b>(<i></i>)
190 <p>
191 Public method to replace all occurrences.
192 </p><a NAME="SearchReplaceSlidingWidget.replaceSearch" ID="SearchReplaceSlidingWidget.replaceSearch"></a>
193 <h4>SearchReplaceSlidingWidget.replaceSearch</h4>
194 <b>replaceSearch</b>(<i></i>)
195 <p>
196 Public method to replace the current selection and search again.
197 </p><a NAME="SearchReplaceSlidingWidget.resizeEvent" ID="SearchReplaceSlidingWidget.resizeEvent"></a>
198 <h4>SearchReplaceSlidingWidget.resizeEvent</h4>
199 <b>resizeEvent</b>(<i>evt</i>)
200 <p>
201 Protected method to handle resize events.
202 </p><dl>
203 <dt><i>evt</i></dt>
204 <dd>
205 reference to the resize event (QResizeEvent)
206 </dd>
207 </dl><a NAME="SearchReplaceSlidingWidget.selectionChanged" ID="SearchReplaceSlidingWidget.selectionChanged"></a>
208 <h4>SearchReplaceSlidingWidget.selectionChanged</h4>
209 <b>selectionChanged</b>(<i>editor</i>)
210 <p>
211 Public slot tracking changes of selected text.
212 </p><dl>
213 <dt><i>editor</i> (Editor)</dt>
214 <dd>
215 reference to the editor
216 </dd>
217 </dl><a NAME="SearchReplaceSlidingWidget.show" ID="SearchReplaceSlidingWidget.show"></a>
218 <h4>SearchReplaceSlidingWidget.show</h4>
219 <b>show</b>(<i>text=''</i>)
220 <p>
221 Public slot to show the widget.
222 </p><dl>
223 <dt><i>text</i></dt>
224 <dd>
225 text to be shown in the findtext edit (string)
226 </dd>
227 </dl><a NAME="SearchReplaceSlidingWidget.updateSelectionCheckBox" ID="SearchReplaceSlidingWidget.updateSelectionCheckBox"></a>
228 <h4>SearchReplaceSlidingWidget.updateSelectionCheckBox</h4>
229 <b>updateSelectionCheckBox</b>(<i>editor</i>)
230 <p>
231 Public slot to update the selection check box.
232 </p><dl>
233 <dt><i>editor</i></dt>
234 <dd>
235 reference to the editor (Editor)
236 </dd>
237 </dl>
238 <div align="right"><a href="#top">Up</a></div>
239 <hr /><hr />
240 <a NAME="SearchReplaceWidget" ID="SearchReplaceWidget"></a>
241 <h2>SearchReplaceWidget</h2>
242 <p>
243 Class implementing the search and replace widget.
244 </p><h3>Signals</h3>
245 <dl>
246 <dt>searchListChanged()</dt>
247 <dd>
248 emitted to indicate a change of the search list
249 </dd>
250 </dl>
251 <h3>Derived from</h3>
252 QWidget
253 <h3>Class Attributes</h3>
254 <table>
255 <tr><td>None</td></tr>
256 </table>
257 <h3>Class Methods</h3>
258 <table>
259 <tr><td>None</td></tr>
260 </table>
261 <h3>Methods</h3>
262 <table>
263 <tr>
264 <td><a href="#SearchReplaceWidget.__init__">SearchReplaceWidget</a></td>
265 <td>Constructor</td>
266 </tr><tr>
267 <td><a href="#SearchReplaceWidget.__doReplace">__doReplace</a></td>
268 <td>Private method to replace one occurrence of text.</td>
269 </tr><tr>
270 <td><a href="#SearchReplaceWidget.__findByReturnPressed">__findByReturnPressed</a></td>
271 <td>Private slot to handle the returnPressed signal of the findtext combobox.</td>
272 </tr><tr>
273 <td><a href="#SearchReplaceWidget.__findNextPrev">__findNextPrev</a></td>
274 <td>Private method to find the next occurrence of the search text.</td>
275 </tr><tr>
276 <td><a href="#SearchReplaceWidget.__markOccurrences">__markOccurrences</a></td>
277 <td>Private method to mark all occurrences of the search text.</td>
278 </tr><tr>
279 <td><a href="#SearchReplaceWidget.__selectionBoundary">__selectionBoundary</a></td>
280 <td>Private method to calculate the current selection boundary.</td>
281 </tr><tr>
282 <td><a href="#SearchReplaceWidget.__setFindNextEnabled">__setFindNextEnabled</a></td>
283 <td>Private method to set the enabled state of "Find Next".</td>
284 </tr><tr>
285 <td><a href="#SearchReplaceWidget.__setFindPrevEnabled">__setFindPrevEnabled</a></td>
286 <td>Private method to set the enabled state of "Find Prev".</td>
287 </tr><tr>
288 <td><a href="#SearchReplaceWidget.__setReplaceAllEnabled">__setReplaceAllEnabled</a></td>
289 <td>Private method to set the enabled state of "Replace All".</td>
290 </tr><tr>
291 <td><a href="#SearchReplaceWidget.__setReplaceAndSearchEnabled">__setReplaceAndSearchEnabled</a></td>
292 <td>Private method to set the enabled state of "Replace And Search".</td>
293 </tr><tr>
294 <td><a href="#SearchReplaceWidget.__setReplaceSelectionEnabled">__setReplaceSelectionEnabled</a></td>
295 <td>Private method to set the enabled state of "Replace Occurrence".</td>
296 </tr><tr>
297 <td><a href="#SearchReplaceWidget.__setShortcuts">__setShortcuts</a></td>
298 <td>Private method to set the local action's shortcuts to the same key sequences as in the view manager.</td>
299 </tr><tr>
300 <td><a href="#SearchReplaceWidget.__showFind">__showFind</a></td>
301 <td>Private method to display this widget in find mode.</td>
302 </tr><tr>
303 <td><a href="#SearchReplaceWidget.__showReplace">__showReplace</a></td>
304 <td>Private slot to display this widget in replace mode.</td>
305 </tr><tr>
306 <td><a href="#SearchReplaceWidget.changeEvent">changeEvent</a></td>
307 <td>Protected method handling state changes.</td>
308 </tr><tr>
309 <td><a href="#SearchReplaceWidget.findNext">findNext</a></td>
310 <td>Public slot to find the next occurrence of text.</td>
311 </tr><tr>
312 <td><a href="#SearchReplaceWidget.findPrev">findPrev</a></td>
313 <td>Public slot to find the next previous of text.</td>
314 </tr><tr>
315 <td><a href="#SearchReplaceWidget.keyPressEvent">keyPressEvent</a></td>
316 <td>Protected slot to handle key press events.</td>
317 </tr><tr>
318 <td><a href="#SearchReplaceWidget.on_closeButton_clicked">on_closeButton_clicked</a></td>
319 <td>Private slot to close the widget.</td>
320 </tr><tr>
321 <td><a href="#SearchReplaceWidget.on_findNextButton_clicked">on_findNextButton_clicked</a></td>
322 <td>Private slot to find the next occurrence of text.</td>
323 </tr><tr>
324 <td><a href="#SearchReplaceWidget.on_findPrevButton_clicked">on_findPrevButton_clicked</a></td>
325 <td>Private slot to find the previous occurrence of text.</td>
326 </tr><tr>
327 <td><a href="#SearchReplaceWidget.on_findtextCombo_editTextChanged">on_findtextCombo_editTextChanged</a></td>
328 <td>Private slot to enable/disable the find buttons.</td>
329 </tr><tr>
330 <td><a href="#SearchReplaceWidget.on_replaceAllButton_clicked">on_replaceAllButton_clicked</a></td>
331 <td>Private slot to replace all occurrences of text.</td>
332 </tr><tr>
333 <td><a href="#SearchReplaceWidget.on_replaceButton_clicked">on_replaceButton_clicked</a></td>
334 <td>Private slot to replace one occurrence of text.</td>
335 </tr><tr>
336 <td><a href="#SearchReplaceWidget.on_replaceSearchButton_clicked">on_replaceSearchButton_clicked</a></td>
337 <td>Private slot to replace one occurrence of text and search for the next one.</td>
338 </tr><tr>
339 <td><a href="#SearchReplaceWidget.replace">replace</a></td>
340 <td>Public method to replace the current selection.</td>
341 </tr><tr>
342 <td><a href="#SearchReplaceWidget.replaceAll">replaceAll</a></td>
343 <td>Public method to replace all occurrences.</td>
344 </tr><tr>
345 <td><a href="#SearchReplaceWidget.replaceSearch">replaceSearch</a></td>
346 <td>Public method to replace the current selection and search again.</td>
347 </tr><tr>
348 <td><a href="#SearchReplaceWidget.selectionChanged">selectionChanged</a></td>
349 <td>Public slot tracking changes of selected text.</td>
350 </tr><tr>
351 <td><a href="#SearchReplaceWidget.show">show</a></td>
352 <td>Public slot to show the widget.</td>
353 </tr><tr>
354 <td><a href="#SearchReplaceWidget.updateSelectionCheckBox">updateSelectionCheckBox</a></td>
355 <td>Public slot to update the selection check box.</td>
356 </tr>
357 </table>
358 <h3>Static Methods</h3>
359 <table>
360 <tr><td>None</td></tr>
361 </table>
362 <a NAME="SearchReplaceWidget.__init__" ID="SearchReplaceWidget.__init__"></a>
363 <h4>SearchReplaceWidget (Constructor)</h4>
364 <b>SearchReplaceWidget</b>(<i>replace, vm, parent=None, sliding=False</i>)
365 <p>
366 Constructor
367 </p><dl>
368 <dt><i>replace</i></dt>
369 <dd>
370 flag indicating a replace widget is called
371 </dd><dt><i>vm</i></dt>
372 <dd>
373 reference to the viewmanager object
374 </dd><dt><i>parent</i></dt>
375 <dd>
376 parent widget of this widget (QWidget)
377 </dd><dt><i>sliding</i></dt>
378 <dd>
379 flag indicating the widget is embedded in the
380 sliding widget (boolean)
381 </dd>
382 </dl><a NAME="SearchReplaceWidget.__doReplace" ID="SearchReplaceWidget.__doReplace"></a>
383 <h4>SearchReplaceWidget.__doReplace</h4>
384 <b>__doReplace</b>(<i>searchNext</i>)
385 <p>
386 Private method to replace one occurrence of text.
387 </p><dl>
388 <dt><i>searchNext</i></dt>
389 <dd>
390 flag indicating to search for the next occurrence
391 (boolean).
392 </dd>
393 </dl><a NAME="SearchReplaceWidget.__findByReturnPressed" ID="SearchReplaceWidget.__findByReturnPressed"></a>
394 <h4>SearchReplaceWidget.__findByReturnPressed</h4>
395 <b>__findByReturnPressed</b>(<i></i>)
396 <p>
397 Private slot to handle the returnPressed signal of the findtext
398 combobox.
399 </p><a NAME="SearchReplaceWidget.__findNextPrev" ID="SearchReplaceWidget.__findNextPrev"></a>
400 <h4>SearchReplaceWidget.__findNextPrev</h4>
401 <b>__findNextPrev</b>(<i>txt, backwards</i>)
402 <p>
403 Private method to find the next occurrence of the search text.
404 </p><dl>
405 <dt><i>txt</i></dt>
406 <dd>
407 text to search for (string)
408 </dd><dt><i>backwards</i></dt>
409 <dd>
410 flag indicating a backwards search (boolean)
411 </dd>
412 </dl><dl>
413 <dt>Returns:</dt>
414 <dd>
415 flag indicating success (boolean)
416 </dd>
417 </dl><a NAME="SearchReplaceWidget.__markOccurrences" ID="SearchReplaceWidget.__markOccurrences"></a>
418 <h4>SearchReplaceWidget.__markOccurrences</h4>
419 <b>__markOccurrences</b>(<i>txt</i>)
420 <p>
421 Private method to mark all occurrences of the search text.
422 </p><dl>
423 <dt><i>txt</i></dt>
424 <dd>
425 text to search for (string)
426 </dd>
427 </dl><a NAME="SearchReplaceWidget.__selectionBoundary" ID="SearchReplaceWidget.__selectionBoundary"></a>
428 <h4>SearchReplaceWidget.__selectionBoundary</h4>
429 <b>__selectionBoundary</b>(<i>selections=None</i>)
430 <p>
431 Private method to calculate the current selection boundary.
432 </p><dl>
433 <dt><i>selections</i></dt>
434 <dd>
435 optional parameter giving the selections to
436 calculate the boundary for (list of tuples of four integer)
437 </dd>
438 </dl><dl>
439 <dt>Returns:</dt>
440 <dd>
441 tuple of start line and index and end line and index
442 (tuple of four integer)
443 </dd>
444 </dl><a NAME="SearchReplaceWidget.__setFindNextEnabled" ID="SearchReplaceWidget.__setFindNextEnabled"></a>
445 <h4>SearchReplaceWidget.__setFindNextEnabled</h4>
446 <b>__setFindNextEnabled</b>(<i>enable</i>)
447 <p>
448 Private method to set the enabled state of "Find Next".
449 </p><dl>
450 <dt><i>enable</i> (bool)</dt>
451 <dd>
452 flag indicating the enable state to be set
453 </dd>
454 </dl><a NAME="SearchReplaceWidget.__setFindPrevEnabled" ID="SearchReplaceWidget.__setFindPrevEnabled"></a>
455 <h4>SearchReplaceWidget.__setFindPrevEnabled</h4>
456 <b>__setFindPrevEnabled</b>(<i>enable</i>)
457 <p>
458 Private method to set the enabled state of "Find Prev".
459 </p><dl>
460 <dt><i>enable</i> (bool)</dt>
461 <dd>
462 flag indicating the enable state to be set
463 </dd>
464 </dl><a NAME="SearchReplaceWidget.__setReplaceAllEnabled" ID="SearchReplaceWidget.__setReplaceAllEnabled"></a>
465 <h4>SearchReplaceWidget.__setReplaceAllEnabled</h4>
466 <b>__setReplaceAllEnabled</b>(<i>enable</i>)
467 <p>
468 Private method to set the enabled state of "Replace All".
469 </p><dl>
470 <dt><i>enable</i> (bool)</dt>
471 <dd>
472 flag indicating the enable state to be set
473 </dd>
474 </dl><a NAME="SearchReplaceWidget.__setReplaceAndSearchEnabled" ID="SearchReplaceWidget.__setReplaceAndSearchEnabled"></a>
475 <h4>SearchReplaceWidget.__setReplaceAndSearchEnabled</h4>
476 <b>__setReplaceAndSearchEnabled</b>(<i>enable</i>)
477 <p>
478 Private method to set the enabled state of "Replace And Search".
479 </p><dl>
480 <dt><i>enable</i> (bool)</dt>
481 <dd>
482 flag indicating the enable state to be set
483 </dd>
484 </dl><a NAME="SearchReplaceWidget.__setReplaceSelectionEnabled" ID="SearchReplaceWidget.__setReplaceSelectionEnabled"></a>
485 <h4>SearchReplaceWidget.__setReplaceSelectionEnabled</h4>
486 <b>__setReplaceSelectionEnabled</b>(<i>enable</i>)
487 <p>
488 Private method to set the enabled state of "Replace Occurrence".
489 </p><dl>
490 <dt><i>enable</i> (bool)</dt>
491 <dd>
492 flag indicating the enable state to be set
493 </dd>
494 </dl><a NAME="SearchReplaceWidget.__setShortcuts" ID="SearchReplaceWidget.__setShortcuts"></a>
495 <h4>SearchReplaceWidget.__setShortcuts</h4>
496 <b>__setShortcuts</b>(<i></i>)
497 <p>
498 Private method to set the local action's shortcuts to the same key
499 sequences as in the view manager.
500 </p><a NAME="SearchReplaceWidget.__showFind" ID="SearchReplaceWidget.__showFind"></a>
501 <h4>SearchReplaceWidget.__showFind</h4>
502 <b>__showFind</b>(<i>text=''</i>)
503 <p>
504 Private method to display this widget in find mode.
505 </p><dl>
506 <dt><i>text</i></dt>
507 <dd>
508 text to be shown in the findtext edit (string)
509 </dd>
510 </dl><a NAME="SearchReplaceWidget.__showReplace" ID="SearchReplaceWidget.__showReplace"></a>
511 <h4>SearchReplaceWidget.__showReplace</h4>
512 <b>__showReplace</b>(<i>text=''</i>)
513 <p>
514 Private slot to display this widget in replace mode.
515 </p><dl>
516 <dt><i>text</i></dt>
517 <dd>
518 text to be shown in the findtext edit
519 </dd>
520 </dl><a NAME="SearchReplaceWidget.changeEvent" ID="SearchReplaceWidget.changeEvent"></a>
521 <h4>SearchReplaceWidget.changeEvent</h4>
522 <b>changeEvent</b>(<i>evt</i>)
523 <p>
524 Protected method handling state changes.
525 </p><dl>
526 <dt><i>evt</i></dt>
527 <dd>
528 event containing the state change (QEvent)
529 </dd>
530 </dl><a NAME="SearchReplaceWidget.findNext" ID="SearchReplaceWidget.findNext"></a>
531 <h4>SearchReplaceWidget.findNext</h4>
532 <b>findNext</b>(<i></i>)
533 <p>
534 Public slot to find the next occurrence of text.
535 </p><a NAME="SearchReplaceWidget.findPrev" ID="SearchReplaceWidget.findPrev"></a>
536 <h4>SearchReplaceWidget.findPrev</h4>
537 <b>findPrev</b>(<i></i>)
538 <p>
539 Public slot to find the next previous of text.
540 </p><a NAME="SearchReplaceWidget.keyPressEvent" ID="SearchReplaceWidget.keyPressEvent"></a>
541 <h4>SearchReplaceWidget.keyPressEvent</h4>
542 <b>keyPressEvent</b>(<i>event</i>)
543 <p>
544 Protected slot to handle key press events.
545 </p><dl>
546 <dt><i>event</i></dt>
547 <dd>
548 reference to the key press event (QKeyEvent)
549 </dd>
550 </dl><a NAME="SearchReplaceWidget.on_closeButton_clicked" ID="SearchReplaceWidget.on_closeButton_clicked"></a>
551 <h4>SearchReplaceWidget.on_closeButton_clicked</h4>
552 <b>on_closeButton_clicked</b>(<i></i>)
553 <p>
554 Private slot to close the widget.
555 </p><a NAME="SearchReplaceWidget.on_findNextButton_clicked" ID="SearchReplaceWidget.on_findNextButton_clicked"></a>
556 <h4>SearchReplaceWidget.on_findNextButton_clicked</h4>
557 <b>on_findNextButton_clicked</b>(<i></i>)
558 <p>
559 Private slot to find the next occurrence of text.
560 </p><a NAME="SearchReplaceWidget.on_findPrevButton_clicked" ID="SearchReplaceWidget.on_findPrevButton_clicked"></a>
561 <h4>SearchReplaceWidget.on_findPrevButton_clicked</h4>
562 <b>on_findPrevButton_clicked</b>(<i></i>)
563 <p>
564 Private slot to find the previous occurrence of text.
565 </p><a NAME="SearchReplaceWidget.on_findtextCombo_editTextChanged" ID="SearchReplaceWidget.on_findtextCombo_editTextChanged"></a>
566 <h4>SearchReplaceWidget.on_findtextCombo_editTextChanged</h4>
567 <b>on_findtextCombo_editTextChanged</b>(<i>txt</i>)
568 <p>
569 Private slot to enable/disable the find buttons.
570 </p><dl>
571 <dt><i>txt</i></dt>
572 <dd>
573 text of the find text combo (string)
574 </dd>
575 </dl><a NAME="SearchReplaceWidget.on_replaceAllButton_clicked" ID="SearchReplaceWidget.on_replaceAllButton_clicked"></a>
576 <h4>SearchReplaceWidget.on_replaceAllButton_clicked</h4>
577 <b>on_replaceAllButton_clicked</b>(<i></i>)
578 <p>
579 Private slot to replace all occurrences of text.
580 </p><a NAME="SearchReplaceWidget.on_replaceButton_clicked" ID="SearchReplaceWidget.on_replaceButton_clicked"></a>
581 <h4>SearchReplaceWidget.on_replaceButton_clicked</h4>
582 <b>on_replaceButton_clicked</b>(<i></i>)
583 <p>
584 Private slot to replace one occurrence of text.
585 </p><a NAME="SearchReplaceWidget.on_replaceSearchButton_clicked" ID="SearchReplaceWidget.on_replaceSearchButton_clicked"></a>
586 <h4>SearchReplaceWidget.on_replaceSearchButton_clicked</h4>
587 <b>on_replaceSearchButton_clicked</b>(<i></i>)
588 <p>
589 Private slot to replace one occurrence of text and search for the next
590 one.
591 </p><a NAME="SearchReplaceWidget.replace" ID="SearchReplaceWidget.replace"></a>
592 <h4>SearchReplaceWidget.replace</h4>
593 <b>replace</b>(<i></i>)
594 <p>
595 Public method to replace the current selection.
596 </p><a NAME="SearchReplaceWidget.replaceAll" ID="SearchReplaceWidget.replaceAll"></a>
597 <h4>SearchReplaceWidget.replaceAll</h4>
598 <b>replaceAll</b>(<i></i>)
599 <p>
600 Public method to replace all occurrences.
601 </p><a NAME="SearchReplaceWidget.replaceSearch" ID="SearchReplaceWidget.replaceSearch"></a>
602 <h4>SearchReplaceWidget.replaceSearch</h4>
603 <b>replaceSearch</b>(<i></i>)
604 <p>
605 Public method to replace the current selection and search again.
606 </p><a NAME="SearchReplaceWidget.selectionChanged" ID="SearchReplaceWidget.selectionChanged"></a>
607 <h4>SearchReplaceWidget.selectionChanged</h4>
608 <b>selectionChanged</b>(<i>editor</i>)
609 <p>
610 Public slot tracking changes of selected text.
611 </p><dl>
612 <dt><i>editor</i> (Editor)</dt>
613 <dd>
614 reference to the editor
615 </dd>
616 </dl><a NAME="SearchReplaceWidget.show" ID="SearchReplaceWidget.show"></a>
617 <h4>SearchReplaceWidget.show</h4>
618 <b>show</b>(<i>text=''</i>)
619 <p>
620 Public slot to show the widget.
621 </p><dl>
622 <dt><i>text</i></dt>
623 <dd>
624 text to be shown in the findtext edit (string)
625 </dd>
626 </dl><a NAME="SearchReplaceWidget.updateSelectionCheckBox" ID="SearchReplaceWidget.updateSelectionCheckBox"></a>
627 <h4>SearchReplaceWidget.updateSelectionCheckBox</h4>
628 <b>updateSelectionCheckBox</b>(<i>editor</i>)
629 <p>
630 Public slot to update the selection check box.
631 </p><dl>
632 <dt><i>editor</i> (Editor)</dt>
633 <dd>
634 reference to the editor
635 </dd>
636 </dl>
637 <div align="right"><a href="#top">Up</a></div>
638 <hr />
639 </body></html>

eric ide

mercurial