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