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