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