|
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.AdBlockDialog</title> |
|
6 <style> |
|
7 b'body {\n background:white;\n margin: 0em 1em 10em 1em;\n color: black;\n}\n\nh1 { color: white; background: #4FA4FF; }\nh2 { color: white; background: #4FA4FF; }\nh3 { color: white; background: #00557F; }\nh4 { color: white; background: #00557F; }\n \na { color: #AA5500; }\n' |
|
8 </style> |
|
9 </head> |
|
10 <body><a NAME="top" ID="top"></a> |
|
11 <h1>eric5.Helpviewer.AdBlock.AdBlockDialog</h1> |
|
12 <p> |
|
13 Module implementing the AdBlock configuration dialog. |
|
14 </p> |
|
15 <h3>Global Attributes</h3> |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 <table> |
|
21 <tr> |
|
22 <td><a href="#AdBlockDialog">AdBlockDialog</a></td> |
|
23 <td>Class implementing the AdBlock configuration dialog.</td> |
|
24 </tr> |
|
25 </table> |
|
26 <h3>Functions</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <hr /><hr /> |
|
31 <a NAME="AdBlockDialog" ID="AdBlockDialog"></a> |
|
32 <h2>AdBlockDialog</h2> |
|
33 <p> |
|
34 Class implementing the AdBlock configuration dialog. |
|
35 </p> |
|
36 <h3>Derived from</h3> |
|
37 QDialog, Ui_AdBlockDialog |
|
38 <h3>Class Attributes</h3> |
|
39 <table> |
|
40 <tr><td>None</td></tr> |
|
41 </table> |
|
42 <h3>Methods</h3> |
|
43 <table> |
|
44 <tr> |
|
45 <td><a href="#AdBlockDialog.__init__">AdBlockDialog</a></td> |
|
46 <td>Constructor</td> |
|
47 </tr><tr> |
|
48 <td><a href="#AdBlockDialog.__aboutToShowActionMenu">__aboutToShowActionMenu</a></td> |
|
49 <td>Private slot to show the actions menu.</td> |
|
50 </tr><tr> |
|
51 <td><a href="#AdBlockDialog.__browseSubscriptions">__browseSubscriptions</a></td> |
|
52 <td>Private slot to browse the list of available AdBlock subscriptions.</td> |
|
53 </tr><tr> |
|
54 <td><a href="#AdBlockDialog.__learnAboutWritingFilters">__learnAboutWritingFilters</a></td> |
|
55 <td>Private slot to show the web page about how to write filters.</td> |
|
56 </tr><tr> |
|
57 <td><a href="#AdBlockDialog.__removeSubscription">__removeSubscription</a></td> |
|
58 <td>Private slot to remove the selected subscription.</td> |
|
59 </tr><tr> |
|
60 <td><a href="#AdBlockDialog.__updateSubscription">__updateSubscription</a></td> |
|
61 <td>Private slot to update the selected subscription.</td> |
|
62 </tr><tr> |
|
63 <td><a href="#AdBlockDialog.addCustomRule">addCustomRule</a></td> |
|
64 <td>Public slot to add a custom AdBlock rule.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#AdBlockDialog.model">model</a></td> |
|
67 <td>Public method to return a reference to the subscriptions tree model.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#AdBlockDialog.setCurrentIndex">setCurrentIndex</a></td> |
|
70 <td>Private slot to set the current index of the subscriptions tree.</td> |
|
71 </tr> |
|
72 </table> |
|
73 <a NAME="AdBlockDialog.__init__" ID="AdBlockDialog.__init__"></a> |
|
74 <h4>AdBlockDialog (Constructor)</h4> |
|
75 <b>AdBlockDialog</b>(<i>parent = None</i>) |
|
76 <p> |
|
77 Constructor |
|
78 </p><a NAME="AdBlockDialog.__aboutToShowActionMenu" ID="AdBlockDialog.__aboutToShowActionMenu"></a> |
|
79 <h4>AdBlockDialog.__aboutToShowActionMenu</h4> |
|
80 <b>__aboutToShowActionMenu</b>(<i></i>) |
|
81 <p> |
|
82 Private slot to show the actions menu. |
|
83 </p><a NAME="AdBlockDialog.__browseSubscriptions" ID="AdBlockDialog.__browseSubscriptions"></a> |
|
84 <h4>AdBlockDialog.__browseSubscriptions</h4> |
|
85 <b>__browseSubscriptions</b>(<i></i>) |
|
86 <p> |
|
87 Private slot to browse the list of available AdBlock subscriptions. |
|
88 </p><a NAME="AdBlockDialog.__learnAboutWritingFilters" ID="AdBlockDialog.__learnAboutWritingFilters"></a> |
|
89 <h4>AdBlockDialog.__learnAboutWritingFilters</h4> |
|
90 <b>__learnAboutWritingFilters</b>(<i></i>) |
|
91 <p> |
|
92 Private slot to show the web page about how to write filters. |
|
93 </p><a NAME="AdBlockDialog.__removeSubscription" ID="AdBlockDialog.__removeSubscription"></a> |
|
94 <h4>AdBlockDialog.__removeSubscription</h4> |
|
95 <b>__removeSubscription</b>(<i></i>) |
|
96 <p> |
|
97 Private slot to remove the selected subscription. |
|
98 </p><a NAME="AdBlockDialog.__updateSubscription" ID="AdBlockDialog.__updateSubscription"></a> |
|
99 <h4>AdBlockDialog.__updateSubscription</h4> |
|
100 <b>__updateSubscription</b>(<i></i>) |
|
101 <p> |
|
102 Private slot to update the selected subscription. |
|
103 </p><a NAME="AdBlockDialog.addCustomRule" ID="AdBlockDialog.addCustomRule"></a> |
|
104 <h4>AdBlockDialog.addCustomRule</h4> |
|
105 <b>addCustomRule</b>(<i>rule</i>) |
|
106 <p> |
|
107 Public slot to add a custom AdBlock rule. |
|
108 </p><dl> |
|
109 <dt><i>rule</i></dt> |
|
110 <dd> |
|
111 string defining the rule to be added (string) |
|
112 </dd> |
|
113 </dl><a NAME="AdBlockDialog.model" ID="AdBlockDialog.model"></a> |
|
114 <h4>AdBlockDialog.model</h4> |
|
115 <b>model</b>(<i></i>) |
|
116 <p> |
|
117 Public method to return a reference to the subscriptions tree model. |
|
118 </p><a NAME="AdBlockDialog.setCurrentIndex" ID="AdBlockDialog.setCurrentIndex"></a> |
|
119 <h4>AdBlockDialog.setCurrentIndex</h4> |
|
120 <b>setCurrentIndex</b>(<i>index</i>) |
|
121 <p> |
|
122 Private slot to set the current index of the subscriptions tree. |
|
123 </p><dl> |
|
124 <dt><i>index</i></dt> |
|
125 <dd> |
|
126 index to be set (QModelIndex) |
|
127 </dd> |
|
128 </dl> |
|
129 <div align="right"><a href="#top">Up</a></div> |
|
130 <hr /> |
|
131 </body></html> |