|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.WebBrowser.CookieJar.CookiesDialog</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.WebBrowser.CookieJar.CookiesDialog</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing a dialog to show all cookies. |
|
13 </p> |
|
14 <h3>Global Attributes</h3> |
|
15 |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 |
|
21 <table> |
|
22 |
|
23 <tr> |
|
24 <td><a href="#CookiesDialog">CookiesDialog</a></td> |
|
25 <td>Class implementing a dialog to show all cookies.</td> |
|
26 </tr> |
|
27 </table> |
|
28 <h3>Functions</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <hr /> |
|
34 <hr /> |
|
35 <a NAME="CookiesDialog" ID="CookiesDialog"></a> |
|
36 <h2>CookiesDialog</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing a dialog to show all cookies. |
|
40 </p> |
|
41 <h3>Derived from</h3> |
|
42 QDialog, Ui_CookiesDialog |
|
43 <h3>Class Attributes</h3> |
|
44 |
|
45 <table> |
|
46 <tr><td>CookieRole</td></tr><tr><td>DomainRole</td></tr> |
|
47 </table> |
|
48 <h3>Class Methods</h3> |
|
49 |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Methods</h3> |
|
54 |
|
55 <table> |
|
56 |
|
57 <tr> |
|
58 <td><a href="#CookiesDialog.__init__">CookiesDialog</a></td> |
|
59 <td>Constructor</td> |
|
60 </tr> |
|
61 <tr> |
|
62 <td><a href="#CookiesDialog.__addCookie">__addCookie</a></td> |
|
63 <td>Private method to add a cookie to the tree.</td> |
|
64 </tr> |
|
65 <tr> |
|
66 <td><a href="#CookiesDialog.__cookieDomain">__cookieDomain</a></td> |
|
67 <td>Private method to extract the cookie domain.</td> |
|
68 </tr> |
|
69 <tr> |
|
70 <td><a href="#CookiesDialog.__resizeColumns">__resizeColumns</a></td> |
|
71 <td>Private slot to resize the columns.</td> |
|
72 </tr> |
|
73 <tr> |
|
74 <td><a href="#CookiesDialog.on_addButton_clicked">on_addButton_clicked</a></td> |
|
75 <td>Private slot to add a new exception.</td> |
|
76 </tr> |
|
77 <tr> |
|
78 <td><a href="#CookiesDialog.on_cookiesTree_currentItemChanged">on_cookiesTree_currentItemChanged</a></td> |
|
79 <td>Private slot to handle a change of the current item.</td> |
|
80 </tr> |
|
81 <tr> |
|
82 <td><a href="#CookiesDialog.on_removeAllButton_clicked">on_removeAllButton_clicked</a></td> |
|
83 <td>Private slot to remove all cookies.</td> |
|
84 </tr> |
|
85 <tr> |
|
86 <td><a href="#CookiesDialog.on_removeButton_clicked">on_removeButton_clicked</a></td> |
|
87 <td>Private slot to remove the selected cookie(s).</td> |
|
88 </tr> |
|
89 <tr> |
|
90 <td><a href="#CookiesDialog.on_searchEdit_textChanged">on_searchEdit_textChanged</a></td> |
|
91 <td>Private slot to search and filter the cookie tree.</td> |
|
92 </tr> |
|
93 </table> |
|
94 <h3>Static Methods</h3> |
|
95 |
|
96 <table> |
|
97 <tr><td>None</td></tr> |
|
98 </table> |
|
99 |
|
100 <a NAME="CookiesDialog.__init__" ID="CookiesDialog.__init__"></a> |
|
101 <h4>CookiesDialog (Constructor)</h4> |
|
102 <b>CookiesDialog</b>(<i>cookieJar, parent=None</i>) |
|
103 |
|
104 <p> |
|
105 Constructor |
|
106 </p> |
|
107 <dl> |
|
108 |
|
109 <dt><i>cookieJar</i></dt> |
|
110 <dd> |
|
111 reference to the cookie jar (CookieJar) |
|
112 </dd> |
|
113 <dt><i>parent</i></dt> |
|
114 <dd> |
|
115 reference to the parent widget (QWidget) |
|
116 </dd> |
|
117 </dl> |
|
118 <a NAME="CookiesDialog.__addCookie" ID="CookiesDialog.__addCookie"></a> |
|
119 <h4>CookiesDialog.__addCookie</h4> |
|
120 <b>__addCookie</b>(<i>cookie</i>) |
|
121 |
|
122 <p> |
|
123 Private method to add a cookie to the tree. |
|
124 </p> |
|
125 <dl> |
|
126 |
|
127 <dt><i>cookie</i> (QNetworkCookie)</dt> |
|
128 <dd> |
|
129 reference to the cookie |
|
130 </dd> |
|
131 </dl> |
|
132 <a NAME="CookiesDialog.__cookieDomain" ID="CookiesDialog.__cookieDomain"></a> |
|
133 <h4>CookiesDialog.__cookieDomain</h4> |
|
134 <b>__cookieDomain</b>(<i>cookie</i>) |
|
135 |
|
136 <p> |
|
137 Private method to extract the cookie domain. |
|
138 </p> |
|
139 <dl> |
|
140 |
|
141 <dt><i>cookie</i> (QNetworkCookie)</dt> |
|
142 <dd> |
|
143 cookie to get the domain from |
|
144 </dd> |
|
145 </dl> |
|
146 <dl> |
|
147 <dt>Return:</dt> |
|
148 <dd> |
|
149 domain of the cookie |
|
150 </dd> |
|
151 </dl> |
|
152 <dl> |
|
153 <dt>Return Type:</dt> |
|
154 <dd> |
|
155 str |
|
156 </dd> |
|
157 </dl> |
|
158 <a NAME="CookiesDialog.__resizeColumns" ID="CookiesDialog.__resizeColumns"></a> |
|
159 <h4>CookiesDialog.__resizeColumns</h4> |
|
160 <b>__resizeColumns</b>(<i></i>) |
|
161 |
|
162 <p> |
|
163 Private slot to resize the columns. |
|
164 </p> |
|
165 <a NAME="CookiesDialog.on_addButton_clicked" ID="CookiesDialog.on_addButton_clicked"></a> |
|
166 <h4>CookiesDialog.on_addButton_clicked</h4> |
|
167 <b>on_addButton_clicked</b>(<i></i>) |
|
168 |
|
169 <p> |
|
170 Private slot to add a new exception. |
|
171 </p> |
|
172 <a NAME="CookiesDialog.on_cookiesTree_currentItemChanged" ID="CookiesDialog.on_cookiesTree_currentItemChanged"></a> |
|
173 <h4>CookiesDialog.on_cookiesTree_currentItemChanged</h4> |
|
174 <b>on_cookiesTree_currentItemChanged</b>(<i>current, previous</i>) |
|
175 |
|
176 <p> |
|
177 Private slot to handle a change of the current item. |
|
178 </p> |
|
179 <dl> |
|
180 |
|
181 <dt><i>current</i> (QTreeWidgetItem)</dt> |
|
182 <dd> |
|
183 reference to the current item |
|
184 </dd> |
|
185 <dt><i>previous</i> (QTreeWidgetItem)</dt> |
|
186 <dd> |
|
187 reference to the previous current item |
|
188 </dd> |
|
189 </dl> |
|
190 <a NAME="CookiesDialog.on_removeAllButton_clicked" ID="CookiesDialog.on_removeAllButton_clicked"></a> |
|
191 <h4>CookiesDialog.on_removeAllButton_clicked</h4> |
|
192 <b>on_removeAllButton_clicked</b>(<i></i>) |
|
193 |
|
194 <p> |
|
195 Private slot to remove all cookies. |
|
196 </p> |
|
197 <a NAME="CookiesDialog.on_removeButton_clicked" ID="CookiesDialog.on_removeButton_clicked"></a> |
|
198 <h4>CookiesDialog.on_removeButton_clicked</h4> |
|
199 <b>on_removeButton_clicked</b>(<i></i>) |
|
200 |
|
201 <p> |
|
202 Private slot to remove the selected cookie(s). |
|
203 </p> |
|
204 <a NAME="CookiesDialog.on_searchEdit_textChanged" ID="CookiesDialog.on_searchEdit_textChanged"></a> |
|
205 <h4>CookiesDialog.on_searchEdit_textChanged</h4> |
|
206 <b>on_searchEdit_textChanged</b>(<i>txt</i>) |
|
207 |
|
208 <p> |
|
209 Private slot to search and filter the cookie tree. |
|
210 </p> |
|
211 <dl> |
|
212 |
|
213 <dt><i>txt</i> (str)</dt> |
|
214 <dd> |
|
215 text to search for |
|
216 </dd> |
|
217 </dl> |
|
218 <div align="right"><a href="#top">Up</a></div> |
|
219 <hr /> |
|
220 </body></html> |