|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' |
|
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> |
|
4 <html><head> |
|
5 <title>eric5.Helpviewer.AdBlock.AdBlockIcon</title> |
|
6 <style> |
|
7 body { |
|
8 background: #EDECE6; |
|
9 margin: 0em 1em 10em 1em; |
|
10 color: black; |
|
11 } |
|
12 |
|
13 h1 { color: white; background: #85774A; } |
|
14 h2 { color: white; background: #85774A; } |
|
15 h3 { color: white; background: #9D936E; } |
|
16 h4 { color: white; background: #9D936E; } |
|
17 |
|
18 a { color: #BA6D36; } |
|
19 |
|
20 </style> |
|
21 </head> |
|
22 <body><a NAME="top" ID="top"></a> |
|
23 <h1>eric5.Helpviewer.AdBlock.AdBlockIcon</h1> |
|
24 <p> |
|
25 Module implementing the AdBlock icon for the main window status bar. |
|
26 </p> |
|
27 <h3>Global Attributes</h3> |
|
28 <table> |
|
29 <tr><td>None</td></tr> |
|
30 </table> |
|
31 <h3>Classes</h3> |
|
32 <table> |
|
33 <tr> |
|
34 <td><a href="#AdBlockIcon">AdBlockIcon</a></td> |
|
35 <td>Class implementing the AdBlock icon for the main window status bar.</td> |
|
36 </tr> |
|
37 </table> |
|
38 <h3>Functions</h3> |
|
39 <table> |
|
40 <tr><td>None</td></tr> |
|
41 </table> |
|
42 <hr /><hr /> |
|
43 <a NAME="AdBlockIcon" ID="AdBlockIcon"></a> |
|
44 <h2>AdBlockIcon</h2> |
|
45 <p> |
|
46 Class implementing the AdBlock icon for the main window status bar. |
|
47 </p> |
|
48 <h3>Derived from</h3> |
|
49 E5ClickableLabel |
|
50 <h3>Class Attributes</h3> |
|
51 <table> |
|
52 <tr><td>None</td></tr> |
|
53 </table> |
|
54 <h3>Class Methods</h3> |
|
55 <table> |
|
56 <tr><td>None</td></tr> |
|
57 </table> |
|
58 <h3>Methods</h3> |
|
59 <table> |
|
60 <tr> |
|
61 <td><a href="#AdBlockIcon.__init__">AdBlockIcon</a></td> |
|
62 <td>Constructor</td> |
|
63 </tr><tr> |
|
64 <td><a href="#AdBlockIcon.__createMenu">__createMenu</a></td> |
|
65 <td>Private slot to create the context menu.</td> |
|
66 </tr><tr> |
|
67 <td><a href="#AdBlockIcon.__enableAdBlock">__enableAdBlock</a></td> |
|
68 <td>Private slot to enable or disable AdBlock.</td> |
|
69 </tr><tr> |
|
70 <td><a href="#AdBlockIcon.__showMenu">__showMenu</a></td> |
|
71 <td>Private slot to show the context menu.</td> |
|
72 </tr><tr> |
|
73 <td><a href="#AdBlockIcon.menuAction">menuAction</a></td> |
|
74 <td>Public method to get a reference to the menu action.</td> |
|
75 </tr><tr> |
|
76 <td><a href="#AdBlockIcon.setEnabled">setEnabled</a></td> |
|
77 <td>Public slot to set the enabled state.</td> |
|
78 </tr> |
|
79 </table> |
|
80 <h3>Static Methods</h3> |
|
81 <table> |
|
82 <tr><td>None</td></tr> |
|
83 </table> |
|
84 <a NAME="AdBlockIcon.__init__" ID="AdBlockIcon.__init__"></a> |
|
85 <h4>AdBlockIcon (Constructor)</h4> |
|
86 <b>AdBlockIcon</b>(<i>parent</i>) |
|
87 <p> |
|
88 Constructor |
|
89 </p><dl> |
|
90 <dt><i>parent</i></dt> |
|
91 <dd> |
|
92 reference to the parent widget (HelpWindow) |
|
93 </dd> |
|
94 </dl><a NAME="AdBlockIcon.__createMenu" ID="AdBlockIcon.__createMenu"></a> |
|
95 <h4>AdBlockIcon.__createMenu</h4> |
|
96 <b>__createMenu</b>(<i>menu=None</i>) |
|
97 <p> |
|
98 Private slot to create the context menu. |
|
99 </p><dl> |
|
100 <dt><i>menu</i></dt> |
|
101 <dd> |
|
102 parent menu (QMenu) |
|
103 </dd> |
|
104 </dl><a NAME="AdBlockIcon.__enableAdBlock" ID="AdBlockIcon.__enableAdBlock"></a> |
|
105 <h4>AdBlockIcon.__enableAdBlock</h4> |
|
106 <b>__enableAdBlock</b>(<i></i>) |
|
107 <p> |
|
108 Private slot to enable or disable AdBlock. |
|
109 </p><a NAME="AdBlockIcon.__showMenu" ID="AdBlockIcon.__showMenu"></a> |
|
110 <h4>AdBlockIcon.__showMenu</h4> |
|
111 <b>__showMenu</b>(<i>pos</i>) |
|
112 <p> |
|
113 Private slot to show the context menu. |
|
114 </p><dl> |
|
115 <dt><i>pos</i></dt> |
|
116 <dd> |
|
117 position the context menu should be shown (QPoint) |
|
118 </dd> |
|
119 </dl><a NAME="AdBlockIcon.menuAction" ID="AdBlockIcon.menuAction"></a> |
|
120 <h4>AdBlockIcon.menuAction</h4> |
|
121 <b>menuAction</b>(<i></i>) |
|
122 <p> |
|
123 Public method to get a reference to the menu action. |
|
124 </p><dl> |
|
125 <dt>Returns:</dt> |
|
126 <dd> |
|
127 reference to the menu action (QAction) |
|
128 </dd> |
|
129 </dl><a NAME="AdBlockIcon.setEnabled" ID="AdBlockIcon.setEnabled"></a> |
|
130 <h4>AdBlockIcon.setEnabled</h4> |
|
131 <b>setEnabled</b>(<i>enabled</i>) |
|
132 <p> |
|
133 Public slot to set the enabled state. |
|
134 </p><dl> |
|
135 <dt><i>enabled</i></dt> |
|
136 <dd> |
|
137 enabled state (boolean) |
|
138 </dd> |
|
139 </dl> |
|
140 <div align="right"><a href="#top">Up</a></div> |
|
141 <hr /> |
|
142 </body></html> |