|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Plugins.VcsPlugins.vcsMercurial.HgUserConfigHostFingerprintDialog</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.HgUserConfigHostFingerprintDialog</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing a dialog to edit a host fingerprint. |
|
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="#HgUserConfigHostFingerprintDialog">HgUserConfigHostFingerprintDialog</a></td> |
|
25 <td>Class implementing a dialog to edit a host fingerprint.</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="HgUserConfigHostFingerprintDialog" ID="HgUserConfigHostFingerprintDialog"></a> |
|
36 <h2>HgUserConfigHostFingerprintDialog</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing a dialog to edit a host fingerprint. |
|
40 </p> |
|
41 <h3>Derived from</h3> |
|
42 QDialog, Ui_HgUserConfigHostFingerprintDialog |
|
43 <h3>Class Attributes</h3> |
|
44 |
|
45 <table> |
|
46 <tr><td>fingerprintLength</td></tr><tr><td>supportedHashes</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="#HgUserConfigHostFingerprintDialog.__init__">HgUserConfigHostFingerprintDialog</a></td> |
|
59 <td>Constructor</td> |
|
60 </tr> |
|
61 <tr> |
|
62 <td><a href="#HgUserConfigHostFingerprintDialog.__updateOkButton">__updateOkButton</a></td> |
|
63 <td>Private method to update the status of the Ok button.</td> |
|
64 </tr> |
|
65 <tr> |
|
66 <td><a href="#HgUserConfigHostFingerprintDialog.getData">getData</a></td> |
|
67 <td>Public method to retrieve the data.</td> |
|
68 </tr> |
|
69 <tr> |
|
70 <td><a href="#HgUserConfigHostFingerprintDialog.on_fingerprintEdit_textChanged">on_fingerprintEdit_textChanged</a></td> |
|
71 <td>Private slot to handle changes of the fingerprint edit.</td> |
|
72 </tr> |
|
73 <tr> |
|
74 <td><a href="#HgUserConfigHostFingerprintDialog.on_hashComboBox_currentIndexChanged">on_hashComboBox_currentIndexChanged</a></td> |
|
75 <td>Private slot to handle changes of the hash combo.</td> |
|
76 </tr> |
|
77 <tr> |
|
78 <td><a href="#HgUserConfigHostFingerprintDialog.on_hostEdit_textChanged">on_hostEdit_textChanged</a></td> |
|
79 <td>Private slot to handle changes of the host edit.</td> |
|
80 </tr> |
|
81 </table> |
|
82 <h3>Static Methods</h3> |
|
83 |
|
84 <table> |
|
85 <tr><td>None</td></tr> |
|
86 </table> |
|
87 |
|
88 <a NAME="HgUserConfigHostFingerprintDialog.__init__" ID="HgUserConfigHostFingerprintDialog.__init__"></a> |
|
89 <h4>HgUserConfigHostFingerprintDialog (Constructor)</h4> |
|
90 <b>HgUserConfigHostFingerprintDialog</b>(<i>parent=None, host="", fingerprint="", version=(0, 0, 0)</i>) |
|
91 |
|
92 <p> |
|
93 Constructor |
|
94 </p> |
|
95 <dl> |
|
96 |
|
97 <dt><i>parent</i> (QWidget)</dt> |
|
98 <dd> |
|
99 reference to the parent widget |
|
100 </dd> |
|
101 <dt><i>host</i> (str)</dt> |
|
102 <dd> |
|
103 host name |
|
104 </dd> |
|
105 <dt><i>fingerprint</i> (str)</dt> |
|
106 <dd> |
|
107 fingerprint for the host |
|
108 </dd> |
|
109 <dt><i>version</i> (tuple of three integers)</dt> |
|
110 <dd> |
|
111 Mercurial version info |
|
112 </dd> |
|
113 </dl> |
|
114 <a NAME="HgUserConfigHostFingerprintDialog.__updateOkButton" ID="HgUserConfigHostFingerprintDialog.__updateOkButton"></a> |
|
115 <h4>HgUserConfigHostFingerprintDialog.__updateOkButton</h4> |
|
116 <b>__updateOkButton</b>(<i></i>) |
|
117 |
|
118 <p> |
|
119 Private method to update the status of the Ok button. |
|
120 </p> |
|
121 <a NAME="HgUserConfigHostFingerprintDialog.getData" ID="HgUserConfigHostFingerprintDialog.getData"></a> |
|
122 <h4>HgUserConfigHostFingerprintDialog.getData</h4> |
|
123 <b>getData</b>(<i></i>) |
|
124 |
|
125 <p> |
|
126 Public method to retrieve the data. |
|
127 </p> |
|
128 <dl> |
|
129 <dt>Return:</dt> |
|
130 <dd> |
|
131 tuple containig the host name and the fingerprint |
|
132 </dd> |
|
133 </dl> |
|
134 <dl> |
|
135 <dt>Return Type:</dt> |
|
136 <dd> |
|
137 tuple of two str |
|
138 </dd> |
|
139 </dl> |
|
140 <a NAME="HgUserConfigHostFingerprintDialog.on_fingerprintEdit_textChanged" ID="HgUserConfigHostFingerprintDialog.on_fingerprintEdit_textChanged"></a> |
|
141 <h4>HgUserConfigHostFingerprintDialog.on_fingerprintEdit_textChanged</h4> |
|
142 <b>on_fingerprintEdit_textChanged</b>(<i>txt</i>) |
|
143 |
|
144 <p> |
|
145 Private slot to handle changes of the fingerprint edit. |
|
146 </p> |
|
147 <dl> |
|
148 |
|
149 <dt><i>txt</i> (str)</dt> |
|
150 <dd> |
|
151 current text |
|
152 </dd> |
|
153 </dl> |
|
154 <a NAME="HgUserConfigHostFingerprintDialog.on_hashComboBox_currentIndexChanged" ID="HgUserConfigHostFingerprintDialog.on_hashComboBox_currentIndexChanged"></a> |
|
155 <h4>HgUserConfigHostFingerprintDialog.on_hashComboBox_currentIndexChanged</h4> |
|
156 <b>on_hashComboBox_currentIndexChanged</b>(<i>index</i>) |
|
157 |
|
158 <p> |
|
159 Private slot to handle changes of the hash combo. |
|
160 </p> |
|
161 <dl> |
|
162 |
|
163 <dt><i>index</i> (int)</dt> |
|
164 <dd> |
|
165 current index |
|
166 </dd> |
|
167 </dl> |
|
168 <a NAME="HgUserConfigHostFingerprintDialog.on_hostEdit_textChanged" ID="HgUserConfigHostFingerprintDialog.on_hostEdit_textChanged"></a> |
|
169 <h4>HgUserConfigHostFingerprintDialog.on_hostEdit_textChanged</h4> |
|
170 <b>on_hostEdit_textChanged</b>(<i>txt</i>) |
|
171 |
|
172 <p> |
|
173 Private slot to handle changes of the host edit. |
|
174 </p> |
|
175 <dl> |
|
176 |
|
177 <dt><i>txt</i> (str)</dt> |
|
178 <dd> |
|
179 current text |
|
180 </dd> |
|
181 </dl> |
|
182 <div align="right"><a href="#top">Up</a></div> |
|
183 <hr /> |
|
184 </body></html> |