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