|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.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><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.Plugins.VcsPlugins.vcsMercurial.HgUserConfigDialog</h1> |
|
23 <p> |
|
24 Module implementing a dialog to enter some user data. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr> |
|
33 <td><a href="#HgUserConfigDialog">HgUserConfigDialog</a></td> |
|
34 <td>Class implementing a dialog to enter some user data.</td> |
|
35 </tr> |
|
36 </table> |
|
37 <h3>Functions</h3> |
|
38 <table> |
|
39 <tr><td>None</td></tr> |
|
40 </table> |
|
41 <hr /><hr /> |
|
42 <a NAME="HgUserConfigDialog" ID="HgUserConfigDialog"></a> |
|
43 <h2>HgUserConfigDialog</h2> |
|
44 <p> |
|
45 Class implementing a dialog to enter some user data. |
|
46 </p> |
|
47 <h3>Derived from</h3> |
|
48 QDialog, Ui_HgUserConfigDialog |
|
49 <h3>Class Attributes</h3> |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Class Methods</h3> |
|
54 <table> |
|
55 <tr><td>None</td></tr> |
|
56 </table> |
|
57 <h3>Methods</h3> |
|
58 <table> |
|
59 <tr> |
|
60 <td><a href="#HgUserConfigDialog.__init__">HgUserConfigDialog</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr><tr> |
|
63 <td><a href="#HgUserConfigDialog.__assembleFingerprints">__assembleFingerprints</a></td> |
|
64 <td>Private method to assemble a list of host fingerprints.</td> |
|
65 </tr><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><tr> |
|
69 <td><a href="#HgUserConfigDialog.__clearDialog">__clearDialog</a></td> |
|
70 <td>Private method to clear the data of the dialog.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#HgUserConfigDialog.__clearFingerprints">__clearFingerprints</a></td> |
|
73 <td>Private method to clear the fingerprints from the hostsecurity section.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#HgUserConfigDialog.__clearMinimumProtocols">__clearMinimumProtocols</a></td> |
|
76 <td>Private method to clear the minimum protocols from the hostsecurity section.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#HgUserConfigDialog.__finalizeFingerprintsColumns">__finalizeFingerprintsColumns</a></td> |
|
79 <td>Private method to resize and sort the host fingerprints columns.</td> |
|
80 </tr><tr> |
|
81 <td><a href="#HgUserConfigDialog.__finalizeProtocolsColumns">__finalizeProtocolsColumns</a></td> |
|
82 <td>Private method to resize and sort the host fingerprints columns.</td> |
|
83 </tr><tr> |
|
84 <td><a href="#HgUserConfigDialog.__updateFingerprintsButtons">__updateFingerprintsButtons</a></td> |
|
85 <td>Private slot to update the host fingerprints edit buttons.</td> |
|
86 </tr><tr> |
|
87 <td><a href="#HgUserConfigDialog.__updateProtocolsButtons">__updateProtocolsButtons</a></td> |
|
88 <td>Private slot to update the host minimum protocol edit buttons.</td> |
|
89 </tr><tr> |
|
90 <td><a href="#HgUserConfigDialog.accept">accept</a></td> |
|
91 <td>Public slot to accept the dialog.</td> |
|
92 </tr><tr> |
|
93 <td><a href="#HgUserConfigDialog.eventFilter">eventFilter</a></td> |
|
94 <td>Public method called to filter the event queue.</td> |
|
95 </tr><tr> |
|
96 <td><a href="#HgUserConfigDialog.on_editorButton_clicked">on_editorButton_clicked</a></td> |
|
97 <td>Private slot to open the user configuration file in a text editor.</td> |
|
98 </tr><tr> |
|
99 <td><a href="#HgUserConfigDialog.on_fingerprintsList_currentItemChanged">on_fingerprintsList_currentItemChanged</a></td> |
|
100 <td>Private slot handling a change of the current fingerprints item.</td> |
|
101 </tr><tr> |
|
102 <td><a href="#HgUserConfigDialog.on_fpAddButton_clicked">on_fpAddButton_clicked</a></td> |
|
103 <td>Private slot to add a fingerprints entry.</td> |
|
104 </tr><tr> |
|
105 <td><a href="#HgUserConfigDialog.on_fpDeleteButton_clicked">on_fpDeleteButton_clicked</a></td> |
|
106 <td>Private slot to delete the current fingerprints item.</td> |
|
107 </tr><tr> |
|
108 <td><a href="#HgUserConfigDialog.on_fpEditButton_clicked">on_fpEditButton_clicked</a></td> |
|
109 <td>Private slot to edit the current fingerprints item.</td> |
|
110 </tr><tr> |
|
111 <td><a href="#HgUserConfigDialog.on_protocolAddButton_clicked">on_protocolAddButton_clicked</a></td> |
|
112 <td>Private slot to add a minimum protocol entry.</td> |
|
113 </tr><tr> |
|
114 <td><a href="#HgUserConfigDialog.on_protocolDeleteButton_clicked">on_protocolDeleteButton_clicked</a></td> |
|
115 <td>Private slot to delete the current minimum protocol item.</td> |
|
116 </tr><tr> |
|
117 <td><a href="#HgUserConfigDialog.on_protocolEditButton_clicked">on_protocolEditButton_clicked</a></td> |
|
118 <td>Private slot to edit the current minimum protocol item.</td> |
|
119 </tr><tr> |
|
120 <td><a href="#HgUserConfigDialog.on_protocolsList_currentItemChanged">on_protocolsList_currentItemChanged</a></td> |
|
121 <td>Private slot handling a change of the current minimum protocol item.</td> |
|
122 </tr><tr> |
|
123 <td><a href="#HgUserConfigDialog.readUserConfig">readUserConfig</a></td> |
|
124 <td>Public method to read the user configuration file.</td> |
|
125 </tr><tr> |
|
126 <td><a href="#HgUserConfigDialog.writeUserConfig">writeUserConfig</a></td> |
|
127 <td>Public method to write the user configuration file.</td> |
|
128 </tr> |
|
129 </table> |
|
130 <h3>Static Methods</h3> |
|
131 <table> |
|
132 <tr><td>None</td></tr> |
|
133 </table> |
|
134 <a NAME="HgUserConfigDialog.__init__" ID="HgUserConfigDialog.__init__"></a> |
|
135 <h4>HgUserConfigDialog (Constructor)</h4> |
|
136 <b>HgUserConfigDialog</b>(<i>version=(0, 0, 0), parent=None</i>) |
|
137 <p> |
|
138 Constructor |
|
139 </p><dl> |
|
140 <dt><i>version</i> (tuple of three integers)</dt> |
|
141 <dd> |
|
142 Mercurial version info |
|
143 </dd><dt><i>parent</i> (QWidget)</dt> |
|
144 <dd> |
|
145 reference to the parent widget |
|
146 </dd> |
|
147 </dl><a NAME="HgUserConfigDialog.__assembleFingerprints" ID="HgUserConfigDialog.__assembleFingerprints"></a> |
|
148 <h4>HgUserConfigDialog.__assembleFingerprints</h4> |
|
149 <b>__assembleFingerprints</b>(<i></i>) |
|
150 <p> |
|
151 Private method to assemble a list of host fingerprints. |
|
152 </p><dl> |
|
153 <dt>Returns:</dt> |
|
154 <dd> |
|
155 dictionary with list of fingerprints per host |
|
156 </dd> |
|
157 </dl><dl> |
|
158 <dt>Return Type:</dt> |
|
159 <dd> |
|
160 dict with str as key and list of str as value |
|
161 </dd> |
|
162 </dl><a NAME="HgUserConfigDialog.__assembleMinimumProtocols" ID="HgUserConfigDialog.__assembleMinimumProtocols"></a> |
|
163 <h4>HgUserConfigDialog.__assembleMinimumProtocols</h4> |
|
164 <b>__assembleMinimumProtocols</b>(<i></i>) |
|
165 <p> |
|
166 Private method to assemble a list of host minimum protocols. |
|
167 </p><dl> |
|
168 <dt>Returns:</dt> |
|
169 <dd> |
|
170 dictionary with list of minimum protocol per host |
|
171 </dd> |
|
172 </dl><dl> |
|
173 <dt>Return Type:</dt> |
|
174 <dd> |
|
175 dict with str as key and str as value |
|
176 </dd> |
|
177 </dl><a NAME="HgUserConfigDialog.__clearDialog" ID="HgUserConfigDialog.__clearDialog"></a> |
|
178 <h4>HgUserConfigDialog.__clearDialog</h4> |
|
179 <b>__clearDialog</b>(<i></i>) |
|
180 <p> |
|
181 Private method to clear the data of the dialog. |
|
182 </p><a NAME="HgUserConfigDialog.__clearFingerprints" ID="HgUserConfigDialog.__clearFingerprints"></a> |
|
183 <h4>HgUserConfigDialog.__clearFingerprints</h4> |
|
184 <b>__clearFingerprints</b>(<i></i>) |
|
185 <p> |
|
186 Private method to clear the fingerprints from the hostsecurity section. |
|
187 </p><a NAME="HgUserConfigDialog.__clearMinimumProtocols" ID="HgUserConfigDialog.__clearMinimumProtocols"></a> |
|
188 <h4>HgUserConfigDialog.__clearMinimumProtocols</h4> |
|
189 <b>__clearMinimumProtocols</b>(<i></i>) |
|
190 <p> |
|
191 Private method to clear the minimum protocols from the hostsecurity |
|
192 section. |
|
193 </p><a NAME="HgUserConfigDialog.__finalizeFingerprintsColumns" ID="HgUserConfigDialog.__finalizeFingerprintsColumns"></a> |
|
194 <h4>HgUserConfigDialog.__finalizeFingerprintsColumns</h4> |
|
195 <b>__finalizeFingerprintsColumns</b>(<i></i>) |
|
196 <p> |
|
197 Private method to resize and sort the host fingerprints columns. |
|
198 </p><a NAME="HgUserConfigDialog.__finalizeProtocolsColumns" ID="HgUserConfigDialog.__finalizeProtocolsColumns"></a> |
|
199 <h4>HgUserConfigDialog.__finalizeProtocolsColumns</h4> |
|
200 <b>__finalizeProtocolsColumns</b>(<i></i>) |
|
201 <p> |
|
202 Private method to resize and sort the host fingerprints columns. |
|
203 </p><a NAME="HgUserConfigDialog.__updateFingerprintsButtons" ID="HgUserConfigDialog.__updateFingerprintsButtons"></a> |
|
204 <h4>HgUserConfigDialog.__updateFingerprintsButtons</h4> |
|
205 <b>__updateFingerprintsButtons</b>(<i></i>) |
|
206 <p> |
|
207 Private slot to update the host fingerprints edit buttons. |
|
208 </p><a NAME="HgUserConfigDialog.__updateProtocolsButtons" ID="HgUserConfigDialog.__updateProtocolsButtons"></a> |
|
209 <h4>HgUserConfigDialog.__updateProtocolsButtons</h4> |
|
210 <b>__updateProtocolsButtons</b>(<i></i>) |
|
211 <p> |
|
212 Private slot to update the host minimum protocol edit buttons. |
|
213 </p><a NAME="HgUserConfigDialog.accept" ID="HgUserConfigDialog.accept"></a> |
|
214 <h4>HgUserConfigDialog.accept</h4> |
|
215 <b>accept</b>(<i></i>) |
|
216 <p> |
|
217 Public slot to accept the dialog. |
|
218 </p><a NAME="HgUserConfigDialog.eventFilter" ID="HgUserConfigDialog.eventFilter"></a> |
|
219 <h4>HgUserConfigDialog.eventFilter</h4> |
|
220 <b>eventFilter</b>(<i>watched, event</i>) |
|
221 <p> |
|
222 Public method called to filter the event queue. |
|
223 </p><dl> |
|
224 <dt><i>watched</i> (QObject)</dt> |
|
225 <dd> |
|
226 reference to the object being watched |
|
227 </dd><dt><i>event</i> (QEvent)</dt> |
|
228 <dd> |
|
229 event to be handled |
|
230 </dd> |
|
231 </dl><dl> |
|
232 <dt>Returns:</dt> |
|
233 <dd> |
|
234 flag indicating, if we handled the event |
|
235 </dd> |
|
236 </dl><dl> |
|
237 <dt>Return Type:</dt> |
|
238 <dd> |
|
239 bool |
|
240 </dd> |
|
241 </dl><a NAME="HgUserConfigDialog.on_editorButton_clicked" ID="HgUserConfigDialog.on_editorButton_clicked"></a> |
|
242 <h4>HgUserConfigDialog.on_editorButton_clicked</h4> |
|
243 <b>on_editorButton_clicked</b>(<i></i>) |
|
244 <p> |
|
245 Private slot to open the user configuration file in a text editor. |
|
246 </p><a NAME="HgUserConfigDialog.on_fingerprintsList_currentItemChanged" ID="HgUserConfigDialog.on_fingerprintsList_currentItemChanged"></a> |
|
247 <h4>HgUserConfigDialog.on_fingerprintsList_currentItemChanged</h4> |
|
248 <b>on_fingerprintsList_currentItemChanged</b>(<i>current, previous</i>) |
|
249 <p> |
|
250 Private slot handling a change of the current fingerprints item. |
|
251 </p><dl> |
|
252 <dt><i>current</i> (QTreeWidgetItem)</dt> |
|
253 <dd> |
|
254 reference to the current item |
|
255 </dd><dt><i>previous</i> (QTreeWidgetItem)</dt> |
|
256 <dd> |
|
257 reference to the previous current item |
|
258 </dd> |
|
259 </dl><a NAME="HgUserConfigDialog.on_fpAddButton_clicked" ID="HgUserConfigDialog.on_fpAddButton_clicked"></a> |
|
260 <h4>HgUserConfigDialog.on_fpAddButton_clicked</h4> |
|
261 <b>on_fpAddButton_clicked</b>(<i></i>) |
|
262 <p> |
|
263 Private slot to add a fingerprints entry. |
|
264 </p><a NAME="HgUserConfigDialog.on_fpDeleteButton_clicked" ID="HgUserConfigDialog.on_fpDeleteButton_clicked"></a> |
|
265 <h4>HgUserConfigDialog.on_fpDeleteButton_clicked</h4> |
|
266 <b>on_fpDeleteButton_clicked</b>(<i></i>) |
|
267 <p> |
|
268 Private slot to delete the current fingerprints item. |
|
269 </p><a NAME="HgUserConfigDialog.on_fpEditButton_clicked" ID="HgUserConfigDialog.on_fpEditButton_clicked"></a> |
|
270 <h4>HgUserConfigDialog.on_fpEditButton_clicked</h4> |
|
271 <b>on_fpEditButton_clicked</b>(<i></i>) |
|
272 <p> |
|
273 Private slot to edit the current fingerprints item. |
|
274 </p><a NAME="HgUserConfigDialog.on_protocolAddButton_clicked" ID="HgUserConfigDialog.on_protocolAddButton_clicked"></a> |
|
275 <h4>HgUserConfigDialog.on_protocolAddButton_clicked</h4> |
|
276 <b>on_protocolAddButton_clicked</b>(<i></i>) |
|
277 <p> |
|
278 Private slot to add a minimum protocol entry. |
|
279 </p><a NAME="HgUserConfigDialog.on_protocolDeleteButton_clicked" ID="HgUserConfigDialog.on_protocolDeleteButton_clicked"></a> |
|
280 <h4>HgUserConfigDialog.on_protocolDeleteButton_clicked</h4> |
|
281 <b>on_protocolDeleteButton_clicked</b>(<i></i>) |
|
282 <p> |
|
283 Private slot to delete the current minimum protocol item. |
|
284 </p><a NAME="HgUserConfigDialog.on_protocolEditButton_clicked" ID="HgUserConfigDialog.on_protocolEditButton_clicked"></a> |
|
285 <h4>HgUserConfigDialog.on_protocolEditButton_clicked</h4> |
|
286 <b>on_protocolEditButton_clicked</b>(<i></i>) |
|
287 <p> |
|
288 Private slot to edit the current minimum protocol item. |
|
289 </p><a NAME="HgUserConfigDialog.on_protocolsList_currentItemChanged" ID="HgUserConfigDialog.on_protocolsList_currentItemChanged"></a> |
|
290 <h4>HgUserConfigDialog.on_protocolsList_currentItemChanged</h4> |
|
291 <b>on_protocolsList_currentItemChanged</b>(<i>current, previous</i>) |
|
292 <p> |
|
293 Private slot handling a change of the current minimum protocol item. |
|
294 </p><dl> |
|
295 <dt><i>current</i> (QTreeWidgetItem)</dt> |
|
296 <dd> |
|
297 reference to the current item |
|
298 </dd><dt><i>previous</i> (QTreeWidgetItem)</dt> |
|
299 <dd> |
|
300 reference to the previous current item |
|
301 </dd> |
|
302 </dl><a NAME="HgUserConfigDialog.readUserConfig" ID="HgUserConfigDialog.readUserConfig"></a> |
|
303 <h4>HgUserConfigDialog.readUserConfig</h4> |
|
304 <b>readUserConfig</b>(<i></i>) |
|
305 <p> |
|
306 Public method to read the user configuration file. |
|
307 </p><a NAME="HgUserConfigDialog.writeUserConfig" ID="HgUserConfigDialog.writeUserConfig"></a> |
|
308 <h4>HgUserConfigDialog.writeUserConfig</h4> |
|
309 <b>writeUserConfig</b>(<i></i>) |
|
310 <p> |
|
311 Public method to write the user configuration file. |
|
312 </p> |
|
313 <div align="right"><a href="#top">Up</a></div> |
|
314 <hr /> |
|
315 </body></html> |