65 <tr> |
74 <tr> |
66 <td><a href="#EricTextEditSearchWidget.__addWidthForHeightLayout">__addWidthForHeightLayout</a></td> |
75 <td><a href="#EricTextEditSearchWidget.__addWidthForHeightLayout">__addWidthForHeightLayout</a></td> |
67 <td>Private method to set the middle part of the layout.</td> |
76 <td>Private method to set the middle part of the layout.</td> |
68 </tr> |
77 </tr> |
69 <tr> |
78 <tr> |
|
79 <td><a href="#EricTextEditSearchWidget.__closeButtonClicked">__closeButtonClicked</a></td> |
|
80 <td>Private slot to close the widget.</td> |
|
81 </tr> |
|
82 <tr> |
70 <td><a href="#EricTextEditSearchWidget.__find">__find</a></td> |
83 <td><a href="#EricTextEditSearchWidget.__find">__find</a></td> |
71 <td>Private method to search the associated text edit.</td> |
84 <td>Private method to search the associated text edit.</td> |
72 </tr> |
85 </tr> |
73 <tr> |
86 <tr> |
74 <td><a href="#EricTextEditSearchWidget.__findByReturnPressed">__findByReturnPressed</a></td> |
87 <td><a href="#EricTextEditSearchWidget.__findByReturnPressed">__findByReturnPressed</a></td> |
75 <td>Private slot to handle the returnPressed signal of the findtext combobox.</td> |
88 <td>Private slot to handle the returnPressed signal of the findtext combobox.</td> |
76 </tr> |
89 </tr> |
77 <tr> |
90 <tr> |
78 <td><a href="#EricTextEditSearchWidget.__findNextPrevCallback">__findNextPrevCallback</a></td> |
|
79 <td>Private method to process the result of the last search.</td> |
|
80 </tr> |
|
81 <tr> |
|
82 <td><a href="#EricTextEditSearchWidget.__findPrevNextQTextEdit">__findPrevNextQTextEdit</a></td> |
91 <td><a href="#EricTextEditSearchWidget.__findPrevNextQTextEdit">__findPrevNextQTextEdit</a></td> |
83 <td>Private method to to search the associated edit widget of type QTextEdit.</td> |
92 <td>Private method to to search the associated edit widget of type QTextEdit.</td> |
84 </tr> |
93 </tr> |
85 <tr> |
94 <tr> |
86 <td><a href="#EricTextEditSearchWidget.__findPrevNextQWebEngineView">__findPrevNextQWebEngineView</a></td> |
95 <td><a href="#EricTextEditSearchWidget.__findPrevNextQWebEngineView">__findPrevNextQWebEngineView</a></td> |
87 <td>Private method to to search the associated edit widget of type QWebEngineView.</td> |
96 <td>Private method to to search the associated edit widget of type QWebEngineView.</td> |
88 </tr> |
97 </tr> |
89 <tr> |
98 <tr> |
|
99 <td><a href="#EricTextEditSearchWidget.__findTextFinished">__findTextFinished</a></td> |
|
100 <td>Private slot handling the findTextFinished signal of the web page.</td> |
|
101 </tr> |
|
102 <tr> |
90 <td><a href="#EricTextEditSearchWidget.__setFindtextComboBackground">__setFindtextComboBackground</a></td> |
103 <td><a href="#EricTextEditSearchWidget.__setFindtextComboBackground">__setFindtextComboBackground</a></td> |
91 <td>Private slot to change the findtext combo background to indicate errors.</td> |
104 <td>Private slot to change the findtext combo background to indicate errors.</td> |
92 </tr> |
105 </tr> |
93 <tr> |
106 <tr> |
94 <td><a href="#EricTextEditSearchWidget.__setSearchButtons">__setSearchButtons</a></td> |
107 <td><a href="#EricTextEditSearchWidget.__setSearchButtons">__setSearchButtons</a></td> |
97 <tr> |
110 <tr> |
98 <td><a href="#EricTextEditSearchWidget.__setupUi">__setupUi</a></td> |
111 <td><a href="#EricTextEditSearchWidget.__setupUi">__setupUi</a></td> |
99 <td>Private method to generate the UI.</td> |
112 <td>Private method to generate the UI.</td> |
100 </tr> |
113 </tr> |
101 <tr> |
114 <tr> |
|
115 <td><a href="#EricTextEditSearchWidget.activate">activate</a></td> |
|
116 <td>Public slot to activate the widget.</td> |
|
117 </tr> |
|
118 <tr> |
102 <td><a href="#EricTextEditSearchWidget.attachTextEdit">attachTextEdit</a></td> |
119 <td><a href="#EricTextEditSearchWidget.attachTextEdit">attachTextEdit</a></td> |
103 <td>Public method to attach a QTextEdit widget.</td> |
120 <td>Public method to attach a QTextEdit or QWebEngineView widget.</td> |
|
121 </tr> |
|
122 <tr> |
|
123 <td><a href="#EricTextEditSearchWidget.deactivate">deactivate</a></td> |
|
124 <td>Public slot to deactivate the widget.</td> |
|
125 </tr> |
|
126 <tr> |
|
127 <td><a href="#EricTextEditSearchWidget.detachTextEdit">detachTextEdit</a></td> |
|
128 <td>Public method to detach the current text edit.</td> |
|
129 </tr> |
|
130 <tr> |
|
131 <td><a href="#EricTextEditSearchWidget.findNext">findNext</a></td> |
|
132 <td>Public slot to find the next occurrence of the current search term.</td> |
|
133 </tr> |
|
134 <tr> |
|
135 <td><a href="#EricTextEditSearchWidget.findPrev">findPrev</a></td> |
|
136 <td>Public slot to find the previous occurrence of the current search term.</td> |
104 </tr> |
137 </tr> |
105 <tr> |
138 <tr> |
106 <td><a href="#EricTextEditSearchWidget.keyPressEvent">keyPressEvent</a></td> |
139 <td><a href="#EricTextEditSearchWidget.keyPressEvent">keyPressEvent</a></td> |
107 <td>Protected slot to handle key press events.</td> |
140 <td>Protected slot to handle key press events.</td> |
108 </tr> |
141 </tr> |
120 </tr> |
153 </tr> |
121 <tr> |
154 <tr> |
122 <td><a href="#EricTextEditSearchWidget.setWidthForHeight">setWidthForHeight</a></td> |
155 <td><a href="#EricTextEditSearchWidget.setWidthForHeight">setWidthForHeight</a></td> |
123 <td>Public method to set the 'width for height'.</td> |
156 <td>Public method to set the 'width for height'.</td> |
124 </tr> |
157 </tr> |
|
158 <tr> |
|
159 <td><a href="#EricTextEditSearchWidget.showInfo">showInfo</a></td> |
|
160 <td>Public method to show some information in the info label.</td> |
|
161 </tr> |
125 </table> |
162 </table> |
126 <h3>Static Methods</h3> |
163 <h3>Static Methods</h3> |
127 |
164 |
128 <table> |
165 <table> |
129 <tr><td>None</td></tr> |
166 <tr><td>None</td></tr> |
130 </table> |
167 </table> |
131 |
168 |
132 <a NAME="EricTextEditSearchWidget.__init__" ID="EricTextEditSearchWidget.__init__"></a> |
169 <a NAME="EricTextEditSearchWidget.__init__" ID="EricTextEditSearchWidget.__init__"></a> |
133 <h4>EricTextEditSearchWidget (Constructor)</h4> |
170 <h4>EricTextEditSearchWidget (Constructor)</h4> |
134 <b>EricTextEditSearchWidget</b>(<i>parent=None, widthForHeight=True</i>) |
171 <b>EricTextEditSearchWidget</b>(<i>parent=None, widthForHeight=True, enableClose=False</i>) |
135 |
172 |
136 <p> |
173 <p> |
137 Constructor |
174 Constructor |
138 </p> |
175 </p> |
139 <dl> |
176 <dl> |
161 <dt><i>widthForHeight</i> (bool)</dt> |
202 <dt><i>widthForHeight</i> (bool)</dt> |
162 <dd> |
203 <dd> |
163 flag indicating to prefer width |
204 flag indicating to prefer width |
164 </dd> |
205 </dd> |
165 </dl> |
206 </dl> |
|
207 <a NAME="EricTextEditSearchWidget.__closeButtonClicked" ID="EricTextEditSearchWidget.__closeButtonClicked"></a> |
|
208 <h4>EricTextEditSearchWidget.__closeButtonClicked</h4> |
|
209 <b>__closeButtonClicked</b>(<i></i>) |
|
210 |
|
211 <p> |
|
212 Private slot to close the widget. |
|
213 </p> |
|
214 <p> |
|
215 Note: The widget is just hidden. |
|
216 </p> |
166 <a NAME="EricTextEditSearchWidget.__find" ID="EricTextEditSearchWidget.__find"></a> |
217 <a NAME="EricTextEditSearchWidget.__find" ID="EricTextEditSearchWidget.__find"></a> |
167 <h4>EricTextEditSearchWidget.__find</h4> |
218 <h4>EricTextEditSearchWidget.__find</h4> |
168 <b>__find</b>(<i>backwards</i>) |
219 <b>__find</b>(<i>backwards</i>) |
169 |
220 |
170 <p> |
221 <p> |
171 Private method to search the associated text edit. |
222 Private method to search the associated text edit. |
172 </p> |
223 </p> |
173 <dl> |
224 <dl> |
174 |
225 |
175 <dt><i>backwards</i></dt> |
226 <dt><i>backwards</i> (bool)</dt> |
176 <dd> |
227 <dd> |
177 flag indicating a backwards search (boolean) |
228 flag indicating a backwards search |
178 </dd> |
229 </dd> |
179 </dl> |
230 </dl> |
180 <a NAME="EricTextEditSearchWidget.__findByReturnPressed" ID="EricTextEditSearchWidget.__findByReturnPressed"></a> |
231 <a NAME="EricTextEditSearchWidget.__findByReturnPressed" ID="EricTextEditSearchWidget.__findByReturnPressed"></a> |
181 <h4>EricTextEditSearchWidget.__findByReturnPressed</h4> |
232 <h4>EricTextEditSearchWidget.__findByReturnPressed</h4> |
182 <b>__findByReturnPressed</b>(<i></i>) |
233 <b>__findByReturnPressed</b>(<i></i>) |
183 |
234 |
184 <p> |
235 <p> |
185 Private slot to handle the returnPressed signal of the findtext |
236 Private slot to handle the returnPressed signal of the findtext |
186 combobox. |
237 combobox. |
187 </p> |
238 </p> |
188 <a NAME="EricTextEditSearchWidget.__findNextPrevCallback" ID="EricTextEditSearchWidget.__findNextPrevCallback"></a> |
|
189 <h4>EricTextEditSearchWidget.__findNextPrevCallback</h4> |
|
190 <b>__findNextPrevCallback</b>(<i>found</i>) |
|
191 |
|
192 <p> |
|
193 Private method to process the result of the last search. |
|
194 </p> |
|
195 <dl> |
|
196 |
|
197 <dt><i>found</i> (bool)</dt> |
|
198 <dd> |
|
199 flag indicating if the last search succeeded |
|
200 </dd> |
|
201 </dl> |
|
202 <a NAME="EricTextEditSearchWidget.__findPrevNextQTextEdit" ID="EricTextEditSearchWidget.__findPrevNextQTextEdit"></a> |
239 <a NAME="EricTextEditSearchWidget.__findPrevNextQTextEdit" ID="EricTextEditSearchWidget.__findPrevNextQTextEdit"></a> |
203 <h4>EricTextEditSearchWidget.__findPrevNextQTextEdit</h4> |
240 <h4>EricTextEditSearchWidget.__findPrevNextQTextEdit</h4> |
204 <b>__findPrevNextQTextEdit</b>(<i>backwards</i>) |
241 <b>__findPrevNextQTextEdit</b>(<i>backwards</i>) |
205 |
242 |
206 <p> |
243 <p> |
239 <dt><i>backwards</i> (bool)</dt> |
264 <dt><i>backwards</i> (bool)</dt> |
240 <dd> |
265 <dd> |
241 flag indicating a backwards search |
266 flag indicating a backwards search |
242 </dd> |
267 </dd> |
243 </dl> |
268 </dl> |
|
269 <a NAME="EricTextEditSearchWidget.__findTextFinished" ID="EricTextEditSearchWidget.__findTextFinished"></a> |
|
270 <h4>EricTextEditSearchWidget.__findTextFinished</h4> |
|
271 <b>__findTextFinished</b>(<i>result</i>) |
|
272 |
|
273 <p> |
|
274 Private slot handling the findTextFinished signal of the web page. |
|
275 </p> |
|
276 <dl> |
|
277 |
|
278 <dt><i>result</i> (QWebEngineFindTextResult)</dt> |
|
279 <dd> |
|
280 reference to the QWebEngineFindTextResult object of the |
|
281 last search |
|
282 </dd> |
|
283 </dl> |
244 <a NAME="EricTextEditSearchWidget.__setFindtextComboBackground" ID="EricTextEditSearchWidget.__setFindtextComboBackground"></a> |
284 <a NAME="EricTextEditSearchWidget.__setFindtextComboBackground" ID="EricTextEditSearchWidget.__setFindtextComboBackground"></a> |
245 <h4>EricTextEditSearchWidget.__setFindtextComboBackground</h4> |
285 <h4>EricTextEditSearchWidget.__setFindtextComboBackground</h4> |
246 <b>__setFindtextComboBackground</b>(<i>error</i>) |
286 <b>__setFindtextComboBackground</b>(<i>error</i>) |
247 |
287 |
248 <p> |
288 <p> |
249 Private slot to change the findtext combo background to indicate |
289 Private slot to change the findtext combo background to indicate |
250 errors. |
290 errors. |
251 </p> |
291 </p> |
252 <dl> |
292 <dl> |
253 |
293 |
254 <dt><i>error</i></dt> |
294 <dt><i>error</i> (bool)</dt> |
255 <dd> |
295 <dd> |
256 flag indicating an error condition (boolean) |
296 flag indicating an error condition |
257 </dd> |
297 </dd> |
258 </dl> |
298 </dl> |
259 <a NAME="EricTextEditSearchWidget.__setSearchButtons" ID="EricTextEditSearchWidget.__setSearchButtons"></a> |
299 <a NAME="EricTextEditSearchWidget.__setSearchButtons" ID="EricTextEditSearchWidget.__setSearchButtons"></a> |
260 <h4>EricTextEditSearchWidget.__setSearchButtons</h4> |
300 <h4>EricTextEditSearchWidget.__setSearchButtons</h4> |
261 <b>__setSearchButtons</b>(<i>enabled</i>) |
301 <b>__setSearchButtons</b>(<i>enabled</i>) |
263 <p> |
303 <p> |
264 Private slot to set the state of the search buttons. |
304 Private slot to set the state of the search buttons. |
265 </p> |
305 </p> |
266 <dl> |
306 <dl> |
267 |
307 |
268 <dt><i>enabled</i></dt> |
308 <dt><i>enabled</i> (bool)</dt> |
269 <dd> |
309 <dd> |
270 flag indicating the state (boolean) |
310 flag indicating the state |
271 </dd> |
311 </dd> |
272 </dl> |
312 </dl> |
273 <a NAME="EricTextEditSearchWidget.__setupUi" ID="EricTextEditSearchWidget.__setupUi"></a> |
313 <a NAME="EricTextEditSearchWidget.__setupUi" ID="EricTextEditSearchWidget.__setupUi"></a> |
274 <h4>EricTextEditSearchWidget.__setupUi</h4> |
314 <h4>EricTextEditSearchWidget.__setupUi</h4> |
275 <b>__setupUi</b>(<i>widthForHeight</i>) |
315 <b>__setupUi</b>(<i>widthForHeight, enableClose</i>) |
276 |
316 |
277 <p> |
317 <p> |
278 Private method to generate the UI. |
318 Private method to generate the UI. |
279 </p> |
319 </p> |
280 <dl> |
320 <dl> |
281 |
321 |
282 <dt><i>widthForHeight</i> (bool)</dt> |
322 <dt><i>widthForHeight</i> (bool)</dt> |
283 <dd> |
323 <dd> |
284 flag indicating to prefer width for height |
324 flag indicating to prefer width for height |
285 </dd> |
325 </dd> |
286 </dl> |
326 <dt><i>enableClose</i> (bool)</dt> |
|
327 <dd> |
|
328 flag indicating to show a close button |
|
329 </dd> |
|
330 </dl> |
|
331 <a NAME="EricTextEditSearchWidget.activate" ID="EricTextEditSearchWidget.activate"></a> |
|
332 <h4>EricTextEditSearchWidget.activate</h4> |
|
333 <b>activate</b>(<i></i>) |
|
334 |
|
335 <p> |
|
336 Public slot to activate the widget. |
|
337 </p> |
287 <a NAME="EricTextEditSearchWidget.attachTextEdit" ID="EricTextEditSearchWidget.attachTextEdit"></a> |
338 <a NAME="EricTextEditSearchWidget.attachTextEdit" ID="EricTextEditSearchWidget.attachTextEdit"></a> |
288 <h4>EricTextEditSearchWidget.attachTextEdit</h4> |
339 <h4>EricTextEditSearchWidget.attachTextEdit</h4> |
289 <b>attachTextEdit</b>(<i>textedit, editType=EricTextEditType.QTEXTEDIT</i>) |
340 <b>attachTextEdit</b>(<i>textedit, editType=EricTextEditType.QTEXTEDIT</i>) |
290 |
341 |
291 <p> |
342 <p> |
292 Public method to attach a QTextEdit widget. |
343 Public method to attach a QTextEdit or QWebEngineView widget. |
293 </p> |
344 </p> |
294 <dl> |
345 <dl> |
295 |
346 |
296 <dt><i>textedit</i> (QTextEdit, QWebEngineView or QWebView)</dt> |
347 <dt><i>textedit</i> (QTextEdit, QTextBrowser or QWebEngineView)</dt> |
297 <dd> |
348 <dd> |
298 reference to the edit widget to be attached |
349 reference to the edit widget to be attached |
299 </dd> |
350 </dd> |
300 <dt><i>editType</i> (EricTextEditType)</dt> |
351 <dt><i>editType</i> (EricTextEditType)</dt> |
301 <dd> |
352 <dd> |
302 type of the attached edit widget |
353 type of the attached edit widget |
303 </dd> |
354 </dd> |
304 </dl> |
355 </dl> |
|
356 <a NAME="EricTextEditSearchWidget.deactivate" ID="EricTextEditSearchWidget.deactivate"></a> |
|
357 <h4>EricTextEditSearchWidget.deactivate</h4> |
|
358 <b>deactivate</b>(<i></i>) |
|
359 |
|
360 <p> |
|
361 Public slot to deactivate the widget. |
|
362 </p> |
|
363 <a NAME="EricTextEditSearchWidget.detachTextEdit" ID="EricTextEditSearchWidget.detachTextEdit"></a> |
|
364 <h4>EricTextEditSearchWidget.detachTextEdit</h4> |
|
365 <b>detachTextEdit</b>(<i></i>) |
|
366 |
|
367 <p> |
|
368 Public method to detach the current text edit. |
|
369 </p> |
|
370 <a NAME="EricTextEditSearchWidget.findNext" ID="EricTextEditSearchWidget.findNext"></a> |
|
371 <h4>EricTextEditSearchWidget.findNext</h4> |
|
372 <b>findNext</b>(<i></i>) |
|
373 |
|
374 <p> |
|
375 Public slot to find the next occurrence of the current search term. |
|
376 </p> |
|
377 <a NAME="EricTextEditSearchWidget.findPrev" ID="EricTextEditSearchWidget.findPrev"></a> |
|
378 <h4>EricTextEditSearchWidget.findPrev</h4> |
|
379 <b>findPrev</b>(<i></i>) |
|
380 |
|
381 <p> |
|
382 Public slot to find the previous occurrence of the current search term. |
|
383 </p> |
305 <a NAME="EricTextEditSearchWidget.keyPressEvent" ID="EricTextEditSearchWidget.keyPressEvent"></a> |
384 <a NAME="EricTextEditSearchWidget.keyPressEvent" ID="EricTextEditSearchWidget.keyPressEvent"></a> |
306 <h4>EricTextEditSearchWidget.keyPressEvent</h4> |
385 <h4>EricTextEditSearchWidget.keyPressEvent</h4> |
307 <b>keyPressEvent</b>(<i>event</i>) |
386 <b>keyPressEvent</b>(<i>event</i>) |
308 |
387 |
309 <p> |
388 <p> |
310 Protected slot to handle key press events. |
389 Protected slot to handle key press events. |
311 </p> |
390 </p> |
312 <dl> |
391 <dl> |
313 |
392 |
314 <dt><i>event</i></dt> |
393 <dt><i>event</i> (QKeyEvent)</dt> |
315 <dd> |
394 <dd> |
316 reference to the key press event (QKeyEvent) |
395 reference to the key press event |
317 </dd> |
396 </dd> |
318 </dl> |
397 </dl> |
319 <a NAME="EricTextEditSearchWidget.on_findNextButton_clicked" ID="EricTextEditSearchWidget.on_findNextButton_clicked"></a> |
398 <a NAME="EricTextEditSearchWidget.on_findNextButton_clicked" ID="EricTextEditSearchWidget.on_findNextButton_clicked"></a> |
320 <h4>EricTextEditSearchWidget.on_findNextButton_clicked</h4> |
399 <h4>EricTextEditSearchWidget.on_findNextButton_clicked</h4> |
321 <b>on_findNextButton_clicked</b>(<i></i>) |
400 <b>on_findNextButton_clicked</b>(<i></i>) |