5 <link rel="stylesheet" href="styles.css"> |
5 <link rel="stylesheet" href="styles.css"> |
6 </head> |
6 </head> |
7 <body> |
7 <body> |
8 <a NAME="top" ID="top"></a> |
8 <a NAME="top" ID="top"></a> |
9 <h1>eric7.WebBrowser.AdBlock.AdBlockIcon</h1> |
9 <h1>eric7.WebBrowser.AdBlock.AdBlockIcon</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing the AdBlock icon for the main window status bar. |
11 Module implementing the AdBlock icon for the main window status bar. |
13 </p> |
12 </p> |
|
13 |
14 <h3>Global Attributes</h3> |
14 <h3>Global Attributes</h3> |
15 |
15 <table> |
16 <table> |
16 <tr><td>None</td></tr> |
17 <tr><td>None</td></tr> |
17 </table> |
18 </table> |
18 |
19 <h3>Classes</h3> |
19 <h3>Classes</h3> |
20 |
20 <table> |
21 <table> |
|
22 |
|
23 <tr> |
21 <tr> |
24 <td><a href="#AdBlockIcon">AdBlockIcon</a></td> |
22 <td><a href="#AdBlockIcon">AdBlockIcon</a></td> |
25 <td>Class implementing the AdBlock icon for the main window status bar.</td> |
23 <td>Class implementing the AdBlock icon for the main window status bar.</td> |
26 </tr> |
24 </tr> |
27 </table> |
25 </table> |
|
26 |
28 <h3>Functions</h3> |
27 <h3>Functions</h3> |
29 |
28 <table> |
30 <table> |
29 <tr><td>None</td></tr> |
31 <tr><td>None</td></tr> |
30 </table> |
32 </table> |
31 |
33 <hr /> |
32 <hr /> |
34 <hr /> |
33 <hr /> |
35 <a NAME="AdBlockIcon" ID="AdBlockIcon"></a> |
34 <a NAME="AdBlockIcon" ID="AdBlockIcon"></a> |
36 <h2>AdBlockIcon</h2> |
35 <h2>AdBlockIcon</h2> |
37 |
|
38 <p> |
36 <p> |
39 Class implementing the AdBlock icon for the main window status bar. |
37 Class implementing the AdBlock icon for the main window status bar. |
40 </p> |
38 </p> |
|
39 |
41 <h3>Derived from</h3> |
40 <h3>Derived from</h3> |
42 EricClickableLabel |
41 EricClickableLabel |
43 <h3>Class Attributes</h3> |
42 <h3>Class Attributes</h3> |
44 |
43 <table> |
45 <table> |
44 <tr><td>None</td></tr> |
46 <tr><td>None</td></tr> |
45 </table> |
47 </table> |
46 |
48 <h3>Class Methods</h3> |
47 <h3>Class Methods</h3> |
49 |
48 <table> |
50 <table> |
49 <tr><td>None</td></tr> |
51 <tr><td>None</td></tr> |
50 </table> |
52 </table> |
51 |
53 <h3>Methods</h3> |
52 <h3>Methods</h3> |
54 |
53 <table> |
55 <table> |
|
56 |
|
57 <tr> |
54 <tr> |
58 <td><a href="#AdBlockIcon.__init__">AdBlockIcon</a></td> |
55 <td><a href="#AdBlockIcon.__init__">AdBlockIcon</a></td> |
59 <td>Constructor</td> |
56 <td>Constructor</td> |
60 </tr> |
57 </tr> |
61 <tr> |
58 <tr> |
93 <tr> |
90 <tr> |
94 <td><a href="#AdBlockIcon.sourceChanged">sourceChanged</a></td> |
91 <td><a href="#AdBlockIcon.sourceChanged">sourceChanged</a></td> |
95 <td>Public slot to handle URL changes.</td> |
92 <td>Public slot to handle URL changes.</td> |
96 </tr> |
93 </tr> |
97 </table> |
94 </table> |
|
95 |
98 <h3>Static Methods</h3> |
96 <h3>Static Methods</h3> |
99 |
97 <table> |
100 <table> |
98 <tr><td>None</td></tr> |
101 <tr><td>None</td></tr> |
99 </table> |
102 </table> |
100 |
103 |
101 |
104 <a NAME="AdBlockIcon.__init__" ID="AdBlockIcon.__init__"></a> |
102 <a NAME="AdBlockIcon.__init__" ID="AdBlockIcon.__init__"></a> |
105 <h4>AdBlockIcon (Constructor)</h4> |
103 <h4>AdBlockIcon (Constructor)</h4> |
106 <b>AdBlockIcon</b>(<i>parent</i>) |
104 <b>AdBlockIcon</b>(<i>parent</i>) |
107 |
|
108 <p> |
105 <p> |
109 Constructor |
106 Constructor |
110 </p> |
107 </p> |
|
108 |
111 <dl> |
109 <dl> |
112 |
110 |
113 <dt><i>parent</i> (WebBrowserWindow)</dt> |
111 <dt><i>parent</i> (WebBrowserWindow)</dt> |
114 <dd> |
112 <dd> |
115 reference to the parent widget |
113 reference to the parent widget |
116 </dd> |
114 </dd> |
117 </dl> |
115 </dl> |
118 <a NAME="AdBlockIcon.__aboutToShowMenu" ID="AdBlockIcon.__aboutToShowMenu"></a> |
116 <a NAME="AdBlockIcon.__aboutToShowMenu" ID="AdBlockIcon.__aboutToShowMenu"></a> |
119 <h4>AdBlockIcon.__aboutToShowMenu</h4> |
117 <h4>AdBlockIcon.__aboutToShowMenu</h4> |
120 <b>__aboutToShowMenu</b>(<i></i>) |
118 <b>__aboutToShowMenu</b>(<i></i>) |
121 |
|
122 <p> |
119 <p> |
123 Private slot to show the context menu. |
120 Private slot to show the context menu. |
124 </p> |
121 </p> |
|
122 |
125 <a NAME="AdBlockIcon.__enableAdBlock" ID="AdBlockIcon.__enableAdBlock"></a> |
123 <a NAME="AdBlockIcon.__enableAdBlock" ID="AdBlockIcon.__enableAdBlock"></a> |
126 <h4>AdBlockIcon.__enableAdBlock</h4> |
124 <h4>AdBlockIcon.__enableAdBlock</h4> |
127 <b>__enableAdBlock</b>(<i>enable</i>) |
125 <b>__enableAdBlock</b>(<i>enable</i>) |
128 |
|
129 <p> |
126 <p> |
130 Private slot to enable or disable AdBlock. |
127 Private slot to enable or disable AdBlock. |
131 </p> |
128 </p> |
|
129 |
132 <dl> |
130 <dl> |
133 |
131 |
134 <dt><i>enable</i> (bool)</dt> |
132 <dt><i>enable</i> (bool)</dt> |
135 <dd> |
133 <dd> |
136 flag indicating the desired enable state |
134 flag indicating the desired enable state |
137 </dd> |
135 </dd> |
138 </dl> |
136 </dl> |
139 <a NAME="AdBlockIcon.__isCurrentHostExcepted" ID="AdBlockIcon.__isCurrentHostExcepted"></a> |
137 <a NAME="AdBlockIcon.__isCurrentHostExcepted" ID="AdBlockIcon.__isCurrentHostExcepted"></a> |
140 <h4>AdBlockIcon.__isCurrentHostExcepted</h4> |
138 <h4>AdBlockIcon.__isCurrentHostExcepted</h4> |
141 <b>__isCurrentHostExcepted</b>(<i></i>) |
139 <b>__isCurrentHostExcepted</b>(<i></i>) |
142 |
|
143 <p> |
140 <p> |
144 Private method to check, if the host of the current browser is |
141 Private method to check, if the host of the current browser is |
145 excepted. |
142 excepted. |
146 </p> |
143 </p> |
|
144 |
147 <dl> |
145 <dl> |
148 <dt>Return:</dt> |
146 <dt>Return:</dt> |
149 <dd> |
147 <dd> |
150 flag indicating an exception |
148 flag indicating an exception |
151 </dd> |
149 </dd> |
157 </dd> |
155 </dd> |
158 </dl> |
156 </dl> |
159 <a NAME="AdBlockIcon.__setException" ID="AdBlockIcon.__setException"></a> |
157 <a NAME="AdBlockIcon.__setException" ID="AdBlockIcon.__setException"></a> |
160 <h4>AdBlockIcon.__setException</h4> |
158 <h4>AdBlockIcon.__setException</h4> |
161 <b>__setException</b>(<i>enable</i>) |
159 <b>__setException</b>(<i>enable</i>) |
162 |
|
163 <p> |
160 <p> |
164 Private slot to add or remove the current host from the list of |
161 Private slot to add or remove the current host from the list of |
165 exceptions. |
162 exceptions. |
166 </p> |
163 </p> |
|
164 |
167 <dl> |
165 <dl> |
168 |
166 |
169 <dt><i>enable</i> (bool)</dt> |
167 <dt><i>enable</i> (bool)</dt> |
170 <dd> |
168 <dd> |
171 flag indicating to set or remove an exception |
169 flag indicating to set or remove an exception |
172 </dd> |
170 </dd> |
173 </dl> |
171 </dl> |
174 <a NAME="AdBlockIcon.__showMenu" ID="AdBlockIcon.__showMenu"></a> |
172 <a NAME="AdBlockIcon.__showMenu" ID="AdBlockIcon.__showMenu"></a> |
175 <h4>AdBlockIcon.__showMenu</h4> |
173 <h4>AdBlockIcon.__showMenu</h4> |
176 <b>__showMenu</b>(<i>pos</i>) |
174 <b>__showMenu</b>(<i>pos</i>) |
177 |
|
178 <p> |
175 <p> |
179 Private slot to show the context menu. |
176 Private slot to show the context menu. |
180 </p> |
177 </p> |
|
178 |
181 <dl> |
179 <dl> |
182 |
180 |
183 <dt><i>pos</i> (QPoint)</dt> |
181 <dt><i>pos</i> (QPoint)</dt> |
184 <dd> |
182 <dd> |
185 position the context menu should be shown |
183 position the context menu should be shown |
186 </dd> |
184 </dd> |
187 </dl> |
185 </dl> |
188 <a NAME="AdBlockIcon.currentChanged" ID="AdBlockIcon.currentChanged"></a> |
186 <a NAME="AdBlockIcon.currentChanged" ID="AdBlockIcon.currentChanged"></a> |
189 <h4>AdBlockIcon.currentChanged</h4> |
187 <h4>AdBlockIcon.currentChanged</h4> |
190 <b>currentChanged</b>(<i></i>) |
188 <b>currentChanged</b>(<i></i>) |
191 |
|
192 <p> |
189 <p> |
193 Public slot to handle a change of the current browser tab. |
190 Public slot to handle a change of the current browser tab. |
194 </p> |
191 </p> |
|
192 |
195 <a NAME="AdBlockIcon.menu" ID="AdBlockIcon.menu"></a> |
193 <a NAME="AdBlockIcon.menu" ID="AdBlockIcon.menu"></a> |
196 <h4>AdBlockIcon.menu</h4> |
194 <h4>AdBlockIcon.menu</h4> |
197 <b>menu</b>(<i></i>) |
195 <b>menu</b>(<i></i>) |
198 |
|
199 <p> |
196 <p> |
200 Public method to get a reference to the menu. |
197 Public method to get a reference to the menu. |
201 </p> |
198 </p> |
|
199 |
202 <dl> |
200 <dl> |
203 <dt>Return:</dt> |
201 <dt>Return:</dt> |
204 <dd> |
202 <dd> |
205 reference to the menu |
203 reference to the menu |
206 </dd> |
204 </dd> |
212 </dd> |
210 </dd> |
213 </dl> |
211 </dl> |
214 <a NAME="AdBlockIcon.setEnabled" ID="AdBlockIcon.setEnabled"></a> |
212 <a NAME="AdBlockIcon.setEnabled" ID="AdBlockIcon.setEnabled"></a> |
215 <h4>AdBlockIcon.setEnabled</h4> |
213 <h4>AdBlockIcon.setEnabled</h4> |
216 <b>setEnabled</b>(<i>enabled</i>) |
214 <b>setEnabled</b>(<i>enabled</i>) |
217 |
|
218 <p> |
215 <p> |
219 Public slot to set the enabled state. |
216 Public slot to set the enabled state. |
220 </p> |
217 </p> |
|
218 |
221 <dl> |
219 <dl> |
222 |
220 |
223 <dt><i>enabled</i> (bool)</dt> |
221 <dt><i>enabled</i> (bool)</dt> |
224 <dd> |
222 <dd> |
225 enabled state |
223 enabled state |
226 </dd> |
224 </dd> |
227 </dl> |
225 </dl> |
228 <a NAME="AdBlockIcon.sourceChanged" ID="AdBlockIcon.sourceChanged"></a> |
226 <a NAME="AdBlockIcon.sourceChanged" ID="AdBlockIcon.sourceChanged"></a> |
229 <h4>AdBlockIcon.sourceChanged</h4> |
227 <h4>AdBlockIcon.sourceChanged</h4> |
230 <b>sourceChanged</b>(<i>browser, url</i>) |
228 <b>sourceChanged</b>(<i>browser, url</i>) |
231 |
|
232 <p> |
229 <p> |
233 Public slot to handle URL changes. |
230 Public slot to handle URL changes. |
234 </p> |
231 </p> |
|
232 |
235 <dl> |
233 <dl> |
236 |
234 |
237 <dt><i>browser</i> (WebBrowserView)</dt> |
235 <dt><i>browser</i> (WebBrowserView)</dt> |
238 <dd> |
236 <dd> |
239 reference to the browser |
237 reference to the browser |