16 |
16 |
17 a { color: #BA6D36; } |
17 a { color: #BA6D36; } |
18 |
18 |
19 </style> |
19 </style> |
20 </head> |
20 </head> |
21 <body><a NAME="top" ID="top"></a> |
21 <body> |
|
22 <a NAME="top" ID="top"></a> |
22 <h1>eric6.Plugins.VcsPlugins.vcsGit.GitRevisionSelectionDialog</h1> |
23 <h1>eric6.Plugins.VcsPlugins.vcsGit.GitRevisionSelectionDialog</h1> |
|
24 |
23 <p> |
25 <p> |
24 Module implementing a dialog to select a revision. |
26 Module implementing a dialog to select a revision. |
25 </p> |
27 </p> |
26 <h3>Global Attributes</h3> |
28 <h3>Global Attributes</h3> |
|
29 |
27 <table> |
30 <table> |
28 <tr><td>None</td></tr> |
31 <tr><td>None</td></tr> |
29 </table> |
32 </table> |
30 <h3>Classes</h3> |
33 <h3>Classes</h3> |
31 <table> |
34 |
|
35 <table> |
|
36 |
32 <tr> |
37 <tr> |
33 <td><a href="#GitRevisionSelectionDialog">GitRevisionSelectionDialog</a></td> |
38 <td><a href="#GitRevisionSelectionDialog">GitRevisionSelectionDialog</a></td> |
34 <td>Class implementing a dialog to select a revision.</td> |
39 <td>Class implementing a dialog to select a revision.</td> |
35 </tr> |
40 </tr> |
36 </table> |
41 </table> |
37 <h3>Functions</h3> |
42 <h3>Functions</h3> |
38 <table> |
43 |
39 <tr><td>None</td></tr> |
44 <table> |
40 </table> |
45 <tr><td>None</td></tr> |
41 <hr /><hr /> |
46 </table> |
|
47 <hr /> |
|
48 <hr /> |
42 <a NAME="GitRevisionSelectionDialog" ID="GitRevisionSelectionDialog"></a> |
49 <a NAME="GitRevisionSelectionDialog" ID="GitRevisionSelectionDialog"></a> |
43 <h2>GitRevisionSelectionDialog</h2> |
50 <h2>GitRevisionSelectionDialog</h2> |
|
51 |
44 <p> |
52 <p> |
45 Class implementing a dialog to select a revision. |
53 Class implementing a dialog to select a revision. |
46 </p> |
54 </p> |
47 <h3>Derived from</h3> |
55 <h3>Derived from</h3> |
48 QDialog, Ui_GitRevisionSelectionDialog |
56 QDialog, Ui_GitRevisionSelectionDialog |
49 <h3>Class Attributes</h3> |
57 <h3>Class Attributes</h3> |
|
58 |
50 <table> |
59 <table> |
51 <tr><td>None</td></tr> |
60 <tr><td>None</td></tr> |
52 </table> |
61 </table> |
53 <h3>Class Methods</h3> |
62 <h3>Class Methods</h3> |
|
63 |
54 <table> |
64 <table> |
55 <tr><td>None</td></tr> |
65 <tr><td>None</td></tr> |
56 </table> |
66 </table> |
57 <h3>Methods</h3> |
67 <h3>Methods</h3> |
58 <table> |
68 |
|
69 <table> |
|
70 |
59 <tr> |
71 <tr> |
60 <td><a href="#GitRevisionSelectionDialog.__init__">GitRevisionSelectionDialog</a></td> |
72 <td><a href="#GitRevisionSelectionDialog.__init__">GitRevisionSelectionDialog</a></td> |
61 <td>Constructor</td> |
73 <td>Constructor</td> |
62 </tr><tr> |
74 </tr> |
|
75 <tr> |
63 <td><a href="#GitRevisionSelectionDialog.__updateOK">__updateOK</a></td> |
76 <td><a href="#GitRevisionSelectionDialog.__updateOK">__updateOK</a></td> |
64 <td>Private slot to update the OK button.</td> |
77 <td>Private slot to update the OK button.</td> |
65 </tr><tr> |
78 </tr> |
|
79 <tr> |
66 <td><a href="#GitRevisionSelectionDialog.getRevision">getRevision</a></td> |
80 <td><a href="#GitRevisionSelectionDialog.getRevision">getRevision</a></td> |
67 <td>Public method to retrieve the selected revision.</td> |
81 <td>Public method to retrieve the selected revision.</td> |
68 </tr><tr> |
82 </tr> |
|
83 <tr> |
69 <td><a href="#GitRevisionSelectionDialog.on_branchButton_toggled">on_branchButton_toggled</a></td> |
84 <td><a href="#GitRevisionSelectionDialog.on_branchButton_toggled">on_branchButton_toggled</a></td> |
70 <td>Private slot to handle changes of the Branch select button.</td> |
85 <td>Private slot to handle changes of the Branch select button.</td> |
71 </tr><tr> |
86 </tr> |
|
87 <tr> |
72 <td><a href="#GitRevisionSelectionDialog.on_branchCombo_editTextChanged">on_branchCombo_editTextChanged</a></td> |
88 <td><a href="#GitRevisionSelectionDialog.on_branchCombo_editTextChanged">on_branchCombo_editTextChanged</a></td> |
73 <td>Private slot to handle changes of the Branch combo.</td> |
89 <td>Private slot to handle changes of the Branch combo.</td> |
74 </tr><tr> |
90 </tr> |
|
91 <tr> |
75 <td><a href="#GitRevisionSelectionDialog.on_remoteBranchButton_toggled">on_remoteBranchButton_toggled</a></td> |
92 <td><a href="#GitRevisionSelectionDialog.on_remoteBranchButton_toggled">on_remoteBranchButton_toggled</a></td> |
76 <td>Private slot to handle changes of the Remote Branch select button.</td> |
93 <td>Private slot to handle changes of the Remote Branch select button.</td> |
77 </tr><tr> |
94 </tr> |
|
95 <tr> |
78 <td><a href="#GitRevisionSelectionDialog.on_remoteBranchCombo_editTextChanged">on_remoteBranchCombo_editTextChanged</a></td> |
96 <td><a href="#GitRevisionSelectionDialog.on_remoteBranchCombo_editTextChanged">on_remoteBranchCombo_editTextChanged</a></td> |
79 <td>Private slot to handle changes of the Remote Branch combo.</td> |
97 <td>Private slot to handle changes of the Remote Branch combo.</td> |
80 </tr><tr> |
98 </tr> |
|
99 <tr> |
81 <td><a href="#GitRevisionSelectionDialog.on_revButton_toggled">on_revButton_toggled</a></td> |
100 <td><a href="#GitRevisionSelectionDialog.on_revButton_toggled">on_revButton_toggled</a></td> |
82 <td>Private slot to handle changes of the rev select button.</td> |
101 <td>Private slot to handle changes of the rev select button.</td> |
83 </tr><tr> |
102 </tr> |
|
103 <tr> |
84 <td><a href="#GitRevisionSelectionDialog.on_revEdit_textChanged">on_revEdit_textChanged</a></td> |
104 <td><a href="#GitRevisionSelectionDialog.on_revEdit_textChanged">on_revEdit_textChanged</a></td> |
85 <td>Private slot to handle changes of the rev edit.</td> |
105 <td>Private slot to handle changes of the rev edit.</td> |
86 </tr><tr> |
106 </tr> |
|
107 <tr> |
87 <td><a href="#GitRevisionSelectionDialog.on_tagButton_toggled">on_tagButton_toggled</a></td> |
108 <td><a href="#GitRevisionSelectionDialog.on_tagButton_toggled">on_tagButton_toggled</a></td> |
88 <td>Private slot to handle changes of the Tag select button.</td> |
109 <td>Private slot to handle changes of the Tag select button.</td> |
89 </tr><tr> |
110 </tr> |
|
111 <tr> |
90 <td><a href="#GitRevisionSelectionDialog.on_tagCombo_editTextChanged">on_tagCombo_editTextChanged</a></td> |
112 <td><a href="#GitRevisionSelectionDialog.on_tagCombo_editTextChanged">on_tagCombo_editTextChanged</a></td> |
91 <td>Private slot to handle changes of the Tag combo.</td> |
113 <td>Private slot to handle changes of the Tag combo.</td> |
92 </tr> |
114 </tr> |
93 </table> |
115 </table> |
94 <h3>Static Methods</h3> |
116 <h3>Static Methods</h3> |
95 <table> |
117 |
96 <tr><td>None</td></tr> |
118 <table> |
97 </table> |
119 <tr><td>None</td></tr> |
|
120 </table> |
|
121 |
98 <a NAME="GitRevisionSelectionDialog.__init__" ID="GitRevisionSelectionDialog.__init__"></a> |
122 <a NAME="GitRevisionSelectionDialog.__init__" ID="GitRevisionSelectionDialog.__init__"></a> |
99 <h4>GitRevisionSelectionDialog (Constructor)</h4> |
123 <h4>GitRevisionSelectionDialog (Constructor)</h4> |
100 <b>GitRevisionSelectionDialog</b>(<i>tagsList, branchesList, trackingBranchesList=None, noneLabel="", showBranches=True, showHead=True, parent=None</i>) |
124 <b>GitRevisionSelectionDialog</b>(<i>tagsList, branchesList, trackingBranchesList=None, noneLabel="", showBranches=True, showHead=True, parent=None</i>) |
|
125 |
101 <p> |
126 <p> |
102 Constructor |
127 Constructor |
103 </p><dl> |
128 </p> |
|
129 <dl> |
|
130 |
104 <dt><i>tagsList</i></dt> |
131 <dt><i>tagsList</i></dt> |
105 <dd> |
132 <dd> |
106 list of tags (list of strings) |
133 list of tags (list of strings) |
107 </dd><dt><i>branchesList</i></dt> |
134 </dd> |
|
135 <dt><i>branchesList</i></dt> |
108 <dd> |
136 <dd> |
109 list of branches (list of strings) |
137 list of branches (list of strings) |
110 </dd><dt><i>trackingBranchesList</i></dt> |
138 </dd> |
|
139 <dt><i>trackingBranchesList</i></dt> |
111 <dd> |
140 <dd> |
112 list of remote branches (list of strings) |
141 list of remote branches (list of strings) |
113 </dd><dt><i>noneLabel</i></dt> |
142 </dd> |
|
143 <dt><i>noneLabel</i></dt> |
114 <dd> |
144 <dd> |
115 label text for "no revision selected" (string) |
145 label text for "no revision selected" (string) |
116 </dd><dt><i>showBranches</i></dt> |
146 </dd> |
|
147 <dt><i>showBranches</i></dt> |
117 <dd> |
148 <dd> |
118 flag indicating to show the branch selection |
149 flag indicating to show the branch selection |
119 (boolean) |
150 (boolean) |
120 </dd><dt><i>showHead</i></dt> |
151 </dd> |
|
152 <dt><i>showHead</i></dt> |
121 <dd> |
153 <dd> |
122 flag indicating to show the head selection (boolean) |
154 flag indicating to show the head selection (boolean) |
123 </dd><dt><i>parent</i></dt> |
155 </dd> |
|
156 <dt><i>parent</i></dt> |
124 <dd> |
157 <dd> |
125 parent widget (QWidget) |
158 parent widget (QWidget) |
126 </dd> |
159 </dd> |
127 </dl><a NAME="GitRevisionSelectionDialog.__updateOK" ID="GitRevisionSelectionDialog.__updateOK"></a> |
160 </dl> |
|
161 <a NAME="GitRevisionSelectionDialog.__updateOK" ID="GitRevisionSelectionDialog.__updateOK"></a> |
128 <h4>GitRevisionSelectionDialog.__updateOK</h4> |
162 <h4>GitRevisionSelectionDialog.__updateOK</h4> |
129 <b>__updateOK</b>(<i></i>) |
163 <b>__updateOK</b>(<i></i>) |
|
164 |
130 <p> |
165 <p> |
131 Private slot to update the OK button. |
166 Private slot to update the OK button. |
132 </p><a NAME="GitRevisionSelectionDialog.getRevision" ID="GitRevisionSelectionDialog.getRevision"></a> |
167 </p> |
|
168 <a NAME="GitRevisionSelectionDialog.getRevision" ID="GitRevisionSelectionDialog.getRevision"></a> |
133 <h4>GitRevisionSelectionDialog.getRevision</h4> |
169 <h4>GitRevisionSelectionDialog.getRevision</h4> |
134 <b>getRevision</b>(<i></i>) |
170 <b>getRevision</b>(<i></i>) |
|
171 |
135 <p> |
172 <p> |
136 Public method to retrieve the selected revision. |
173 Public method to retrieve the selected revision. |
137 </p><dl> |
174 </p> |
|
175 <dl> |
138 <dt>Returns:</dt> |
176 <dt>Returns:</dt> |
139 <dd> |
177 <dd> |
140 selected revision (string) |
178 selected revision (string) |
141 </dd> |
179 </dd> |
142 </dl><a NAME="GitRevisionSelectionDialog.on_branchButton_toggled" ID="GitRevisionSelectionDialog.on_branchButton_toggled"></a> |
180 </dl> |
|
181 <a NAME="GitRevisionSelectionDialog.on_branchButton_toggled" ID="GitRevisionSelectionDialog.on_branchButton_toggled"></a> |
143 <h4>GitRevisionSelectionDialog.on_branchButton_toggled</h4> |
182 <h4>GitRevisionSelectionDialog.on_branchButton_toggled</h4> |
144 <b>on_branchButton_toggled</b>(<i>checked</i>) |
183 <b>on_branchButton_toggled</b>(<i>checked</i>) |
|
184 |
145 <p> |
185 <p> |
146 Private slot to handle changes of the Branch select button. |
186 Private slot to handle changes of the Branch select button. |
147 </p><dl> |
187 </p> |
148 <dt><i>checked</i></dt> |
188 <dl> |
149 <dd> |
189 |
150 state of the button (boolean) |
190 <dt><i>checked</i></dt> |
151 </dd> |
191 <dd> |
152 </dl><a NAME="GitRevisionSelectionDialog.on_branchCombo_editTextChanged" ID="GitRevisionSelectionDialog.on_branchCombo_editTextChanged"></a> |
192 state of the button (boolean) |
|
193 </dd> |
|
194 </dl> |
|
195 <a NAME="GitRevisionSelectionDialog.on_branchCombo_editTextChanged" ID="GitRevisionSelectionDialog.on_branchCombo_editTextChanged"></a> |
153 <h4>GitRevisionSelectionDialog.on_branchCombo_editTextChanged</h4> |
196 <h4>GitRevisionSelectionDialog.on_branchCombo_editTextChanged</h4> |
154 <b>on_branchCombo_editTextChanged</b>(<i>txt</i>) |
197 <b>on_branchCombo_editTextChanged</b>(<i>txt</i>) |
|
198 |
155 <p> |
199 <p> |
156 Private slot to handle changes of the Branch combo. |
200 Private slot to handle changes of the Branch combo. |
157 </p><dl> |
201 </p> |
|
202 <dl> |
|
203 |
158 <dt><i>txt</i></dt> |
204 <dt><i>txt</i></dt> |
159 <dd> |
205 <dd> |
160 text of the combo (string) |
206 text of the combo (string) |
161 </dd> |
207 </dd> |
162 </dl><a NAME="GitRevisionSelectionDialog.on_remoteBranchButton_toggled" ID="GitRevisionSelectionDialog.on_remoteBranchButton_toggled"></a> |
208 </dl> |
|
209 <a NAME="GitRevisionSelectionDialog.on_remoteBranchButton_toggled" ID="GitRevisionSelectionDialog.on_remoteBranchButton_toggled"></a> |
163 <h4>GitRevisionSelectionDialog.on_remoteBranchButton_toggled</h4> |
210 <h4>GitRevisionSelectionDialog.on_remoteBranchButton_toggled</h4> |
164 <b>on_remoteBranchButton_toggled</b>(<i>checked</i>) |
211 <b>on_remoteBranchButton_toggled</b>(<i>checked</i>) |
|
212 |
165 <p> |
213 <p> |
166 Private slot to handle changes of the Remote Branch select button. |
214 Private slot to handle changes of the Remote Branch select button. |
167 </p><dl> |
215 </p> |
168 <dt><i>checked</i></dt> |
216 <dl> |
169 <dd> |
217 |
170 state of the button (boolean) |
218 <dt><i>checked</i></dt> |
171 </dd> |
219 <dd> |
172 </dl><a NAME="GitRevisionSelectionDialog.on_remoteBranchCombo_editTextChanged" ID="GitRevisionSelectionDialog.on_remoteBranchCombo_editTextChanged"></a> |
220 state of the button (boolean) |
|
221 </dd> |
|
222 </dl> |
|
223 <a NAME="GitRevisionSelectionDialog.on_remoteBranchCombo_editTextChanged" ID="GitRevisionSelectionDialog.on_remoteBranchCombo_editTextChanged"></a> |
173 <h4>GitRevisionSelectionDialog.on_remoteBranchCombo_editTextChanged</h4> |
224 <h4>GitRevisionSelectionDialog.on_remoteBranchCombo_editTextChanged</h4> |
174 <b>on_remoteBranchCombo_editTextChanged</b>(<i>txt</i>) |
225 <b>on_remoteBranchCombo_editTextChanged</b>(<i>txt</i>) |
|
226 |
175 <p> |
227 <p> |
176 Private slot to handle changes of the Remote Branch combo. |
228 Private slot to handle changes of the Remote Branch combo. |
177 </p><dl> |
229 </p> |
|
230 <dl> |
|
231 |
178 <dt><i>txt</i></dt> |
232 <dt><i>txt</i></dt> |
179 <dd> |
233 <dd> |
180 text of the combo (string) |
234 text of the combo (string) |
181 </dd> |
235 </dd> |
182 </dl><a NAME="GitRevisionSelectionDialog.on_revButton_toggled" ID="GitRevisionSelectionDialog.on_revButton_toggled"></a> |
236 </dl> |
|
237 <a NAME="GitRevisionSelectionDialog.on_revButton_toggled" ID="GitRevisionSelectionDialog.on_revButton_toggled"></a> |
183 <h4>GitRevisionSelectionDialog.on_revButton_toggled</h4> |
238 <h4>GitRevisionSelectionDialog.on_revButton_toggled</h4> |
184 <b>on_revButton_toggled</b>(<i>checked</i>) |
239 <b>on_revButton_toggled</b>(<i>checked</i>) |
|
240 |
185 <p> |
241 <p> |
186 Private slot to handle changes of the rev select button. |
242 Private slot to handle changes of the rev select button. |
187 </p><dl> |
243 </p> |
188 <dt><i>checked</i></dt> |
244 <dl> |
189 <dd> |
245 |
190 state of the button (boolean) |
246 <dt><i>checked</i></dt> |
191 </dd> |
247 <dd> |
192 </dl><a NAME="GitRevisionSelectionDialog.on_revEdit_textChanged" ID="GitRevisionSelectionDialog.on_revEdit_textChanged"></a> |
248 state of the button (boolean) |
|
249 </dd> |
|
250 </dl> |
|
251 <a NAME="GitRevisionSelectionDialog.on_revEdit_textChanged" ID="GitRevisionSelectionDialog.on_revEdit_textChanged"></a> |
193 <h4>GitRevisionSelectionDialog.on_revEdit_textChanged</h4> |
252 <h4>GitRevisionSelectionDialog.on_revEdit_textChanged</h4> |
194 <b>on_revEdit_textChanged</b>(<i>txt</i>) |
253 <b>on_revEdit_textChanged</b>(<i>txt</i>) |
|
254 |
195 <p> |
255 <p> |
196 Private slot to handle changes of the rev edit. |
256 Private slot to handle changes of the rev edit. |
197 </p><dl> |
257 </p> |
|
258 <dl> |
|
259 |
198 <dt><i>txt</i></dt> |
260 <dt><i>txt</i></dt> |
199 <dd> |
261 <dd> |
200 text of the edit (string) |
262 text of the edit (string) |
201 </dd> |
263 </dd> |
202 </dl><a NAME="GitRevisionSelectionDialog.on_tagButton_toggled" ID="GitRevisionSelectionDialog.on_tagButton_toggled"></a> |
264 </dl> |
|
265 <a NAME="GitRevisionSelectionDialog.on_tagButton_toggled" ID="GitRevisionSelectionDialog.on_tagButton_toggled"></a> |
203 <h4>GitRevisionSelectionDialog.on_tagButton_toggled</h4> |
266 <h4>GitRevisionSelectionDialog.on_tagButton_toggled</h4> |
204 <b>on_tagButton_toggled</b>(<i>checked</i>) |
267 <b>on_tagButton_toggled</b>(<i>checked</i>) |
|
268 |
205 <p> |
269 <p> |
206 Private slot to handle changes of the Tag select button. |
270 Private slot to handle changes of the Tag select button. |
207 </p><dl> |
271 </p> |
208 <dt><i>checked</i></dt> |
272 <dl> |
209 <dd> |
273 |
210 state of the button (boolean) |
274 <dt><i>checked</i></dt> |
211 </dd> |
275 <dd> |
212 </dl><a NAME="GitRevisionSelectionDialog.on_tagCombo_editTextChanged" ID="GitRevisionSelectionDialog.on_tagCombo_editTextChanged"></a> |
276 state of the button (boolean) |
|
277 </dd> |
|
278 </dl> |
|
279 <a NAME="GitRevisionSelectionDialog.on_tagCombo_editTextChanged" ID="GitRevisionSelectionDialog.on_tagCombo_editTextChanged"></a> |
213 <h4>GitRevisionSelectionDialog.on_tagCombo_editTextChanged</h4> |
280 <h4>GitRevisionSelectionDialog.on_tagCombo_editTextChanged</h4> |
214 <b>on_tagCombo_editTextChanged</b>(<i>txt</i>) |
281 <b>on_tagCombo_editTextChanged</b>(<i>txt</i>) |
|
282 |
215 <p> |
283 <p> |
216 Private slot to handle changes of the Tag combo. |
284 Private slot to handle changes of the Tag combo. |
217 </p><dl> |
285 </p> |
|
286 <dl> |
|
287 |
218 <dt><i>txt</i></dt> |
288 <dt><i>txt</i></dt> |
219 <dd> |
289 <dd> |
220 text of the combo (string) |
290 text of the combo (string) |
221 </dd> |
291 </dd> |
222 </dl> |
292 </dl> |