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.vcsMercurial.StripExtension.HgStripDialog</h1> |
23 <h1>eric6.Plugins.VcsPlugins.vcsMercurial.StripExtension.HgStripDialog</h1> |
|
24 |
23 <p> |
25 <p> |
24 Module implementing a dialog to enter the data to strip changesets. |
26 Module implementing a dialog to enter the data to strip changesets. |
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="#HgStripDialog">HgStripDialog</a></td> |
38 <td><a href="#HgStripDialog">HgStripDialog</a></td> |
34 <td>Class implementing a dialog to enter the data to strip changesets.</td> |
39 <td>Class implementing a dialog to enter the data to strip changesets.</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="HgStripDialog" ID="HgStripDialog"></a> |
49 <a NAME="HgStripDialog" ID="HgStripDialog"></a> |
43 <h2>HgStripDialog</h2> |
50 <h2>HgStripDialog</h2> |
|
51 |
44 <p> |
52 <p> |
45 Class implementing a dialog to enter the data to strip changesets. |
53 Class implementing a dialog to enter the data to strip changesets. |
46 </p> |
54 </p> |
47 <h3>Derived from</h3> |
55 <h3>Derived from</h3> |
48 QDialog, Ui_HgStripDialog |
56 QDialog, Ui_HgStripDialog |
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="#HgStripDialog.__init__">HgStripDialog</a></td> |
72 <td><a href="#HgStripDialog.__init__">HgStripDialog</a></td> |
61 <td>Constructor</td> |
73 <td>Constructor</td> |
62 </tr><tr> |
74 </tr> |
|
75 <tr> |
63 <td><a href="#HgStripDialog.__getRevision">__getRevision</a></td> |
76 <td><a href="#HgStripDialog.__getRevision">__getRevision</a></td> |
64 <td>Private method to generate the revision.</td> |
77 <td>Private method to generate the revision.</td> |
65 </tr><tr> |
78 </tr> |
|
79 <tr> |
66 <td><a href="#HgStripDialog.__updateOK">__updateOK</a></td> |
80 <td><a href="#HgStripDialog.__updateOK">__updateOK</a></td> |
67 <td>Private slot to update the OK button.</td> |
81 <td>Private slot to update the OK button.</td> |
68 </tr><tr> |
82 </tr> |
|
83 <tr> |
69 <td><a href="#HgStripDialog.getData">getData</a></td> |
84 <td><a href="#HgStripDialog.getData">getData</a></td> |
70 <td>Public method to retrieve the data for the strip action.</td> |
85 <td>Public method to retrieve the data for the strip action.</td> |
71 </tr><tr> |
86 </tr> |
|
87 <tr> |
72 <td><a href="#HgStripDialog.on_branchButton_toggled">on_branchButton_toggled</a></td> |
88 <td><a href="#HgStripDialog.on_branchButton_toggled">on_branchButton_toggled</a></td> |
73 <td>Private slot to handle changes of the Branch select button.</td> |
89 <td>Private slot to handle changes of the Branch select button.</td> |
74 </tr><tr> |
90 </tr> |
|
91 <tr> |
75 <td><a href="#HgStripDialog.on_branchCombo_editTextChanged">on_branchCombo_editTextChanged</a></td> |
92 <td><a href="#HgStripDialog.on_branchCombo_editTextChanged">on_branchCombo_editTextChanged</a></td> |
76 <td>Private slot to handle changes of the Branch combo.</td> |
93 <td>Private slot to handle changes of the Branch combo.</td> |
77 </tr><tr> |
94 </tr> |
|
95 <tr> |
78 <td><a href="#HgStripDialog.on_idButton_toggled">on_idButton_toggled</a></td> |
96 <td><a href="#HgStripDialog.on_idButton_toggled">on_idButton_toggled</a></td> |
79 <td>Private slot to handle changes of the ID select button.</td> |
97 <td>Private slot to handle changes of the ID select button.</td> |
80 </tr><tr> |
98 </tr> |
|
99 <tr> |
81 <td><a href="#HgStripDialog.on_idEdit_textChanged">on_idEdit_textChanged</a></td> |
100 <td><a href="#HgStripDialog.on_idEdit_textChanged">on_idEdit_textChanged</a></td> |
82 <td>Private slot to handle changes of the ID edit.</td> |
101 <td>Private slot to handle changes of the ID edit.</td> |
83 </tr><tr> |
102 </tr> |
|
103 <tr> |
84 <td><a href="#HgStripDialog.on_numberButton_toggled">on_numberButton_toggled</a></td> |
104 <td><a href="#HgStripDialog.on_numberButton_toggled">on_numberButton_toggled</a></td> |
85 <td>Private slot to handle changes of the Number select button.</td> |
105 <td>Private slot to handle changes of the Number select button.</td> |
86 </tr><tr> |
106 </tr> |
|
107 <tr> |
87 <td><a href="#HgStripDialog.on_numberSpinBox_valueChanged">on_numberSpinBox_valueChanged</a></td> |
108 <td><a href="#HgStripDialog.on_numberSpinBox_valueChanged">on_numberSpinBox_valueChanged</a></td> |
88 <td>Private slot to handle changes of the Number spin box.</td> |
109 <td>Private slot to handle changes of the Number spin box.</td> |
89 </tr><tr> |
110 </tr> |
|
111 <tr> |
90 <td><a href="#HgStripDialog.on_tagButton_toggled">on_tagButton_toggled</a></td> |
112 <td><a href="#HgStripDialog.on_tagButton_toggled">on_tagButton_toggled</a></td> |
91 <td>Private slot to handle changes of the Tag select button.</td> |
113 <td>Private slot to handle changes of the Tag select button.</td> |
92 </tr><tr> |
114 </tr> |
|
115 <tr> |
93 <td><a href="#HgStripDialog.on_tagCombo_editTextChanged">on_tagCombo_editTextChanged</a></td> |
116 <td><a href="#HgStripDialog.on_tagCombo_editTextChanged">on_tagCombo_editTextChanged</a></td> |
94 <td>Private slot to handle changes of the Tag combo.</td> |
117 <td>Private slot to handle changes of the Tag combo.</td> |
95 </tr> |
118 </tr> |
96 </table> |
119 </table> |
97 <h3>Static Methods</h3> |
120 <h3>Static Methods</h3> |
98 <table> |
121 |
99 <tr><td>None</td></tr> |
122 <table> |
100 </table> |
123 <tr><td>None</td></tr> |
|
124 </table> |
|
125 |
101 <a NAME="HgStripDialog.__init__" ID="HgStripDialog.__init__"></a> |
126 <a NAME="HgStripDialog.__init__" ID="HgStripDialog.__init__"></a> |
102 <h4>HgStripDialog (Constructor)</h4> |
127 <h4>HgStripDialog (Constructor)</h4> |
103 <b>HgStripDialog</b>(<i>tagsList, branchesList, bookmarksList=None, rev="", parent=None</i>) |
128 <b>HgStripDialog</b>(<i>tagsList, branchesList, bookmarksList=None, rev="", parent=None</i>) |
|
129 |
104 <p> |
130 <p> |
105 Constructor |
131 Constructor |
106 </p><dl> |
132 </p> |
|
133 <dl> |
|
134 |
107 <dt><i>tagsList</i> (list of str)</dt> |
135 <dt><i>tagsList</i> (list of str)</dt> |
108 <dd> |
136 <dd> |
109 list of tags |
137 list of tags |
110 </dd><dt><i>branchesList</i> (list of str)</dt> |
138 </dd> |
|
139 <dt><i>branchesList</i> (list of str)</dt> |
111 <dd> |
140 <dd> |
112 list of branches |
141 list of branches |
113 </dd><dt><i>bookmarksList</i> (list of str)</dt> |
142 </dd> |
|
143 <dt><i>bookmarksList</i> (list of str)</dt> |
114 <dd> |
144 <dd> |
115 list of bookmarks |
145 list of bookmarks |
116 </dd><dt><i>rev=</i> (str)</dt> |
146 </dd> |
|
147 <dt><i>rev=</i> (str)</dt> |
117 <dd> |
148 <dd> |
118 revision to strip from |
149 revision to strip from |
119 </dd><dt><i>parent</i> (QWidget)</dt> |
150 </dd> |
|
151 <dt><i>parent</i> (QWidget)</dt> |
120 <dd> |
152 <dd> |
121 reference to the parent widget |
153 reference to the parent widget |
122 </dd> |
154 </dd> |
123 </dl><a NAME="HgStripDialog.__getRevision" ID="HgStripDialog.__getRevision"></a> |
155 </dl> |
|
156 <a NAME="HgStripDialog.__getRevision" ID="HgStripDialog.__getRevision"></a> |
124 <h4>HgStripDialog.__getRevision</h4> |
157 <h4>HgStripDialog.__getRevision</h4> |
125 <b>__getRevision</b>(<i></i>) |
158 <b>__getRevision</b>(<i></i>) |
|
159 |
126 <p> |
160 <p> |
127 Private method to generate the revision. |
161 Private method to generate the revision. |
128 </p><dl> |
162 </p> |
|
163 <dl> |
129 <dt>Returns:</dt> |
164 <dt>Returns:</dt> |
130 <dd> |
165 <dd> |
131 revision |
166 revision |
132 </dd> |
167 </dd> |
133 </dl><dl> |
168 </dl> |
|
169 <dl> |
134 <dt>Return Type:</dt> |
170 <dt>Return Type:</dt> |
135 <dd> |
171 <dd> |
136 str |
172 str |
137 </dd> |
173 </dd> |
138 </dl><a NAME="HgStripDialog.__updateOK" ID="HgStripDialog.__updateOK"></a> |
174 </dl> |
|
175 <a NAME="HgStripDialog.__updateOK" ID="HgStripDialog.__updateOK"></a> |
139 <h4>HgStripDialog.__updateOK</h4> |
176 <h4>HgStripDialog.__updateOK</h4> |
140 <b>__updateOK</b>(<i></i>) |
177 <b>__updateOK</b>(<i></i>) |
|
178 |
141 <p> |
179 <p> |
142 Private slot to update the OK button. |
180 Private slot to update the OK button. |
143 </p><a NAME="HgStripDialog.getData" ID="HgStripDialog.getData"></a> |
181 </p> |
|
182 <a NAME="HgStripDialog.getData" ID="HgStripDialog.getData"></a> |
144 <h4>HgStripDialog.getData</h4> |
183 <h4>HgStripDialog.getData</h4> |
145 <b>getData</b>(<i></i>) |
184 <b>getData</b>(<i></i>) |
|
185 |
146 <p> |
186 <p> |
147 Public method to retrieve the data for the strip action. |
187 Public method to retrieve the data for the strip action. |
148 </p><dl> |
188 </p> |
|
189 <dl> |
149 <dt>Returns:</dt> |
190 <dt>Returns:</dt> |
150 <dd> |
191 <dd> |
151 tuple with the revision, a bookmark name, a flag indicating |
192 tuple with the revision, a bookmark name, a flag indicating |
152 to enforce the strip action, a flag indicating to omit the creation |
193 to enforce the strip action, a flag indicating to omit the creation |
153 of backup bundles and a flag indicating to not modify the working |
194 of backup bundles and a flag indicating to not modify the working |
154 directory |
195 directory |
155 </dd> |
196 </dd> |
156 </dl><dl> |
197 </dl> |
|
198 <dl> |
157 <dt>Return Type:</dt> |
199 <dt>Return Type:</dt> |
158 <dd> |
200 <dd> |
159 tuple (str, str, bool, bool, bool) |
201 tuple (str, str, bool, bool, bool) |
160 </dd> |
202 </dd> |
161 </dl><a NAME="HgStripDialog.on_branchButton_toggled" ID="HgStripDialog.on_branchButton_toggled"></a> |
203 </dl> |
|
204 <a NAME="HgStripDialog.on_branchButton_toggled" ID="HgStripDialog.on_branchButton_toggled"></a> |
162 <h4>HgStripDialog.on_branchButton_toggled</h4> |
205 <h4>HgStripDialog.on_branchButton_toggled</h4> |
163 <b>on_branchButton_toggled</b>(<i>checked</i>) |
206 <b>on_branchButton_toggled</b>(<i>checked</i>) |
|
207 |
164 <p> |
208 <p> |
165 Private slot to handle changes of the Branch select button. |
209 Private slot to handle changes of the Branch select button. |
166 </p><dl> |
210 </p> |
|
211 <dl> |
|
212 |
167 <dt><i>checked</i> (bool)</dt> |
213 <dt><i>checked</i> (bool)</dt> |
168 <dd> |
214 <dd> |
169 state of the button |
215 state of the button |
170 </dd> |
216 </dd> |
171 </dl><a NAME="HgStripDialog.on_branchCombo_editTextChanged" ID="HgStripDialog.on_branchCombo_editTextChanged"></a> |
217 </dl> |
|
218 <a NAME="HgStripDialog.on_branchCombo_editTextChanged" ID="HgStripDialog.on_branchCombo_editTextChanged"></a> |
172 <h4>HgStripDialog.on_branchCombo_editTextChanged</h4> |
219 <h4>HgStripDialog.on_branchCombo_editTextChanged</h4> |
173 <b>on_branchCombo_editTextChanged</b>(<i>txt</i>) |
220 <b>on_branchCombo_editTextChanged</b>(<i>txt</i>) |
|
221 |
174 <p> |
222 <p> |
175 Private slot to handle changes of the Branch combo. |
223 Private slot to handle changes of the Branch combo. |
176 </p><dl> |
224 </p> |
|
225 <dl> |
|
226 |
177 <dt><i>txt</i> (str)</dt> |
227 <dt><i>txt</i> (str)</dt> |
178 <dd> |
228 <dd> |
179 text of the combo |
229 text of the combo |
180 </dd> |
230 </dd> |
181 </dl><a NAME="HgStripDialog.on_idButton_toggled" ID="HgStripDialog.on_idButton_toggled"></a> |
231 </dl> |
|
232 <a NAME="HgStripDialog.on_idButton_toggled" ID="HgStripDialog.on_idButton_toggled"></a> |
182 <h4>HgStripDialog.on_idButton_toggled</h4> |
233 <h4>HgStripDialog.on_idButton_toggled</h4> |
183 <b>on_idButton_toggled</b>(<i>checked</i>) |
234 <b>on_idButton_toggled</b>(<i>checked</i>) |
|
235 |
184 <p> |
236 <p> |
185 Private slot to handle changes of the ID select button. |
237 Private slot to handle changes of the ID select button. |
186 </p><dl> |
238 </p> |
|
239 <dl> |
|
240 |
187 <dt><i>checked</i> (bool)</dt> |
241 <dt><i>checked</i> (bool)</dt> |
188 <dd> |
242 <dd> |
189 state of the button |
243 state of the button |
190 </dd> |
244 </dd> |
191 </dl><a NAME="HgStripDialog.on_idEdit_textChanged" ID="HgStripDialog.on_idEdit_textChanged"></a> |
245 </dl> |
|
246 <a NAME="HgStripDialog.on_idEdit_textChanged" ID="HgStripDialog.on_idEdit_textChanged"></a> |
192 <h4>HgStripDialog.on_idEdit_textChanged</h4> |
247 <h4>HgStripDialog.on_idEdit_textChanged</h4> |
193 <b>on_idEdit_textChanged</b>(<i>txt</i>) |
248 <b>on_idEdit_textChanged</b>(<i>txt</i>) |
|
249 |
194 <p> |
250 <p> |
195 Private slot to handle changes of the ID edit. |
251 Private slot to handle changes of the ID edit. |
196 </p><dl> |
252 </p> |
|
253 <dl> |
|
254 |
197 <dt><i>txt</i> (str)</dt> |
255 <dt><i>txt</i> (str)</dt> |
198 <dd> |
256 <dd> |
199 text of the edit |
257 text of the edit |
200 </dd> |
258 </dd> |
201 </dl><a NAME="HgStripDialog.on_numberButton_toggled" ID="HgStripDialog.on_numberButton_toggled"></a> |
259 </dl> |
|
260 <a NAME="HgStripDialog.on_numberButton_toggled" ID="HgStripDialog.on_numberButton_toggled"></a> |
202 <h4>HgStripDialog.on_numberButton_toggled</h4> |
261 <h4>HgStripDialog.on_numberButton_toggled</h4> |
203 <b>on_numberButton_toggled</b>(<i>checked</i>) |
262 <b>on_numberButton_toggled</b>(<i>checked</i>) |
|
263 |
204 <p> |
264 <p> |
205 Private slot to handle changes of the Number select button. |
265 Private slot to handle changes of the Number select button. |
206 </p><dl> |
266 </p> |
|
267 <dl> |
|
268 |
207 <dt><i>checked</i> (bool)</dt> |
269 <dt><i>checked</i> (bool)</dt> |
208 <dd> |
270 <dd> |
209 state of the button |
271 state of the button |
210 </dd> |
272 </dd> |
211 </dl><a NAME="HgStripDialog.on_numberSpinBox_valueChanged" ID="HgStripDialog.on_numberSpinBox_valueChanged"></a> |
273 </dl> |
|
274 <a NAME="HgStripDialog.on_numberSpinBox_valueChanged" ID="HgStripDialog.on_numberSpinBox_valueChanged"></a> |
212 <h4>HgStripDialog.on_numberSpinBox_valueChanged</h4> |
275 <h4>HgStripDialog.on_numberSpinBox_valueChanged</h4> |
213 <b>on_numberSpinBox_valueChanged</b>(<i>val</i>) |
276 <b>on_numberSpinBox_valueChanged</b>(<i>val</i>) |
|
277 |
214 <p> |
278 <p> |
215 Private slot to handle changes of the Number spin box. |
279 Private slot to handle changes of the Number spin box. |
216 </p><dl> |
280 </p> |
|
281 <dl> |
|
282 |
217 <dt><i>val</i> (int)</dt> |
283 <dt><i>val</i> (int)</dt> |
218 <dd> |
284 <dd> |
219 value of the spin box |
285 value of the spin box |
220 </dd> |
286 </dd> |
221 </dl><a NAME="HgStripDialog.on_tagButton_toggled" ID="HgStripDialog.on_tagButton_toggled"></a> |
287 </dl> |
|
288 <a NAME="HgStripDialog.on_tagButton_toggled" ID="HgStripDialog.on_tagButton_toggled"></a> |
222 <h4>HgStripDialog.on_tagButton_toggled</h4> |
289 <h4>HgStripDialog.on_tagButton_toggled</h4> |
223 <b>on_tagButton_toggled</b>(<i>checked</i>) |
290 <b>on_tagButton_toggled</b>(<i>checked</i>) |
|
291 |
224 <p> |
292 <p> |
225 Private slot to handle changes of the Tag select button. |
293 Private slot to handle changes of the Tag select button. |
226 </p><dl> |
294 </p> |
|
295 <dl> |
|
296 |
227 <dt><i>checked</i> (bool)</dt> |
297 <dt><i>checked</i> (bool)</dt> |
228 <dd> |
298 <dd> |
229 state of the button |
299 state of the button |
230 </dd> |
300 </dd> |
231 </dl><a NAME="HgStripDialog.on_tagCombo_editTextChanged" ID="HgStripDialog.on_tagCombo_editTextChanged"></a> |
301 </dl> |
|
302 <a NAME="HgStripDialog.on_tagCombo_editTextChanged" ID="HgStripDialog.on_tagCombo_editTextChanged"></a> |
232 <h4>HgStripDialog.on_tagCombo_editTextChanged</h4> |
303 <h4>HgStripDialog.on_tagCombo_editTextChanged</h4> |
233 <b>on_tagCombo_editTextChanged</b>(<i>txt</i>) |
304 <b>on_tagCombo_editTextChanged</b>(<i>txt</i>) |
|
305 |
234 <p> |
306 <p> |
235 Private slot to handle changes of the Tag combo. |
307 Private slot to handle changes of the Tag combo. |
236 </p><dl> |
308 </p> |
|
309 <dl> |
|
310 |
237 <dt><i>txt</i> (str)</dt> |
311 <dt><i>txt</i> (str)</dt> |
238 <dd> |
312 <dd> |
239 text of the combo |
313 text of the combo |
240 </dd> |
314 </dd> |
241 </dl> |
315 </dl> |