Documentation/Source/eric5.Helpviewer.AdBlock.AdBlockTreeWidget.html

changeset 1970
02cf3bac079b
child 1973
c643c1d33c7b
equal deleted inserted replaced
1969:5522b3266c8b 1970:02cf3bac079b
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.AdBlockTreeWidget</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.AdBlockTreeWidget</h1>
24 <p>
25 Module implementing a tree widget for the AdBlock configuration dialog.
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="#AdBlockTreeWidget">AdBlockTreeWidget</a></td>
35 <td>Class implementing a tree widget for the AdBlock configuration dialog.</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="AdBlockTreeWidget" ID="AdBlockTreeWidget"></a>
44 <h2>AdBlockTreeWidget</h2>
45 <p>
46 Class implementing a tree widget for the AdBlock configuration dialog.
47 </p>
48 <h3>Derived from</h3>
49 E5TreeWidget
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="#AdBlockTreeWidget.__init__">AdBlockTreeWidget</a></td>
62 <td>Constructor</td>
63 </tr><tr>
64 <td><a href="#AdBlockTreeWidget.__adjustItemFeatures">__adjustItemFeatures</a></td>
65 <td>Private method to adjust an item.</td>
66 </tr><tr>
67 <td><a href="#AdBlockTreeWidget.__contextMenuRequested">__contextMenuRequested</a></td>
68 <td>Private slot to show the context menu.</td>
69 </tr><tr>
70 <td><a href="#AdBlockTreeWidget.__copyFilter">__copyFilter</a></td>
71 <td>Private slot to copy the current filter to the clipboard.</td>
72 </tr><tr>
73 <td><a href="#AdBlockTreeWidget.__itemChanged">__itemChanged</a></td>
74 <td>Private slot to handle the change of an item.</td>
75 </tr><tr>
76 <td><a href="#AdBlockTreeWidget.__subscriptionChanged">__subscriptionChanged</a></td>
77 <td>Private slot handling a subscription change.</td>
78 </tr><tr>
79 <td><a href="#AdBlockTreeWidget.addRule">addRule</a></td>
80 <td>Public slot to add a new rule.</td>
81 </tr><tr>
82 <td><a href="#AdBlockTreeWidget.keyPressEvent">keyPressEvent</a></td>
83 <td>Protected method handling key presses.</td>
84 </tr><tr>
85 <td><a href="#AdBlockTreeWidget.refresh">refresh</a></td>
86 <td>Public method to refresh the tree.</td>
87 </tr><tr>
88 <td><a href="#AdBlockTreeWidget.removeRule">removeRule</a></td>
89 <td>Public slot to remove the current rule.</td>
90 </tr><tr>
91 <td><a href="#AdBlockTreeWidget.showRule">showRule</a></td>
92 <td>Public method to highlight the given rule.</td>
93 </tr><tr>
94 <td><a href="#AdBlockTreeWidget.subscription">subscription</a></td>
95 <td>Public method to get a reference to the subscription.</td>
96 </tr>
97 </table>
98 <h3>Static Methods</h3>
99 <table>
100 <tr><td>None</td></tr>
101 </table>
102 <a NAME="AdBlockTreeWidget.__init__" ID="AdBlockTreeWidget.__init__"></a>
103 <h4>AdBlockTreeWidget (Constructor)</h4>
104 <b>AdBlockTreeWidget</b>(<i>subscription, parent=None</i>)
105 <p>
106 Constructor
107 </p><dl>
108 <dt><i>subscription</i></dt>
109 <dd>
110 reference to the subscription (AdBlockSubscription)
111 </dd><dt><i>parenbt</i></dt>
112 <dd>
113 reference to the parent widget (QWidget)
114 </dd>
115 </dl><a NAME="AdBlockTreeWidget.__adjustItemFeatures" ID="AdBlockTreeWidget.__adjustItemFeatures"></a>
116 <h4>AdBlockTreeWidget.__adjustItemFeatures</h4>
117 <b>__adjustItemFeatures</b>(<i>itm, rule</i>)
118 <p>
119 Private method to adjust an item.
120 </p><dl>
121 <dt><i>itm</i></dt>
122 <dd>
123 item to be adjusted (QTreeWidgetItem)
124 </dd><dt><i>rule</i></dt>
125 <dd>
126 rule for the adjustment (AdBlockRule)
127 </dd>
128 </dl><a NAME="AdBlockTreeWidget.__contextMenuRequested" ID="AdBlockTreeWidget.__contextMenuRequested"></a>
129 <h4>AdBlockTreeWidget.__contextMenuRequested</h4>
130 <b>__contextMenuRequested</b>(<i>pos</i>)
131 <p>
132 Private slot to show the context menu.
133 </p><dl>
134 <dt><i>pos</i></dt>
135 <dd>
136 position for the menu (QPoint)
137 </dd>
138 </dl><a NAME="AdBlockTreeWidget.__copyFilter" ID="AdBlockTreeWidget.__copyFilter"></a>
139 <h4>AdBlockTreeWidget.__copyFilter</h4>
140 <b>__copyFilter</b>(<i></i>)
141 <p>
142 Private slot to copy the current filter to the clipboard.
143 </p><a NAME="AdBlockTreeWidget.__itemChanged" ID="AdBlockTreeWidget.__itemChanged"></a>
144 <h4>AdBlockTreeWidget.__itemChanged</h4>
145 <b>__itemChanged</b>(<i>itm</i>)
146 <p>
147 Private slot to handle the change of an item.
148 </p><dl>
149 <dt><i>itm</i></dt>
150 <dd>
151 changed item (QTreeWidgetItem)
152 </dd>
153 </dl><a NAME="AdBlockTreeWidget.__subscriptionChanged" ID="AdBlockTreeWidget.__subscriptionChanged"></a>
154 <h4>AdBlockTreeWidget.__subscriptionChanged</h4>
155 <b>__subscriptionChanged</b>(<i></i>)
156 <p>
157 Private slot handling a subscription change.
158 </p><a NAME="AdBlockTreeWidget.addRule" ID="AdBlockTreeWidget.addRule"></a>
159 <h4>AdBlockTreeWidget.addRule</h4>
160 <b>addRule</b>(<i></i>)
161 <p>
162 Public slot to add a new rule.
163 </p><a NAME="AdBlockTreeWidget.keyPressEvent" ID="AdBlockTreeWidget.keyPressEvent"></a>
164 <h4>AdBlockTreeWidget.keyPressEvent</h4>
165 <b>keyPressEvent</b>(<i>evt</i>)
166 <p>
167 Protected method handling key presses.
168 </p><dl>
169 <dt><i>evt</i></dt>
170 <dd>
171 key press event (QKeyEvent)
172 </dd>
173 </dl><a NAME="AdBlockTreeWidget.refresh" ID="AdBlockTreeWidget.refresh"></a>
174 <h4>AdBlockTreeWidget.refresh</h4>
175 <b>refresh</b>(<i></i>)
176 <p>
177 Public method to refresh the tree.
178 </p><a NAME="AdBlockTreeWidget.removeRule" ID="AdBlockTreeWidget.removeRule"></a>
179 <h4>AdBlockTreeWidget.removeRule</h4>
180 <b>removeRule</b>(<i></i>)
181 <p>
182 Public slot to remove the current rule.
183 </p><a NAME="AdBlockTreeWidget.showRule" ID="AdBlockTreeWidget.showRule"></a>
184 <h4>AdBlockTreeWidget.showRule</h4>
185 <b>showRule</b>(<i>rule</i>)
186 <p>
187 Public method to highlight the given rule.
188 </p><dl>
189 <dt><i>rule</i></dt>
190 <dd>
191 AdBlock rule to be shown (AdBlockRule)
192 </dd>
193 </dl><a NAME="AdBlockTreeWidget.subscription" ID="AdBlockTreeWidget.subscription"></a>
194 <h4>AdBlockTreeWidget.subscription</h4>
195 <b>subscription</b>(<i></i>)
196 <p>
197 Public method to get a reference to the subscription.
198 </p><dl>
199 <dt>Returns:</dt>
200 <dd>
201 reference to the subscription (AdBlockSubscription)
202 </dd>
203 </dl>
204 <div align="right"><a href="#top">Up</a></div>
205 <hr />
206 </body></html>

eric ide

mercurial