|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.Plugins.VcsPlugins.vcsMercurial.HgUserConfigHostMinimumProtocolDialog</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.HgUserConfigHostMinimumProtocolDialog</h1> |
|
23 <p> |
|
24 Module implementing a dialog to enter the minimum protocol for a host. |
|
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="#HgUserConfigHostMinimumProtocolDialog">HgUserConfigHostMinimumProtocolDialog</a></td> |
|
34 <td>Class implementing a dialog to enter the minimum protocol for a host.</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="HgUserConfigHostMinimumProtocolDialog" ID="HgUserConfigHostMinimumProtocolDialog"></a> |
|
43 <h2>HgUserConfigHostMinimumProtocolDialog</h2> |
|
44 <p> |
|
45 Class implementing a dialog to enter the minimum protocol for a host. |
|
46 </p> |
|
47 <h3>Derived from</h3> |
|
48 QDialog, Ui_HgUserConfigHostMinimumProtocolDialog |
|
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="#HgUserConfigHostMinimumProtocolDialog.__init__">HgUserConfigHostMinimumProtocolDialog</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr><tr> |
|
63 <td><a href="#HgUserConfigHostMinimumProtocolDialog.__updateOkButton">__updateOkButton</a></td> |
|
64 <td>Private method to update the status of the Ok button.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#HgUserConfigHostMinimumProtocolDialog.getData">getData</a></td> |
|
67 <td>Public method to retrieve the data.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#HgUserConfigHostMinimumProtocolDialog.on_hostEdit_textChanged">on_hostEdit_textChanged</a></td> |
|
70 <td>Private slot to handle changes of the host edit.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#HgUserConfigHostMinimumProtocolDialog.on_minimumProtocolComboBox_currentIndexChanged">on_minimumProtocolComboBox_currentIndexChanged</a></td> |
|
73 <td>Private slot to handle the selection of a minimum protocol.</td> |
|
74 </tr> |
|
75 </table> |
|
76 <h3>Static Methods</h3> |
|
77 <table> |
|
78 <tr><td>None</td></tr> |
|
79 </table> |
|
80 <a NAME="HgUserConfigHostMinimumProtocolDialog.__init__" ID="HgUserConfigHostMinimumProtocolDialog.__init__"></a> |
|
81 <h4>HgUserConfigHostMinimumProtocolDialog (Constructor)</h4> |
|
82 <b>HgUserConfigHostMinimumProtocolDialog</b>(<i>allowedProtocols, parent=None, host="", protocol=""</i>) |
|
83 <p> |
|
84 Constructor |
|
85 </p><dl> |
|
86 <dt><i>allowedProtocols</i> (dict)</dt> |
|
87 <dd> |
|
88 dictionary containing the allowed protocols |
|
89 with the value as key and the display string as value |
|
90 </dd><dt><i>parent</i> (QWidget)</dt> |
|
91 <dd> |
|
92 reference to the parent widget |
|
93 </dd><dt><i>host</i> (str)</dt> |
|
94 <dd> |
|
95 host name |
|
96 </dd><dt><i>protocol</i> (str)</dt> |
|
97 <dd> |
|
98 name of the minimum protocol for the host |
|
99 </dd> |
|
100 </dl><a NAME="HgUserConfigHostMinimumProtocolDialog.__updateOkButton" ID="HgUserConfigHostMinimumProtocolDialog.__updateOkButton"></a> |
|
101 <h4>HgUserConfigHostMinimumProtocolDialog.__updateOkButton</h4> |
|
102 <b>__updateOkButton</b>(<i></i>) |
|
103 <p> |
|
104 Private method to update the status of the Ok button. |
|
105 </p><a NAME="HgUserConfigHostMinimumProtocolDialog.getData" ID="HgUserConfigHostMinimumProtocolDialog.getData"></a> |
|
106 <h4>HgUserConfigHostMinimumProtocolDialog.getData</h4> |
|
107 <b>getData</b>(<i></i>) |
|
108 <p> |
|
109 Public method to retrieve the data. |
|
110 </p><dl> |
|
111 <dt>Returns:</dt> |
|
112 <dd> |
|
113 tuple containig the host name and the minimum protocol |
|
114 </dd> |
|
115 </dl><dl> |
|
116 <dt>Return Type:</dt> |
|
117 <dd> |
|
118 tuple of two str |
|
119 </dd> |
|
120 </dl><a NAME="HgUserConfigHostMinimumProtocolDialog.on_hostEdit_textChanged" ID="HgUserConfigHostMinimumProtocolDialog.on_hostEdit_textChanged"></a> |
|
121 <h4>HgUserConfigHostMinimumProtocolDialog.on_hostEdit_textChanged</h4> |
|
122 <b>on_hostEdit_textChanged</b>(<i>txt</i>) |
|
123 <p> |
|
124 Private slot to handle changes of the host edit. |
|
125 </p><dl> |
|
126 <dt><i>txt</i> (str)</dt> |
|
127 <dd> |
|
128 current text |
|
129 </dd> |
|
130 </dl><a NAME="HgUserConfigHostMinimumProtocolDialog.on_minimumProtocolComboBox_currentIndexChanged" ID="HgUserConfigHostMinimumProtocolDialog.on_minimumProtocolComboBox_currentIndexChanged"></a> |
|
131 <h4>HgUserConfigHostMinimumProtocolDialog.on_minimumProtocolComboBox_currentIndexChanged</h4> |
|
132 <b>on_minimumProtocolComboBox_currentIndexChanged</b>(<i>index</i>) |
|
133 <p> |
|
134 Private slot to handle the selection of a minimum protocol. |
|
135 </p><dl> |
|
136 <dt><i>index</i> (int)</dt> |
|
137 <dd> |
|
138 index of the selected entry |
|
139 </dd> |
|
140 </dl> |
|
141 <div align="right"><a href="#top">Up</a></div> |
|
142 <hr /> |
|
143 </body></html> |