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

changeset 3673
e26d7d0c1088
child 6123
39cd368143db
equal deleted inserted replaced
3670:f0cb7579c0b4 3673:e26d7d0c1088
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.Helpviewer.AdBlock.AdBlockIcon</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><a NAME="top" ID="top"></a>
22 <h1>eric6.Helpviewer.AdBlock.AdBlockIcon</h1>
23 <p>
24 Module implementing the AdBlock icon for the main window status bar.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>None</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr>
33 <td><a href="#AdBlockIcon">AdBlockIcon</a></td>
34 <td>Class implementing the AdBlock icon for the main window status bar.</td>
35 </tr>
36 </table>
37 <h3>Functions</h3>
38 <table>
39 <tr><td>None</td></tr>
40 </table>
41 <hr /><hr />
42 <a NAME="AdBlockIcon" ID="AdBlockIcon"></a>
43 <h2>AdBlockIcon</h2>
44 <p>
45 Class implementing the AdBlock icon for the main window status bar.
46 </p>
47 <h3>Derived from</h3>
48 E5ClickableLabel
49 <h3>Class Attributes</h3>
50 <table>
51 <tr><td>None</td></tr>
52 </table>
53 <h3>Class Methods</h3>
54 <table>
55 <tr><td>None</td></tr>
56 </table>
57 <h3>Methods</h3>
58 <table>
59 <tr>
60 <td><a href="#AdBlockIcon.__init__">AdBlockIcon</a></td>
61 <td>Constructor</td>
62 </tr><tr>
63 <td><a href="#AdBlockIcon.__createMenu">__createMenu</a></td>
64 <td>Private slot to create the context menu.</td>
65 </tr><tr>
66 <td><a href="#AdBlockIcon.__enableAdBlock">__enableAdBlock</a></td>
67 <td>Private slot to enable or disable AdBlock.</td>
68 </tr><tr>
69 <td><a href="#AdBlockIcon.__isCurrentHostExcepted">__isCurrentHostExcepted</a></td>
70 <td>Private method to check, if the host of the current browser is excepted.</td>
71 </tr><tr>
72 <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>
74 </tr><tr>
75 <td><a href="#AdBlockIcon.__showMenu">__showMenu</a></td>
76 <td>Private slot to show the context menu.</td>
77 </tr><tr>
78 <td><a href="#AdBlockIcon.currentChanged">currentChanged</a></td>
79 <td>Public slot to handle a change of the current browser tab.</td>
80 </tr><tr>
81 <td><a href="#AdBlockIcon.menuAction">menuAction</a></td>
82 <td>Public method to get a reference to the menu action.</td>
83 </tr><tr>
84 <td><a href="#AdBlockIcon.setEnabled">setEnabled</a></td>
85 <td>Public slot to set the enabled state.</td>
86 </tr><tr>
87 <td><a href="#AdBlockIcon.sourceChanged">sourceChanged</a></td>
88 <td>Public slot to handle URL changes.</td>
89 </tr>
90 </table>
91 <h3>Static Methods</h3>
92 <table>
93 <tr><td>None</td></tr>
94 </table>
95 <a NAME="AdBlockIcon.__init__" ID="AdBlockIcon.__init__"></a>
96 <h4>AdBlockIcon (Constructor)</h4>
97 <b>AdBlockIcon</b>(<i>parent</i>)
98 <p>
99 Constructor
100 </p><dl>
101 <dt><i>parent</i></dt>
102 <dd>
103 reference to the parent widget (HelpWindow)
104 </dd>
105 </dl><a NAME="AdBlockIcon.__createMenu" ID="AdBlockIcon.__createMenu"></a>
106 <h4>AdBlockIcon.__createMenu</h4>
107 <b>__createMenu</b>(<i>menu=None</i>)
108 <p>
109 Private slot to create the context menu.
110 </p><dl>
111 <dt><i>menu</i></dt>
112 <dd>
113 parent menu (QMenu)
114 </dd>
115 </dl><a NAME="AdBlockIcon.__enableAdBlock" ID="AdBlockIcon.__enableAdBlock"></a>
116 <h4>AdBlockIcon.__enableAdBlock</h4>
117 <b>__enableAdBlock</b>(<i></i>)
118 <p>
119 Private slot to enable or disable AdBlock.
120 </p><a NAME="AdBlockIcon.__isCurrentHostExcepted" ID="AdBlockIcon.__isCurrentHostExcepted"></a>
121 <h4>AdBlockIcon.__isCurrentHostExcepted</h4>
122 <b>__isCurrentHostExcepted</b>(<i></i>)
123 <p>
124 Private method to check, if the host of the current browser is
125 excepted.
126 </p><dl>
127 <dt>Returns:</dt>
128 <dd>
129 flag indicating an exception (boolean)
130 </dd>
131 </dl><a NAME="AdBlockIcon.__setException" ID="AdBlockIcon.__setException"></a>
132 <h4>AdBlockIcon.__setException</h4>
133 <b>__setException</b>(<i></i>)
134 <p>
135 Private slot to add or remove the current host from the list of
136 exceptions.
137 </p><a NAME="AdBlockIcon.__showMenu" ID="AdBlockIcon.__showMenu"></a>
138 <h4>AdBlockIcon.__showMenu</h4>
139 <b>__showMenu</b>(<i>pos</i>)
140 <p>
141 Private slot to show the context menu.
142 </p><dl>
143 <dt><i>pos</i></dt>
144 <dd>
145 position the context menu should be shown (QPoint)
146 </dd>
147 </dl><a NAME="AdBlockIcon.currentChanged" ID="AdBlockIcon.currentChanged"></a>
148 <h4>AdBlockIcon.currentChanged</h4>
149 <b>currentChanged</b>(<i></i>)
150 <p>
151 Public slot to handle a change of the current browser tab.
152 </p><a NAME="AdBlockIcon.menuAction" ID="AdBlockIcon.menuAction"></a>
153 <h4>AdBlockIcon.menuAction</h4>
154 <b>menuAction</b>(<i></i>)
155 <p>
156 Public method to get a reference to the menu action.
157 </p><dl>
158 <dt>Returns:</dt>
159 <dd>
160 reference to the menu action (QAction)
161 </dd>
162 </dl><a NAME="AdBlockIcon.setEnabled" ID="AdBlockIcon.setEnabled"></a>
163 <h4>AdBlockIcon.setEnabled</h4>
164 <b>setEnabled</b>(<i>enabled</i>)
165 <p>
166 Public slot to set the enabled state.
167 </p><dl>
168 <dt><i>enabled</i></dt>
169 <dd>
170 enabled state (boolean)
171 </dd>
172 </dl><a NAME="AdBlockIcon.sourceChanged" ID="AdBlockIcon.sourceChanged"></a>
173 <h4>AdBlockIcon.sourceChanged</h4>
174 <b>sourceChanged</b>(<i>browser, url</i>)
175 <p>
176 Public slot to handle URL changes.
177 </p><dl>
178 <dt><i>browser</i></dt>
179 <dd>
180 reference to the browser (HelpBrowser)
181 </dd><dt><i>url</i></dt>
182 <dd>
183 new URL (QUrl)
184 </dd>
185 </dl>
186 <div align="right"><a href="#top">Up</a></div>
187 <hr />
188 </body></html>

eric ide

mercurial