|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.WebBrowser.StatusBar.JavaScriptIcon</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.StatusBar.JavaScriptIcon</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing the JavaScript status bar icon. |
|
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="#JavaScriptIcon">JavaScriptIcon</a></td> |
|
25 <td>Class implementing the JavaScript status bar icon.</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="JavaScriptIcon" ID="JavaScriptIcon"></a> |
|
36 <h2>JavaScriptIcon</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing the JavaScript status bar icon. |
|
40 </p> |
|
41 <h3>Derived from</h3> |
|
42 StatusBarIcon |
|
43 <h3>Class Attributes</h3> |
|
44 |
|
45 <table> |
|
46 <tr><td>None</td></tr> |
|
47 </table> |
|
48 <h3>Class Methods</h3> |
|
49 |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Methods</h3> |
|
54 |
|
55 <table> |
|
56 |
|
57 <tr> |
|
58 <td><a href="#JavaScriptIcon.__init__">JavaScriptIcon</a></td> |
|
59 <td>Constructor</td> |
|
60 </tr> |
|
61 <tr> |
|
62 <td><a href="#JavaScriptIcon.__navigationRequestAccepted">__navigationRequestAccepted</a></td> |
|
63 <td>Private method to handle the navigationRequestAccepted signal.</td> |
|
64 </tr> |
|
65 <tr> |
|
66 <td><a href="#JavaScriptIcon.__showJavaScriptSettingsDialog">__showJavaScriptSettingsDialog</a></td> |
|
67 <td>Private slot to show the JavaScript settings dialog.</td> |
|
68 </tr> |
|
69 <tr> |
|
70 <td><a href="#JavaScriptIcon.__showMenu">__showMenu</a></td> |
|
71 <td>Private slot to show the menu.</td> |
|
72 </tr> |
|
73 <tr> |
|
74 <td><a href="#JavaScriptIcon.__toggleJavaScript">__toggleJavaScript</a></td> |
|
75 <td>Private slot to toggle the JavaScript setting.</td> |
|
76 </tr> |
|
77 <tr> |
|
78 <td><a href="#JavaScriptIcon.__updateIcon">__updateIcon</a></td> |
|
79 <td>Private slot to update the icon.</td> |
|
80 </tr> |
|
81 <tr> |
|
82 <td><a href="#JavaScriptIcon.preferencesChanged">preferencesChanged</a></td> |
|
83 <td>Public method to handle changes of the settings.</td> |
|
84 </tr> |
|
85 </table> |
|
86 <h3>Static Methods</h3> |
|
87 |
|
88 <table> |
|
89 <tr><td>None</td></tr> |
|
90 </table> |
|
91 |
|
92 <a NAME="JavaScriptIcon.__init__" ID="JavaScriptIcon.__init__"></a> |
|
93 <h4>JavaScriptIcon (Constructor)</h4> |
|
94 <b>JavaScriptIcon</b>(<i>window</i>) |
|
95 |
|
96 <p> |
|
97 Constructor |
|
98 </p> |
|
99 <dl> |
|
100 |
|
101 <dt><i>window</i> (WebBrowserWindow)</dt> |
|
102 <dd> |
|
103 reference to the web browser window |
|
104 </dd> |
|
105 </dl> |
|
106 <a NAME="JavaScriptIcon.__navigationRequestAccepted" ID="JavaScriptIcon.__navigationRequestAccepted"></a> |
|
107 <h4>JavaScriptIcon.__navigationRequestAccepted</h4> |
|
108 <b>__navigationRequestAccepted</b>(<i>url, navigationType, isMainFrame, page</i>) |
|
109 |
|
110 <p> |
|
111 Private method to handle the navigationRequestAccepted signal. |
|
112 </p> |
|
113 <dl> |
|
114 |
|
115 <dt><i>url</i> (QUrl)</dt> |
|
116 <dd> |
|
117 URL being loaded |
|
118 </dd> |
|
119 <dt><i>navigationType</i> (QWebEnginePage.NavigationType)</dt> |
|
120 <dd> |
|
121 type of navigation request |
|
122 </dd> |
|
123 <dt><i>isMainFrame</i> (bool)</dt> |
|
124 <dd> |
|
125 flag indicating a navigation request of the |
|
126 main frame |
|
127 </dd> |
|
128 <dt><i>page</i> (WebBrowserPage)</dt> |
|
129 <dd> |
|
130 reference to the web page |
|
131 </dd> |
|
132 </dl> |
|
133 <a NAME="JavaScriptIcon.__showJavaScriptSettingsDialog" ID="JavaScriptIcon.__showJavaScriptSettingsDialog"></a> |
|
134 <h4>JavaScriptIcon.__showJavaScriptSettingsDialog</h4> |
|
135 <b>__showJavaScriptSettingsDialog</b>(<i></i>) |
|
136 |
|
137 <p> |
|
138 Private slot to show the JavaScript settings dialog. |
|
139 </p> |
|
140 <p> |
|
141 Note: This is the JavaScript subset of the web browser configuration |
|
142 page. |
|
143 </p> |
|
144 <a NAME="JavaScriptIcon.__showMenu" ID="JavaScriptIcon.__showMenu"></a> |
|
145 <h4>JavaScriptIcon.__showMenu</h4> |
|
146 <b>__showMenu</b>(<i>pos</i>) |
|
147 |
|
148 <p> |
|
149 Private slot to show the menu. |
|
150 </p> |
|
151 <dl> |
|
152 |
|
153 <dt><i>pos</i> (QPoint)</dt> |
|
154 <dd> |
|
155 position to show the menu at |
|
156 </dd> |
|
157 </dl> |
|
158 <a NAME="JavaScriptIcon.__toggleJavaScript" ID="JavaScriptIcon.__toggleJavaScript"></a> |
|
159 <h4>JavaScriptIcon.__toggleJavaScript</h4> |
|
160 <b>__toggleJavaScript</b>(<i></i>) |
|
161 |
|
162 <p> |
|
163 Private slot to toggle the JavaScript setting. |
|
164 </p> |
|
165 <a NAME="JavaScriptIcon.__updateIcon" ID="JavaScriptIcon.__updateIcon"></a> |
|
166 <h4>JavaScriptIcon.__updateIcon</h4> |
|
167 <b>__updateIcon</b>(<i></i>) |
|
168 |
|
169 <p> |
|
170 Private slot to update the icon. |
|
171 </p> |
|
172 <a NAME="JavaScriptIcon.preferencesChanged" ID="JavaScriptIcon.preferencesChanged"></a> |
|
173 <h4>JavaScriptIcon.preferencesChanged</h4> |
|
174 <b>preferencesChanged</b>(<i></i>) |
|
175 |
|
176 <p> |
|
177 Public method to handle changes of the settings. |
|
178 </p> |
|
179 <div align="right"><a href="#top">Up</a></div> |
|
180 <hr /> |
|
181 </body></html> |