|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.WebBrowser.WebBrowserView</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.WebBrowser.WebBrowserView</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing the web browser using QWebEngineView. |
|
13 </p> |
|
14 <h3>Global Attributes</h3> |
|
15 |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 |
|
21 <table> |
|
22 |
|
23 <tr> |
|
24 <td><a href="#WebBrowserView">WebBrowserView</a></td> |
|
25 <td>Class implementing the web browser view widget.</td> |
|
26 </tr> |
|
27 </table> |
|
28 <h3>Functions</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <hr /> |
|
34 <hr /> |
|
35 <a NAME="WebBrowserView" ID="WebBrowserView"></a> |
|
36 <h2>WebBrowserView</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing the web browser view widget. |
|
40 </p> |
|
41 <h3>Signals</h3> |
|
42 <dl> |
|
43 |
|
44 <dt>backwardAvailable(bool)</dt> |
|
45 <dd> |
|
46 emitted after the current URL has changed |
|
47 </dd> |
|
48 <dt>faviconChanged()</dt> |
|
49 <dd> |
|
50 emitted to signal a changed web site icon |
|
51 </dd> |
|
52 <dt>forwardAvailable(bool)</dt> |
|
53 <dd> |
|
54 emitted after the current URL has changed |
|
55 </dd> |
|
56 <dt>highlighted(str)</dt> |
|
57 <dd> |
|
58 emitted, when the mouse hovers over a link |
|
59 </dd> |
|
60 <dt>safeBrowsingAbort()</dt> |
|
61 <dd> |
|
62 emitted to indicate an abort due to a safe |
|
63 browsing event |
|
64 </dd> |
|
65 <dt>safeBrowsingBad(threatType, threatMessages)</dt> |
|
66 <dd> |
|
67 emitted to indicate a |
|
68 malicious web site as determined by safe browsing |
|
69 </dd> |
|
70 <dt>search(QUrl)</dt> |
|
71 <dd> |
|
72 emitted, when a search is requested |
|
73 </dd> |
|
74 <dt>showMessage(str)</dt> |
|
75 <dd> |
|
76 emitted to show a message in the main window |
|
77 status bar |
|
78 </dd> |
|
79 <dt>sourceChanged(QUrl)</dt> |
|
80 <dd> |
|
81 emitted after the current URL has changed |
|
82 </dd> |
|
83 <dt>zoomValueChanged(int)</dt> |
|
84 <dd> |
|
85 emitted to signal a change of the zoom value |
|
86 </dd> |
|
87 </dl> |
|
88 <h3>Derived from</h3> |
|
89 QWebEngineView |
|
90 <h3>Class Attributes</h3> |
|
91 |
|
92 <table> |
|
93 <tr><td>ZoomLevelDefault</td></tr><tr><td>ZoomLevels</td></tr> |
|
94 </table> |
|
95 <h3>Class Methods</h3> |
|
96 |
|
97 <table> |
|
98 <tr><td>None</td></tr> |
|
99 </table> |
|
100 <h3>Methods</h3> |
|
101 |
|
102 <table> |
|
103 |
|
104 <tr> |
|
105 <td><a href="#WebBrowserView.__init__">WebBrowserView</a></td> |
|
106 <td>Constructor</td> |
|
107 </tr> |
|
108 <tr> |
|
109 <td><a href="#WebBrowserView.__addBookmarkCallback">__addBookmarkCallback</a></td> |
|
110 <td>Private callback method of __addBookmark().</td> |
|
111 </tr> |
|
112 <tr> |
|
113 <td><a href="#WebBrowserView.__addSearchEngine">__addSearchEngine</a></td> |
|
114 <td>Private slot to add a new search engine.</td> |
|
115 </tr> |
|
116 <tr> |
|
117 <td><a href="#WebBrowserView.__addSpeedDial">__addSpeedDial</a></td> |
|
118 <td>Private slot to add a new speed dial.</td> |
|
119 </tr> |
|
120 <tr> |
|
121 <td><a href="#WebBrowserView.__adjustBookmark">__adjustBookmark</a></td> |
|
122 <td>Private slot to adjust the 'lastModified' value of bookmarks.</td> |
|
123 </tr> |
|
124 <tr> |
|
125 <td><a href="#WebBrowserView.__blockImage">__blockImage</a></td> |
|
126 <td>Private slot to add a block rule for an image URL.</td> |
|
127 </tr> |
|
128 <tr> |
|
129 <td><a href="#WebBrowserView.__bookmarkLink">__bookmarkLink</a></td> |
|
130 <td>Private slot to bookmark a link via the context menu.</td> |
|
131 </tr> |
|
132 <tr> |
|
133 <td><a href="#WebBrowserView.__checkForForm">__checkForForm</a></td> |
|
134 <td>Private method to check the given position for an open search form.</td> |
|
135 </tr> |
|
136 <tr> |
|
137 <td><a href="#WebBrowserView.__checkForFormCallback">__checkForFormCallback</a></td> |
|
138 <td>Private method handling the __checkForForm result.</td> |
|
139 </tr> |
|
140 <tr> |
|
141 <td><a href="#WebBrowserView.__configureSpeedDial">__configureSpeedDial</a></td> |
|
142 <td>Private slot to configure the speed dial.</td> |
|
143 </tr> |
|
144 <tr> |
|
145 <td><a href="#WebBrowserView.__copyImage">__copyImage</a></td> |
|
146 <td>Private slot to copy an image to the clipboard.</td> |
|
147 </tr> |
|
148 <tr> |
|
149 <td><a href="#WebBrowserView.__copyLink">__copyLink</a></td> |
|
150 <td>Private slot to copy a link to the clipboard.</td> |
|
151 </tr> |
|
152 <tr> |
|
153 <td><a href="#WebBrowserView.__createContextMenu">__createContextMenu</a></td> |
|
154 <td>Private method to populate the context menu.</td> |
|
155 </tr> |
|
156 <tr> |
|
157 <td><a href="#WebBrowserView.__createImageContextMenu">__createImageContextMenu</a></td> |
|
158 <td>Private method to populate the context menu for images.</td> |
|
159 </tr> |
|
160 <tr> |
|
161 <td><a href="#WebBrowserView.__createLinkContextMenu">__createLinkContextMenu</a></td> |
|
162 <td>Private method to populate the context menu for URLs.</td> |
|
163 </tr> |
|
164 <tr> |
|
165 <td><a href="#WebBrowserView.__createMediaContextMenu">__createMediaContextMenu</a></td> |
|
166 <td>Private method to populate the context menu for media elements.</td> |
|
167 </tr> |
|
168 <tr> |
|
169 <td><a href="#WebBrowserView.__createNewPage">__createNewPage</a></td> |
|
170 <td>Private method to create a new page object.</td> |
|
171 </tr> |
|
172 <tr> |
|
173 <td><a href="#WebBrowserView.__createPageContextMenu">__createPageContextMenu</a></td> |
|
174 <td>Private method to populate the basic context menu.</td> |
|
175 </tr> |
|
176 <tr> |
|
177 <td><a href="#WebBrowserView.__createSelectedTextContextMenu">__createSelectedTextContextMenu</a></td> |
|
178 <td>Private method to populate the context menu for selected text.</td> |
|
179 </tr> |
|
180 <tr> |
|
181 <td><a href="#WebBrowserView.__currentEngineChanged">__currentEngineChanged</a></td> |
|
182 <td>Private slot to track a change of the current search engine.</td> |
|
183 </tr> |
|
184 <tr> |
|
185 <td><a href="#WebBrowserView.__downloadImage">__downloadImage</a></td> |
|
186 <td>Private slot to download an image and save it to disk.</td> |
|
187 </tr> |
|
188 <tr> |
|
189 <td><a href="#WebBrowserView.__downloadLink">__downloadLink</a></td> |
|
190 <td>Private slot to download a link and save it to disk.</td> |
|
191 </tr> |
|
192 <tr> |
|
193 <td><a href="#WebBrowserView.__downloadMedia">__downloadMedia</a></td> |
|
194 <td>Private slot to download a media and save it to disk.</td> |
|
195 </tr> |
|
196 <tr> |
|
197 <td><a href="#WebBrowserView.__findTextFinished">__findTextFinished</a></td> |
|
198 <td>Private slot handling the findTextFinished signal of the web page.</td> |
|
199 </tr> |
|
200 <tr> |
|
201 <td><a href="#WebBrowserView.__getSavePageFileNameAndFormat">__getSavePageFileNameAndFormat</a></td> |
|
202 <td>Private method to get the file name to save the page to.</td> |
|
203 </tr> |
|
204 <tr> |
|
205 <td><a href="#WebBrowserView.__iconLoaded">__iconLoaded</a></td> |
|
206 <td>Private slot handling the loaded web site icon.</td> |
|
207 </tr> |
|
208 <tr> |
|
209 <td><a href="#WebBrowserView.__iconUrlChanged">__iconUrlChanged</a></td> |
|
210 <td>Private slot to handle the iconUrlChanged signal.</td> |
|
211 </tr> |
|
212 <tr> |
|
213 <td><a href="#WebBrowserView.__isUrlValid">__isUrlValid</a></td> |
|
214 <td>Private method to check a URL for validity.</td> |
|
215 </tr> |
|
216 <tr> |
|
217 <td><a href="#WebBrowserView.__levelForZoom">__levelForZoom</a></td> |
|
218 <td>Private method determining the zoom level index given a zoom factor.</td> |
|
219 </tr> |
|
220 <tr> |
|
221 <td><a href="#WebBrowserView.__linkHovered">__linkHovered</a></td> |
|
222 <td>Private slot to handle the linkHovered signal.</td> |
|
223 </tr> |
|
224 <tr> |
|
225 <td><a href="#WebBrowserView.__loadFinished">__loadFinished</a></td> |
|
226 <td>Private method to handle the loadFinished signal.</td> |
|
227 </tr> |
|
228 <tr> |
|
229 <td><a href="#WebBrowserView.__loadProgress">__loadProgress</a></td> |
|
230 <td>Private method to handle the loadProgress signal.</td> |
|
231 </tr> |
|
232 <tr> |
|
233 <td><a href="#WebBrowserView.__loadStarted">__loadStarted</a></td> |
|
234 <td>Private method to handle the loadStarted signal.</td> |
|
235 </tr> |
|
236 <tr> |
|
237 <td><a href="#WebBrowserView.__muteMedia">__muteMedia</a></td> |
|
238 <td>Private slot to (un)mute the selected media.</td> |
|
239 </tr> |
|
240 <tr> |
|
241 <td><a href="#WebBrowserView.__openLinkInNewPrivateWindow">__openLinkInNewPrivateWindow</a></td> |
|
242 <td>Private slot called by the context menu to open a link in a new private window.</td> |
|
243 </tr> |
|
244 <tr> |
|
245 <td><a href="#WebBrowserView.__openLinkInNewTab">__openLinkInNewTab</a></td> |
|
246 <td>Private method called by the context menu to open a link in a new tab.</td> |
|
247 </tr> |
|
248 <tr> |
|
249 <td><a href="#WebBrowserView.__openLinkInNewWindow">__openLinkInNewWindow</a></td> |
|
250 <td>Private slot called by the context menu to open a link in a new window.</td> |
|
251 </tr> |
|
252 <tr> |
|
253 <td><a href="#WebBrowserView.__pauseMedia">__pauseMedia</a></td> |
|
254 <td>Private slot to pause or play the selected media.</td> |
|
255 </tr> |
|
256 <tr> |
|
257 <td><a href="#WebBrowserView.__printPage">__printPage</a></td> |
|
258 <td>Private slot to support printing from the web page.</td> |
|
259 </tr> |
|
260 <tr> |
|
261 <td><a href="#WebBrowserView.__quotaRequested">__quotaRequested</a></td> |
|
262 <td>Private slot to handle quota requests of the web page.</td> |
|
263 </tr> |
|
264 <tr> |
|
265 <td><a href="#WebBrowserView.__reloadAllSpeedDials">__reloadAllSpeedDials</a></td> |
|
266 <td>Private slot to reload all speed dials.</td> |
|
267 </tr> |
|
268 <tr> |
|
269 <td><a href="#WebBrowserView.__renderPreview">__renderPreview</a></td> |
|
270 <td>Private slot to render a preview pixmap after the page was loaded.</td> |
|
271 </tr> |
|
272 <tr> |
|
273 <td><a href="#WebBrowserView.__renderProcessTerminated">__renderProcessTerminated</a></td> |
|
274 <td>Private slot handling a crash of the web page render process.</td> |
|
275 </tr> |
|
276 <tr> |
|
277 <td><a href="#WebBrowserView.__replaceMisspelledWord">__replaceMisspelledWord</a></td> |
|
278 <td>Private slot to replace a misspelled word under the context menu.</td> |
|
279 </tr> |
|
280 <tr> |
|
281 <td><a href="#WebBrowserView.__resetSpeedDials">__resetSpeedDials</a></td> |
|
282 <td>Private slot to reset all speed dials to the default pages.</td> |
|
283 </tr> |
|
284 <tr> |
|
285 <td><a href="#WebBrowserView.__searchDefaultRequested">__searchDefaultRequested</a></td> |
|
286 <td>Private slot to search for some text with the current search engine.</td> |
|
287 </tr> |
|
288 <tr> |
|
289 <td><a href="#WebBrowserView.__searchImage">__searchImage</a></td> |
|
290 <td>Private slot to search for an image URL.</td> |
|
291 </tr> |
|
292 <tr> |
|
293 <td><a href="#WebBrowserView.__searchRequested">__searchRequested</a></td> |
|
294 <td>Private slot to search for some text with a selected search engine.</td> |
|
295 </tr> |
|
296 <tr> |
|
297 <td><a href="#WebBrowserView.__selectClientCertificate">__selectClientCertificate</a></td> |
|
298 <td>Private slot to handle the client certificate selection request.</td> |
|
299 </tr> |
|
300 <tr> |
|
301 <td><a href="#WebBrowserView.__sendLink">__sendLink</a></td> |
|
302 <td>Private slot to send a link via email.</td> |
|
303 </tr> |
|
304 <tr> |
|
305 <td><a href="#WebBrowserView.__setRwhvqt">__setRwhvqt</a></td> |
|
306 <td>Private slot to set widget that receives input events.</td> |
|
307 </tr> |
|
308 <tr> |
|
309 <td><a href="#WebBrowserView.__showEventSlot">__showEventSlot</a></td> |
|
310 <td>Private slot to perform actions when the view is shown and the event loop is running.</td> |
|
311 </tr> |
|
312 <tr> |
|
313 <td><a href="#WebBrowserView.__showTabCrashPage">__showTabCrashPage</a></td> |
|
314 <td>Private slot to show the tab crash page.</td> |
|
315 </tr> |
|
316 <tr> |
|
317 <td><a href="#WebBrowserView.__urlChanged">__urlChanged</a></td> |
|
318 <td>Private slot to handle the urlChanged signal.</td> |
|
319 </tr> |
|
320 <tr> |
|
321 <td><a href="#WebBrowserView.__virusTotal">__virusTotal</a></td> |
|
322 <td>Private slot to scan the selected URL with VirusTotal.</td> |
|
323 </tr> |
|
324 <tr> |
|
325 <td><a href="#WebBrowserView.__webInspector">__webInspector</a></td> |
|
326 <td>Private slot to show the web inspector window.</td> |
|
327 </tr> |
|
328 <tr> |
|
329 <td><a href="#WebBrowserView._contextMenuEvent">_contextMenuEvent</a></td> |
|
330 <td>Protected method called to create a context menu.</td> |
|
331 </tr> |
|
332 <tr> |
|
333 <td><a href="#WebBrowserView._gestureEvent">_gestureEvent</a></td> |
|
334 <td>Protected method handling gesture events.</td> |
|
335 </tr> |
|
336 <tr> |
|
337 <td><a href="#WebBrowserView._keyPressEvent">_keyPressEvent</a></td> |
|
338 <td>Protected method called by a key press.</td> |
|
339 </tr> |
|
340 <tr> |
|
341 <td><a href="#WebBrowserView._keyReleaseEvent">_keyReleaseEvent</a></td> |
|
342 <td>Protected method called by a key release.</td> |
|
343 </tr> |
|
344 <tr> |
|
345 <td><a href="#WebBrowserView._mouseMoveEvent">_mouseMoveEvent</a></td> |
|
346 <td>Protected method to handle mouse move events.</td> |
|
347 </tr> |
|
348 <tr> |
|
349 <td><a href="#WebBrowserView._mousePressEvent">_mousePressEvent</a></td> |
|
350 <td>Protected method called by a mouse press event.</td> |
|
351 </tr> |
|
352 <tr> |
|
353 <td><a href="#WebBrowserView._mouseReleaseEvent">_mouseReleaseEvent</a></td> |
|
354 <td>Protected method called by a mouse release event.</td> |
|
355 </tr> |
|
356 <tr> |
|
357 <td><a href="#WebBrowserView._wheelEvent">_wheelEvent</a></td> |
|
358 <td>Protected method to handle wheel events.</td> |
|
359 </tr> |
|
360 <tr> |
|
361 <td><a href="#WebBrowserView.activateSession">activateSession</a></td> |
|
362 <td>Public slot to activate a restored session.</td> |
|
363 </tr> |
|
364 <tr> |
|
365 <td><a href="#WebBrowserView.addBookmark">addBookmark</a></td> |
|
366 <td>Public slot to bookmark the current page.</td> |
|
367 </tr> |
|
368 <tr> |
|
369 <td><a href="#WebBrowserView.backward">backward</a></td> |
|
370 <td>Public slot to move backwards in history.</td> |
|
371 </tr> |
|
372 <tr> |
|
373 <td><a href="#WebBrowserView.checkRSS">checkRSS</a></td> |
|
374 <td>Public method to check, if the loaded page contains feed links.</td> |
|
375 </tr> |
|
376 <tr> |
|
377 <td><a href="#WebBrowserView.clearHistory">clearHistory</a></td> |
|
378 <td>Public slot to clear the history.</td> |
|
379 </tr> |
|
380 <tr> |
|
381 <td><a href="#WebBrowserView.closeWebInspector">closeWebInspector</a></td> |
|
382 <td>Public slot to close the web inspector.</td> |
|
383 </tr> |
|
384 <tr> |
|
385 <td><a href="#WebBrowserView.contextMenuEvent">contextMenuEvent</a></td> |
|
386 <td>Protected method called to create a context menu.</td> |
|
387 </tr> |
|
388 <tr> |
|
389 <td><a href="#WebBrowserView.copy">copy</a></td> |
|
390 <td>Public slot to copy the selected text.</td> |
|
391 </tr> |
|
392 <tr> |
|
393 <td><a href="#WebBrowserView.createWindow">createWindow</a></td> |
|
394 <td>Public method called, when a new window should be created.</td> |
|
395 </tr> |
|
396 <tr> |
|
397 <td><a href="#WebBrowserView.cut">cut</a></td> |
|
398 <td>Public slot to cut the selected text.</td> |
|
399 </tr> |
|
400 <tr> |
|
401 <td><a href="#WebBrowserView.documentTitle">documentTitle</a></td> |
|
402 <td>Public method to return the title of the loaded page.</td> |
|
403 </tr> |
|
404 <tr> |
|
405 <td><a href="#WebBrowserView.dragEnterEvent">dragEnterEvent</a></td> |
|
406 <td>Protected method called by a drag enter event.</td> |
|
407 </tr> |
|
408 <tr> |
|
409 <td><a href="#WebBrowserView.dragMoveEvent">dragMoveEvent</a></td> |
|
410 <td>Protected method called by a drag move event.</td> |
|
411 </tr> |
|
412 <tr> |
|
413 <td><a href="#WebBrowserView.dropEvent">dropEvent</a></td> |
|
414 <td>Protected method called by a drop event.</td> |
|
415 </tr> |
|
416 <tr> |
|
417 <td><a href="#WebBrowserView.event">event</a></td> |
|
418 <td>Public method handling events.</td> |
|
419 </tr> |
|
420 <tr> |
|
421 <td><a href="#WebBrowserView.eventFilter">eventFilter</a></td> |
|
422 <td>Public method to process event for other objects.</td> |
|
423 </tr> |
|
424 <tr> |
|
425 <td><a href="#WebBrowserView.extractSessionMetaData">extractSessionMetaData</a></td> |
|
426 <td>Public method to extract some session meta data elements needed by the tab widget in case of deferred loading.</td> |
|
427 </tr> |
|
428 <tr> |
|
429 <td><a href="#WebBrowserView.findNextPrev">findNextPrev</a></td> |
|
430 <td>Public slot to find the next occurrence of a text.</td> |
|
431 </tr> |
|
432 <tr> |
|
433 <td><a href="#WebBrowserView.forward">forward</a></td> |
|
434 <td>Public slot to move forward in history.</td> |
|
435 </tr> |
|
436 <tr> |
|
437 <td><a href="#WebBrowserView.getPreview">getPreview</a></td> |
|
438 <td>Public method to get the preview pixmap.</td> |
|
439 </tr> |
|
440 <tr> |
|
441 <td><a href="#WebBrowserView.getRSS">getRSS</a></td> |
|
442 <td>Public method to get the extracted RSS feeds.</td> |
|
443 </tr> |
|
444 <tr> |
|
445 <td><a href="#WebBrowserView.getSafeBrowsingStatus">getSafeBrowsingStatus</a></td> |
|
446 <td>Public method to get the safe browsing status of the current page.</td> |
|
447 </tr> |
|
448 <tr> |
|
449 <td><a href="#WebBrowserView.getSessionData">getSessionData</a></td> |
|
450 <td>Public method to populate the session data.</td> |
|
451 </tr> |
|
452 <tr> |
|
453 <td><a href="#WebBrowserView.hasRSS">hasRSS</a></td> |
|
454 <td>Public method to check, if the loaded page has RSS links.</td> |
|
455 </tr> |
|
456 <tr> |
|
457 <td><a href="#WebBrowserView.hasSelection">hasSelection</a></td> |
|
458 <td>Public method to determine, if there is some text selected.</td> |
|
459 </tr> |
|
460 <tr> |
|
461 <td><a href="#WebBrowserView.home">home</a></td> |
|
462 <td>Public slot to move to the first page loaded.</td> |
|
463 </tr> |
|
464 <tr> |
|
465 <td><a href="#WebBrowserView.icon">icon</a></td> |
|
466 <td>Public method to get the web site icon.</td> |
|
467 </tr> |
|
468 <tr> |
|
469 <td><a href="#WebBrowserView.inputWidget">inputWidget</a></td> |
|
470 <td>Public method to get a reference to the render widget.</td> |
|
471 </tr> |
|
472 <tr> |
|
473 <td><a href="#WebBrowserView.isBackwardAvailable">isBackwardAvailable</a></td> |
|
474 <td>Public method to determine, if a backwards move in history is possible.</td> |
|
475 </tr> |
|
476 <tr> |
|
477 <td><a href="#WebBrowserView.isForwardAvailable">isForwardAvailable</a></td> |
|
478 <td>Public method to determine, if a forward move in history is possible.</td> |
|
479 </tr> |
|
480 <tr> |
|
481 <td><a href="#WebBrowserView.isFullScreen">isFullScreen</a></td> |
|
482 <td>Public method to check, if full screen mode is active.</td> |
|
483 </tr> |
|
484 <tr> |
|
485 <td><a href="#WebBrowserView.isLoading">isLoading</a></td> |
|
486 <td>Public method to get the loading state.</td> |
|
487 </tr> |
|
488 <tr> |
|
489 <td><a href="#WebBrowserView.load">load</a></td> |
|
490 <td>Public method to load a web site.</td> |
|
491 </tr> |
|
492 <tr> |
|
493 <td><a href="#WebBrowserView.loadFromSessionData">loadFromSessionData</a></td> |
|
494 <td>Public method to load the session data.</td> |
|
495 </tr> |
|
496 <tr> |
|
497 <td><a href="#WebBrowserView.mainWindow">mainWindow</a></td> |
|
498 <td>Public method to get a reference to the main window.</td> |
|
499 </tr> |
|
500 <tr> |
|
501 <td><a href="#WebBrowserView.mapToViewport">mapToViewport</a></td> |
|
502 <td>Public method to map a position to the viewport.</td> |
|
503 </tr> |
|
504 <tr> |
|
505 <td><a href="#WebBrowserView.paste">paste</a></td> |
|
506 <td>Public slot to paste text from the clipboard.</td> |
|
507 </tr> |
|
508 <tr> |
|
509 <td><a href="#WebBrowserView.preferencesChanged">preferencesChanged</a></td> |
|
510 <td>Public method to indicate a change of the settings.</td> |
|
511 </tr> |
|
512 <tr> |
|
513 <td><a href="#WebBrowserView.progress">progress</a></td> |
|
514 <td>Public method to get the load progress.</td> |
|
515 </tr> |
|
516 <tr> |
|
517 <td><a href="#WebBrowserView.redo">redo</a></td> |
|
518 <td>Public slot to redo the last edit action.</td> |
|
519 </tr> |
|
520 <tr> |
|
521 <td><a href="#WebBrowserView.reload">reload</a></td> |
|
522 <td>Public slot to reload the current page.</td> |
|
523 </tr> |
|
524 <tr> |
|
525 <td><a href="#WebBrowserView.reloadBypassingCache">reloadBypassingCache</a></td> |
|
526 <td>Public slot to reload the current page bypassing the cache.</td> |
|
527 </tr> |
|
528 <tr> |
|
529 <td><a href="#WebBrowserView.requestFullScreen">requestFullScreen</a></td> |
|
530 <td>Public method to request full screen mode.</td> |
|
531 </tr> |
|
532 <tr> |
|
533 <td><a href="#WebBrowserView.saveAs">saveAs</a></td> |
|
534 <td>Public method to save the current page to a file.</td> |
|
535 </tr> |
|
536 <tr> |
|
537 <td><a href="#WebBrowserView.selectAll">selectAll</a></td> |
|
538 <td>Public slot to select all text.</td> |
|
539 </tr> |
|
540 <tr> |
|
541 <td><a href="#WebBrowserView.setSource">setSource</a></td> |
|
542 <td>Public method used to set the source to be displayed.</td> |
|
543 </tr> |
|
544 <tr> |
|
545 <td><a href="#WebBrowserView.setZoomValue">setZoomValue</a></td> |
|
546 <td>Public method to set the zoom value.</td> |
|
547 </tr> |
|
548 <tr> |
|
549 <td><a href="#WebBrowserView.showEvent">showEvent</a></td> |
|
550 <td>Protected method to handle show events.</td> |
|
551 </tr> |
|
552 <tr> |
|
553 <td><a href="#WebBrowserView.source">source</a></td> |
|
554 <td>Public method to return the URL of the loaded page.</td> |
|
555 </tr> |
|
556 <tr> |
|
557 <td><a href="#WebBrowserView.storeSessionData">storeSessionData</a></td> |
|
558 <td>Public method to store session data to be restored later on.</td> |
|
559 </tr> |
|
560 <tr> |
|
561 <td><a href="#WebBrowserView.tabWidget">tabWidget</a></td> |
|
562 <td>Public method to get a reference to the tab widget containing this view.</td> |
|
563 </tr> |
|
564 <tr> |
|
565 <td><a href="#WebBrowserView.title">title</a></td> |
|
566 <td>Public method to get the view title.</td> |
|
567 </tr> |
|
568 <tr> |
|
569 <td><a href="#WebBrowserView.undo">undo</a></td> |
|
570 <td>Public slot to undo the last edit action.</td> |
|
571 </tr> |
|
572 <tr> |
|
573 <td><a href="#WebBrowserView.unselect">unselect</a></td> |
|
574 <td>Public slot to clear the current selection.</td> |
|
575 </tr> |
|
576 <tr> |
|
577 <td><a href="#WebBrowserView.zoomIn">zoomIn</a></td> |
|
578 <td>Public slot to zoom into the page.</td> |
|
579 </tr> |
|
580 <tr> |
|
581 <td><a href="#WebBrowserView.zoomOut">zoomOut</a></td> |
|
582 <td>Public slot to zoom out of the page.</td> |
|
583 </tr> |
|
584 <tr> |
|
585 <td><a href="#WebBrowserView.zoomReset">zoomReset</a></td> |
|
586 <td>Public method to reset the zoom factor.</td> |
|
587 </tr> |
|
588 <tr> |
|
589 <td><a href="#WebBrowserView.zoomValue">zoomValue</a></td> |
|
590 <td>Public method to get the current zoom value.</td> |
|
591 </tr> |
|
592 </table> |
|
593 <h3>Static Methods</h3> |
|
594 |
|
595 <table> |
|
596 <tr><td>None</td></tr> |
|
597 </table> |
|
598 |
|
599 <a NAME="WebBrowserView.__init__" ID="WebBrowserView.__init__"></a> |
|
600 <h4>WebBrowserView (Constructor)</h4> |
|
601 <b>WebBrowserView</b>(<i>mainWindow, parent=None, name=""</i>) |
|
602 |
|
603 <p> |
|
604 Constructor |
|
605 </p> |
|
606 <dl> |
|
607 |
|
608 <dt><i>mainWindow</i></dt> |
|
609 <dd> |
|
610 reference to the main window (WebBrowserWindow) |
|
611 </dd> |
|
612 <dt><i>parent</i></dt> |
|
613 <dd> |
|
614 parent widget of this window (QWidget) |
|
615 </dd> |
|
616 <dt><i>name</i></dt> |
|
617 <dd> |
|
618 name of this window (string) |
|
619 </dd> |
|
620 </dl> |
|
621 <a NAME="WebBrowserView.__addBookmarkCallback" ID="WebBrowserView.__addBookmarkCallback"></a> |
|
622 <h4>WebBrowserView.__addBookmarkCallback</h4> |
|
623 <b>__addBookmarkCallback</b>(<i>res</i>) |
|
624 |
|
625 <p> |
|
626 Private callback method of __addBookmark(). |
|
627 </p> |
|
628 <dl> |
|
629 |
|
630 <dt><i>res</i> (list)</dt> |
|
631 <dd> |
|
632 reference to the result list containing all |
|
633 meta attributes |
|
634 </dd> |
|
635 </dl> |
|
636 <a NAME="WebBrowserView.__addSearchEngine" ID="WebBrowserView.__addSearchEngine"></a> |
|
637 <h4>WebBrowserView.__addSearchEngine</h4> |
|
638 <b>__addSearchEngine</b>(<i></i>) |
|
639 |
|
640 <p> |
|
641 Private slot to add a new search engine. |
|
642 </p> |
|
643 <a NAME="WebBrowserView.__addSpeedDial" ID="WebBrowserView.__addSpeedDial"></a> |
|
644 <h4>WebBrowserView.__addSpeedDial</h4> |
|
645 <b>__addSpeedDial</b>(<i></i>) |
|
646 |
|
647 <p> |
|
648 Private slot to add a new speed dial. |
|
649 </p> |
|
650 <a NAME="WebBrowserView.__adjustBookmark" ID="WebBrowserView.__adjustBookmark"></a> |
|
651 <h4>WebBrowserView.__adjustBookmark</h4> |
|
652 <b>__adjustBookmark</b>(<i>lastModified</i>) |
|
653 |
|
654 <p> |
|
655 Private slot to adjust the 'lastModified' value of bookmarks. |
|
656 </p> |
|
657 <dl> |
|
658 |
|
659 <dt><i>lastModified</i> (str)</dt> |
|
660 <dd> |
|
661 last modified value |
|
662 </dd> |
|
663 </dl> |
|
664 <a NAME="WebBrowserView.__blockImage" ID="WebBrowserView.__blockImage"></a> |
|
665 <h4>WebBrowserView.__blockImage</h4> |
|
666 <b>__blockImage</b>(<i>act</i>) |
|
667 |
|
668 <p> |
|
669 Private slot to add a block rule for an image URL. |
|
670 </p> |
|
671 <dl> |
|
672 |
|
673 <dt><i>act</i> (QAction)</dt> |
|
674 <dd> |
|
675 reference to the action that triggered |
|
676 </dd> |
|
677 </dl> |
|
678 <a NAME="WebBrowserView.__bookmarkLink" ID="WebBrowserView.__bookmarkLink"></a> |
|
679 <h4>WebBrowserView.__bookmarkLink</h4> |
|
680 <b>__bookmarkLink</b>(<i>act</i>) |
|
681 |
|
682 <p> |
|
683 Private slot to bookmark a link via the context menu. |
|
684 </p> |
|
685 <dl> |
|
686 |
|
687 <dt><i>act</i> (QAction)</dt> |
|
688 <dd> |
|
689 reference to the action that triggered |
|
690 </dd> |
|
691 </dl> |
|
692 <a NAME="WebBrowserView.__checkForForm" ID="WebBrowserView.__checkForForm"></a> |
|
693 <h4>WebBrowserView.__checkForForm</h4> |
|
694 <b>__checkForForm</b>(<i>act, pos</i>) |
|
695 |
|
696 <p> |
|
697 Private method to check the given position for an open search form. |
|
698 </p> |
|
699 <dl> |
|
700 |
|
701 <dt><i>act</i> (QAction)</dt> |
|
702 <dd> |
|
703 reference to the action to be populated upon success |
|
704 </dd> |
|
705 <dt><i>pos</i> (QPoint)</dt> |
|
706 <dd> |
|
707 position to be tested |
|
708 </dd> |
|
709 </dl> |
|
710 <a NAME="WebBrowserView.__checkForFormCallback" ID="WebBrowserView.__checkForFormCallback"></a> |
|
711 <h4>WebBrowserView.__checkForFormCallback</h4> |
|
712 <b>__checkForFormCallback</b>(<i>res, act</i>) |
|
713 |
|
714 <p> |
|
715 Private method handling the __checkForForm result. |
|
716 </p> |
|
717 <dl> |
|
718 |
|
719 <dt><i>res</i> (dict)</dt> |
|
720 <dd> |
|
721 result dictionary generated by JavaScript |
|
722 </dd> |
|
723 <dt><i>act</i> (QAction)</dt> |
|
724 <dd> |
|
725 reference to the action to be populated upon success |
|
726 </dd> |
|
727 </dl> |
|
728 <a NAME="WebBrowserView.__configureSpeedDial" ID="WebBrowserView.__configureSpeedDial"></a> |
|
729 <h4>WebBrowserView.__configureSpeedDial</h4> |
|
730 <b>__configureSpeedDial</b>(<i></i>) |
|
731 |
|
732 <p> |
|
733 Private slot to configure the speed dial. |
|
734 </p> |
|
735 <a NAME="WebBrowserView.__copyImage" ID="WebBrowserView.__copyImage"></a> |
|
736 <h4>WebBrowserView.__copyImage</h4> |
|
737 <b>__copyImage</b>(<i></i>) |
|
738 |
|
739 <p> |
|
740 Private slot to copy an image to the clipboard. |
|
741 </p> |
|
742 <a NAME="WebBrowserView.__copyLink" ID="WebBrowserView.__copyLink"></a> |
|
743 <h4>WebBrowserView.__copyLink</h4> |
|
744 <b>__copyLink</b>(<i>act</i>) |
|
745 |
|
746 <p> |
|
747 Private slot to copy a link to the clipboard. |
|
748 </p> |
|
749 <dl> |
|
750 |
|
751 <dt><i>act</i> (QAction)</dt> |
|
752 <dd> |
|
753 reference to the action that triggered |
|
754 </dd> |
|
755 </dl> |
|
756 <a NAME="WebBrowserView.__createContextMenu" ID="WebBrowserView.__createContextMenu"></a> |
|
757 <h4>WebBrowserView.__createContextMenu</h4> |
|
758 <b>__createContextMenu</b>(<i>menu, hitTest</i>) |
|
759 |
|
760 <p> |
|
761 Private method to populate the context menu. |
|
762 </p> |
|
763 <dl> |
|
764 |
|
765 <dt><i>menu</i> (QMenu)</dt> |
|
766 <dd> |
|
767 reference to the menu to be populated |
|
768 </dd> |
|
769 <dt><i>hitTest</i> (WebHitTestResult)</dt> |
|
770 <dd> |
|
771 reference to the hit test object |
|
772 </dd> |
|
773 </dl> |
|
774 <a NAME="WebBrowserView.__createImageContextMenu" ID="WebBrowserView.__createImageContextMenu"></a> |
|
775 <h4>WebBrowserView.__createImageContextMenu</h4> |
|
776 <b>__createImageContextMenu</b>(<i>menu, hitTest</i>) |
|
777 |
|
778 <p> |
|
779 Private method to populate the context menu for images. |
|
780 </p> |
|
781 <dl> |
|
782 |
|
783 <dt><i>menu</i> (QMenu)</dt> |
|
784 <dd> |
|
785 reference to the menu to be populated |
|
786 </dd> |
|
787 <dt><i>hitTest</i> (WebHitTestResult)</dt> |
|
788 <dd> |
|
789 reference to the hit test object |
|
790 </dd> |
|
791 </dl> |
|
792 <a NAME="WebBrowserView.__createLinkContextMenu" ID="WebBrowserView.__createLinkContextMenu"></a> |
|
793 <h4>WebBrowserView.__createLinkContextMenu</h4> |
|
794 <b>__createLinkContextMenu</b>(<i>menu, hitTest</i>) |
|
795 |
|
796 <p> |
|
797 Private method to populate the context menu for URLs. |
|
798 </p> |
|
799 <dl> |
|
800 |
|
801 <dt><i>menu</i> (QMenu)</dt> |
|
802 <dd> |
|
803 reference to the menu to be populated |
|
804 </dd> |
|
805 <dt><i>hitTest</i> (WebHitTestResult)</dt> |
|
806 <dd> |
|
807 reference to the hit test object |
|
808 </dd> |
|
809 </dl> |
|
810 <a NAME="WebBrowserView.__createMediaContextMenu" ID="WebBrowserView.__createMediaContextMenu"></a> |
|
811 <h4>WebBrowserView.__createMediaContextMenu</h4> |
|
812 <b>__createMediaContextMenu</b>(<i>menu, hitTest</i>) |
|
813 |
|
814 <p> |
|
815 Private method to populate the context menu for media elements. |
|
816 </p> |
|
817 <dl> |
|
818 |
|
819 <dt><i>menu</i> (QMenu)</dt> |
|
820 <dd> |
|
821 reference to the menu to be populated |
|
822 </dd> |
|
823 <dt><i>hitTest</i> (WebHitTestResult)</dt> |
|
824 <dd> |
|
825 reference to the hit test object |
|
826 </dd> |
|
827 </dl> |
|
828 <a NAME="WebBrowserView.__createNewPage" ID="WebBrowserView.__createNewPage"></a> |
|
829 <h4>WebBrowserView.__createNewPage</h4> |
|
830 <b>__createNewPage</b>(<i></i>) |
|
831 |
|
832 <p> |
|
833 Private method to create a new page object. |
|
834 </p> |
|
835 <a NAME="WebBrowserView.__createPageContextMenu" ID="WebBrowserView.__createPageContextMenu"></a> |
|
836 <h4>WebBrowserView.__createPageContextMenu</h4> |
|
837 <b>__createPageContextMenu</b>(<i>menu</i>) |
|
838 |
|
839 <p> |
|
840 Private method to populate the basic context menu. |
|
841 </p> |
|
842 <dl> |
|
843 |
|
844 <dt><i>menu</i> (QMenu)</dt> |
|
845 <dd> |
|
846 reference to the menu to be populated |
|
847 </dd> |
|
848 </dl> |
|
849 <a NAME="WebBrowserView.__createSelectedTextContextMenu" ID="WebBrowserView.__createSelectedTextContextMenu"></a> |
|
850 <h4>WebBrowserView.__createSelectedTextContextMenu</h4> |
|
851 <b>__createSelectedTextContextMenu</b>(<i>menu, hitTest</i>) |
|
852 |
|
853 <p> |
|
854 Private method to populate the context menu for selected text. |
|
855 </p> |
|
856 <dl> |
|
857 |
|
858 <dt><i>menu</i> (QMenu)</dt> |
|
859 <dd> |
|
860 reference to the menu to be populated |
|
861 </dd> |
|
862 <dt><i>hitTest</i> (WebHitTestResult)</dt> |
|
863 <dd> |
|
864 reference to the hit test object |
|
865 </dd> |
|
866 </dl> |
|
867 <a NAME="WebBrowserView.__currentEngineChanged" ID="WebBrowserView.__currentEngineChanged"></a> |
|
868 <h4>WebBrowserView.__currentEngineChanged</h4> |
|
869 <b>__currentEngineChanged</b>(<i></i>) |
|
870 |
|
871 <p> |
|
872 Private slot to track a change of the current search engine. |
|
873 </p> |
|
874 <a NAME="WebBrowserView.__downloadImage" ID="WebBrowserView.__downloadImage"></a> |
|
875 <h4>WebBrowserView.__downloadImage</h4> |
|
876 <b>__downloadImage</b>(<i></i>) |
|
877 |
|
878 <p> |
|
879 Private slot to download an image and save it to disk. |
|
880 </p> |
|
881 <a NAME="WebBrowserView.__downloadLink" ID="WebBrowserView.__downloadLink"></a> |
|
882 <h4>WebBrowserView.__downloadLink</h4> |
|
883 <b>__downloadLink</b>(<i></i>) |
|
884 |
|
885 <p> |
|
886 Private slot to download a link and save it to disk. |
|
887 </p> |
|
888 <a NAME="WebBrowserView.__downloadMedia" ID="WebBrowserView.__downloadMedia"></a> |
|
889 <h4>WebBrowserView.__downloadMedia</h4> |
|
890 <b>__downloadMedia</b>(<i></i>) |
|
891 |
|
892 <p> |
|
893 Private slot to download a media and save it to disk. |
|
894 </p> |
|
895 <a NAME="WebBrowserView.__findTextFinished" ID="WebBrowserView.__findTextFinished"></a> |
|
896 <h4>WebBrowserView.__findTextFinished</h4> |
|
897 <b>__findTextFinished</b>(<i>result</i>) |
|
898 |
|
899 <p> |
|
900 Private slot handling the findTextFinished signal of the web page. |
|
901 </p> |
|
902 <dl> |
|
903 |
|
904 <dt><i>result</i> (QWebEngineFindTextResult)</dt> |
|
905 <dd> |
|
906 reference to the QWebEngineFindTextResult object of the |
|
907 last search |
|
908 </dd> |
|
909 </dl> |
|
910 <a NAME="WebBrowserView.__getSavePageFileNameAndFormat" ID="WebBrowserView.__getSavePageFileNameAndFormat"></a> |
|
911 <h4>WebBrowserView.__getSavePageFileNameAndFormat</h4> |
|
912 <b>__getSavePageFileNameAndFormat</b>(<i></i>) |
|
913 |
|
914 <p> |
|
915 Private method to get the file name to save the page to. |
|
916 </p> |
|
917 <dl> |
|
918 <dt>Return:</dt> |
|
919 <dd> |
|
920 tuple containing the file name to save to and the |
|
921 save page format |
|
922 </dd> |
|
923 </dl> |
|
924 <dl> |
|
925 <dt>Return Type:</dt> |
|
926 <dd> |
|
927 tuple of (str, QWebEngineDownloadRequest.SavePageFormat) |
|
928 </dd> |
|
929 </dl> |
|
930 <a NAME="WebBrowserView.__iconLoaded" ID="WebBrowserView.__iconLoaded"></a> |
|
931 <h4>WebBrowserView.__iconLoaded</h4> |
|
932 <b>__iconLoaded</b>(<i>icon</i>) |
|
933 |
|
934 <p> |
|
935 Private slot handling the loaded web site icon. |
|
936 </p> |
|
937 <dl> |
|
938 |
|
939 <dt><i>icon</i> (QIcon)</dt> |
|
940 <dd> |
|
941 web site icon |
|
942 </dd> |
|
943 </dl> |
|
944 <a NAME="WebBrowserView.__iconUrlChanged" ID="WebBrowserView.__iconUrlChanged"></a> |
|
945 <h4>WebBrowserView.__iconUrlChanged</h4> |
|
946 <b>__iconUrlChanged</b>(<i>url</i>) |
|
947 |
|
948 <p> |
|
949 Private slot to handle the iconUrlChanged signal. |
|
950 </p> |
|
951 <dl> |
|
952 |
|
953 <dt><i>url</i> (QUrl)</dt> |
|
954 <dd> |
|
955 URL to get web site icon from |
|
956 </dd> |
|
957 </dl> |
|
958 <a NAME="WebBrowserView.__isUrlValid" ID="WebBrowserView.__isUrlValid"></a> |
|
959 <h4>WebBrowserView.__isUrlValid</h4> |
|
960 <b>__isUrlValid</b>(<i>url</i>) |
|
961 |
|
962 <p> |
|
963 Private method to check a URL for validity. |
|
964 </p> |
|
965 <dl> |
|
966 |
|
967 <dt><i>url</i></dt> |
|
968 <dd> |
|
969 URL to be checked (QUrl) |
|
970 </dd> |
|
971 </dl> |
|
972 <dl> |
|
973 <dt>Return:</dt> |
|
974 <dd> |
|
975 flag indicating a valid URL (boolean) |
|
976 </dd> |
|
977 </dl> |
|
978 <a NAME="WebBrowserView.__levelForZoom" ID="WebBrowserView.__levelForZoom"></a> |
|
979 <h4>WebBrowserView.__levelForZoom</h4> |
|
980 <b>__levelForZoom</b>(<i>zoom</i>) |
|
981 |
|
982 <p> |
|
983 Private method determining the zoom level index given a zoom factor. |
|
984 </p> |
|
985 <dl> |
|
986 |
|
987 <dt><i>zoom</i></dt> |
|
988 <dd> |
|
989 zoom factor (integer) |
|
990 </dd> |
|
991 </dl> |
|
992 <dl> |
|
993 <dt>Return:</dt> |
|
994 <dd> |
|
995 index of zoom factor (integer) |
|
996 </dd> |
|
997 </dl> |
|
998 <a NAME="WebBrowserView.__linkHovered" ID="WebBrowserView.__linkHovered"></a> |
|
999 <h4>WebBrowserView.__linkHovered</h4> |
|
1000 <b>__linkHovered</b>(<i>link</i>) |
|
1001 |
|
1002 <p> |
|
1003 Private slot to handle the linkHovered signal. |
|
1004 </p> |
|
1005 <dl> |
|
1006 |
|
1007 <dt><i>link</i></dt> |
|
1008 <dd> |
|
1009 the URL of the link (string) |
|
1010 </dd> |
|
1011 </dl> |
|
1012 <a NAME="WebBrowserView.__loadFinished" ID="WebBrowserView.__loadFinished"></a> |
|
1013 <h4>WebBrowserView.__loadFinished</h4> |
|
1014 <b>__loadFinished</b>(<i>ok</i>) |
|
1015 |
|
1016 <p> |
|
1017 Private method to handle the loadFinished signal. |
|
1018 </p> |
|
1019 <dl> |
|
1020 |
|
1021 <dt><i>ok</i></dt> |
|
1022 <dd> |
|
1023 flag indicating the result (boolean) |
|
1024 </dd> |
|
1025 </dl> |
|
1026 <a NAME="WebBrowserView.__loadProgress" ID="WebBrowserView.__loadProgress"></a> |
|
1027 <h4>WebBrowserView.__loadProgress</h4> |
|
1028 <b>__loadProgress</b>(<i>progress</i>) |
|
1029 |
|
1030 <p> |
|
1031 Private method to handle the loadProgress signal. |
|
1032 </p> |
|
1033 <dl> |
|
1034 |
|
1035 <dt><i>progress</i></dt> |
|
1036 <dd> |
|
1037 progress value (integer) |
|
1038 </dd> |
|
1039 </dl> |
|
1040 <a NAME="WebBrowserView.__loadStarted" ID="WebBrowserView.__loadStarted"></a> |
|
1041 <h4>WebBrowserView.__loadStarted</h4> |
|
1042 <b>__loadStarted</b>(<i></i>) |
|
1043 |
|
1044 <p> |
|
1045 Private method to handle the loadStarted signal. |
|
1046 </p> |
|
1047 <a NAME="WebBrowserView.__muteMedia" ID="WebBrowserView.__muteMedia"></a> |
|
1048 <h4>WebBrowserView.__muteMedia</h4> |
|
1049 <b>__muteMedia</b>(<i></i>) |
|
1050 |
|
1051 <p> |
|
1052 Private slot to (un)mute the selected media. |
|
1053 </p> |
|
1054 <a NAME="WebBrowserView.__openLinkInNewPrivateWindow" ID="WebBrowserView.__openLinkInNewPrivateWindow"></a> |
|
1055 <h4>WebBrowserView.__openLinkInNewPrivateWindow</h4> |
|
1056 <b>__openLinkInNewPrivateWindow</b>(<i>act</i>) |
|
1057 |
|
1058 <p> |
|
1059 Private slot called by the context menu to open a link in a new |
|
1060 private window. |
|
1061 </p> |
|
1062 <dl> |
|
1063 |
|
1064 <dt><i>act</i> (QAction)</dt> |
|
1065 <dd> |
|
1066 reference to the action that triggered |
|
1067 </dd> |
|
1068 </dl> |
|
1069 <a NAME="WebBrowserView.__openLinkInNewTab" ID="WebBrowserView.__openLinkInNewTab"></a> |
|
1070 <h4>WebBrowserView.__openLinkInNewTab</h4> |
|
1071 <b>__openLinkInNewTab</b>(<i>act</i>) |
|
1072 |
|
1073 <p> |
|
1074 Private method called by the context menu to open a link in a new |
|
1075 tab. |
|
1076 </p> |
|
1077 <dl> |
|
1078 |
|
1079 <dt><i>act</i> (QAction)</dt> |
|
1080 <dd> |
|
1081 reference to the action that triggered |
|
1082 </dd> |
|
1083 </dl> |
|
1084 <a NAME="WebBrowserView.__openLinkInNewWindow" ID="WebBrowserView.__openLinkInNewWindow"></a> |
|
1085 <h4>WebBrowserView.__openLinkInNewWindow</h4> |
|
1086 <b>__openLinkInNewWindow</b>(<i>act</i>) |
|
1087 |
|
1088 <p> |
|
1089 Private slot called by the context menu to open a link in a new |
|
1090 window. |
|
1091 </p> |
|
1092 <dl> |
|
1093 |
|
1094 <dt><i>act</i> (QAction)</dt> |
|
1095 <dd> |
|
1096 reference to the action that triggered |
|
1097 </dd> |
|
1098 </dl> |
|
1099 <a NAME="WebBrowserView.__pauseMedia" ID="WebBrowserView.__pauseMedia"></a> |
|
1100 <h4>WebBrowserView.__pauseMedia</h4> |
|
1101 <b>__pauseMedia</b>(<i></i>) |
|
1102 |
|
1103 <p> |
|
1104 Private slot to pause or play the selected media. |
|
1105 </p> |
|
1106 <a NAME="WebBrowserView.__printPage" ID="WebBrowserView.__printPage"></a> |
|
1107 <h4>WebBrowserView.__printPage</h4> |
|
1108 <b>__printPage</b>(<i></i>) |
|
1109 |
|
1110 <p> |
|
1111 Private slot to support printing from the web page. |
|
1112 </p> |
|
1113 <a NAME="WebBrowserView.__quotaRequested" ID="WebBrowserView.__quotaRequested"></a> |
|
1114 <h4>WebBrowserView.__quotaRequested</h4> |
|
1115 <b>__quotaRequested</b>(<i>quotaRequest</i>) |
|
1116 |
|
1117 <p> |
|
1118 Private slot to handle quota requests of the web page. |
|
1119 </p> |
|
1120 <dl> |
|
1121 |
|
1122 <dt><i>quotaRequest</i> (QWebEngineQuotaRequest)</dt> |
|
1123 <dd> |
|
1124 reference to the quota request object |
|
1125 </dd> |
|
1126 </dl> |
|
1127 <a NAME="WebBrowserView.__reloadAllSpeedDials" ID="WebBrowserView.__reloadAllSpeedDials"></a> |
|
1128 <h4>WebBrowserView.__reloadAllSpeedDials</h4> |
|
1129 <b>__reloadAllSpeedDials</b>(<i></i>) |
|
1130 |
|
1131 <p> |
|
1132 Private slot to reload all speed dials. |
|
1133 </p> |
|
1134 <a NAME="WebBrowserView.__renderPreview" ID="WebBrowserView.__renderPreview"></a> |
|
1135 <h4>WebBrowserView.__renderPreview</h4> |
|
1136 <b>__renderPreview</b>(<i></i>) |
|
1137 |
|
1138 <p> |
|
1139 Private slot to render a preview pixmap after the page was loaded. |
|
1140 </p> |
|
1141 <a NAME="WebBrowserView.__renderProcessTerminated" ID="WebBrowserView.__renderProcessTerminated"></a> |
|
1142 <h4>WebBrowserView.__renderProcessTerminated</h4> |
|
1143 <b>__renderProcessTerminated</b>(<i>status, exitCode</i>) |
|
1144 |
|
1145 <p> |
|
1146 Private slot handling a crash of the web page render process. |
|
1147 </p> |
|
1148 <dl> |
|
1149 |
|
1150 <dt><i>status</i> (QWebEnginePage.RenderProcessTerminationStatus)</dt> |
|
1151 <dd> |
|
1152 termination status |
|
1153 </dd> |
|
1154 <dt><i>exitCode</i> (int)</dt> |
|
1155 <dd> |
|
1156 exit code of the process |
|
1157 </dd> |
|
1158 </dl> |
|
1159 <a NAME="WebBrowserView.__replaceMisspelledWord" ID="WebBrowserView.__replaceMisspelledWord"></a> |
|
1160 <h4>WebBrowserView.__replaceMisspelledWord</h4> |
|
1161 <b>__replaceMisspelledWord</b>(<i>act</i>) |
|
1162 |
|
1163 <p> |
|
1164 Private slot to replace a misspelled word under the context menu. |
|
1165 </p> |
|
1166 <dl> |
|
1167 |
|
1168 <dt><i>act</i> (QAction)</dt> |
|
1169 <dd> |
|
1170 reference to the action that triggered |
|
1171 </dd> |
|
1172 </dl> |
|
1173 <a NAME="WebBrowserView.__resetSpeedDials" ID="WebBrowserView.__resetSpeedDials"></a> |
|
1174 <h4>WebBrowserView.__resetSpeedDials</h4> |
|
1175 <b>__resetSpeedDials</b>(<i></i>) |
|
1176 |
|
1177 <p> |
|
1178 Private slot to reset all speed dials to the default pages. |
|
1179 </p> |
|
1180 <a NAME="WebBrowserView.__searchDefaultRequested" ID="WebBrowserView.__searchDefaultRequested"></a> |
|
1181 <h4>WebBrowserView.__searchDefaultRequested</h4> |
|
1182 <b>__searchDefaultRequested</b>(<i></i>) |
|
1183 |
|
1184 <p> |
|
1185 Private slot to search for some text with the current search engine. |
|
1186 </p> |
|
1187 <a NAME="WebBrowserView.__searchImage" ID="WebBrowserView.__searchImage"></a> |
|
1188 <h4>WebBrowserView.__searchImage</h4> |
|
1189 <b>__searchImage</b>(<i>act</i>) |
|
1190 |
|
1191 <p> |
|
1192 Private slot to search for an image URL. |
|
1193 </p> |
|
1194 <dl> |
|
1195 |
|
1196 <dt><i>act</i> (QAction)</dt> |
|
1197 <dd> |
|
1198 reference to the action that triggered |
|
1199 </dd> |
|
1200 </dl> |
|
1201 <a NAME="WebBrowserView.__searchRequested" ID="WebBrowserView.__searchRequested"></a> |
|
1202 <h4>WebBrowserView.__searchRequested</h4> |
|
1203 <b>__searchRequested</b>(<i>act</i>) |
|
1204 |
|
1205 <p> |
|
1206 Private slot to search for some text with a selected search engine. |
|
1207 </p> |
|
1208 <dl> |
|
1209 |
|
1210 <dt><i>act</i></dt> |
|
1211 <dd> |
|
1212 reference to the action that triggered this slot (QAction) |
|
1213 </dd> |
|
1214 </dl> |
|
1215 <a NAME="WebBrowserView.__selectClientCertificate" ID="WebBrowserView.__selectClientCertificate"></a> |
|
1216 <h4>WebBrowserView.__selectClientCertificate</h4> |
|
1217 <b>__selectClientCertificate</b>(<i>clientCertificateSelection</i>) |
|
1218 |
|
1219 <p> |
|
1220 Private slot to handle the client certificate selection request. |
|
1221 </p> |
|
1222 <dl> |
|
1223 |
|
1224 <dt><i>clientCertificateSelection</i> (QWebEngineClientCertificateSelection)</dt> |
|
1225 <dd> |
|
1226 list of client SSL certificates |
|
1227 found in system's client certificate store |
|
1228 </dd> |
|
1229 </dl> |
|
1230 <a NAME="WebBrowserView.__sendLink" ID="WebBrowserView.__sendLink"></a> |
|
1231 <h4>WebBrowserView.__sendLink</h4> |
|
1232 <b>__sendLink</b>(<i>act</i>) |
|
1233 |
|
1234 <p> |
|
1235 Private slot to send a link via email. |
|
1236 </p> |
|
1237 <dl> |
|
1238 |
|
1239 <dt><i>act</i> (QAction)</dt> |
|
1240 <dd> |
|
1241 reference to the action that triggered |
|
1242 </dd> |
|
1243 </dl> |
|
1244 <a NAME="WebBrowserView.__setRwhvqt" ID="WebBrowserView.__setRwhvqt"></a> |
|
1245 <h4>WebBrowserView.__setRwhvqt</h4> |
|
1246 <b>__setRwhvqt</b>(<i></i>) |
|
1247 |
|
1248 <p> |
|
1249 Private slot to set widget that receives input events. |
|
1250 </p> |
|
1251 <a NAME="WebBrowserView.__showEventSlot" ID="WebBrowserView.__showEventSlot"></a> |
|
1252 <h4>WebBrowserView.__showEventSlot</h4> |
|
1253 <b>__showEventSlot</b>(<i></i>) |
|
1254 |
|
1255 <p> |
|
1256 Private slot to perform actions when the view is shown and the event |
|
1257 loop is running. |
|
1258 </p> |
|
1259 <a NAME="WebBrowserView.__showTabCrashPage" ID="WebBrowserView.__showTabCrashPage"></a> |
|
1260 <h4>WebBrowserView.__showTabCrashPage</h4> |
|
1261 <b>__showTabCrashPage</b>(<i>status</i>) |
|
1262 |
|
1263 <p> |
|
1264 Private slot to show the tab crash page. |
|
1265 </p> |
|
1266 <dl> |
|
1267 |
|
1268 <dt><i>status</i> (QWebEnginePage.RenderProcessTerminationStatus)</dt> |
|
1269 <dd> |
|
1270 termination status |
|
1271 </dd> |
|
1272 </dl> |
|
1273 <a NAME="WebBrowserView.__urlChanged" ID="WebBrowserView.__urlChanged"></a> |
|
1274 <h4>WebBrowserView.__urlChanged</h4> |
|
1275 <b>__urlChanged</b>(<i>url</i>) |
|
1276 |
|
1277 <p> |
|
1278 Private slot to handle the urlChanged signal. |
|
1279 </p> |
|
1280 <dl> |
|
1281 |
|
1282 <dt><i>url</i></dt> |
|
1283 <dd> |
|
1284 the new url (QUrl) |
|
1285 </dd> |
|
1286 </dl> |
|
1287 <a NAME="WebBrowserView.__virusTotal" ID="WebBrowserView.__virusTotal"></a> |
|
1288 <h4>WebBrowserView.__virusTotal</h4> |
|
1289 <b>__virusTotal</b>(<i>act</i>) |
|
1290 |
|
1291 <p> |
|
1292 Private slot to scan the selected URL with VirusTotal. |
|
1293 </p> |
|
1294 <dl> |
|
1295 |
|
1296 <dt><i>act</i> (QAction)</dt> |
|
1297 <dd> |
|
1298 reference to the action that triggered |
|
1299 </dd> |
|
1300 </dl> |
|
1301 <a NAME="WebBrowserView.__webInspector" ID="WebBrowserView.__webInspector"></a> |
|
1302 <h4>WebBrowserView.__webInspector</h4> |
|
1303 <b>__webInspector</b>(<i></i>) |
|
1304 |
|
1305 <p> |
|
1306 Private slot to show the web inspector window. |
|
1307 </p> |
|
1308 <a NAME="WebBrowserView._contextMenuEvent" ID="WebBrowserView._contextMenuEvent"></a> |
|
1309 <h4>WebBrowserView._contextMenuEvent</h4> |
|
1310 <b>_contextMenuEvent</b>(<i>evt</i>) |
|
1311 |
|
1312 <p> |
|
1313 Protected method called to create a context menu. |
|
1314 </p> |
|
1315 <dl> |
|
1316 |
|
1317 <dt><i>evt</i></dt> |
|
1318 <dd> |
|
1319 reference to the context menu event object |
|
1320 (QContextMenuEvent) |
|
1321 </dd> |
|
1322 </dl> |
|
1323 <a NAME="WebBrowserView._gestureEvent" ID="WebBrowserView._gestureEvent"></a> |
|
1324 <h4>WebBrowserView._gestureEvent</h4> |
|
1325 <b>_gestureEvent</b>(<i>evt</i>) |
|
1326 |
|
1327 <p> |
|
1328 Protected method handling gesture events. |
|
1329 </p> |
|
1330 <dl> |
|
1331 |
|
1332 <dt><i>evt</i> (QGestureEvent)</dt> |
|
1333 <dd> |
|
1334 reference to the gesture event |
|
1335 </dd> |
|
1336 </dl> |
|
1337 <a NAME="WebBrowserView._keyPressEvent" ID="WebBrowserView._keyPressEvent"></a> |
|
1338 <h4>WebBrowserView._keyPressEvent</h4> |
|
1339 <b>_keyPressEvent</b>(<i>evt</i>) |
|
1340 |
|
1341 <p> |
|
1342 Protected method called by a key press. |
|
1343 </p> |
|
1344 <dl> |
|
1345 |
|
1346 <dt><i>evt</i></dt> |
|
1347 <dd> |
|
1348 reference to the key event (QKeyEvent) |
|
1349 </dd> |
|
1350 </dl> |
|
1351 <a NAME="WebBrowserView._keyReleaseEvent" ID="WebBrowserView._keyReleaseEvent"></a> |
|
1352 <h4>WebBrowserView._keyReleaseEvent</h4> |
|
1353 <b>_keyReleaseEvent</b>(<i>evt</i>) |
|
1354 |
|
1355 <p> |
|
1356 Protected method called by a key release. |
|
1357 </p> |
|
1358 <dl> |
|
1359 |
|
1360 <dt><i>evt</i></dt> |
|
1361 <dd> |
|
1362 reference to the key event (QKeyEvent) |
|
1363 </dd> |
|
1364 </dl> |
|
1365 <a NAME="WebBrowserView._mouseMoveEvent" ID="WebBrowserView._mouseMoveEvent"></a> |
|
1366 <h4>WebBrowserView._mouseMoveEvent</h4> |
|
1367 <b>_mouseMoveEvent</b>(<i>evt</i>) |
|
1368 |
|
1369 <p> |
|
1370 Protected method to handle mouse move events. |
|
1371 </p> |
|
1372 <dl> |
|
1373 |
|
1374 <dt><i>evt</i></dt> |
|
1375 <dd> |
|
1376 reference to the mouse event (QMouseEvent) |
|
1377 </dd> |
|
1378 </dl> |
|
1379 <a NAME="WebBrowserView._mousePressEvent" ID="WebBrowserView._mousePressEvent"></a> |
|
1380 <h4>WebBrowserView._mousePressEvent</h4> |
|
1381 <b>_mousePressEvent</b>(<i>evt</i>) |
|
1382 |
|
1383 <p> |
|
1384 Protected method called by a mouse press event. |
|
1385 </p> |
|
1386 <dl> |
|
1387 |
|
1388 <dt><i>evt</i></dt> |
|
1389 <dd> |
|
1390 reference to the mouse event (QMouseEvent) |
|
1391 </dd> |
|
1392 </dl> |
|
1393 <a NAME="WebBrowserView._mouseReleaseEvent" ID="WebBrowserView._mouseReleaseEvent"></a> |
|
1394 <h4>WebBrowserView._mouseReleaseEvent</h4> |
|
1395 <b>_mouseReleaseEvent</b>(<i>evt</i>) |
|
1396 |
|
1397 <p> |
|
1398 Protected method called by a mouse release event. |
|
1399 </p> |
|
1400 <dl> |
|
1401 |
|
1402 <dt><i>evt</i></dt> |
|
1403 <dd> |
|
1404 reference to the mouse event (QMouseEvent) |
|
1405 </dd> |
|
1406 </dl> |
|
1407 <a NAME="WebBrowserView._wheelEvent" ID="WebBrowserView._wheelEvent"></a> |
|
1408 <h4>WebBrowserView._wheelEvent</h4> |
|
1409 <b>_wheelEvent</b>(<i>evt</i>) |
|
1410 |
|
1411 <p> |
|
1412 Protected method to handle wheel events. |
|
1413 </p> |
|
1414 <dl> |
|
1415 |
|
1416 <dt><i>evt</i></dt> |
|
1417 <dd> |
|
1418 reference to the wheel event (QWheelEvent) |
|
1419 </dd> |
|
1420 </dl> |
|
1421 <a NAME="WebBrowserView.activateSession" ID="WebBrowserView.activateSession"></a> |
|
1422 <h4>WebBrowserView.activateSession</h4> |
|
1423 <b>activateSession</b>(<i></i>) |
|
1424 |
|
1425 <p> |
|
1426 Public slot to activate a restored session. |
|
1427 </p> |
|
1428 <a NAME="WebBrowserView.addBookmark" ID="WebBrowserView.addBookmark"></a> |
|
1429 <h4>WebBrowserView.addBookmark</h4> |
|
1430 <b>addBookmark</b>(<i></i>) |
|
1431 |
|
1432 <p> |
|
1433 Public slot to bookmark the current page. |
|
1434 </p> |
|
1435 <a NAME="WebBrowserView.backward" ID="WebBrowserView.backward"></a> |
|
1436 <h4>WebBrowserView.backward</h4> |
|
1437 <b>backward</b>(<i></i>) |
|
1438 |
|
1439 <p> |
|
1440 Public slot to move backwards in history. |
|
1441 </p> |
|
1442 <a NAME="WebBrowserView.checkRSS" ID="WebBrowserView.checkRSS"></a> |
|
1443 <h4>WebBrowserView.checkRSS</h4> |
|
1444 <b>checkRSS</b>(<i></i>) |
|
1445 |
|
1446 <p> |
|
1447 Public method to check, if the loaded page contains feed links. |
|
1448 </p> |
|
1449 <dl> |
|
1450 <dt>Return:</dt> |
|
1451 <dd> |
|
1452 flag indicating the existence of feed links (boolean) |
|
1453 </dd> |
|
1454 </dl> |
|
1455 <a NAME="WebBrowserView.clearHistory" ID="WebBrowserView.clearHistory"></a> |
|
1456 <h4>WebBrowserView.clearHistory</h4> |
|
1457 <b>clearHistory</b>(<i></i>) |
|
1458 |
|
1459 <p> |
|
1460 Public slot to clear the history. |
|
1461 </p> |
|
1462 <a NAME="WebBrowserView.closeWebInspector" ID="WebBrowserView.closeWebInspector"></a> |
|
1463 <h4>WebBrowserView.closeWebInspector</h4> |
|
1464 <b>closeWebInspector</b>(<i></i>) |
|
1465 |
|
1466 <p> |
|
1467 Public slot to close the web inspector. |
|
1468 </p> |
|
1469 <a NAME="WebBrowserView.contextMenuEvent" ID="WebBrowserView.contextMenuEvent"></a> |
|
1470 <h4>WebBrowserView.contextMenuEvent</h4> |
|
1471 <b>contextMenuEvent</b>(<i>evt</i>) |
|
1472 |
|
1473 <p> |
|
1474 Protected method called to create a context menu. |
|
1475 </p> |
|
1476 <p> |
|
1477 This method is overridden from QWebEngineView. |
|
1478 </p> |
|
1479 <dl> |
|
1480 |
|
1481 <dt><i>evt</i></dt> |
|
1482 <dd> |
|
1483 reference to the context menu event object |
|
1484 (QContextMenuEvent) |
|
1485 </dd> |
|
1486 </dl> |
|
1487 <a NAME="WebBrowserView.copy" ID="WebBrowserView.copy"></a> |
|
1488 <h4>WebBrowserView.copy</h4> |
|
1489 <b>copy</b>(<i></i>) |
|
1490 |
|
1491 <p> |
|
1492 Public slot to copy the selected text. |
|
1493 </p> |
|
1494 <a NAME="WebBrowserView.createWindow" ID="WebBrowserView.createWindow"></a> |
|
1495 <h4>WebBrowserView.createWindow</h4> |
|
1496 <b>createWindow</b>(<i>windowType</i>) |
|
1497 |
|
1498 <p> |
|
1499 Public method called, when a new window should be created. |
|
1500 </p> |
|
1501 <dl> |
|
1502 |
|
1503 <dt><i>windowType</i></dt> |
|
1504 <dd> |
|
1505 type of the requested window |
|
1506 (QWebEnginePage.WebWindowType) |
|
1507 </dd> |
|
1508 </dl> |
|
1509 <dl> |
|
1510 <dt>Return:</dt> |
|
1511 <dd> |
|
1512 reference to the created browser window (WebBrowserView) |
|
1513 </dd> |
|
1514 </dl> |
|
1515 <a NAME="WebBrowserView.cut" ID="WebBrowserView.cut"></a> |
|
1516 <h4>WebBrowserView.cut</h4> |
|
1517 <b>cut</b>(<i></i>) |
|
1518 |
|
1519 <p> |
|
1520 Public slot to cut the selected text. |
|
1521 </p> |
|
1522 <a NAME="WebBrowserView.documentTitle" ID="WebBrowserView.documentTitle"></a> |
|
1523 <h4>WebBrowserView.documentTitle</h4> |
|
1524 <b>documentTitle</b>(<i></i>) |
|
1525 |
|
1526 <p> |
|
1527 Public method to return the title of the loaded page. |
|
1528 </p> |
|
1529 <dl> |
|
1530 <dt>Return:</dt> |
|
1531 <dd> |
|
1532 title (string) |
|
1533 </dd> |
|
1534 </dl> |
|
1535 <a NAME="WebBrowserView.dragEnterEvent" ID="WebBrowserView.dragEnterEvent"></a> |
|
1536 <h4>WebBrowserView.dragEnterEvent</h4> |
|
1537 <b>dragEnterEvent</b>(<i>evt</i>) |
|
1538 |
|
1539 <p> |
|
1540 Protected method called by a drag enter event. |
|
1541 </p> |
|
1542 <dl> |
|
1543 |
|
1544 <dt><i>evt</i></dt> |
|
1545 <dd> |
|
1546 reference to the drag enter event (QDragEnterEvent) |
|
1547 </dd> |
|
1548 </dl> |
|
1549 <a NAME="WebBrowserView.dragMoveEvent" ID="WebBrowserView.dragMoveEvent"></a> |
|
1550 <h4>WebBrowserView.dragMoveEvent</h4> |
|
1551 <b>dragMoveEvent</b>(<i>evt</i>) |
|
1552 |
|
1553 <p> |
|
1554 Protected method called by a drag move event. |
|
1555 </p> |
|
1556 <dl> |
|
1557 |
|
1558 <dt><i>evt</i></dt> |
|
1559 <dd> |
|
1560 reference to the drag move event (QDragMoveEvent) |
|
1561 </dd> |
|
1562 </dl> |
|
1563 <a NAME="WebBrowserView.dropEvent" ID="WebBrowserView.dropEvent"></a> |
|
1564 <h4>WebBrowserView.dropEvent</h4> |
|
1565 <b>dropEvent</b>(<i>evt</i>) |
|
1566 |
|
1567 <p> |
|
1568 Protected method called by a drop event. |
|
1569 </p> |
|
1570 <dl> |
|
1571 |
|
1572 <dt><i>evt</i></dt> |
|
1573 <dd> |
|
1574 reference to the drop event (QDropEvent) |
|
1575 </dd> |
|
1576 </dl> |
|
1577 <a NAME="WebBrowserView.event" ID="WebBrowserView.event"></a> |
|
1578 <h4>WebBrowserView.event</h4> |
|
1579 <b>event</b>(<i>evt</i>) |
|
1580 |
|
1581 <p> |
|
1582 Public method handling events. |
|
1583 </p> |
|
1584 <dl> |
|
1585 |
|
1586 <dt><i>evt</i></dt> |
|
1587 <dd> |
|
1588 reference to the event (QEvent) |
|
1589 </dd> |
|
1590 </dl> |
|
1591 <dl> |
|
1592 <dt>Return:</dt> |
|
1593 <dd> |
|
1594 flag indicating, if the event was handled (boolean) |
|
1595 </dd> |
|
1596 </dl> |
|
1597 <a NAME="WebBrowserView.eventFilter" ID="WebBrowserView.eventFilter"></a> |
|
1598 <h4>WebBrowserView.eventFilter</h4> |
|
1599 <b>eventFilter</b>(<i>obj, evt</i>) |
|
1600 |
|
1601 <p> |
|
1602 Public method to process event for other objects. |
|
1603 </p> |
|
1604 <dl> |
|
1605 |
|
1606 <dt><i>obj</i> (QObject)</dt> |
|
1607 <dd> |
|
1608 reference to object to process events for |
|
1609 </dd> |
|
1610 <dt><i>evt</i> (QEvent)</dt> |
|
1611 <dd> |
|
1612 reference to event to be processed |
|
1613 </dd> |
|
1614 </dl> |
|
1615 <dl> |
|
1616 <dt>Return:</dt> |
|
1617 <dd> |
|
1618 flag indicating that the event should be filtered out |
|
1619 </dd> |
|
1620 </dl> |
|
1621 <dl> |
|
1622 <dt>Return Type:</dt> |
|
1623 <dd> |
|
1624 bool |
|
1625 </dd> |
|
1626 </dl> |
|
1627 <a NAME="WebBrowserView.extractSessionMetaData" ID="WebBrowserView.extractSessionMetaData"></a> |
|
1628 <h4>WebBrowserView.extractSessionMetaData</h4> |
|
1629 <b>extractSessionMetaData</b>(<i>sessionData</i>) |
|
1630 |
|
1631 <p> |
|
1632 Public method to extract some session meta data elements needed by the |
|
1633 tab widget in case of deferred loading. |
|
1634 </p> |
|
1635 <dl> |
|
1636 |
|
1637 <dt><i>sessionData</i> (dict)</dt> |
|
1638 <dd> |
|
1639 dictionary containing the session data as |
|
1640 generated by getSessionData() |
|
1641 </dd> |
|
1642 </dl> |
|
1643 <dl> |
|
1644 <dt>Return:</dt> |
|
1645 <dd> |
|
1646 tuple containing the title, URL and web icon |
|
1647 </dd> |
|
1648 </dl> |
|
1649 <dl> |
|
1650 <dt>Return Type:</dt> |
|
1651 <dd> |
|
1652 tuple of (str, str, QIcon) |
|
1653 </dd> |
|
1654 </dl> |
|
1655 <a NAME="WebBrowserView.findNextPrev" ID="WebBrowserView.findNextPrev"></a> |
|
1656 <h4>WebBrowserView.findNextPrev</h4> |
|
1657 <b>findNextPrev</b>(<i>txt, case, backwards, callback</i>) |
|
1658 |
|
1659 <p> |
|
1660 Public slot to find the next occurrence of a text. |
|
1661 </p> |
|
1662 <dl> |
|
1663 |
|
1664 <dt><i>txt</i></dt> |
|
1665 <dd> |
|
1666 text to search for (string) |
|
1667 </dd> |
|
1668 <dt><i>case</i></dt> |
|
1669 <dd> |
|
1670 flag indicating a case sensitive search (boolean) |
|
1671 </dd> |
|
1672 <dt><i>backwards</i></dt> |
|
1673 <dd> |
|
1674 flag indicating a backwards search (boolean) |
|
1675 </dd> |
|
1676 <dt><i>callback</i> (function(bool) or None)</dt> |
|
1677 <dd> |
|
1678 reference to a function with a bool parameter |
|
1679 </dd> |
|
1680 </dl> |
|
1681 <a NAME="WebBrowserView.forward" ID="WebBrowserView.forward"></a> |
|
1682 <h4>WebBrowserView.forward</h4> |
|
1683 <b>forward</b>(<i></i>) |
|
1684 |
|
1685 <p> |
|
1686 Public slot to move forward in history. |
|
1687 </p> |
|
1688 <a NAME="WebBrowserView.getPreview" ID="WebBrowserView.getPreview"></a> |
|
1689 <h4>WebBrowserView.getPreview</h4> |
|
1690 <b>getPreview</b>(<i></i>) |
|
1691 |
|
1692 <p> |
|
1693 Public method to get the preview pixmap. |
|
1694 </p> |
|
1695 <dl> |
|
1696 <dt>Return:</dt> |
|
1697 <dd> |
|
1698 preview pixmap |
|
1699 </dd> |
|
1700 </dl> |
|
1701 <dl> |
|
1702 <dt>Return Type:</dt> |
|
1703 <dd> |
|
1704 QPixmap |
|
1705 </dd> |
|
1706 </dl> |
|
1707 <a NAME="WebBrowserView.getRSS" ID="WebBrowserView.getRSS"></a> |
|
1708 <h4>WebBrowserView.getRSS</h4> |
|
1709 <b>getRSS</b>(<i></i>) |
|
1710 |
|
1711 <p> |
|
1712 Public method to get the extracted RSS feeds. |
|
1713 </p> |
|
1714 <dl> |
|
1715 <dt>Return:</dt> |
|
1716 <dd> |
|
1717 list of RSS feeds (list of tuples of two strings) |
|
1718 </dd> |
|
1719 </dl> |
|
1720 <a NAME="WebBrowserView.getSafeBrowsingStatus" ID="WebBrowserView.getSafeBrowsingStatus"></a> |
|
1721 <h4>WebBrowserView.getSafeBrowsingStatus</h4> |
|
1722 <b>getSafeBrowsingStatus</b>(<i></i>) |
|
1723 |
|
1724 <p> |
|
1725 Public method to get the safe browsing status of the current page. |
|
1726 </p> |
|
1727 <dl> |
|
1728 <dt>Return:</dt> |
|
1729 <dd> |
|
1730 flag indicating a safe site |
|
1731 </dd> |
|
1732 </dl> |
|
1733 <dl> |
|
1734 <dt>Return Type:</dt> |
|
1735 <dd> |
|
1736 bool |
|
1737 </dd> |
|
1738 </dl> |
|
1739 <a NAME="WebBrowserView.getSessionData" ID="WebBrowserView.getSessionData"></a> |
|
1740 <h4>WebBrowserView.getSessionData</h4> |
|
1741 <b>getSessionData</b>(<i></i>) |
|
1742 |
|
1743 <p> |
|
1744 Public method to populate the session data. |
|
1745 </p> |
|
1746 <dl> |
|
1747 <dt>Return:</dt> |
|
1748 <dd> |
|
1749 dictionary containing the session data |
|
1750 </dd> |
|
1751 </dl> |
|
1752 <dl> |
|
1753 <dt>Return Type:</dt> |
|
1754 <dd> |
|
1755 dict |
|
1756 </dd> |
|
1757 </dl> |
|
1758 <a NAME="WebBrowserView.hasRSS" ID="WebBrowserView.hasRSS"></a> |
|
1759 <h4>WebBrowserView.hasRSS</h4> |
|
1760 <b>hasRSS</b>(<i></i>) |
|
1761 |
|
1762 <p> |
|
1763 Public method to check, if the loaded page has RSS links. |
|
1764 </p> |
|
1765 <dl> |
|
1766 <dt>Return:</dt> |
|
1767 <dd> |
|
1768 flag indicating the presence of RSS links (boolean) |
|
1769 </dd> |
|
1770 </dl> |
|
1771 <a NAME="WebBrowserView.hasSelection" ID="WebBrowserView.hasSelection"></a> |
|
1772 <h4>WebBrowserView.hasSelection</h4> |
|
1773 <b>hasSelection</b>(<i></i>) |
|
1774 |
|
1775 <p> |
|
1776 Public method to determine, if there is some text selected. |
|
1777 </p> |
|
1778 <dl> |
|
1779 <dt>Return:</dt> |
|
1780 <dd> |
|
1781 flag indicating text has been selected (boolean) |
|
1782 </dd> |
|
1783 </dl> |
|
1784 <a NAME="WebBrowserView.home" ID="WebBrowserView.home"></a> |
|
1785 <h4>WebBrowserView.home</h4> |
|
1786 <b>home</b>(<i></i>) |
|
1787 |
|
1788 <p> |
|
1789 Public slot to move to the first page loaded. |
|
1790 </p> |
|
1791 <a NAME="WebBrowserView.icon" ID="WebBrowserView.icon"></a> |
|
1792 <h4>WebBrowserView.icon</h4> |
|
1793 <b>icon</b>(<i></i>) |
|
1794 |
|
1795 <p> |
|
1796 Public method to get the web site icon. |
|
1797 </p> |
|
1798 <dl> |
|
1799 <dt>Return:</dt> |
|
1800 <dd> |
|
1801 web site icon |
|
1802 </dd> |
|
1803 </dl> |
|
1804 <dl> |
|
1805 <dt>Return Type:</dt> |
|
1806 <dd> |
|
1807 QIcon |
|
1808 </dd> |
|
1809 </dl> |
|
1810 <a NAME="WebBrowserView.inputWidget" ID="WebBrowserView.inputWidget"></a> |
|
1811 <h4>WebBrowserView.inputWidget</h4> |
|
1812 <b>inputWidget</b>(<i></i>) |
|
1813 |
|
1814 <p> |
|
1815 Public method to get a reference to the render widget. |
|
1816 </p> |
|
1817 <dl> |
|
1818 <dt>Return:</dt> |
|
1819 <dd> |
|
1820 reference to the render widget |
|
1821 </dd> |
|
1822 </dl> |
|
1823 <dl> |
|
1824 <dt>Return Type:</dt> |
|
1825 <dd> |
|
1826 QWidget |
|
1827 </dd> |
|
1828 </dl> |
|
1829 <a NAME="WebBrowserView.isBackwardAvailable" ID="WebBrowserView.isBackwardAvailable"></a> |
|
1830 <h4>WebBrowserView.isBackwardAvailable</h4> |
|
1831 <b>isBackwardAvailable</b>(<i></i>) |
|
1832 |
|
1833 <p> |
|
1834 Public method to determine, if a backwards move in history is possible. |
|
1835 </p> |
|
1836 <dl> |
|
1837 <dt>Return:</dt> |
|
1838 <dd> |
|
1839 flag indicating move backwards is possible (boolean) |
|
1840 </dd> |
|
1841 </dl> |
|
1842 <a NAME="WebBrowserView.isForwardAvailable" ID="WebBrowserView.isForwardAvailable"></a> |
|
1843 <h4>WebBrowserView.isForwardAvailable</h4> |
|
1844 <b>isForwardAvailable</b>(<i></i>) |
|
1845 |
|
1846 <p> |
|
1847 Public method to determine, if a forward move in history is possible. |
|
1848 </p> |
|
1849 <dl> |
|
1850 <dt>Return:</dt> |
|
1851 <dd> |
|
1852 flag indicating move forward is possible (boolean) |
|
1853 </dd> |
|
1854 </dl> |
|
1855 <a NAME="WebBrowserView.isFullScreen" ID="WebBrowserView.isFullScreen"></a> |
|
1856 <h4>WebBrowserView.isFullScreen</h4> |
|
1857 <b>isFullScreen</b>(<i></i>) |
|
1858 |
|
1859 <p> |
|
1860 Public method to check, if full screen mode is active. |
|
1861 </p> |
|
1862 <dl> |
|
1863 <dt>Return:</dt> |
|
1864 <dd> |
|
1865 flag indicating full screen mode |
|
1866 </dd> |
|
1867 </dl> |
|
1868 <dl> |
|
1869 <dt>Return Type:</dt> |
|
1870 <dd> |
|
1871 bool |
|
1872 </dd> |
|
1873 </dl> |
|
1874 <a NAME="WebBrowserView.isLoading" ID="WebBrowserView.isLoading"></a> |
|
1875 <h4>WebBrowserView.isLoading</h4> |
|
1876 <b>isLoading</b>(<i></i>) |
|
1877 |
|
1878 <p> |
|
1879 Public method to get the loading state. |
|
1880 </p> |
|
1881 <dl> |
|
1882 <dt>Return:</dt> |
|
1883 <dd> |
|
1884 flag indicating the loading state (boolean) |
|
1885 </dd> |
|
1886 </dl> |
|
1887 <a NAME="WebBrowserView.load" ID="WebBrowserView.load"></a> |
|
1888 <h4>WebBrowserView.load</h4> |
|
1889 <b>load</b>(<i>url</i>) |
|
1890 |
|
1891 <p> |
|
1892 Public method to load a web site. |
|
1893 </p> |
|
1894 <dl> |
|
1895 |
|
1896 <dt><i>url</i> (QUrl)</dt> |
|
1897 <dd> |
|
1898 URL to be loaded |
|
1899 </dd> |
|
1900 </dl> |
|
1901 <a NAME="WebBrowserView.loadFromSessionData" ID="WebBrowserView.loadFromSessionData"></a> |
|
1902 <h4>WebBrowserView.loadFromSessionData</h4> |
|
1903 <b>loadFromSessionData</b>(<i>sessionData</i>) |
|
1904 |
|
1905 <p> |
|
1906 Public method to load the session data. |
|
1907 </p> |
|
1908 <dl> |
|
1909 |
|
1910 <dt><i>sessionData</i> (dict)</dt> |
|
1911 <dd> |
|
1912 dictionary containing the session data as |
|
1913 generated by getSessionData() |
|
1914 </dd> |
|
1915 </dl> |
|
1916 <a NAME="WebBrowserView.mainWindow" ID="WebBrowserView.mainWindow"></a> |
|
1917 <h4>WebBrowserView.mainWindow</h4> |
|
1918 <b>mainWindow</b>(<i></i>) |
|
1919 |
|
1920 <p> |
|
1921 Public method to get a reference to the main window. |
|
1922 </p> |
|
1923 <dl> |
|
1924 <dt>Return:</dt> |
|
1925 <dd> |
|
1926 reference to the main window |
|
1927 </dd> |
|
1928 </dl> |
|
1929 <dl> |
|
1930 <dt>Return Type:</dt> |
|
1931 <dd> |
|
1932 WebBrowserWindow |
|
1933 </dd> |
|
1934 </dl> |
|
1935 <a NAME="WebBrowserView.mapToViewport" ID="WebBrowserView.mapToViewport"></a> |
|
1936 <h4>WebBrowserView.mapToViewport</h4> |
|
1937 <b>mapToViewport</b>(<i>pos</i>) |
|
1938 |
|
1939 <p> |
|
1940 Public method to map a position to the viewport. |
|
1941 </p> |
|
1942 <dl> |
|
1943 |
|
1944 <dt><i>pos</i> (QPoint)</dt> |
|
1945 <dd> |
|
1946 position to be mapped |
|
1947 </dd> |
|
1948 </dl> |
|
1949 <dl> |
|
1950 <dt>Return:</dt> |
|
1951 <dd> |
|
1952 viewport position |
|
1953 </dd> |
|
1954 </dl> |
|
1955 <dl> |
|
1956 <dt>Return Type:</dt> |
|
1957 <dd> |
|
1958 QPoint |
|
1959 </dd> |
|
1960 </dl> |
|
1961 <a NAME="WebBrowserView.paste" ID="WebBrowserView.paste"></a> |
|
1962 <h4>WebBrowserView.paste</h4> |
|
1963 <b>paste</b>(<i></i>) |
|
1964 |
|
1965 <p> |
|
1966 Public slot to paste text from the clipboard. |
|
1967 </p> |
|
1968 <a NAME="WebBrowserView.preferencesChanged" ID="WebBrowserView.preferencesChanged"></a> |
|
1969 <h4>WebBrowserView.preferencesChanged</h4> |
|
1970 <b>preferencesChanged</b>(<i></i>) |
|
1971 |
|
1972 <p> |
|
1973 Public method to indicate a change of the settings. |
|
1974 </p> |
|
1975 <a NAME="WebBrowserView.progress" ID="WebBrowserView.progress"></a> |
|
1976 <h4>WebBrowserView.progress</h4> |
|
1977 <b>progress</b>(<i></i>) |
|
1978 |
|
1979 <p> |
|
1980 Public method to get the load progress. |
|
1981 </p> |
|
1982 <dl> |
|
1983 <dt>Return:</dt> |
|
1984 <dd> |
|
1985 load progress (integer) |
|
1986 </dd> |
|
1987 </dl> |
|
1988 <a NAME="WebBrowserView.redo" ID="WebBrowserView.redo"></a> |
|
1989 <h4>WebBrowserView.redo</h4> |
|
1990 <b>redo</b>(<i></i>) |
|
1991 |
|
1992 <p> |
|
1993 Public slot to redo the last edit action. |
|
1994 </p> |
|
1995 <a NAME="WebBrowserView.reload" ID="WebBrowserView.reload"></a> |
|
1996 <h4>WebBrowserView.reload</h4> |
|
1997 <b>reload</b>(<i></i>) |
|
1998 |
|
1999 <p> |
|
2000 Public slot to reload the current page. |
|
2001 </p> |
|
2002 <a NAME="WebBrowserView.reloadBypassingCache" ID="WebBrowserView.reloadBypassingCache"></a> |
|
2003 <h4>WebBrowserView.reloadBypassingCache</h4> |
|
2004 <b>reloadBypassingCache</b>(<i></i>) |
|
2005 |
|
2006 <p> |
|
2007 Public slot to reload the current page bypassing the cache. |
|
2008 </p> |
|
2009 <a NAME="WebBrowserView.requestFullScreen" ID="WebBrowserView.requestFullScreen"></a> |
|
2010 <h4>WebBrowserView.requestFullScreen</h4> |
|
2011 <b>requestFullScreen</b>(<i>enable</i>) |
|
2012 |
|
2013 <p> |
|
2014 Public method to request full screen mode. |
|
2015 </p> |
|
2016 <dl> |
|
2017 |
|
2018 <dt><i>enable</i> (bool)</dt> |
|
2019 <dd> |
|
2020 flag indicating full screen mode on or off |
|
2021 </dd> |
|
2022 </dl> |
|
2023 <a NAME="WebBrowserView.saveAs" ID="WebBrowserView.saveAs"></a> |
|
2024 <h4>WebBrowserView.saveAs</h4> |
|
2025 <b>saveAs</b>(<i></i>) |
|
2026 |
|
2027 <p> |
|
2028 Public method to save the current page to a file. |
|
2029 </p> |
|
2030 <a NAME="WebBrowserView.selectAll" ID="WebBrowserView.selectAll"></a> |
|
2031 <h4>WebBrowserView.selectAll</h4> |
|
2032 <b>selectAll</b>(<i></i>) |
|
2033 |
|
2034 <p> |
|
2035 Public slot to select all text. |
|
2036 </p> |
|
2037 <a NAME="WebBrowserView.setSource" ID="WebBrowserView.setSource"></a> |
|
2038 <h4>WebBrowserView.setSource</h4> |
|
2039 <b>setSource</b>(<i>name, newTab=False</i>) |
|
2040 |
|
2041 <p> |
|
2042 Public method used to set the source to be displayed. |
|
2043 </p> |
|
2044 <dl> |
|
2045 |
|
2046 <dt><i>name</i></dt> |
|
2047 <dd> |
|
2048 filename to be shown (QUrl) |
|
2049 </dd> |
|
2050 <dt><i>newTab</i></dt> |
|
2051 <dd> |
|
2052 flag indicating to open the URL in a new tab (bool) |
|
2053 </dd> |
|
2054 </dl> |
|
2055 <a NAME="WebBrowserView.setZoomValue" ID="WebBrowserView.setZoomValue"></a> |
|
2056 <h4>WebBrowserView.setZoomValue</h4> |
|
2057 <b>setZoomValue</b>(<i>value, saveValue=True</i>) |
|
2058 |
|
2059 <p> |
|
2060 Public method to set the zoom value. |
|
2061 </p> |
|
2062 <dl> |
|
2063 |
|
2064 <dt><i>value</i></dt> |
|
2065 <dd> |
|
2066 zoom value (integer) |
|
2067 </dd> |
|
2068 <dt><i>saveValue</i> (bool)</dt> |
|
2069 <dd> |
|
2070 flag indicating to save the zoom value with the |
|
2071 zoom manager |
|
2072 </dd> |
|
2073 </dl> |
|
2074 <a NAME="WebBrowserView.showEvent" ID="WebBrowserView.showEvent"></a> |
|
2075 <h4>WebBrowserView.showEvent</h4> |
|
2076 <b>showEvent</b>(<i>evt</i>) |
|
2077 |
|
2078 <p> |
|
2079 Protected method to handle show events. |
|
2080 </p> |
|
2081 <dl> |
|
2082 |
|
2083 <dt><i>evt</i> (QShowEvent)</dt> |
|
2084 <dd> |
|
2085 reference to the show event object |
|
2086 </dd> |
|
2087 </dl> |
|
2088 <a NAME="WebBrowserView.source" ID="WebBrowserView.source"></a> |
|
2089 <h4>WebBrowserView.source</h4> |
|
2090 <b>source</b>(<i></i>) |
|
2091 |
|
2092 <p> |
|
2093 Public method to return the URL of the loaded page. |
|
2094 </p> |
|
2095 <dl> |
|
2096 <dt>Return:</dt> |
|
2097 <dd> |
|
2098 URL loaded in the help browser (QUrl) |
|
2099 </dd> |
|
2100 </dl> |
|
2101 <a NAME="WebBrowserView.storeSessionData" ID="WebBrowserView.storeSessionData"></a> |
|
2102 <h4>WebBrowserView.storeSessionData</h4> |
|
2103 <b>storeSessionData</b>(<i>data</i>) |
|
2104 |
|
2105 <p> |
|
2106 Public method to store session data to be restored later on. |
|
2107 </p> |
|
2108 <dl> |
|
2109 |
|
2110 <dt><i>data</i> (dict)</dt> |
|
2111 <dd> |
|
2112 dictionary with session data to be restored |
|
2113 </dd> |
|
2114 </dl> |
|
2115 <a NAME="WebBrowserView.tabWidget" ID="WebBrowserView.tabWidget"></a> |
|
2116 <h4>WebBrowserView.tabWidget</h4> |
|
2117 <b>tabWidget</b>(<i></i>) |
|
2118 |
|
2119 <p> |
|
2120 Public method to get a reference to the tab widget containing this |
|
2121 view. |
|
2122 </p> |
|
2123 <dl> |
|
2124 <dt>Return:</dt> |
|
2125 <dd> |
|
2126 reference to the tab widget |
|
2127 </dd> |
|
2128 </dl> |
|
2129 <dl> |
|
2130 <dt>Return Type:</dt> |
|
2131 <dd> |
|
2132 WebBrowserTabWidget |
|
2133 </dd> |
|
2134 </dl> |
|
2135 <a NAME="WebBrowserView.title" ID="WebBrowserView.title"></a> |
|
2136 <h4>WebBrowserView.title</h4> |
|
2137 <b>title</b>(<i></i>) |
|
2138 |
|
2139 <p> |
|
2140 Public method to get the view title. |
|
2141 </p> |
|
2142 <dl> |
|
2143 <dt>Return:</dt> |
|
2144 <dd> |
|
2145 view title |
|
2146 </dd> |
|
2147 </dl> |
|
2148 <dl> |
|
2149 <dt>Return Type:</dt> |
|
2150 <dd> |
|
2151 str |
|
2152 </dd> |
|
2153 </dl> |
|
2154 <a NAME="WebBrowserView.undo" ID="WebBrowserView.undo"></a> |
|
2155 <h4>WebBrowserView.undo</h4> |
|
2156 <b>undo</b>(<i></i>) |
|
2157 |
|
2158 <p> |
|
2159 Public slot to undo the last edit action. |
|
2160 </p> |
|
2161 <a NAME="WebBrowserView.unselect" ID="WebBrowserView.unselect"></a> |
|
2162 <h4>WebBrowserView.unselect</h4> |
|
2163 <b>unselect</b>(<i></i>) |
|
2164 |
|
2165 <p> |
|
2166 Public slot to clear the current selection. |
|
2167 </p> |
|
2168 <a NAME="WebBrowserView.zoomIn" ID="WebBrowserView.zoomIn"></a> |
|
2169 <h4>WebBrowserView.zoomIn</h4> |
|
2170 <b>zoomIn</b>(<i></i>) |
|
2171 |
|
2172 <p> |
|
2173 Public slot to zoom into the page. |
|
2174 </p> |
|
2175 <a NAME="WebBrowserView.zoomOut" ID="WebBrowserView.zoomOut"></a> |
|
2176 <h4>WebBrowserView.zoomOut</h4> |
|
2177 <b>zoomOut</b>(<i></i>) |
|
2178 |
|
2179 <p> |
|
2180 Public slot to zoom out of the page. |
|
2181 </p> |
|
2182 <a NAME="WebBrowserView.zoomReset" ID="WebBrowserView.zoomReset"></a> |
|
2183 <h4>WebBrowserView.zoomReset</h4> |
|
2184 <b>zoomReset</b>(<i></i>) |
|
2185 |
|
2186 <p> |
|
2187 Public method to reset the zoom factor. |
|
2188 </p> |
|
2189 <a NAME="WebBrowserView.zoomValue" ID="WebBrowserView.zoomValue"></a> |
|
2190 <h4>WebBrowserView.zoomValue</h4> |
|
2191 <b>zoomValue</b>(<i></i>) |
|
2192 |
|
2193 <p> |
|
2194 Public method to get the current zoom value. |
|
2195 </p> |
|
2196 <dl> |
|
2197 <dt>Return:</dt> |
|
2198 <dd> |
|
2199 zoom value (integer) |
|
2200 </dd> |
|
2201 </dl> |
|
2202 <div align="right"><a href="#top">Up</a></div> |
|
2203 <hr /> |
|
2204 </body></html> |