eric6/Documentation/Source/eric6.WebBrowser.AdBlock.AdBlockIcon.html

changeset 7273
391d6b7b1eff
parent 6942
2602857055c5
child 7776
4a8edf69dd64
equal deleted inserted replaced
7272:1779dc278077 7273:391d6b7b1eff
16 16
17 a { color: #BA6D36; } 17 a { color: #BA6D36; }
18 18
19 </style> 19 </style>
20 </head> 20 </head>
21 <body><a NAME="top" ID="top"></a> 21 <body>
22 <a NAME="top" ID="top"></a>
22 <h1>eric6.WebBrowser.AdBlock.AdBlockIcon</h1> 23 <h1>eric6.WebBrowser.AdBlock.AdBlockIcon</h1>
24
23 <p> 25 <p>
24 Module implementing the AdBlock icon for the main window status bar. 26 Module implementing the AdBlock icon for the main window status bar.
25 </p> 27 </p>
26 <h3>Global Attributes</h3> 28 <h3>Global Attributes</h3>
29
27 <table> 30 <table>
28 <tr><td>None</td></tr> 31 <tr><td>None</td></tr>
29 </table> 32 </table>
30 <h3>Classes</h3> 33 <h3>Classes</h3>
31 <table> 34
35 <table>
36
32 <tr> 37 <tr>
33 <td><a href="#AdBlockIcon">AdBlockIcon</a></td> 38 <td><a href="#AdBlockIcon">AdBlockIcon</a></td>
34 <td>Class implementing the AdBlock icon for the main window status bar.</td> 39 <td>Class implementing the AdBlock icon for the main window status bar.</td>
35 </tr> 40 </tr>
36 </table> 41 </table>
37 <h3>Functions</h3> 42 <h3>Functions</h3>
38 <table> 43
39 <tr><td>None</td></tr> 44 <table>
40 </table> 45 <tr><td>None</td></tr>
41 <hr /><hr /> 46 </table>
47 <hr />
48 <hr />
42 <a NAME="AdBlockIcon" ID="AdBlockIcon"></a> 49 <a NAME="AdBlockIcon" ID="AdBlockIcon"></a>
43 <h2>AdBlockIcon</h2> 50 <h2>AdBlockIcon</h2>
51
44 <p> 52 <p>
45 Class implementing the AdBlock icon for the main window status bar. 53 Class implementing the AdBlock icon for the main window status bar.
46 </p> 54 </p>
47 <h3>Derived from</h3> 55 <h3>Derived from</h3>
48 E5ClickableLabel 56 E5ClickableLabel
49 <h3>Class Attributes</h3> 57 <h3>Class Attributes</h3>
58
50 <table> 59 <table>
51 <tr><td>None</td></tr> 60 <tr><td>None</td></tr>
52 </table> 61 </table>
53 <h3>Class Methods</h3> 62 <h3>Class Methods</h3>
63
54 <table> 64 <table>
55 <tr><td>None</td></tr> 65 <tr><td>None</td></tr>
56 </table> 66 </table>
57 <h3>Methods</h3> 67 <h3>Methods</h3>
58 <table> 68
69 <table>
70
59 <tr> 71 <tr>
60 <td><a href="#AdBlockIcon.__init__">AdBlockIcon</a></td> 72 <td><a href="#AdBlockIcon.__init__">AdBlockIcon</a></td>
61 <td>Constructor</td> 73 <td>Constructor</td>
62 </tr><tr> 74 </tr>
75 <tr>
63 <td><a href="#AdBlockIcon.__createMenu">__createMenu</a></td> 76 <td><a href="#AdBlockIcon.__createMenu">__createMenu</a></td>
64 <td>Private slot to create the context menu.</td> 77 <td>Private slot to create the context menu.</td>
65 </tr><tr> 78 </tr>
79 <tr>
66 <td><a href="#AdBlockIcon.__enableAdBlock">__enableAdBlock</a></td> 80 <td><a href="#AdBlockIcon.__enableAdBlock">__enableAdBlock</a></td>
67 <td>Private slot to enable or disable AdBlock.</td> 81 <td>Private slot to enable or disable AdBlock.</td>
68 </tr><tr> 82 </tr>
83 <tr>
69 <td><a href="#AdBlockIcon.__isCurrentHostExcepted">__isCurrentHostExcepted</a></td> 84 <td><a href="#AdBlockIcon.__isCurrentHostExcepted">__isCurrentHostExcepted</a></td>
70 <td>Private method to check, if the host of the current browser is excepted.</td> 85 <td>Private method to check, if the host of the current browser is excepted.</td>
71 </tr><tr> 86 </tr>
87 <tr>
72 <td><a href="#AdBlockIcon.__setException">__setException</a></td> 88 <td><a href="#AdBlockIcon.__setException">__setException</a></td>
73 <td>Private slot to add or remove the current host from the list of exceptions.</td> 89 <td>Private slot to add or remove the current host from the list of exceptions.</td>
74 </tr><tr> 90 </tr>
91 <tr>
75 <td><a href="#AdBlockIcon.__showMenu">__showMenu</a></td> 92 <td><a href="#AdBlockIcon.__showMenu">__showMenu</a></td>
76 <td>Private slot to show the context menu.</td> 93 <td>Private slot to show the context menu.</td>
77 </tr><tr> 94 </tr>
95 <tr>
78 <td><a href="#AdBlockIcon.currentChanged">currentChanged</a></td> 96 <td><a href="#AdBlockIcon.currentChanged">currentChanged</a></td>
79 <td>Public slot to handle a change of the current browser tab.</td> 97 <td>Public slot to handle a change of the current browser tab.</td>
80 </tr><tr> 98 </tr>
99 <tr>
81 <td><a href="#AdBlockIcon.menuAction">menuAction</a></td> 100 <td><a href="#AdBlockIcon.menuAction">menuAction</a></td>
82 <td>Public method to get a reference to the menu action.</td> 101 <td>Public method to get a reference to the menu action.</td>
83 </tr><tr> 102 </tr>
103 <tr>
84 <td><a href="#AdBlockIcon.setEnabled">setEnabled</a></td> 104 <td><a href="#AdBlockIcon.setEnabled">setEnabled</a></td>
85 <td>Public slot to set the enabled state.</td> 105 <td>Public slot to set the enabled state.</td>
86 </tr><tr> 106 </tr>
107 <tr>
87 <td><a href="#AdBlockIcon.sourceChanged">sourceChanged</a></td> 108 <td><a href="#AdBlockIcon.sourceChanged">sourceChanged</a></td>
88 <td>Public slot to handle URL changes.</td> 109 <td>Public slot to handle URL changes.</td>
89 </tr> 110 </tr>
90 </table> 111 </table>
91 <h3>Static Methods</h3> 112 <h3>Static Methods</h3>
92 <table> 113
93 <tr><td>None</td></tr> 114 <table>
94 </table> 115 <tr><td>None</td></tr>
116 </table>
117
95 <a NAME="AdBlockIcon.__init__" ID="AdBlockIcon.__init__"></a> 118 <a NAME="AdBlockIcon.__init__" ID="AdBlockIcon.__init__"></a>
96 <h4>AdBlockIcon (Constructor)</h4> 119 <h4>AdBlockIcon (Constructor)</h4>
97 <b>AdBlockIcon</b>(<i>parent</i>) 120 <b>AdBlockIcon</b>(<i>parent</i>)
121
98 <p> 122 <p>
99 Constructor 123 Constructor
100 </p><dl> 124 </p>
125 <dl>
126
101 <dt><i>parent</i> (WebBrowserWindow)</dt> 127 <dt><i>parent</i> (WebBrowserWindow)</dt>
102 <dd> 128 <dd>
103 reference to the parent widget 129 reference to the parent widget
104 </dd> 130 </dd>
105 </dl><a NAME="AdBlockIcon.__createMenu" ID="AdBlockIcon.__createMenu"></a> 131 </dl>
132 <a NAME="AdBlockIcon.__createMenu" ID="AdBlockIcon.__createMenu"></a>
106 <h4>AdBlockIcon.__createMenu</h4> 133 <h4>AdBlockIcon.__createMenu</h4>
107 <b>__createMenu</b>(<i>menu</i>) 134 <b>__createMenu</b>(<i>menu</i>)
135
108 <p> 136 <p>
109 Private slot to create the context menu. 137 Private slot to create the context menu.
110 </p><dl> 138 </p>
139 <dl>
140
111 <dt><i>menu</i> (QMenu)</dt> 141 <dt><i>menu</i> (QMenu)</dt>
112 <dd> 142 <dd>
113 parent menu 143 parent menu
114 </dd> 144 </dd>
115 </dl><a NAME="AdBlockIcon.__enableAdBlock" ID="AdBlockIcon.__enableAdBlock"></a> 145 </dl>
146 <a NAME="AdBlockIcon.__enableAdBlock" ID="AdBlockIcon.__enableAdBlock"></a>
116 <h4>AdBlockIcon.__enableAdBlock</h4> 147 <h4>AdBlockIcon.__enableAdBlock</h4>
117 <b>__enableAdBlock</b>(<i>act</i>) 148 <b>__enableAdBlock</b>(<i>act</i>)
149
118 <p> 150 <p>
119 Private slot to enable or disable AdBlock. 151 Private slot to enable or disable AdBlock.
120 </p><dl> 152 </p>
153 <dl>
154
121 <dt><i>act</i> (QAction)</dt> 155 <dt><i>act</i> (QAction)</dt>
122 <dd> 156 <dd>
123 reference to the action 157 reference to the action
124 </dd> 158 </dd>
125 </dl><a NAME="AdBlockIcon.__isCurrentHostExcepted" ID="AdBlockIcon.__isCurrentHostExcepted"></a> 159 </dl>
160 <a NAME="AdBlockIcon.__isCurrentHostExcepted" ID="AdBlockIcon.__isCurrentHostExcepted"></a>
126 <h4>AdBlockIcon.__isCurrentHostExcepted</h4> 161 <h4>AdBlockIcon.__isCurrentHostExcepted</h4>
127 <b>__isCurrentHostExcepted</b>(<i></i>) 162 <b>__isCurrentHostExcepted</b>(<i></i>)
163
128 <p> 164 <p>
129 Private method to check, if the host of the current browser is 165 Private method to check, if the host of the current browser is
130 excepted. 166 excepted.
131 </p><dl> 167 </p>
168 <dl>
132 <dt>Returns:</dt> 169 <dt>Returns:</dt>
133 <dd> 170 <dd>
134 flag indicating an exception 171 flag indicating an exception
135 </dd> 172 </dd>
136 </dl><dl> 173 </dl>
174 <dl>
137 <dt>Return Type:</dt> 175 <dt>Return Type:</dt>
138 <dd> 176 <dd>
139 bool 177 bool
140 </dd> 178 </dd>
141 </dl><a NAME="AdBlockIcon.__setException" ID="AdBlockIcon.__setException"></a> 179 </dl>
180 <a NAME="AdBlockIcon.__setException" ID="AdBlockIcon.__setException"></a>
142 <h4>AdBlockIcon.__setException</h4> 181 <h4>AdBlockIcon.__setException</h4>
143 <b>__setException</b>(<i>act</i>) 182 <b>__setException</b>(<i>act</i>)
183
144 <p> 184 <p>
145 Private slot to add or remove the current host from the list of 185 Private slot to add or remove the current host from the list of
146 exceptions. 186 exceptions.
147 </p><dl> 187 </p>
188 <dl>
189
148 <dt><i>act</i> (QAction)</dt> 190 <dt><i>act</i> (QAction)</dt>
149 <dd> 191 <dd>
150 referenced to the action 192 referenced to the action
151 </dd> 193 </dd>
152 </dl><a NAME="AdBlockIcon.__showMenu" ID="AdBlockIcon.__showMenu"></a> 194 </dl>
195 <a NAME="AdBlockIcon.__showMenu" ID="AdBlockIcon.__showMenu"></a>
153 <h4>AdBlockIcon.__showMenu</h4> 196 <h4>AdBlockIcon.__showMenu</h4>
154 <b>__showMenu</b>(<i>pos</i>) 197 <b>__showMenu</b>(<i>pos</i>)
198
155 <p> 199 <p>
156 Private slot to show the context menu. 200 Private slot to show the context menu.
157 </p><dl> 201 </p>
202 <dl>
203
158 <dt><i>pos</i> (QPoint)</dt> 204 <dt><i>pos</i> (QPoint)</dt>
159 <dd> 205 <dd>
160 position the context menu should be shown 206 position the context menu should be shown
161 </dd> 207 </dd>
162 </dl><a NAME="AdBlockIcon.currentChanged" ID="AdBlockIcon.currentChanged"></a> 208 </dl>
209 <a NAME="AdBlockIcon.currentChanged" ID="AdBlockIcon.currentChanged"></a>
163 <h4>AdBlockIcon.currentChanged</h4> 210 <h4>AdBlockIcon.currentChanged</h4>
164 <b>currentChanged</b>(<i></i>) 211 <b>currentChanged</b>(<i></i>)
212
165 <p> 213 <p>
166 Public slot to handle a change of the current browser tab. 214 Public slot to handle a change of the current browser tab.
167 </p><a NAME="AdBlockIcon.menuAction" ID="AdBlockIcon.menuAction"></a> 215 </p>
216 <a NAME="AdBlockIcon.menuAction" ID="AdBlockIcon.menuAction"></a>
168 <h4>AdBlockIcon.menuAction</h4> 217 <h4>AdBlockIcon.menuAction</h4>
169 <b>menuAction</b>(<i></i>) 218 <b>menuAction</b>(<i></i>)
219
170 <p> 220 <p>
171 Public method to get a reference to the menu action. 221 Public method to get a reference to the menu action.
172 </p><dl> 222 </p>
223 <dl>
173 <dt>Returns:</dt> 224 <dt>Returns:</dt>
174 <dd> 225 <dd>
175 reference to the menu action 226 reference to the menu action
176 </dd> 227 </dd>
177 </dl><dl> 228 </dl>
229 <dl>
178 <dt>Return Type:</dt> 230 <dt>Return Type:</dt>
179 <dd> 231 <dd>
180 QAction 232 QAction
181 </dd> 233 </dd>
182 </dl><a NAME="AdBlockIcon.setEnabled" ID="AdBlockIcon.setEnabled"></a> 234 </dl>
235 <a NAME="AdBlockIcon.setEnabled" ID="AdBlockIcon.setEnabled"></a>
183 <h4>AdBlockIcon.setEnabled</h4> 236 <h4>AdBlockIcon.setEnabled</h4>
184 <b>setEnabled</b>(<i>enabled</i>) 237 <b>setEnabled</b>(<i>enabled</i>)
238
185 <p> 239 <p>
186 Public slot to set the enabled state. 240 Public slot to set the enabled state.
187 </p><dl> 241 </p>
242 <dl>
243
188 <dt><i>enabled</i> (bool)</dt> 244 <dt><i>enabled</i> (bool)</dt>
189 <dd> 245 <dd>
190 enabled state 246 enabled state
191 </dd> 247 </dd>
192 </dl><a NAME="AdBlockIcon.sourceChanged" ID="AdBlockIcon.sourceChanged"></a> 248 </dl>
249 <a NAME="AdBlockIcon.sourceChanged" ID="AdBlockIcon.sourceChanged"></a>
193 <h4>AdBlockIcon.sourceChanged</h4> 250 <h4>AdBlockIcon.sourceChanged</h4>
194 <b>sourceChanged</b>(<i>browser, url</i>) 251 <b>sourceChanged</b>(<i>browser, url</i>)
252
195 <p> 253 <p>
196 Public slot to handle URL changes. 254 Public slot to handle URL changes.
197 </p><dl> 255 </p>
256 <dl>
257
198 <dt><i>browser</i> (WebBrowserView)</dt> 258 <dt><i>browser</i> (WebBrowserView)</dt>
199 <dd> 259 <dd>
200 reference to the browser 260 reference to the browser
201 </dd><dt><i>url</i> (QUrl)</dt> 261 </dd>
262 <dt><i>url</i> (QUrl)</dt>
202 <dd> 263 <dd>
203 new URL 264 new URL
204 </dd> 265 </dd>
205 </dl> 266 </dl>
206 <div align="right"><a href="#top">Up</a></div> 267 <div align="right"><a href="#top">Up</a></div>

eric ide

mercurial