src/eric7/Documentation/Source/eric7.WebBrowser.AdBlock.AdBlockTreeWidget.html

branch
eric7
changeset 10479
856476537696
parent 9209
b99e7fd55fd3
equal deleted inserted replaced
10478:de9106c55c3d 10479:856476537696
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.AdBlockTreeWidget</h1> 9 <h1>eric7.WebBrowser.AdBlock.AdBlockTreeWidget</h1>
10
11 <p> 10 <p>
12 Module implementing a tree widget for the AdBlock configuration dialog. 11 Module implementing a tree widget for the AdBlock configuration dialog.
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="#AdBlockTreeWidget">AdBlockTreeWidget</a></td> 22 <td><a href="#AdBlockTreeWidget">AdBlockTreeWidget</a></td>
25 <td>Class implementing a tree widget for the AdBlock configuration dialog.</td> 23 <td>Class implementing a tree widget for the AdBlock configuration dialog.</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="AdBlockTreeWidget" ID="AdBlockTreeWidget"></a> 34 <a NAME="AdBlockTreeWidget" ID="AdBlockTreeWidget"></a>
36 <h2>AdBlockTreeWidget</h2> 35 <h2>AdBlockTreeWidget</h2>
37
38 <p> 36 <p>
39 Class implementing a tree widget for the AdBlock configuration dialog. 37 Class implementing a tree widget for the AdBlock configuration dialog.
40 </p> 38 </p>
39
41 <h3>Derived from</h3> 40 <h3>Derived from</h3>
42 EricTreeWidget 41 EricTreeWidget
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="#AdBlockTreeWidget.__init__">AdBlockTreeWidget</a></td> 55 <td><a href="#AdBlockTreeWidget.__init__">AdBlockTreeWidget</a></td>
59 <td>Constructor</td> 56 <td>Constructor</td>
60 </tr> 57 </tr>
61 <tr> 58 <tr>
101 <tr> 98 <tr>
102 <td><a href="#AdBlockTreeWidget.subscription">subscription</a></td> 99 <td><a href="#AdBlockTreeWidget.subscription">subscription</a></td>
103 <td>Public method to get a reference to the subscription.</td> 100 <td>Public method to get a reference to the subscription.</td>
104 </tr> 101 </tr>
105 </table> 102 </table>
103
106 <h3>Static Methods</h3> 104 <h3>Static Methods</h3>
107 105 <table>
108 <table> 106 <tr><td>None</td></tr>
109 <tr><td>None</td></tr> 107 </table>
110 </table> 108
111 109
112 <a NAME="AdBlockTreeWidget.__init__" ID="AdBlockTreeWidget.__init__"></a> 110 <a NAME="AdBlockTreeWidget.__init__" ID="AdBlockTreeWidget.__init__"></a>
113 <h4>AdBlockTreeWidget (Constructor)</h4> 111 <h4>AdBlockTreeWidget (Constructor)</h4>
114 <b>AdBlockTreeWidget</b>(<i>subscription, parent=None</i>) 112 <b>AdBlockTreeWidget</b>(<i>subscription, parent=None</i>)
115
116 <p> 113 <p>
117 Constructor 114 Constructor
118 </p> 115 </p>
116
119 <dl> 117 <dl>
120 118
121 <dt><i>subscription</i> (AdBlockSubscription)</dt> 119 <dt><i>subscription</i> (AdBlockSubscription)</dt>
122 <dd> 120 <dd>
123 reference to the subscription 121 reference to the subscription
128 </dd> 126 </dd>
129 </dl> 127 </dl>
130 <a NAME="AdBlockTreeWidget.__adjustItemFeatures" ID="AdBlockTreeWidget.__adjustItemFeatures"></a> 128 <a NAME="AdBlockTreeWidget.__adjustItemFeatures" ID="AdBlockTreeWidget.__adjustItemFeatures"></a>
131 <h4>AdBlockTreeWidget.__adjustItemFeatures</h4> 129 <h4>AdBlockTreeWidget.__adjustItemFeatures</h4>
132 <b>__adjustItemFeatures</b>(<i>itm, rule</i>) 130 <b>__adjustItemFeatures</b>(<i>itm, rule</i>)
133
134 <p> 131 <p>
135 Private method to adjust an item. 132 Private method to adjust an item.
136 </p> 133 </p>
134
137 <dl> 135 <dl>
138 136
139 <dt><i>itm</i> (QTreeWidgetItem)</dt> 137 <dt><i>itm</i> (QTreeWidgetItem)</dt>
140 <dd> 138 <dd>
141 item to be adjusted 139 item to be adjusted
146 </dd> 144 </dd>
147 </dl> 145 </dl>
148 <a NAME="AdBlockTreeWidget.__contextMenuRequested" ID="AdBlockTreeWidget.__contextMenuRequested"></a> 146 <a NAME="AdBlockTreeWidget.__contextMenuRequested" ID="AdBlockTreeWidget.__contextMenuRequested"></a>
149 <h4>AdBlockTreeWidget.__contextMenuRequested</h4> 147 <h4>AdBlockTreeWidget.__contextMenuRequested</h4>
150 <b>__contextMenuRequested</b>(<i>pos</i>) 148 <b>__contextMenuRequested</b>(<i>pos</i>)
151
152 <p> 149 <p>
153 Private slot to show the context menu. 150 Private slot to show the context menu.
154 </p> 151 </p>
152
155 <dl> 153 <dl>
156 154
157 <dt><i>pos</i> (QPoint)</dt> 155 <dt><i>pos</i> (QPoint)</dt>
158 <dd> 156 <dd>
159 position for the menu 157 position for the menu
160 </dd> 158 </dd>
161 </dl> 159 </dl>
162 <a NAME="AdBlockTreeWidget.__copyFilter" ID="AdBlockTreeWidget.__copyFilter"></a> 160 <a NAME="AdBlockTreeWidget.__copyFilter" ID="AdBlockTreeWidget.__copyFilter"></a>
163 <h4>AdBlockTreeWidget.__copyFilter</h4> 161 <h4>AdBlockTreeWidget.__copyFilter</h4>
164 <b>__copyFilter</b>(<i></i>) 162 <b>__copyFilter</b>(<i></i>)
165
166 <p> 163 <p>
167 Private slot to copy the current filter to the clipboard. 164 Private slot to copy the current filter to the clipboard.
168 </p> 165 </p>
166
169 <a NAME="AdBlockTreeWidget.__itemChanged" ID="AdBlockTreeWidget.__itemChanged"></a> 167 <a NAME="AdBlockTreeWidget.__itemChanged" ID="AdBlockTreeWidget.__itemChanged"></a>
170 <h4>AdBlockTreeWidget.__itemChanged</h4> 168 <h4>AdBlockTreeWidget.__itemChanged</h4>
171 <b>__itemChanged</b>(<i>itm</i>) 169 <b>__itemChanged</b>(<i>itm</i>)
172
173 <p> 170 <p>
174 Private slot to handle the change of an item. 171 Private slot to handle the change of an item.
175 </p> 172 </p>
173
176 <dl> 174 <dl>
177 175
178 <dt><i>itm</i> (QTreeWidgetItem)</dt> 176 <dt><i>itm</i> (QTreeWidgetItem)</dt>
179 <dd> 177 <dd>
180 changed item 178 changed item
181 </dd> 179 </dd>
182 </dl> 180 </dl>
183 <a NAME="AdBlockTreeWidget.__subscriptionChanged" ID="AdBlockTreeWidget.__subscriptionChanged"></a> 181 <a NAME="AdBlockTreeWidget.__subscriptionChanged" ID="AdBlockTreeWidget.__subscriptionChanged"></a>
184 <h4>AdBlockTreeWidget.__subscriptionChanged</h4> 182 <h4>AdBlockTreeWidget.__subscriptionChanged</h4>
185 <b>__subscriptionChanged</b>(<i></i>) 183 <b>__subscriptionChanged</b>(<i></i>)
186
187 <p> 184 <p>
188 Private slot handling a subscription change. 185 Private slot handling a subscription change.
189 </p> 186 </p>
187
190 <a NAME="AdBlockTreeWidget.addRule" ID="AdBlockTreeWidget.addRule"></a> 188 <a NAME="AdBlockTreeWidget.addRule" ID="AdBlockTreeWidget.addRule"></a>
191 <h4>AdBlockTreeWidget.addRule</h4> 189 <h4>AdBlockTreeWidget.addRule</h4>
192 <b>addRule</b>(<i>filterRule=""</i>) 190 <b>addRule</b>(<i>filterRule=""</i>)
193
194 <p> 191 <p>
195 Public slot to add a new rule. 192 Public slot to add a new rule.
196 </p> 193 </p>
194
197 <dl> 195 <dl>
198 196
199 <dt><i>filterRule</i> (str)</dt> 197 <dt><i>filterRule</i> (str)</dt>
200 <dd> 198 <dd>
201 filter to be added 199 filter to be added
202 </dd> 200 </dd>
203 </dl> 201 </dl>
204 <a NAME="AdBlockTreeWidget.keyPressEvent" ID="AdBlockTreeWidget.keyPressEvent"></a> 202 <a NAME="AdBlockTreeWidget.keyPressEvent" ID="AdBlockTreeWidget.keyPressEvent"></a>
205 <h4>AdBlockTreeWidget.keyPressEvent</h4> 203 <h4>AdBlockTreeWidget.keyPressEvent</h4>
206 <b>keyPressEvent</b>(<i>evt</i>) 204 <b>keyPressEvent</b>(<i>evt</i>)
207
208 <p> 205 <p>
209 Protected method handling key presses. 206 Protected method handling key presses.
210 </p> 207 </p>
208
211 <dl> 209 <dl>
212 210
213 <dt><i>evt</i> (QKeyEvent)</dt> 211 <dt><i>evt</i> (QKeyEvent)</dt>
214 <dd> 212 <dd>
215 key press event 213 key press event
216 </dd> 214 </dd>
217 </dl> 215 </dl>
218 <a NAME="AdBlockTreeWidget.refresh" ID="AdBlockTreeWidget.refresh"></a> 216 <a NAME="AdBlockTreeWidget.refresh" ID="AdBlockTreeWidget.refresh"></a>
219 <h4>AdBlockTreeWidget.refresh</h4> 217 <h4>AdBlockTreeWidget.refresh</h4>
220 <b>refresh</b>(<i></i>) 218 <b>refresh</b>(<i></i>)
221
222 <p> 219 <p>
223 Public method to refresh the tree. 220 Public method to refresh the tree.
224 </p> 221 </p>
222
225 <a NAME="AdBlockTreeWidget.removeRule" ID="AdBlockTreeWidget.removeRule"></a> 223 <a NAME="AdBlockTreeWidget.removeRule" ID="AdBlockTreeWidget.removeRule"></a>
226 <h4>AdBlockTreeWidget.removeRule</h4> 224 <h4>AdBlockTreeWidget.removeRule</h4>
227 <b>removeRule</b>(<i></i>) 225 <b>removeRule</b>(<i></i>)
228
229 <p> 226 <p>
230 Public slot to remove the current rule. 227 Public slot to remove the current rule.
231 </p> 228 </p>
229
232 <a NAME="AdBlockTreeWidget.showRule" ID="AdBlockTreeWidget.showRule"></a> 230 <a NAME="AdBlockTreeWidget.showRule" ID="AdBlockTreeWidget.showRule"></a>
233 <h4>AdBlockTreeWidget.showRule</h4> 231 <h4>AdBlockTreeWidget.showRule</h4>
234 <b>showRule</b>(<i>rule</i>) 232 <b>showRule</b>(<i>rule</i>)
235
236 <p> 233 <p>
237 Public method to highlight the given rule. 234 Public method to highlight the given rule.
238 </p> 235 </p>
236
239 <dl> 237 <dl>
240 238
241 <dt><i>rule</i> (AdBlockRule)</dt> 239 <dt><i>rule</i> (AdBlockRule)</dt>
242 <dd> 240 <dd>
243 AdBlock rule to be shown 241 AdBlock rule to be shown
244 </dd> 242 </dd>
245 </dl> 243 </dl>
246 <a NAME="AdBlockTreeWidget.subscription" ID="AdBlockTreeWidget.subscription"></a> 244 <a NAME="AdBlockTreeWidget.subscription" ID="AdBlockTreeWidget.subscription"></a>
247 <h4>AdBlockTreeWidget.subscription</h4> 245 <h4>AdBlockTreeWidget.subscription</h4>
248 <b>subscription</b>(<i></i>) 246 <b>subscription</b>(<i></i>)
249
250 <p> 247 <p>
251 Public method to get a reference to the subscription. 248 Public method to get a reference to the subscription.
252 </p> 249 </p>
250
253 <dl> 251 <dl>
254 <dt>Return:</dt> 252 <dt>Return:</dt>
255 <dd> 253 <dd>
256 reference to the subscription 254 reference to the subscription
257 </dd> 255 </dd>

eric ide

mercurial