|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Plugins.VcsPlugins.vcsGit.GitStatusDialog</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> |
|
22 <a NAME="top" ID="top"></a> |
|
23 <h1>eric7.Plugins.VcsPlugins.vcsGit.GitStatusDialog</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing a dialog to show the output of the git status command |
|
27 process. |
|
28 </p> |
|
29 <h3>Global Attributes</h3> |
|
30 |
|
31 <table> |
|
32 <tr><td>None</td></tr> |
|
33 </table> |
|
34 <h3>Classes</h3> |
|
35 |
|
36 <table> |
|
37 |
|
38 <tr> |
|
39 <td><a href="#GitStatusDialog">GitStatusDialog</a></td> |
|
40 <td>Class implementing a dialog to show the output of the git status command process.</td> |
|
41 </tr> |
|
42 </table> |
|
43 <h3>Functions</h3> |
|
44 |
|
45 <table> |
|
46 <tr><td>None</td></tr> |
|
47 </table> |
|
48 <hr /> |
|
49 <hr /> |
|
50 <a NAME="GitStatusDialog" ID="GitStatusDialog"></a> |
|
51 <h2>GitStatusDialog</h2> |
|
52 |
|
53 <p> |
|
54 Class implementing a dialog to show the output of the git status command |
|
55 process. |
|
56 </p> |
|
57 <h3>Derived from</h3> |
|
58 QWidget, Ui_GitStatusDialog |
|
59 <h3>Class Attributes</h3> |
|
60 |
|
61 <table> |
|
62 <tr><td>ConflictRole</td></tr><tr><td>ConflictStates</td></tr> |
|
63 </table> |
|
64 <h3>Class Methods</h3> |
|
65 |
|
66 <table> |
|
67 <tr><td>None</td></tr> |
|
68 </table> |
|
69 <h3>Methods</h3> |
|
70 |
|
71 <table> |
|
72 |
|
73 <tr> |
|
74 <td><a href="#GitStatusDialog.__init__">GitStatusDialog</a></td> |
|
75 <td>Constructor</td> |
|
76 </tr> |
|
77 <tr> |
|
78 <td><a href="#GitStatusDialog.__add">__add</a></td> |
|
79 <td>Private slot to handle the Add context menu entry.</td> |
|
80 </tr> |
|
81 <tr> |
|
82 <td><a href="#GitStatusDialog.__amend">__amend</a></td> |
|
83 <td>Private slot to handle the Amend context menu entry.</td> |
|
84 </tr> |
|
85 <tr> |
|
86 <td><a href="#GitStatusDialog.__commit">__commit</a></td> |
|
87 <td>Private slot to handle the Commit context menu entry.</td> |
|
88 </tr> |
|
89 <tr> |
|
90 <td><a href="#GitStatusDialog.__commitDeselectAll">__commitDeselectAll</a></td> |
|
91 <td>Private slot to deselect all entries from commit.</td> |
|
92 </tr> |
|
93 <tr> |
|
94 <td><a href="#GitStatusDialog.__commitSelect">__commitSelect</a></td> |
|
95 <td>Private slot to select or deselect all entries.</td> |
|
96 </tr> |
|
97 <tr> |
|
98 <td><a href="#GitStatusDialog.__commitSelectAll">__commitSelectAll</a></td> |
|
99 <td>Private slot to select all entries for commit.</td> |
|
100 </tr> |
|
101 <tr> |
|
102 <td><a href="#GitStatusDialog.__committed">__committed</a></td> |
|
103 <td>Private slot called after the commit has finished.</td> |
|
104 </tr> |
|
105 <tr> |
|
106 <td><a href="#GitStatusDialog.__diff">__diff</a></td> |
|
107 <td>Private slot to handle the Diff context menu entry.</td> |
|
108 </tr> |
|
109 <tr> |
|
110 <td><a href="#GitStatusDialog.__editConflict">__editConflict</a></td> |
|
111 <td>Private slot to handle the Edit file context menu entry.</td> |
|
112 </tr> |
|
113 <tr> |
|
114 <td><a href="#GitStatusDialog.__finish">__finish</a></td> |
|
115 <td>Private slot called when the process finished or the user pressed the button.</td> |
|
116 </tr> |
|
117 <tr> |
|
118 <td><a href="#GitStatusDialog.__forget">__forget</a></td> |
|
119 <td>Private slot to handle the Forget Missing context menu entry.</td> |
|
120 </tr> |
|
121 <tr> |
|
122 <td><a href="#GitStatusDialog.__generateDiffs">__generateDiffs</a></td> |
|
123 <td>Private slot to generate diff outputs for the selected item.</td> |
|
124 </tr> |
|
125 <tr> |
|
126 <td><a href="#GitStatusDialog.__generateItem">__generateItem</a></td> |
|
127 <td>Private method to generate a status item in the status list.</td> |
|
128 </tr> |
|
129 <tr> |
|
130 <td><a href="#GitStatusDialog.__generatorFinished">__generatorFinished</a></td> |
|
131 <td>Private slot connected to the finished signal of the diff generator.</td> |
|
132 </tr> |
|
133 <tr> |
|
134 <td><a href="#GitStatusDialog.__getCommitableItems">__getCommitableItems</a></td> |
|
135 <td>Private method to retrieve all entries the user wants to commit.</td> |
|
136 </tr> |
|
137 <tr> |
|
138 <td><a href="#GitStatusDialog.__getCommitableUnselectedItems">__getCommitableUnselectedItems</a></td> |
|
139 <td>Private method to retrieve all entries the user may commit but hasn't selected.</td> |
|
140 </tr> |
|
141 <tr> |
|
142 <td><a href="#GitStatusDialog.__getConflictingItems">__getConflictingItems</a></td> |
|
143 <td>Private method to retrieve all entries, that have a conflict status.</td> |
|
144 </tr> |
|
145 <tr> |
|
146 <td><a href="#GitStatusDialog.__getMissingItems">__getMissingItems</a></td> |
|
147 <td>Private method to retrieve all entries, that have a missing status.</td> |
|
148 </tr> |
|
149 <tr> |
|
150 <td><a href="#GitStatusDialog.__getModifiedItems">__getModifiedItems</a></td> |
|
151 <td>Private method to retrieve all entries, that have a modified status.</td> |
|
152 </tr> |
|
153 <tr> |
|
154 <td><a href="#GitStatusDialog.__getModifiedOnlyItems">__getModifiedOnlyItems</a></td> |
|
155 <td>Private method to retrieve all entries, that have a modified status.</td> |
|
156 </tr> |
|
157 <tr> |
|
158 <td><a href="#GitStatusDialog.__getStageableItems">__getStageableItems</a></td> |
|
159 <td>Private method to retrieve all entries, that have a stageable status.</td> |
|
160 </tr> |
|
161 <tr> |
|
162 <td><a href="#GitStatusDialog.__getUnstageableItems">__getUnstageableItems</a></td> |
|
163 <td>Private method to retrieve all entries, that have an unstageable status.</td> |
|
164 </tr> |
|
165 <tr> |
|
166 <td><a href="#GitStatusDialog.__getUnversionedItems">__getUnversionedItems</a></td> |
|
167 <td>Private method to retrieve all entries, that have an unversioned status.</td> |
|
168 </tr> |
|
169 <tr> |
|
170 <td><a href="#GitStatusDialog.__initActionsMenu">__initActionsMenu</a></td> |
|
171 <td>Private method to initialize the actions menu.</td> |
|
172 </tr> |
|
173 <tr> |
|
174 <td><a href="#GitStatusDialog.__procFinished">__procFinished</a></td> |
|
175 <td>Private slot connected to the finished signal.</td> |
|
176 </tr> |
|
177 <tr> |
|
178 <td><a href="#GitStatusDialog.__readStderr">__readStderr</a></td> |
|
179 <td>Private slot to handle the readyReadStandardError signal.</td> |
|
180 </tr> |
|
181 <tr> |
|
182 <td><a href="#GitStatusDialog.__readStdout">__readStdout</a></td> |
|
183 <td>Private slot to handle the readyReadStandardOutput signal.</td> |
|
184 </tr> |
|
185 <tr> |
|
186 <td><a href="#GitStatusDialog.__refreshDiff">__refreshDiff</a></td> |
|
187 <td>Private method to refresh the diff output after a refresh.</td> |
|
188 </tr> |
|
189 <tr> |
|
190 <td><a href="#GitStatusDialog.__resizeColumns">__resizeColumns</a></td> |
|
191 <td>Private method to resize the list columns.</td> |
|
192 </tr> |
|
193 <tr> |
|
194 <td><a href="#GitStatusDialog.__resort">__resort</a></td> |
|
195 <td>Private method to resort the tree.</td> |
|
196 </tr> |
|
197 <tr> |
|
198 <td><a href="#GitStatusDialog.__restoreMissing">__restoreMissing</a></td> |
|
199 <td>Private slot to handle the Restore Missing context menu entry.</td> |
|
200 </tr> |
|
201 <tr> |
|
202 <td><a href="#GitStatusDialog.__revert">__revert</a></td> |
|
203 <td>Private slot to handle the Revert context menu entry.</td> |
|
204 </tr> |
|
205 <tr> |
|
206 <td><a href="#GitStatusDialog.__revertHunkOrLines">__revertHunkOrLines</a></td> |
|
207 <td>Private method to revert the selected lines or hunk.</td> |
|
208 </tr> |
|
209 <tr> |
|
210 <td><a href="#GitStatusDialog.__sbsDiff">__sbsDiff</a></td> |
|
211 <td>Private slot to handle the Diff context menu entry.</td> |
|
212 </tr> |
|
213 <tr> |
|
214 <td><a href="#GitStatusDialog.__selectedLinesIndexes">__selectedLinesIndexes</a></td> |
|
215 <td>Private method to extract the indexes of the selected lines.</td> |
|
216 </tr> |
|
217 <tr> |
|
218 <td><a href="#GitStatusDialog.__showActionsMenu">__showActionsMenu</a></td> |
|
219 <td>Private slot to prepare the actions button menu before it is shown.</td> |
|
220 </tr> |
|
221 <tr> |
|
222 <td><a href="#GitStatusDialog.__showLDiffContextMenu">__showLDiffContextMenu</a></td> |
|
223 <td>Private slot to show the context menu of the status list.</td> |
|
224 </tr> |
|
225 <tr> |
|
226 <td><a href="#GitStatusDialog.__showRDiffContextMenu">__showRDiffContextMenu</a></td> |
|
227 <td>Private slot to show the context menu of the status list.</td> |
|
228 </tr> |
|
229 <tr> |
|
230 <td><a href="#GitStatusDialog.__stage">__stage</a></td> |
|
231 <td>Private slot to handle the Stage context menu entry.</td> |
|
232 </tr> |
|
233 <tr> |
|
234 <td><a href="#GitStatusDialog.__stageHunkOrLines">__stageHunkOrLines</a></td> |
|
235 <td>Private method to stage the selected lines or hunk.</td> |
|
236 </tr> |
|
237 <tr> |
|
238 <td><a href="#GitStatusDialog.__tmpPatchFileName">__tmpPatchFileName</a></td> |
|
239 <td>Private method to generate a temporary patch file.</td> |
|
240 </tr> |
|
241 <tr> |
|
242 <td><a href="#GitStatusDialog.__unstage">__unstage</a></td> |
|
243 <td>Private slot to handle the Unstage context menu entry.</td> |
|
244 </tr> |
|
245 <tr> |
|
246 <td><a href="#GitStatusDialog.__unstageHunkOrLines">__unstageHunkOrLines</a></td> |
|
247 <td>Private method to unstage the selected lines or hunk.</td> |
|
248 </tr> |
|
249 <tr> |
|
250 <td><a href="#GitStatusDialog.closeEvent">closeEvent</a></td> |
|
251 <td>Protected slot implementing a close event handler.</td> |
|
252 </tr> |
|
253 <tr> |
|
254 <td><a href="#GitStatusDialog.keyPressEvent">keyPressEvent</a></td> |
|
255 <td>Protected slot to handle a key press event.</td> |
|
256 </tr> |
|
257 <tr> |
|
258 <td><a href="#GitStatusDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td> |
|
259 <td>Private slot called by a button of the button box clicked.</td> |
|
260 </tr> |
|
261 <tr> |
|
262 <td><a href="#GitStatusDialog.on_input_returnPressed">on_input_returnPressed</a></td> |
|
263 <td>Private slot to handle the press of the return key in the input field.</td> |
|
264 </tr> |
|
265 <tr> |
|
266 <td><a href="#GitStatusDialog.on_passwordCheckBox_toggled">on_passwordCheckBox_toggled</a></td> |
|
267 <td>Private slot to handle the password checkbox toggled.</td> |
|
268 </tr> |
|
269 <tr> |
|
270 <td><a href="#GitStatusDialog.on_refreshButton_clicked">on_refreshButton_clicked</a></td> |
|
271 <td>Private slot to refresh the status display.</td> |
|
272 </tr> |
|
273 <tr> |
|
274 <td><a href="#GitStatusDialog.on_sendButton_clicked">on_sendButton_clicked</a></td> |
|
275 <td>Private slot to send the input to the git process.</td> |
|
276 </tr> |
|
277 <tr> |
|
278 <td><a href="#GitStatusDialog.on_statusFilterCombo_activated">on_statusFilterCombo_activated</a></td> |
|
279 <td>Private slot to react to the selection of a status filter.</td> |
|
280 </tr> |
|
281 <tr> |
|
282 <td><a href="#GitStatusDialog.on_statusList_itemSelectionChanged">on_statusList_itemSelectionChanged</a></td> |
|
283 <td>Private slot to act upon changes of selected items.</td> |
|
284 </tr> |
|
285 <tr> |
|
286 <td><a href="#GitStatusDialog.show">show</a></td> |
|
287 <td>Public slot to show the dialog.</td> |
|
288 </tr> |
|
289 <tr> |
|
290 <td><a href="#GitStatusDialog.start">start</a></td> |
|
291 <td>Public slot to start the git status command.</td> |
|
292 </tr> |
|
293 </table> |
|
294 <h3>Static Methods</h3> |
|
295 |
|
296 <table> |
|
297 <tr><td>None</td></tr> |
|
298 </table> |
|
299 |
|
300 <a NAME="GitStatusDialog.__init__" ID="GitStatusDialog.__init__"></a> |
|
301 <h4>GitStatusDialog (Constructor)</h4> |
|
302 <b>GitStatusDialog</b>(<i>vcs, parent=None</i>) |
|
303 |
|
304 <p> |
|
305 Constructor |
|
306 </p> |
|
307 <dl> |
|
308 |
|
309 <dt><i>vcs</i></dt> |
|
310 <dd> |
|
311 reference to the vcs object |
|
312 </dd> |
|
313 <dt><i>parent</i></dt> |
|
314 <dd> |
|
315 parent widget (QWidget) |
|
316 </dd> |
|
317 </dl> |
|
318 <a NAME="GitStatusDialog.__add" ID="GitStatusDialog.__add"></a> |
|
319 <h4>GitStatusDialog.__add</h4> |
|
320 <b>__add</b>(<i></i>) |
|
321 |
|
322 <p> |
|
323 Private slot to handle the Add context menu entry. |
|
324 </p> |
|
325 <a NAME="GitStatusDialog.__amend" ID="GitStatusDialog.__amend"></a> |
|
326 <h4>GitStatusDialog.__amend</h4> |
|
327 <b>__amend</b>(<i></i>) |
|
328 |
|
329 <p> |
|
330 Private slot to handle the Amend context menu entry. |
|
331 </p> |
|
332 <a NAME="GitStatusDialog.__commit" ID="GitStatusDialog.__commit"></a> |
|
333 <h4>GitStatusDialog.__commit</h4> |
|
334 <b>__commit</b>(<i>amend=False</i>) |
|
335 |
|
336 <p> |
|
337 Private slot to handle the Commit context menu entry. |
|
338 </p> |
|
339 <dl> |
|
340 |
|
341 <dt><i>amend</i></dt> |
|
342 <dd> |
|
343 flag indicating to perform an amend operation (boolean) |
|
344 </dd> |
|
345 </dl> |
|
346 <a NAME="GitStatusDialog.__commitDeselectAll" ID="GitStatusDialog.__commitDeselectAll"></a> |
|
347 <h4>GitStatusDialog.__commitDeselectAll</h4> |
|
348 <b>__commitDeselectAll</b>(<i></i>) |
|
349 |
|
350 <p> |
|
351 Private slot to deselect all entries from commit. |
|
352 </p> |
|
353 <a NAME="GitStatusDialog.__commitSelect" ID="GitStatusDialog.__commitSelect"></a> |
|
354 <h4>GitStatusDialog.__commitSelect</h4> |
|
355 <b>__commitSelect</b>(<i>selected</i>) |
|
356 |
|
357 <p> |
|
358 Private slot to select or deselect all entries. |
|
359 </p> |
|
360 <dl> |
|
361 |
|
362 <dt><i>selected</i></dt> |
|
363 <dd> |
|
364 commit selection state to be set (boolean) |
|
365 </dd> |
|
366 </dl> |
|
367 <a NAME="GitStatusDialog.__commitSelectAll" ID="GitStatusDialog.__commitSelectAll"></a> |
|
368 <h4>GitStatusDialog.__commitSelectAll</h4> |
|
369 <b>__commitSelectAll</b>(<i></i>) |
|
370 |
|
371 <p> |
|
372 Private slot to select all entries for commit. |
|
373 </p> |
|
374 <a NAME="GitStatusDialog.__committed" ID="GitStatusDialog.__committed"></a> |
|
375 <h4>GitStatusDialog.__committed</h4> |
|
376 <b>__committed</b>(<i></i>) |
|
377 |
|
378 <p> |
|
379 Private slot called after the commit has finished. |
|
380 </p> |
|
381 <a NAME="GitStatusDialog.__diff" ID="GitStatusDialog.__diff"></a> |
|
382 <h4>GitStatusDialog.__diff</h4> |
|
383 <b>__diff</b>(<i></i>) |
|
384 |
|
385 <p> |
|
386 Private slot to handle the Diff context menu entry. |
|
387 </p> |
|
388 <a NAME="GitStatusDialog.__editConflict" ID="GitStatusDialog.__editConflict"></a> |
|
389 <h4>GitStatusDialog.__editConflict</h4> |
|
390 <b>__editConflict</b>(<i></i>) |
|
391 |
|
392 <p> |
|
393 Private slot to handle the Edit file context menu entry. |
|
394 </p> |
|
395 <a NAME="GitStatusDialog.__finish" ID="GitStatusDialog.__finish"></a> |
|
396 <h4>GitStatusDialog.__finish</h4> |
|
397 <b>__finish</b>(<i></i>) |
|
398 |
|
399 <p> |
|
400 Private slot called when the process finished or the user pressed |
|
401 the button. |
|
402 </p> |
|
403 <a NAME="GitStatusDialog.__forget" ID="GitStatusDialog.__forget"></a> |
|
404 <h4>GitStatusDialog.__forget</h4> |
|
405 <b>__forget</b>(<i></i>) |
|
406 |
|
407 <p> |
|
408 Private slot to handle the Forget Missing context menu entry. |
|
409 </p> |
|
410 <a NAME="GitStatusDialog.__generateDiffs" ID="GitStatusDialog.__generateDiffs"></a> |
|
411 <h4>GitStatusDialog.__generateDiffs</h4> |
|
412 <b>__generateDiffs</b>(<i></i>) |
|
413 |
|
414 <p> |
|
415 Private slot to generate diff outputs for the selected item. |
|
416 </p> |
|
417 <a NAME="GitStatusDialog.__generateItem" ID="GitStatusDialog.__generateItem"></a> |
|
418 <h4>GitStatusDialog.__generateItem</h4> |
|
419 <b>__generateItem</b>(<i>status, path</i>) |
|
420 |
|
421 <p> |
|
422 Private method to generate a status item in the status list. |
|
423 </p> |
|
424 <dl> |
|
425 |
|
426 <dt><i>status</i></dt> |
|
427 <dd> |
|
428 status indicator (string) |
|
429 </dd> |
|
430 <dt><i>path</i></dt> |
|
431 <dd> |
|
432 path of the file or directory (string) |
|
433 </dd> |
|
434 </dl> |
|
435 <a NAME="GitStatusDialog.__generatorFinished" ID="GitStatusDialog.__generatorFinished"></a> |
|
436 <h4>GitStatusDialog.__generatorFinished</h4> |
|
437 <b>__generatorFinished</b>(<i></i>) |
|
438 |
|
439 <p> |
|
440 Private slot connected to the finished signal of the diff generator. |
|
441 </p> |
|
442 <a NAME="GitStatusDialog.__getCommitableItems" ID="GitStatusDialog.__getCommitableItems"></a> |
|
443 <h4>GitStatusDialog.__getCommitableItems</h4> |
|
444 <b>__getCommitableItems</b>(<i></i>) |
|
445 |
|
446 <p> |
|
447 Private method to retrieve all entries the user wants to commit. |
|
448 </p> |
|
449 <dl> |
|
450 <dt>Return:</dt> |
|
451 <dd> |
|
452 list of all items, the user has checked |
|
453 </dd> |
|
454 </dl> |
|
455 <a NAME="GitStatusDialog.__getCommitableUnselectedItems" ID="GitStatusDialog.__getCommitableUnselectedItems"></a> |
|
456 <h4>GitStatusDialog.__getCommitableUnselectedItems</h4> |
|
457 <b>__getCommitableUnselectedItems</b>(<i></i>) |
|
458 |
|
459 <p> |
|
460 Private method to retrieve all entries the user may commit but hasn't |
|
461 selected. |
|
462 </p> |
|
463 <dl> |
|
464 <dt>Return:</dt> |
|
465 <dd> |
|
466 list of all items, the user has not checked |
|
467 </dd> |
|
468 </dl> |
|
469 <a NAME="GitStatusDialog.__getConflictingItems" ID="GitStatusDialog.__getConflictingItems"></a> |
|
470 <h4>GitStatusDialog.__getConflictingItems</h4> |
|
471 <b>__getConflictingItems</b>(<i></i>) |
|
472 |
|
473 <p> |
|
474 Private method to retrieve all entries, that have a conflict status. |
|
475 </p> |
|
476 <dl> |
|
477 <dt>Return:</dt> |
|
478 <dd> |
|
479 list of all items with a conflict status |
|
480 </dd> |
|
481 </dl> |
|
482 <a NAME="GitStatusDialog.__getMissingItems" ID="GitStatusDialog.__getMissingItems"></a> |
|
483 <h4>GitStatusDialog.__getMissingItems</h4> |
|
484 <b>__getMissingItems</b>(<i></i>) |
|
485 |
|
486 <p> |
|
487 Private method to retrieve all entries, that have a missing status. |
|
488 </p> |
|
489 <dl> |
|
490 <dt>Return:</dt> |
|
491 <dd> |
|
492 list of all items with a missing status |
|
493 </dd> |
|
494 </dl> |
|
495 <a NAME="GitStatusDialog.__getModifiedItems" ID="GitStatusDialog.__getModifiedItems"></a> |
|
496 <h4>GitStatusDialog.__getModifiedItems</h4> |
|
497 <b>__getModifiedItems</b>(<i></i>) |
|
498 |
|
499 <p> |
|
500 Private method to retrieve all entries, that have a modified status. |
|
501 </p> |
|
502 <dl> |
|
503 <dt>Return:</dt> |
|
504 <dd> |
|
505 list of all items with a modified status |
|
506 </dd> |
|
507 </dl> |
|
508 <a NAME="GitStatusDialog.__getModifiedOnlyItems" ID="GitStatusDialog.__getModifiedOnlyItems"></a> |
|
509 <h4>GitStatusDialog.__getModifiedOnlyItems</h4> |
|
510 <b>__getModifiedOnlyItems</b>(<i></i>) |
|
511 |
|
512 <p> |
|
513 Private method to retrieve all entries, that have a modified status. |
|
514 </p> |
|
515 <dl> |
|
516 <dt>Return:</dt> |
|
517 <dd> |
|
518 list of all items with a modified status |
|
519 </dd> |
|
520 </dl> |
|
521 <a NAME="GitStatusDialog.__getStageableItems" ID="GitStatusDialog.__getStageableItems"></a> |
|
522 <h4>GitStatusDialog.__getStageableItems</h4> |
|
523 <b>__getStageableItems</b>(<i></i>) |
|
524 |
|
525 <p> |
|
526 Private method to retrieve all entries, that have a stageable |
|
527 status. |
|
528 </p> |
|
529 <dl> |
|
530 <dt>Return:</dt> |
|
531 <dd> |
|
532 list of all items with a stageable status |
|
533 </dd> |
|
534 </dl> |
|
535 <a NAME="GitStatusDialog.__getUnstageableItems" ID="GitStatusDialog.__getUnstageableItems"></a> |
|
536 <h4>GitStatusDialog.__getUnstageableItems</h4> |
|
537 <b>__getUnstageableItems</b>(<i></i>) |
|
538 |
|
539 <p> |
|
540 Private method to retrieve all entries, that have an unstageable |
|
541 status. |
|
542 </p> |
|
543 <dl> |
|
544 <dt>Return:</dt> |
|
545 <dd> |
|
546 list of all items with an unstageable status |
|
547 </dd> |
|
548 </dl> |
|
549 <a NAME="GitStatusDialog.__getUnversionedItems" ID="GitStatusDialog.__getUnversionedItems"></a> |
|
550 <h4>GitStatusDialog.__getUnversionedItems</h4> |
|
551 <b>__getUnversionedItems</b>(<i></i>) |
|
552 |
|
553 <p> |
|
554 Private method to retrieve all entries, that have an unversioned |
|
555 status. |
|
556 </p> |
|
557 <dl> |
|
558 <dt>Return:</dt> |
|
559 <dd> |
|
560 list of all items with an unversioned status |
|
561 </dd> |
|
562 </dl> |
|
563 <a NAME="GitStatusDialog.__initActionsMenu" ID="GitStatusDialog.__initActionsMenu"></a> |
|
564 <h4>GitStatusDialog.__initActionsMenu</h4> |
|
565 <b>__initActionsMenu</b>(<i></i>) |
|
566 |
|
567 <p> |
|
568 Private method to initialize the actions menu. |
|
569 </p> |
|
570 <a NAME="GitStatusDialog.__procFinished" ID="GitStatusDialog.__procFinished"></a> |
|
571 <h4>GitStatusDialog.__procFinished</h4> |
|
572 <b>__procFinished</b>(<i>exitCode, exitStatus</i>) |
|
573 |
|
574 <p> |
|
575 Private slot connected to the finished signal. |
|
576 </p> |
|
577 <dl> |
|
578 |
|
579 <dt><i>exitCode</i></dt> |
|
580 <dd> |
|
581 exit code of the process (integer) |
|
582 </dd> |
|
583 <dt><i>exitStatus</i></dt> |
|
584 <dd> |
|
585 exit status of the process (QProcess.ExitStatus) |
|
586 </dd> |
|
587 </dl> |
|
588 <a NAME="GitStatusDialog.__readStderr" ID="GitStatusDialog.__readStderr"></a> |
|
589 <h4>GitStatusDialog.__readStderr</h4> |
|
590 <b>__readStderr</b>(<i></i>) |
|
591 |
|
592 <p> |
|
593 Private slot to handle the readyReadStandardError signal. |
|
594 </p> |
|
595 <p> |
|
596 It reads the error output of the process and inserts it into the |
|
597 error pane. |
|
598 </p> |
|
599 <a NAME="GitStatusDialog.__readStdout" ID="GitStatusDialog.__readStdout"></a> |
|
600 <h4>GitStatusDialog.__readStdout</h4> |
|
601 <b>__readStdout</b>(<i></i>) |
|
602 |
|
603 <p> |
|
604 Private slot to handle the readyReadStandardOutput signal. |
|
605 </p> |
|
606 <p> |
|
607 It reads the output of the process, formats it and inserts it into |
|
608 the contents pane. |
|
609 </p> |
|
610 <a NAME="GitStatusDialog.__refreshDiff" ID="GitStatusDialog.__refreshDiff"></a> |
|
611 <h4>GitStatusDialog.__refreshDiff</h4> |
|
612 <b>__refreshDiff</b>(<i></i>) |
|
613 |
|
614 <p> |
|
615 Private method to refresh the diff output after a refresh. |
|
616 </p> |
|
617 <a NAME="GitStatusDialog.__resizeColumns" ID="GitStatusDialog.__resizeColumns"></a> |
|
618 <h4>GitStatusDialog.__resizeColumns</h4> |
|
619 <b>__resizeColumns</b>(<i></i>) |
|
620 |
|
621 <p> |
|
622 Private method to resize the list columns. |
|
623 </p> |
|
624 <a NAME="GitStatusDialog.__resort" ID="GitStatusDialog.__resort"></a> |
|
625 <h4>GitStatusDialog.__resort</h4> |
|
626 <b>__resort</b>(<i></i>) |
|
627 |
|
628 <p> |
|
629 Private method to resort the tree. |
|
630 </p> |
|
631 <a NAME="GitStatusDialog.__restoreMissing" ID="GitStatusDialog.__restoreMissing"></a> |
|
632 <h4>GitStatusDialog.__restoreMissing</h4> |
|
633 <b>__restoreMissing</b>(<i></i>) |
|
634 |
|
635 <p> |
|
636 Private slot to handle the Restore Missing context menu entry. |
|
637 </p> |
|
638 <a NAME="GitStatusDialog.__revert" ID="GitStatusDialog.__revert"></a> |
|
639 <h4>GitStatusDialog.__revert</h4> |
|
640 <b>__revert</b>(<i></i>) |
|
641 |
|
642 <p> |
|
643 Private slot to handle the Revert context menu entry. |
|
644 </p> |
|
645 <a NAME="GitStatusDialog.__revertHunkOrLines" ID="GitStatusDialog.__revertHunkOrLines"></a> |
|
646 <h4>GitStatusDialog.__revertHunkOrLines</h4> |
|
647 <b>__revertHunkOrLines</b>(<i></i>) |
|
648 |
|
649 <p> |
|
650 Private method to revert the selected lines or hunk. |
|
651 </p> |
|
652 <a NAME="GitStatusDialog.__sbsDiff" ID="GitStatusDialog.__sbsDiff"></a> |
|
653 <h4>GitStatusDialog.__sbsDiff</h4> |
|
654 <b>__sbsDiff</b>(<i></i>) |
|
655 |
|
656 <p> |
|
657 Private slot to handle the Diff context menu entry. |
|
658 </p> |
|
659 <a NAME="GitStatusDialog.__selectedLinesIndexes" ID="GitStatusDialog.__selectedLinesIndexes"></a> |
|
660 <h4>GitStatusDialog.__selectedLinesIndexes</h4> |
|
661 <b>__selectedLinesIndexes</b>(<i>diffEdit</i>) |
|
662 |
|
663 <p> |
|
664 Private method to extract the indexes of the selected lines. |
|
665 </p> |
|
666 <dl> |
|
667 |
|
668 <dt><i>diffEdit</i></dt> |
|
669 <dd> |
|
670 reference to the edit widget (QTextEdit) |
|
671 </dd> |
|
672 </dl> |
|
673 <dl> |
|
674 <dt>Return:</dt> |
|
675 <dd> |
|
676 tuple of start and end indexes (integer, integer) |
|
677 </dd> |
|
678 </dl> |
|
679 <a NAME="GitStatusDialog.__showActionsMenu" ID="GitStatusDialog.__showActionsMenu"></a> |
|
680 <h4>GitStatusDialog.__showActionsMenu</h4> |
|
681 <b>__showActionsMenu</b>(<i></i>) |
|
682 |
|
683 <p> |
|
684 Private slot to prepare the actions button menu before it is shown. |
|
685 </p> |
|
686 <a NAME="GitStatusDialog.__showLDiffContextMenu" ID="GitStatusDialog.__showLDiffContextMenu"></a> |
|
687 <h4>GitStatusDialog.__showLDiffContextMenu</h4> |
|
688 <b>__showLDiffContextMenu</b>(<i>coord</i>) |
|
689 |
|
690 <p> |
|
691 Private slot to show the context menu of the status list. |
|
692 </p> |
|
693 <dl> |
|
694 |
|
695 <dt><i>coord</i></dt> |
|
696 <dd> |
|
697 position of the mouse pointer (QPoint) |
|
698 </dd> |
|
699 </dl> |
|
700 <a NAME="GitStatusDialog.__showRDiffContextMenu" ID="GitStatusDialog.__showRDiffContextMenu"></a> |
|
701 <h4>GitStatusDialog.__showRDiffContextMenu</h4> |
|
702 <b>__showRDiffContextMenu</b>(<i>coord</i>) |
|
703 |
|
704 <p> |
|
705 Private slot to show the context menu of the status list. |
|
706 </p> |
|
707 <dl> |
|
708 |
|
709 <dt><i>coord</i></dt> |
|
710 <dd> |
|
711 position of the mouse pointer (QPoint) |
|
712 </dd> |
|
713 </dl> |
|
714 <a NAME="GitStatusDialog.__stage" ID="GitStatusDialog.__stage"></a> |
|
715 <h4>GitStatusDialog.__stage</h4> |
|
716 <b>__stage</b>(<i></i>) |
|
717 |
|
718 <p> |
|
719 Private slot to handle the Stage context menu entry. |
|
720 </p> |
|
721 <a NAME="GitStatusDialog.__stageHunkOrLines" ID="GitStatusDialog.__stageHunkOrLines"></a> |
|
722 <h4>GitStatusDialog.__stageHunkOrLines</h4> |
|
723 <b>__stageHunkOrLines</b>(<i></i>) |
|
724 |
|
725 <p> |
|
726 Private method to stage the selected lines or hunk. |
|
727 </p> |
|
728 <a NAME="GitStatusDialog.__tmpPatchFileName" ID="GitStatusDialog.__tmpPatchFileName"></a> |
|
729 <h4>GitStatusDialog.__tmpPatchFileName</h4> |
|
730 <b>__tmpPatchFileName</b>(<i></i>) |
|
731 |
|
732 <p> |
|
733 Private method to generate a temporary patch file. |
|
734 </p> |
|
735 <dl> |
|
736 <dt>Return:</dt> |
|
737 <dd> |
|
738 name of the temporary file (string) |
|
739 </dd> |
|
740 </dl> |
|
741 <a NAME="GitStatusDialog.__unstage" ID="GitStatusDialog.__unstage"></a> |
|
742 <h4>GitStatusDialog.__unstage</h4> |
|
743 <b>__unstage</b>(<i></i>) |
|
744 |
|
745 <p> |
|
746 Private slot to handle the Unstage context menu entry. |
|
747 </p> |
|
748 <a NAME="GitStatusDialog.__unstageHunkOrLines" ID="GitStatusDialog.__unstageHunkOrLines"></a> |
|
749 <h4>GitStatusDialog.__unstageHunkOrLines</h4> |
|
750 <b>__unstageHunkOrLines</b>(<i></i>) |
|
751 |
|
752 <p> |
|
753 Private method to unstage the selected lines or hunk. |
|
754 </p> |
|
755 <a NAME="GitStatusDialog.closeEvent" ID="GitStatusDialog.closeEvent"></a> |
|
756 <h4>GitStatusDialog.closeEvent</h4> |
|
757 <b>closeEvent</b>(<i>e</i>) |
|
758 |
|
759 <p> |
|
760 Protected slot implementing a close event handler. |
|
761 </p> |
|
762 <dl> |
|
763 |
|
764 <dt><i>e</i></dt> |
|
765 <dd> |
|
766 close event (QCloseEvent) |
|
767 </dd> |
|
768 </dl> |
|
769 <a NAME="GitStatusDialog.keyPressEvent" ID="GitStatusDialog.keyPressEvent"></a> |
|
770 <h4>GitStatusDialog.keyPressEvent</h4> |
|
771 <b>keyPressEvent</b>(<i>evt</i>) |
|
772 |
|
773 <p> |
|
774 Protected slot to handle a key press event. |
|
775 </p> |
|
776 <dl> |
|
777 |
|
778 <dt><i>evt</i></dt> |
|
779 <dd> |
|
780 the key press event (QKeyEvent) |
|
781 </dd> |
|
782 </dl> |
|
783 <a NAME="GitStatusDialog.on_buttonBox_clicked" ID="GitStatusDialog.on_buttonBox_clicked"></a> |
|
784 <h4>GitStatusDialog.on_buttonBox_clicked</h4> |
|
785 <b>on_buttonBox_clicked</b>(<i>button</i>) |
|
786 |
|
787 <p> |
|
788 Private slot called by a button of the button box clicked. |
|
789 </p> |
|
790 <dl> |
|
791 |
|
792 <dt><i>button</i></dt> |
|
793 <dd> |
|
794 button that was clicked (QAbstractButton) |
|
795 </dd> |
|
796 </dl> |
|
797 <a NAME="GitStatusDialog.on_input_returnPressed" ID="GitStatusDialog.on_input_returnPressed"></a> |
|
798 <h4>GitStatusDialog.on_input_returnPressed</h4> |
|
799 <b>on_input_returnPressed</b>(<i></i>) |
|
800 |
|
801 <p> |
|
802 Private slot to handle the press of the return key in the input field. |
|
803 </p> |
|
804 <a NAME="GitStatusDialog.on_passwordCheckBox_toggled" ID="GitStatusDialog.on_passwordCheckBox_toggled"></a> |
|
805 <h4>GitStatusDialog.on_passwordCheckBox_toggled</h4> |
|
806 <b>on_passwordCheckBox_toggled</b>(<i>isOn</i>) |
|
807 |
|
808 <p> |
|
809 Private slot to handle the password checkbox toggled. |
|
810 </p> |
|
811 <dl> |
|
812 |
|
813 <dt><i>isOn</i></dt> |
|
814 <dd> |
|
815 flag indicating the status of the check box (boolean) |
|
816 </dd> |
|
817 </dl> |
|
818 <a NAME="GitStatusDialog.on_refreshButton_clicked" ID="GitStatusDialog.on_refreshButton_clicked"></a> |
|
819 <h4>GitStatusDialog.on_refreshButton_clicked</h4> |
|
820 <b>on_refreshButton_clicked</b>(<i></i>) |
|
821 |
|
822 <p> |
|
823 Private slot to refresh the status display. |
|
824 </p> |
|
825 <a NAME="GitStatusDialog.on_sendButton_clicked" ID="GitStatusDialog.on_sendButton_clicked"></a> |
|
826 <h4>GitStatusDialog.on_sendButton_clicked</h4> |
|
827 <b>on_sendButton_clicked</b>(<i></i>) |
|
828 |
|
829 <p> |
|
830 Private slot to send the input to the git process. |
|
831 </p> |
|
832 <a NAME="GitStatusDialog.on_statusFilterCombo_activated" ID="GitStatusDialog.on_statusFilterCombo_activated"></a> |
|
833 <h4>GitStatusDialog.on_statusFilterCombo_activated</h4> |
|
834 <b>on_statusFilterCombo_activated</b>(<i>index</i>) |
|
835 |
|
836 <p> |
|
837 Private slot to react to the selection of a status filter. |
|
838 </p> |
|
839 <dl> |
|
840 |
|
841 <dt><i>index</i> (int)</dt> |
|
842 <dd> |
|
843 index of the selected entry |
|
844 </dd> |
|
845 </dl> |
|
846 <a NAME="GitStatusDialog.on_statusList_itemSelectionChanged" ID="GitStatusDialog.on_statusList_itemSelectionChanged"></a> |
|
847 <h4>GitStatusDialog.on_statusList_itemSelectionChanged</h4> |
|
848 <b>on_statusList_itemSelectionChanged</b>(<i></i>) |
|
849 |
|
850 <p> |
|
851 Private slot to act upon changes of selected items. |
|
852 </p> |
|
853 <a NAME="GitStatusDialog.show" ID="GitStatusDialog.show"></a> |
|
854 <h4>GitStatusDialog.show</h4> |
|
855 <b>show</b>(<i></i>) |
|
856 |
|
857 <p> |
|
858 Public slot to show the dialog. |
|
859 </p> |
|
860 <a NAME="GitStatusDialog.start" ID="GitStatusDialog.start"></a> |
|
861 <h4>GitStatusDialog.start</h4> |
|
862 <b>start</b>(<i>fn</i>) |
|
863 |
|
864 <p> |
|
865 Public slot to start the git status command. |
|
866 </p> |
|
867 <dl> |
|
868 |
|
869 <dt><i>fn</i></dt> |
|
870 <dd> |
|
871 filename(s)/directoryname(s) to show the status of |
|
872 (string or list of strings) |
|
873 </dd> |
|
874 </dl> |
|
875 <div align="right"><a href="#top">Up</a></div> |
|
876 <hr /> |
|
877 </body></html> |