|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.Plugins.VcsPlugins.vcsMercurial.RebaseExtension.HgRebaseDialog</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.RebaseExtension.HgRebaseDialog</h1> |
|
23 <p> |
|
24 Module implementing a dialog to enter the data for a rebase session. |
|
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="#HgRebaseDialog">HgRebaseDialog</a></td> |
|
34 <td>Class implementing a dialog to enter the data for a rebase session.</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="HgRebaseDialog" ID="HgRebaseDialog"></a> |
|
43 <h2>HgRebaseDialog</h2> |
|
44 <p> |
|
45 Class implementing a dialog to enter the data for a rebase session. |
|
46 </p> |
|
47 <h3>Derived from</h3> |
|
48 QDialog, Ui_HgRebaseDialog |
|
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="#HgRebaseDialog.__init__">HgRebaseDialog</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr><tr> |
|
63 <td><a href="#HgRebaseDialog.__getRevision">__getRevision</a></td> |
|
64 <td>Private method to generate the revision.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#HgRebaseDialog.__updateOK">__updateOK</a></td> |
|
67 <td>Private slot to update the OK button.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#HgRebaseDialog.getData">getData</a></td> |
|
70 <td>Public method to retrieve the data for the rebase session.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#HgRebaseDialog.on_bookmark1Button_toggled">on_bookmark1Button_toggled</a></td> |
|
73 <td>Private slot to handle changes of the Bookmark1 select button.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#HgRebaseDialog.on_bookmark1Combo_editTextChanged">on_bookmark1Combo_editTextChanged</a></td> |
|
76 <td>Private slot to handle changes of the Bookmark1 combo.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#HgRebaseDialog.on_bookmark2Button_toggled">on_bookmark2Button_toggled</a></td> |
|
79 <td>Private slot to handle changes of the Bookmark2 select button.</td> |
|
80 </tr><tr> |
|
81 <td><a href="#HgRebaseDialog.on_bookmark2Combo_editTextChanged">on_bookmark2Combo_editTextChanged</a></td> |
|
82 <td>Private slot to handle changes of the Bookmark2 combo.</td> |
|
83 </tr><tr> |
|
84 <td><a href="#HgRebaseDialog.on_branch1Button_toggled">on_branch1Button_toggled</a></td> |
|
85 <td>Private slot to handle changes of the Branch1 select button.</td> |
|
86 </tr><tr> |
|
87 <td><a href="#HgRebaseDialog.on_branch1Combo_editTextChanged">on_branch1Combo_editTextChanged</a></td> |
|
88 <td>Private slot to handle changes of the Branch1 combo.</td> |
|
89 </tr><tr> |
|
90 <td><a href="#HgRebaseDialog.on_branch2Button_toggled">on_branch2Button_toggled</a></td> |
|
91 <td>Private slot to handle changes of the Branch2 select button.</td> |
|
92 </tr><tr> |
|
93 <td><a href="#HgRebaseDialog.on_branch2Combo_editTextChanged">on_branch2Combo_editTextChanged</a></td> |
|
94 <td>Private slot to handle changes of the Branch2 combo.</td> |
|
95 </tr><tr> |
|
96 <td><a href="#HgRebaseDialog.on_id1Button_toggled">on_id1Button_toggled</a></td> |
|
97 <td>Private slot to handle changes of the ID1 select button.</td> |
|
98 </tr><tr> |
|
99 <td><a href="#HgRebaseDialog.on_id1Edit_textChanged">on_id1Edit_textChanged</a></td> |
|
100 <td>Private slot to handle changes of the ID1 edit.</td> |
|
101 </tr><tr> |
|
102 <td><a href="#HgRebaseDialog.on_id2Button_toggled">on_id2Button_toggled</a></td> |
|
103 <td>Private slot to handle changes of the ID2 select button.</td> |
|
104 </tr><tr> |
|
105 <td><a href="#HgRebaseDialog.on_id2Edit_textChanged">on_id2Edit_textChanged</a></td> |
|
106 <td>Private slot to handle changes of the ID2 edit.</td> |
|
107 </tr><tr> |
|
108 <td><a href="#HgRebaseDialog.on_tag1Button_toggled">on_tag1Button_toggled</a></td> |
|
109 <td>Private slot to handle changes of the Tag1 select button.</td> |
|
110 </tr><tr> |
|
111 <td><a href="#HgRebaseDialog.on_tag1Combo_editTextChanged">on_tag1Combo_editTextChanged</a></td> |
|
112 <td>Private slot to handle changes of the Tag1 combo.</td> |
|
113 </tr><tr> |
|
114 <td><a href="#HgRebaseDialog.on_tag2Button_toggled">on_tag2Button_toggled</a></td> |
|
115 <td>Private slot to handle changes of the Tag2 select button.</td> |
|
116 </tr><tr> |
|
117 <td><a href="#HgRebaseDialog.on_tag2Combo_editTextChanged">on_tag2Combo_editTextChanged</a></td> |
|
118 <td>Private slot to handle changes of the Tag2 combo.</td> |
|
119 </tr> |
|
120 </table> |
|
121 <h3>Static Methods</h3> |
|
122 <table> |
|
123 <tr><td>None</td></tr> |
|
124 </table> |
|
125 <a NAME="HgRebaseDialog.__init__" ID="HgRebaseDialog.__init__"></a> |
|
126 <h4>HgRebaseDialog (Constructor)</h4> |
|
127 <b>HgRebaseDialog</b>(<i>tagsList, branchesList, bookmarksList=None, parent=None</i>) |
|
128 <p> |
|
129 Constructor |
|
130 </p><dl> |
|
131 <dt><i>tagsList</i></dt> |
|
132 <dd> |
|
133 list of tags (list of strings) |
|
134 </dd><dt><i>branchesList</i></dt> |
|
135 <dd> |
|
136 list of branches (list of strings) |
|
137 </dd><dt><i>bookmarksList</i></dt> |
|
138 <dd> |
|
139 list of bookmarks (list of strings) |
|
140 </dd><dt><i>parent</i></dt> |
|
141 <dd> |
|
142 reference to the parent widget (QWidget) |
|
143 </dd> |
|
144 </dl><a NAME="HgRebaseDialog.__getRevision" ID="HgRebaseDialog.__getRevision"></a> |
|
145 <h4>HgRebaseDialog.__getRevision</h4> |
|
146 <b>__getRevision</b>(<i>no</i>) |
|
147 <p> |
|
148 Private method to generate the revision. |
|
149 </p><dl> |
|
150 <dt><i>no</i></dt> |
|
151 <dd> |
|
152 revision number to generate (1 or 2) |
|
153 </dd> |
|
154 </dl><dl> |
|
155 <dt>Returns:</dt> |
|
156 <dd> |
|
157 revision (string) |
|
158 </dd> |
|
159 </dl><a NAME="HgRebaseDialog.__updateOK" ID="HgRebaseDialog.__updateOK"></a> |
|
160 <h4>HgRebaseDialog.__updateOK</h4> |
|
161 <b>__updateOK</b>(<i></i>) |
|
162 <p> |
|
163 Private slot to update the OK button. |
|
164 </p><a NAME="HgRebaseDialog.getData" ID="HgRebaseDialog.getData"></a> |
|
165 <h4>HgRebaseDialog.getData</h4> |
|
166 <b>getData</b>(<i></i>) |
|
167 <p> |
|
168 Public method to retrieve the data for the rebase session. |
|
169 </p><dl> |
|
170 <dt>Returns:</dt> |
|
171 <dd> |
|
172 tuple with a source indicator of "S" or "B", the source |
|
173 revision, the destination revision, a flag indicating to collapse, |
|
174 a flag indicating to keep the original changesets, a flag |
|
175 indicating to keep the original branch name and a flag indicating |
|
176 to detach the source (string, string, string, boolean, boolean, |
|
177 boolean, boolean) |
|
178 </dd> |
|
179 </dl><a NAME="HgRebaseDialog.on_bookmark1Button_toggled" ID="HgRebaseDialog.on_bookmark1Button_toggled"></a> |
|
180 <h4>HgRebaseDialog.on_bookmark1Button_toggled</h4> |
|
181 <b>on_bookmark1Button_toggled</b>(<i>checked</i>) |
|
182 <p> |
|
183 Private slot to handle changes of the Bookmark1 select button. |
|
184 </p><dl> |
|
185 <dt><i>checked</i></dt> |
|
186 <dd> |
|
187 state of the button (boolean) |
|
188 </dd> |
|
189 </dl><a NAME="HgRebaseDialog.on_bookmark1Combo_editTextChanged" ID="HgRebaseDialog.on_bookmark1Combo_editTextChanged"></a> |
|
190 <h4>HgRebaseDialog.on_bookmark1Combo_editTextChanged</h4> |
|
191 <b>on_bookmark1Combo_editTextChanged</b>(<i>txt</i>) |
|
192 <p> |
|
193 Private slot to handle changes of the Bookmark1 combo. |
|
194 </p><dl> |
|
195 <dt><i>txt</i></dt> |
|
196 <dd> |
|
197 text of the combo (string) |
|
198 </dd> |
|
199 </dl><a NAME="HgRebaseDialog.on_bookmark2Button_toggled" ID="HgRebaseDialog.on_bookmark2Button_toggled"></a> |
|
200 <h4>HgRebaseDialog.on_bookmark2Button_toggled</h4> |
|
201 <b>on_bookmark2Button_toggled</b>(<i>checked</i>) |
|
202 <p> |
|
203 Private slot to handle changes of the Bookmark2 select button. |
|
204 </p><dl> |
|
205 <dt><i>checked</i></dt> |
|
206 <dd> |
|
207 state of the button (boolean) |
|
208 </dd> |
|
209 </dl><a NAME="HgRebaseDialog.on_bookmark2Combo_editTextChanged" ID="HgRebaseDialog.on_bookmark2Combo_editTextChanged"></a> |
|
210 <h4>HgRebaseDialog.on_bookmark2Combo_editTextChanged</h4> |
|
211 <b>on_bookmark2Combo_editTextChanged</b>(<i>txt</i>) |
|
212 <p> |
|
213 Private slot to handle changes of the Bookmark2 combo. |
|
214 </p><dl> |
|
215 <dt><i>txt</i></dt> |
|
216 <dd> |
|
217 text of the combo (string) |
|
218 </dd> |
|
219 </dl><a NAME="HgRebaseDialog.on_branch1Button_toggled" ID="HgRebaseDialog.on_branch1Button_toggled"></a> |
|
220 <h4>HgRebaseDialog.on_branch1Button_toggled</h4> |
|
221 <b>on_branch1Button_toggled</b>(<i>checked</i>) |
|
222 <p> |
|
223 Private slot to handle changes of the Branch1 select button. |
|
224 </p><dl> |
|
225 <dt><i>checked</i></dt> |
|
226 <dd> |
|
227 state of the button (boolean) |
|
228 </dd> |
|
229 </dl><a NAME="HgRebaseDialog.on_branch1Combo_editTextChanged" ID="HgRebaseDialog.on_branch1Combo_editTextChanged"></a> |
|
230 <h4>HgRebaseDialog.on_branch1Combo_editTextChanged</h4> |
|
231 <b>on_branch1Combo_editTextChanged</b>(<i>txt</i>) |
|
232 <p> |
|
233 Private slot to handle changes of the Branch1 combo. |
|
234 </p><dl> |
|
235 <dt><i>txt</i></dt> |
|
236 <dd> |
|
237 text of the combo (string) |
|
238 </dd> |
|
239 </dl><a NAME="HgRebaseDialog.on_branch2Button_toggled" ID="HgRebaseDialog.on_branch2Button_toggled"></a> |
|
240 <h4>HgRebaseDialog.on_branch2Button_toggled</h4> |
|
241 <b>on_branch2Button_toggled</b>(<i>checked</i>) |
|
242 <p> |
|
243 Private slot to handle changes of the Branch2 select button. |
|
244 </p><dl> |
|
245 <dt><i>checked</i></dt> |
|
246 <dd> |
|
247 state of the button (boolean) |
|
248 </dd> |
|
249 </dl><a NAME="HgRebaseDialog.on_branch2Combo_editTextChanged" ID="HgRebaseDialog.on_branch2Combo_editTextChanged"></a> |
|
250 <h4>HgRebaseDialog.on_branch2Combo_editTextChanged</h4> |
|
251 <b>on_branch2Combo_editTextChanged</b>(<i>txt</i>) |
|
252 <p> |
|
253 Private slot to handle changes of the Branch2 combo. |
|
254 </p><dl> |
|
255 <dt><i>txt</i></dt> |
|
256 <dd> |
|
257 text of the combo (string) |
|
258 </dd> |
|
259 </dl><a NAME="HgRebaseDialog.on_id1Button_toggled" ID="HgRebaseDialog.on_id1Button_toggled"></a> |
|
260 <h4>HgRebaseDialog.on_id1Button_toggled</h4> |
|
261 <b>on_id1Button_toggled</b>(<i>checked</i>) |
|
262 <p> |
|
263 Private slot to handle changes of the ID1 select button. |
|
264 </p><dl> |
|
265 <dt><i>checked</i></dt> |
|
266 <dd> |
|
267 state of the button (boolean) |
|
268 </dd> |
|
269 </dl><a NAME="HgRebaseDialog.on_id1Edit_textChanged" ID="HgRebaseDialog.on_id1Edit_textChanged"></a> |
|
270 <h4>HgRebaseDialog.on_id1Edit_textChanged</h4> |
|
271 <b>on_id1Edit_textChanged</b>(<i>txt</i>) |
|
272 <p> |
|
273 Private slot to handle changes of the ID1 edit. |
|
274 </p><dl> |
|
275 <dt><i>txt</i></dt> |
|
276 <dd> |
|
277 text of the edit (string) |
|
278 </dd> |
|
279 </dl><a NAME="HgRebaseDialog.on_id2Button_toggled" ID="HgRebaseDialog.on_id2Button_toggled"></a> |
|
280 <h4>HgRebaseDialog.on_id2Button_toggled</h4> |
|
281 <b>on_id2Button_toggled</b>(<i>checked</i>) |
|
282 <p> |
|
283 Private slot to handle changes of the ID2 select button. |
|
284 </p><dl> |
|
285 <dt><i>checked</i></dt> |
|
286 <dd> |
|
287 state of the button (boolean) |
|
288 </dd> |
|
289 </dl><a NAME="HgRebaseDialog.on_id2Edit_textChanged" ID="HgRebaseDialog.on_id2Edit_textChanged"></a> |
|
290 <h4>HgRebaseDialog.on_id2Edit_textChanged</h4> |
|
291 <b>on_id2Edit_textChanged</b>(<i>txt</i>) |
|
292 <p> |
|
293 Private slot to handle changes of the ID2 edit. |
|
294 </p><dl> |
|
295 <dt><i>txt</i></dt> |
|
296 <dd> |
|
297 text of the edit (string) |
|
298 </dd> |
|
299 </dl><a NAME="HgRebaseDialog.on_tag1Button_toggled" ID="HgRebaseDialog.on_tag1Button_toggled"></a> |
|
300 <h4>HgRebaseDialog.on_tag1Button_toggled</h4> |
|
301 <b>on_tag1Button_toggled</b>(<i>checked</i>) |
|
302 <p> |
|
303 Private slot to handle changes of the Tag1 select button. |
|
304 </p><dl> |
|
305 <dt><i>checked</i></dt> |
|
306 <dd> |
|
307 state of the button (boolean) |
|
308 </dd> |
|
309 </dl><a NAME="HgRebaseDialog.on_tag1Combo_editTextChanged" ID="HgRebaseDialog.on_tag1Combo_editTextChanged"></a> |
|
310 <h4>HgRebaseDialog.on_tag1Combo_editTextChanged</h4> |
|
311 <b>on_tag1Combo_editTextChanged</b>(<i>txt</i>) |
|
312 <p> |
|
313 Private slot to handle changes of the Tag1 combo. |
|
314 </p><dl> |
|
315 <dt><i>txt</i></dt> |
|
316 <dd> |
|
317 text of the combo (string) |
|
318 </dd> |
|
319 </dl><a NAME="HgRebaseDialog.on_tag2Button_toggled" ID="HgRebaseDialog.on_tag2Button_toggled"></a> |
|
320 <h4>HgRebaseDialog.on_tag2Button_toggled</h4> |
|
321 <b>on_tag2Button_toggled</b>(<i>checked</i>) |
|
322 <p> |
|
323 Private slot to handle changes of the Tag2 select button. |
|
324 </p><dl> |
|
325 <dt><i>checked</i></dt> |
|
326 <dd> |
|
327 state of the button (boolean) |
|
328 </dd> |
|
329 </dl><a NAME="HgRebaseDialog.on_tag2Combo_editTextChanged" ID="HgRebaseDialog.on_tag2Combo_editTextChanged"></a> |
|
330 <h4>HgRebaseDialog.on_tag2Combo_editTextChanged</h4> |
|
331 <b>on_tag2Combo_editTextChanged</b>(<i>txt</i>) |
|
332 <p> |
|
333 Private slot to handle changes of the Tag2 combo. |
|
334 </p><dl> |
|
335 <dt><i>txt</i></dt> |
|
336 <dd> |
|
337 text of the combo (string) |
|
338 </dd> |
|
339 </dl> |
|
340 <div align="right"><a href="#top">Up</a></div> |
|
341 <hr /> |
|
342 </body></html> |