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