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

changeset 1970
02cf3bac079b
parent 1963
9c5b3235abf9
child 1972
5341662d6cfb
equal deleted inserted replaced
1969:5522b3266c8b 1970:02cf3bac079b
62 <td>Constructor</td> 62 <td>Constructor</td>
63 </tr><tr> 63 </tr><tr>
64 <td><a href="#AdBlockDialog.__aboutToShowActionMenu">__aboutToShowActionMenu</a></td> 64 <td><a href="#AdBlockDialog.__aboutToShowActionMenu">__aboutToShowActionMenu</a></td>
65 <td>Private slot to show the actions menu.</td> 65 <td>Private slot to show the actions menu.</td>
66 </tr><tr> 66 </tr><tr>
67 <td><a href="#AdBlockDialog.__addCustomRule">__addCustomRule</a></td>
68 <td>Private slot to add a custom AdBlock rule.</td>
69 </tr><tr>
67 <td><a href="#AdBlockDialog.__browseSubscriptions">__browseSubscriptions</a></td> 70 <td><a href="#AdBlockDialog.__browseSubscriptions">__browseSubscriptions</a></td>
68 <td>Private slot to browse the list of available AdBlock subscriptions.</td> 71 <td>Private slot to browse the list of available AdBlock subscriptions.</td>
69 </tr><tr> 72 </tr><tr>
70 <td><a href="#AdBlockDialog.__learnAboutWritingFilters">__learnAboutWritingFilters</a></td> 73 <td><a href="#AdBlockDialog.__learnAboutWritingFilters">__learnAboutWritingFilters</a></td>
71 <td>Private slot to show the web page about how to write filters.</td> 74 <td>Private slot to show the web page about how to write filters.</td>
72 </tr><tr> 75 </tr><tr>
76 <td><a href="#AdBlockDialog.__load">__load</a></td>
77 <td>Private slot to populate the tab widget with subscriptions.</td>
78 </tr><tr>
79 <td><a href="#AdBlockDialog.__loadSubscriptions">__loadSubscriptions</a></td>
80 <td>Private slot to load the AdBlock subscription rules.</td>
81 </tr><tr>
82 <td><a href="#AdBlockDialog.__removeCustomRule">__removeCustomRule</a></td>
83 <td>Private slot to remove a custom AdBlock rule.</td>
84 </tr><tr>
73 <td><a href="#AdBlockDialog.__removeSubscription">__removeSubscription</a></td> 85 <td><a href="#AdBlockDialog.__removeSubscription">__removeSubscription</a></td>
74 <td>Private slot to remove the selected subscription.</td> 86 <td>Private slot to remove the selected subscription.</td>
75 </tr><tr> 87 </tr><tr>
88 <td><a href="#AdBlockDialog.__setSubscriptionEnabled">__setSubscriptionEnabled</a></td>
89 <td>Private slot to set the enabled state of a subscription.</td>
90 </tr><tr>
91 <td><a href="#AdBlockDialog.__switchSubscriptionEnabled">__switchSubscriptionEnabled</a></td>
92 <td>Private slot to switch the enabled state of the selected subscription</td>
93 </tr><tr>
94 <td><a href="#AdBlockDialog.__updateAllSubscriptions">__updateAllSubscriptions</a></td>
95 <td>Private slot to update all subscriptions.</td>
96 </tr><tr>
76 <td><a href="#AdBlockDialog.__updateSubscription">__updateSubscription</a></td> 97 <td><a href="#AdBlockDialog.__updateSubscription">__updateSubscription</a></td>
77 <td>Private slot to update the selected subscription.</td> 98 <td>Private slot to update the selected subscription.</td>
78 </tr><tr> 99 </tr><tr>
79 <td><a href="#AdBlockDialog.addCustomRule">addCustomRule</a></td> 100 <td><a href="#AdBlockDialog.addSubscription">addSubscription</a></td>
80 <td>Public slot to add a custom AdBlock rule.</td> 101 <td>Public slot adding a subscription to the list.</td>
81 </tr><tr> 102 </tr><tr>
82 <td><a href="#AdBlockDialog.model">model</a></td> 103 <td><a href="#AdBlockDialog.on_adBlockGroup_toggled">on_adBlockGroup_toggled</a></td>
83 <td>Public method to return a reference to the subscriptions tree model.</td> 104 <td>Private slot handling the enabling/disabling of AdBlock.</td>
105 </tr><tr>
106 <td><a href="#AdBlockDialog.on_searchEdit_textChanged">on_searchEdit_textChanged</a></td>
107 <td>Private slot to set a new filter on the current widget.</td>
108 </tr><tr>
109 <td><a href="#AdBlockDialog.on_subscriptionsTabWidget_currentChanged">on_subscriptionsTabWidget_currentChanged</a></td>
110 <td>Private slot handling the selection of another tab.</td>
84 </tr><tr> 111 </tr><tr>
85 <td><a href="#AdBlockDialog.on_updateSpinBox_valueChanged">on_updateSpinBox_valueChanged</a></td> 112 <td><a href="#AdBlockDialog.on_updateSpinBox_valueChanged">on_updateSpinBox_valueChanged</a></td>
86 <td>Private slot to handle changes of the update period.</td> 113 <td>Private slot to handle changes of the update period.</td>
87 </tr><tr>
88 <td><a href="#AdBlockDialog.setCurrentIndex">setCurrentIndex</a></td>
89 <td>Private slot to set the current index of the subscriptions tree.</td>
90 </tr><tr> 114 </tr><tr>
91 <td><a href="#AdBlockDialog.showRule">showRule</a></td> 115 <td><a href="#AdBlockDialog.showRule">showRule</a></td>
92 <td>Public slot to show the given rule.</td> 116 <td>Public slot to show the given rule.</td>
93 </tr> 117 </tr>
94 </table> 118 </table>
104 </p><a NAME="AdBlockDialog.__aboutToShowActionMenu" ID="AdBlockDialog.__aboutToShowActionMenu"></a> 128 </p><a NAME="AdBlockDialog.__aboutToShowActionMenu" ID="AdBlockDialog.__aboutToShowActionMenu"></a>
105 <h4>AdBlockDialog.__aboutToShowActionMenu</h4> 129 <h4>AdBlockDialog.__aboutToShowActionMenu</h4>
106 <b>__aboutToShowActionMenu</b>(<i></i>) 130 <b>__aboutToShowActionMenu</b>(<i></i>)
107 <p> 131 <p>
108 Private slot to show the actions menu. 132 Private slot to show the actions menu.
133 </p><a NAME="AdBlockDialog.__addCustomRule" ID="AdBlockDialog.__addCustomRule"></a>
134 <h4>AdBlockDialog.__addCustomRule</h4>
135 <b>__addCustomRule</b>(<i></i>)
136 <p>
137 Private slot to add a custom AdBlock rule.
109 </p><a NAME="AdBlockDialog.__browseSubscriptions" ID="AdBlockDialog.__browseSubscriptions"></a> 138 </p><a NAME="AdBlockDialog.__browseSubscriptions" ID="AdBlockDialog.__browseSubscriptions"></a>
110 <h4>AdBlockDialog.__browseSubscriptions</h4> 139 <h4>AdBlockDialog.__browseSubscriptions</h4>
111 <b>__browseSubscriptions</b>(<i></i>) 140 <b>__browseSubscriptions</b>(<i></i>)
112 <p> 141 <p>
113 Private slot to browse the list of available AdBlock subscriptions. 142 Private slot to browse the list of available AdBlock subscriptions.
114 </p><a NAME="AdBlockDialog.__learnAboutWritingFilters" ID="AdBlockDialog.__learnAboutWritingFilters"></a> 143 </p><a NAME="AdBlockDialog.__learnAboutWritingFilters" ID="AdBlockDialog.__learnAboutWritingFilters"></a>
115 <h4>AdBlockDialog.__learnAboutWritingFilters</h4> 144 <h4>AdBlockDialog.__learnAboutWritingFilters</h4>
116 <b>__learnAboutWritingFilters</b>(<i></i>) 145 <b>__learnAboutWritingFilters</b>(<i></i>)
117 <p> 146 <p>
118 Private slot to show the web page about how to write filters. 147 Private slot to show the web page about how to write filters.
148 </p><a NAME="AdBlockDialog.__load" ID="AdBlockDialog.__load"></a>
149 <h4>AdBlockDialog.__load</h4>
150 <b>__load</b>(<i></i>)
151 <p>
152 Private slot to populate the tab widget with subscriptions.
153 </p><a NAME="AdBlockDialog.__loadSubscriptions" ID="AdBlockDialog.__loadSubscriptions"></a>
154 <h4>AdBlockDialog.__loadSubscriptions</h4>
155 <b>__loadSubscriptions</b>(<i></i>)
156 <p>
157 Private slot to load the AdBlock subscription rules.
158 </p><a NAME="AdBlockDialog.__removeCustomRule" ID="AdBlockDialog.__removeCustomRule"></a>
159 <h4>AdBlockDialog.__removeCustomRule</h4>
160 <b>__removeCustomRule</b>(<i></i>)
161 <p>
162 Private slot to remove a custom AdBlock rule.
119 </p><a NAME="AdBlockDialog.__removeSubscription" ID="AdBlockDialog.__removeSubscription"></a> 163 </p><a NAME="AdBlockDialog.__removeSubscription" ID="AdBlockDialog.__removeSubscription"></a>
120 <h4>AdBlockDialog.__removeSubscription</h4> 164 <h4>AdBlockDialog.__removeSubscription</h4>
121 <b>__removeSubscription</b>(<i></i>) 165 <b>__removeSubscription</b>(<i></i>)
122 <p> 166 <p>
123 Private slot to remove the selected subscription. 167 Private slot to remove the selected subscription.
168 </p><a NAME="AdBlockDialog.__setSubscriptionEnabled" ID="AdBlockDialog.__setSubscriptionEnabled"></a>
169 <h4>AdBlockDialog.__setSubscriptionEnabled</h4>
170 <b>__setSubscriptionEnabled</b>(<i>subscription, enable</i>)
171 <p>
172 Private slot to set the enabled state of a subscription.
173 </p><dl>
174 <dt><i>subscription</i></dt>
175 <dd>
176 subscription to set the state for (AdBlockSubscription)
177 </dd><dt><i>enable</i></dt>
178 <dd>
179 state to set to (boolean)
180 </dd>
181 </dl><a NAME="AdBlockDialog.__switchSubscriptionEnabled" ID="AdBlockDialog.__switchSubscriptionEnabled"></a>
182 <h4>AdBlockDialog.__switchSubscriptionEnabled</h4>
183 <b>__switchSubscriptionEnabled</b>(<i></i>)
184 <p>
185 Private slot to switch the enabled state of the selected subscription
186 </p><a NAME="AdBlockDialog.__updateAllSubscriptions" ID="AdBlockDialog.__updateAllSubscriptions"></a>
187 <h4>AdBlockDialog.__updateAllSubscriptions</h4>
188 <b>__updateAllSubscriptions</b>(<i></i>)
189 <p>
190 Private slot to update all subscriptions.
124 </p><a NAME="AdBlockDialog.__updateSubscription" ID="AdBlockDialog.__updateSubscription"></a> 191 </p><a NAME="AdBlockDialog.__updateSubscription" ID="AdBlockDialog.__updateSubscription"></a>
125 <h4>AdBlockDialog.__updateSubscription</h4> 192 <h4>AdBlockDialog.__updateSubscription</h4>
126 <b>__updateSubscription</b>(<i></i>) 193 <b>__updateSubscription</b>(<i></i>)
127 <p> 194 <p>
128 Private slot to update the selected subscription. 195 Private slot to update the selected subscription.
129 </p><a NAME="AdBlockDialog.addCustomRule" ID="AdBlockDialog.addCustomRule"></a> 196 </p><a NAME="AdBlockDialog.addSubscription" ID="AdBlockDialog.addSubscription"></a>
130 <h4>AdBlockDialog.addCustomRule</h4> 197 <h4>AdBlockDialog.addSubscription</h4>
131 <b>addCustomRule</b>(<i>rule=""</i>) 198 <b>addSubscription</b>(<i>subscription, refresh=True</i>)
132 <p> 199 <p>
133 Public slot to add a custom AdBlock rule. 200 Public slot adding a subscription to the list.
134 </p><dl> 201 </p><dl>
135 <dt><i>rule</i></dt> 202 <dt><i>subscription</i></dt>
136 <dd> 203 <dd>
137 string defining the rule to be added (string) 204 reference to the subscription to be
138 </dd> 205 added (AdBlockSubscription)
139 </dl><a NAME="AdBlockDialog.model" ID="AdBlockDialog.model"></a> 206 </dd><dt><i>refresh</i></dt>
140 <h4>AdBlockDialog.model</h4> 207 <dd>
141 <b>model</b>(<i></i>) 208 flag indicating to refresh the tree (boolean)
142 <p> 209 </dd>
143 Public method to return a reference to the subscriptions tree model. 210 </dl><a NAME="AdBlockDialog.on_adBlockGroup_toggled" ID="AdBlockDialog.on_adBlockGroup_toggled"></a>
144 </p><a NAME="AdBlockDialog.on_updateSpinBox_valueChanged" ID="AdBlockDialog.on_updateSpinBox_valueChanged"></a> 211 <h4>AdBlockDialog.on_adBlockGroup_toggled</h4>
212 <b>on_adBlockGroup_toggled</b>(<i>state</i>)
213 <p>
214 Private slot handling the enabling/disabling of AdBlock.
215 </p><dl>
216 <dt><i>state</i></dt>
217 <dd>
218 state of the toggle (boolean)
219 </dd>
220 </dl><a NAME="AdBlockDialog.on_searchEdit_textChanged" ID="AdBlockDialog.on_searchEdit_textChanged"></a>
221 <h4>AdBlockDialog.on_searchEdit_textChanged</h4>
222 <b>on_searchEdit_textChanged</b>(<i>filter</i>)
223 <p>
224 Private slot to set a new filter on the current widget.
225 </p><dl>
226 <dt><i>filter</i></dt>
227 <dd>
228 filter to be set (string)
229 </dd>
230 </dl><a NAME="AdBlockDialog.on_subscriptionsTabWidget_currentChanged" ID="AdBlockDialog.on_subscriptionsTabWidget_currentChanged"></a>
231 <h4>AdBlockDialog.on_subscriptionsTabWidget_currentChanged</h4>
232 <b>on_subscriptionsTabWidget_currentChanged</b>(<i>index</i>)
233 <p>
234 Private slot handling the selection of another tab.
235 </p><dl>
236 <dt><i>index</i></dt>
237 <dd>
238 index of the new current tab (integer)
239 </dd>
240 </dl><a NAME="AdBlockDialog.on_updateSpinBox_valueChanged" ID="AdBlockDialog.on_updateSpinBox_valueChanged"></a>
145 <h4>AdBlockDialog.on_updateSpinBox_valueChanged</h4> 241 <h4>AdBlockDialog.on_updateSpinBox_valueChanged</h4>
146 <b>on_updateSpinBox_valueChanged</b>(<i>value</i>) 242 <b>on_updateSpinBox_valueChanged</b>(<i>value</i>)
147 <p> 243 <p>
148 Private slot to handle changes of the update period. 244 Private slot to handle changes of the update period.
149 </p><dl> 245 </p><dl>
150 <dt><i>value</i></dt> 246 <dt><i>value</i></dt>
151 <dd> 247 <dd>
152 update period (integer) 248 update period (integer)
153 </dd>
154 </dl><a NAME="AdBlockDialog.setCurrentIndex" ID="AdBlockDialog.setCurrentIndex"></a>
155 <h4>AdBlockDialog.setCurrentIndex</h4>
156 <b>setCurrentIndex</b>(<i>index</i>)
157 <p>
158 Private slot to set the current index of the subscriptions tree.
159 </p><dl>
160 <dt><i>index</i></dt>
161 <dd>
162 index to be set (QModelIndex)
163 </dd> 249 </dd>
164 </dl><a NAME="AdBlockDialog.showRule" ID="AdBlockDialog.showRule"></a> 250 </dl><a NAME="AdBlockDialog.showRule" ID="AdBlockDialog.showRule"></a>
165 <h4>AdBlockDialog.showRule</h4> 251 <h4>AdBlockDialog.showRule</h4>
166 <b>showRule</b>(<i>rule</i>) 252 <b>showRule</b>(<i>rule</i>)
167 <p> 253 <p>

eric ide

mercurial