|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Plugins.VcsPlugins.vcsMercurial.HgUserConfigDialog</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.Plugins.VcsPlugins.vcsMercurial.HgUserConfigDialog</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing a dialog to enter some user data. |
|
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="#HgUserConfigDialog">HgUserConfigDialog</a></td> |
|
25 <td>Class implementing a dialog to enter some user data.</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="HgUserConfigDialog" ID="HgUserConfigDialog"></a> |
|
36 <h2>HgUserConfigDialog</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing a dialog to enter some user data. |
|
40 </p> |
|
41 <h3>Derived from</h3> |
|
42 QDialog, Ui_HgUserConfigDialog |
|
43 <h3>Class Attributes</h3> |
|
44 |
|
45 <table> |
|
46 <tr><td>None</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="#HgUserConfigDialog.__init__">HgUserConfigDialog</a></td> |
|
59 <td>Constructor</td> |
|
60 </tr> |
|
61 <tr> |
|
62 <td><a href="#HgUserConfigDialog.__assembleFingerprints">__assembleFingerprints</a></td> |
|
63 <td>Private method to assemble a list of host fingerprints.</td> |
|
64 </tr> |
|
65 <tr> |
|
66 <td><a href="#HgUserConfigDialog.__assembleMinimumProtocols">__assembleMinimumProtocols</a></td> |
|
67 <td>Private method to assemble a list of host minimum protocols.</td> |
|
68 </tr> |
|
69 <tr> |
|
70 <td><a href="#HgUserConfigDialog.__clearDialog">__clearDialog</a></td> |
|
71 <td>Private method to clear the data of the dialog.</td> |
|
72 </tr> |
|
73 <tr> |
|
74 <td><a href="#HgUserConfigDialog.__clearFingerprints">__clearFingerprints</a></td> |
|
75 <td>Private method to clear the fingerprints from the hostsecurity section.</td> |
|
76 </tr> |
|
77 <tr> |
|
78 <td><a href="#HgUserConfigDialog.__clearMinimumProtocols">__clearMinimumProtocols</a></td> |
|
79 <td>Private method to clear the minimum protocols from the hostsecurity section.</td> |
|
80 </tr> |
|
81 <tr> |
|
82 <td><a href="#HgUserConfigDialog.__finalizeFingerprintsColumns">__finalizeFingerprintsColumns</a></td> |
|
83 <td>Private method to resize and sort the host fingerprints columns.</td> |
|
84 </tr> |
|
85 <tr> |
|
86 <td><a href="#HgUserConfigDialog.__finalizeProtocolsColumns">__finalizeProtocolsColumns</a></td> |
|
87 <td>Private method to resize and sort the host fingerprints columns.</td> |
|
88 </tr> |
|
89 <tr> |
|
90 <td><a href="#HgUserConfigDialog.__updateFingerprintsButtons">__updateFingerprintsButtons</a></td> |
|
91 <td>Private slot to update the host fingerprints edit buttons.</td> |
|
92 </tr> |
|
93 <tr> |
|
94 <td><a href="#HgUserConfigDialog.__updateProtocolsButtons">__updateProtocolsButtons</a></td> |
|
95 <td>Private slot to update the host minimum protocol edit buttons.</td> |
|
96 </tr> |
|
97 <tr> |
|
98 <td><a href="#HgUserConfigDialog.accept">accept</a></td> |
|
99 <td>Public slot to accept the dialog.</td> |
|
100 </tr> |
|
101 <tr> |
|
102 <td><a href="#HgUserConfigDialog.eventFilter">eventFilter</a></td> |
|
103 <td>Public method called to filter the event queue.</td> |
|
104 </tr> |
|
105 <tr> |
|
106 <td><a href="#HgUserConfigDialog.on_editorButton_clicked">on_editorButton_clicked</a></td> |
|
107 <td>Private slot to open the user configuration file in a text editor.</td> |
|
108 </tr> |
|
109 <tr> |
|
110 <td><a href="#HgUserConfigDialog.on_fingerprintsList_currentItemChanged">on_fingerprintsList_currentItemChanged</a></td> |
|
111 <td>Private slot handling a change of the current fingerprints item.</td> |
|
112 </tr> |
|
113 <tr> |
|
114 <td><a href="#HgUserConfigDialog.on_fpAddButton_clicked">on_fpAddButton_clicked</a></td> |
|
115 <td>Private slot to add a fingerprints entry.</td> |
|
116 </tr> |
|
117 <tr> |
|
118 <td><a href="#HgUserConfigDialog.on_fpDeleteButton_clicked">on_fpDeleteButton_clicked</a></td> |
|
119 <td>Private slot to delete the current fingerprints item.</td> |
|
120 </tr> |
|
121 <tr> |
|
122 <td><a href="#HgUserConfigDialog.on_fpEditButton_clicked">on_fpEditButton_clicked</a></td> |
|
123 <td>Private slot to edit the current fingerprints item.</td> |
|
124 </tr> |
|
125 <tr> |
|
126 <td><a href="#HgUserConfigDialog.on_protocolAddButton_clicked">on_protocolAddButton_clicked</a></td> |
|
127 <td>Private slot to add a minimum protocol entry.</td> |
|
128 </tr> |
|
129 <tr> |
|
130 <td><a href="#HgUserConfigDialog.on_protocolDeleteButton_clicked">on_protocolDeleteButton_clicked</a></td> |
|
131 <td>Private slot to delete the current minimum protocol item.</td> |
|
132 </tr> |
|
133 <tr> |
|
134 <td><a href="#HgUserConfigDialog.on_protocolEditButton_clicked">on_protocolEditButton_clicked</a></td> |
|
135 <td>Private slot to edit the current minimum protocol item.</td> |
|
136 </tr> |
|
137 <tr> |
|
138 <td><a href="#HgUserConfigDialog.on_protocolsList_currentItemChanged">on_protocolsList_currentItemChanged</a></td> |
|
139 <td>Private slot handling a change of the current minimum protocol item.</td> |
|
140 </tr> |
|
141 <tr> |
|
142 <td><a href="#HgUserConfigDialog.readUserConfig">readUserConfig</a></td> |
|
143 <td>Public method to read the user configuration file.</td> |
|
144 </tr> |
|
145 <tr> |
|
146 <td><a href="#HgUserConfigDialog.writeUserConfig">writeUserConfig</a></td> |
|
147 <td>Public method to write the user configuration file.</td> |
|
148 </tr> |
|
149 </table> |
|
150 <h3>Static Methods</h3> |
|
151 |
|
152 <table> |
|
153 <tr><td>None</td></tr> |
|
154 </table> |
|
155 |
|
156 <a NAME="HgUserConfigDialog.__init__" ID="HgUserConfigDialog.__init__"></a> |
|
157 <h4>HgUserConfigDialog (Constructor)</h4> |
|
158 <b>HgUserConfigDialog</b>(<i>version=(0, 0, 0), parent=None</i>) |
|
159 |
|
160 <p> |
|
161 Constructor |
|
162 </p> |
|
163 <dl> |
|
164 |
|
165 <dt><i>version</i> (tuple of three integers)</dt> |
|
166 <dd> |
|
167 Mercurial version info |
|
168 </dd> |
|
169 <dt><i>parent</i> (QWidget)</dt> |
|
170 <dd> |
|
171 reference to the parent widget |
|
172 </dd> |
|
173 </dl> |
|
174 <a NAME="HgUserConfigDialog.__assembleFingerprints" ID="HgUserConfigDialog.__assembleFingerprints"></a> |
|
175 <h4>HgUserConfigDialog.__assembleFingerprints</h4> |
|
176 <b>__assembleFingerprints</b>(<i></i>) |
|
177 |
|
178 <p> |
|
179 Private method to assemble a list of host fingerprints. |
|
180 </p> |
|
181 <dl> |
|
182 <dt>Return:</dt> |
|
183 <dd> |
|
184 dictionary with list of fingerprints per host |
|
185 </dd> |
|
186 </dl> |
|
187 <dl> |
|
188 <dt>Return Type:</dt> |
|
189 <dd> |
|
190 dict with str as key and list of str as value |
|
191 </dd> |
|
192 </dl> |
|
193 <a NAME="HgUserConfigDialog.__assembleMinimumProtocols" ID="HgUserConfigDialog.__assembleMinimumProtocols"></a> |
|
194 <h4>HgUserConfigDialog.__assembleMinimumProtocols</h4> |
|
195 <b>__assembleMinimumProtocols</b>(<i></i>) |
|
196 |
|
197 <p> |
|
198 Private method to assemble a list of host minimum protocols. |
|
199 </p> |
|
200 <dl> |
|
201 <dt>Return:</dt> |
|
202 <dd> |
|
203 dictionary with list of minimum protocol per host |
|
204 </dd> |
|
205 </dl> |
|
206 <dl> |
|
207 <dt>Return Type:</dt> |
|
208 <dd> |
|
209 dict with str as key and str as value |
|
210 </dd> |
|
211 </dl> |
|
212 <a NAME="HgUserConfigDialog.__clearDialog" ID="HgUserConfigDialog.__clearDialog"></a> |
|
213 <h4>HgUserConfigDialog.__clearDialog</h4> |
|
214 <b>__clearDialog</b>(<i></i>) |
|
215 |
|
216 <p> |
|
217 Private method to clear the data of the dialog. |
|
218 </p> |
|
219 <a NAME="HgUserConfigDialog.__clearFingerprints" ID="HgUserConfigDialog.__clearFingerprints"></a> |
|
220 <h4>HgUserConfigDialog.__clearFingerprints</h4> |
|
221 <b>__clearFingerprints</b>(<i></i>) |
|
222 |
|
223 <p> |
|
224 Private method to clear the fingerprints from the hostsecurity section. |
|
225 </p> |
|
226 <a NAME="HgUserConfigDialog.__clearMinimumProtocols" ID="HgUserConfigDialog.__clearMinimumProtocols"></a> |
|
227 <h4>HgUserConfigDialog.__clearMinimumProtocols</h4> |
|
228 <b>__clearMinimumProtocols</b>(<i></i>) |
|
229 |
|
230 <p> |
|
231 Private method to clear the minimum protocols from the hostsecurity |
|
232 section. |
|
233 </p> |
|
234 <a NAME="HgUserConfigDialog.__finalizeFingerprintsColumns" ID="HgUserConfigDialog.__finalizeFingerprintsColumns"></a> |
|
235 <h4>HgUserConfigDialog.__finalizeFingerprintsColumns</h4> |
|
236 <b>__finalizeFingerprintsColumns</b>(<i></i>) |
|
237 |
|
238 <p> |
|
239 Private method to resize and sort the host fingerprints columns. |
|
240 </p> |
|
241 <a NAME="HgUserConfigDialog.__finalizeProtocolsColumns" ID="HgUserConfigDialog.__finalizeProtocolsColumns"></a> |
|
242 <h4>HgUserConfigDialog.__finalizeProtocolsColumns</h4> |
|
243 <b>__finalizeProtocolsColumns</b>(<i></i>) |
|
244 |
|
245 <p> |
|
246 Private method to resize and sort the host fingerprints columns. |
|
247 </p> |
|
248 <a NAME="HgUserConfigDialog.__updateFingerprintsButtons" ID="HgUserConfigDialog.__updateFingerprintsButtons"></a> |
|
249 <h4>HgUserConfigDialog.__updateFingerprintsButtons</h4> |
|
250 <b>__updateFingerprintsButtons</b>(<i></i>) |
|
251 |
|
252 <p> |
|
253 Private slot to update the host fingerprints edit buttons. |
|
254 </p> |
|
255 <a NAME="HgUserConfigDialog.__updateProtocolsButtons" ID="HgUserConfigDialog.__updateProtocolsButtons"></a> |
|
256 <h4>HgUserConfigDialog.__updateProtocolsButtons</h4> |
|
257 <b>__updateProtocolsButtons</b>(<i></i>) |
|
258 |
|
259 <p> |
|
260 Private slot to update the host minimum protocol edit buttons. |
|
261 </p> |
|
262 <a NAME="HgUserConfigDialog.accept" ID="HgUserConfigDialog.accept"></a> |
|
263 <h4>HgUserConfigDialog.accept</h4> |
|
264 <b>accept</b>(<i></i>) |
|
265 |
|
266 <p> |
|
267 Public slot to accept the dialog. |
|
268 </p> |
|
269 <a NAME="HgUserConfigDialog.eventFilter" ID="HgUserConfigDialog.eventFilter"></a> |
|
270 <h4>HgUserConfigDialog.eventFilter</h4> |
|
271 <b>eventFilter</b>(<i>watched, event</i>) |
|
272 |
|
273 <p> |
|
274 Public method called to filter the event queue. |
|
275 </p> |
|
276 <dl> |
|
277 |
|
278 <dt><i>watched</i> (QObject)</dt> |
|
279 <dd> |
|
280 reference to the object being watched |
|
281 </dd> |
|
282 <dt><i>event</i> (QEvent)</dt> |
|
283 <dd> |
|
284 event to be handled |
|
285 </dd> |
|
286 </dl> |
|
287 <dl> |
|
288 <dt>Return:</dt> |
|
289 <dd> |
|
290 flag indicating, if we handled the event |
|
291 </dd> |
|
292 </dl> |
|
293 <dl> |
|
294 <dt>Return Type:</dt> |
|
295 <dd> |
|
296 bool |
|
297 </dd> |
|
298 </dl> |
|
299 <a NAME="HgUserConfigDialog.on_editorButton_clicked" ID="HgUserConfigDialog.on_editorButton_clicked"></a> |
|
300 <h4>HgUserConfigDialog.on_editorButton_clicked</h4> |
|
301 <b>on_editorButton_clicked</b>(<i></i>) |
|
302 |
|
303 <p> |
|
304 Private slot to open the user configuration file in a text editor. |
|
305 </p> |
|
306 <a NAME="HgUserConfigDialog.on_fingerprintsList_currentItemChanged" ID="HgUserConfigDialog.on_fingerprintsList_currentItemChanged"></a> |
|
307 <h4>HgUserConfigDialog.on_fingerprintsList_currentItemChanged</h4> |
|
308 <b>on_fingerprintsList_currentItemChanged</b>(<i>current, previous</i>) |
|
309 |
|
310 <p> |
|
311 Private slot handling a change of the current fingerprints item. |
|
312 </p> |
|
313 <dl> |
|
314 |
|
315 <dt><i>current</i> (QTreeWidgetItem)</dt> |
|
316 <dd> |
|
317 reference to the current item |
|
318 </dd> |
|
319 <dt><i>previous</i> (QTreeWidgetItem)</dt> |
|
320 <dd> |
|
321 reference to the previous current item |
|
322 </dd> |
|
323 </dl> |
|
324 <a NAME="HgUserConfigDialog.on_fpAddButton_clicked" ID="HgUserConfigDialog.on_fpAddButton_clicked"></a> |
|
325 <h4>HgUserConfigDialog.on_fpAddButton_clicked</h4> |
|
326 <b>on_fpAddButton_clicked</b>(<i></i>) |
|
327 |
|
328 <p> |
|
329 Private slot to add a fingerprints entry. |
|
330 </p> |
|
331 <a NAME="HgUserConfigDialog.on_fpDeleteButton_clicked" ID="HgUserConfigDialog.on_fpDeleteButton_clicked"></a> |
|
332 <h4>HgUserConfigDialog.on_fpDeleteButton_clicked</h4> |
|
333 <b>on_fpDeleteButton_clicked</b>(<i></i>) |
|
334 |
|
335 <p> |
|
336 Private slot to delete the current fingerprints item. |
|
337 </p> |
|
338 <a NAME="HgUserConfigDialog.on_fpEditButton_clicked" ID="HgUserConfigDialog.on_fpEditButton_clicked"></a> |
|
339 <h4>HgUserConfigDialog.on_fpEditButton_clicked</h4> |
|
340 <b>on_fpEditButton_clicked</b>(<i></i>) |
|
341 |
|
342 <p> |
|
343 Private slot to edit the current fingerprints item. |
|
344 </p> |
|
345 <a NAME="HgUserConfigDialog.on_protocolAddButton_clicked" ID="HgUserConfigDialog.on_protocolAddButton_clicked"></a> |
|
346 <h4>HgUserConfigDialog.on_protocolAddButton_clicked</h4> |
|
347 <b>on_protocolAddButton_clicked</b>(<i></i>) |
|
348 |
|
349 <p> |
|
350 Private slot to add a minimum protocol entry. |
|
351 </p> |
|
352 <a NAME="HgUserConfigDialog.on_protocolDeleteButton_clicked" ID="HgUserConfigDialog.on_protocolDeleteButton_clicked"></a> |
|
353 <h4>HgUserConfigDialog.on_protocolDeleteButton_clicked</h4> |
|
354 <b>on_protocolDeleteButton_clicked</b>(<i></i>) |
|
355 |
|
356 <p> |
|
357 Private slot to delete the current minimum protocol item. |
|
358 </p> |
|
359 <a NAME="HgUserConfigDialog.on_protocolEditButton_clicked" ID="HgUserConfigDialog.on_protocolEditButton_clicked"></a> |
|
360 <h4>HgUserConfigDialog.on_protocolEditButton_clicked</h4> |
|
361 <b>on_protocolEditButton_clicked</b>(<i></i>) |
|
362 |
|
363 <p> |
|
364 Private slot to edit the current minimum protocol item. |
|
365 </p> |
|
366 <a NAME="HgUserConfigDialog.on_protocolsList_currentItemChanged" ID="HgUserConfigDialog.on_protocolsList_currentItemChanged"></a> |
|
367 <h4>HgUserConfigDialog.on_protocolsList_currentItemChanged</h4> |
|
368 <b>on_protocolsList_currentItemChanged</b>(<i>current, previous</i>) |
|
369 |
|
370 <p> |
|
371 Private slot handling a change of the current minimum protocol item. |
|
372 </p> |
|
373 <dl> |
|
374 |
|
375 <dt><i>current</i> (QTreeWidgetItem)</dt> |
|
376 <dd> |
|
377 reference to the current item |
|
378 </dd> |
|
379 <dt><i>previous</i> (QTreeWidgetItem)</dt> |
|
380 <dd> |
|
381 reference to the previous current item |
|
382 </dd> |
|
383 </dl> |
|
384 <a NAME="HgUserConfigDialog.readUserConfig" ID="HgUserConfigDialog.readUserConfig"></a> |
|
385 <h4>HgUserConfigDialog.readUserConfig</h4> |
|
386 <b>readUserConfig</b>(<i></i>) |
|
387 |
|
388 <p> |
|
389 Public method to read the user configuration file. |
|
390 </p> |
|
391 <a NAME="HgUserConfigDialog.writeUserConfig" ID="HgUserConfigDialog.writeUserConfig"></a> |
|
392 <h4>HgUserConfigDialog.writeUserConfig</h4> |
|
393 <b>writeUserConfig</b>(<i></i>) |
|
394 |
|
395 <p> |
|
396 Public method to write the user configuration file. |
|
397 </p> |
|
398 <div align="right"><a href="#top">Up</a></div> |
|
399 <hr /> |
|
400 </body></html> |