Documentation/Source/eric6.Plugins.VcsPlugins.vcsMercurial.HgLogBrowserDialog.html

changeset 3673
e26d7d0c1088
child 3967
383a043d62ec
equal deleted inserted replaced
3670:f0cb7579c0b4 3673:e26d7d0c1088
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.Plugins.VcsPlugins.vcsMercurial.HgLogBrowserDialog</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body><a NAME="top" ID="top"></a>
22 <h1>eric6.Plugins.VcsPlugins.vcsMercurial.HgLogBrowserDialog</h1>
23 <p>
24 Module implementing a dialog to browse the log history.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>COLORNAMES</td></tr><tr><td>COLORS</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr>
33 <td><a href="#HgLogBrowserDialog">HgLogBrowserDialog</a></td>
34 <td>Class implementing a dialog to browse the log history.</td>
35 </tr>
36 </table>
37 <h3>Functions</h3>
38 <table>
39 <tr><td>None</td></tr>
40 </table>
41 <hr /><hr />
42 <a NAME="HgLogBrowserDialog" ID="HgLogBrowserDialog"></a>
43 <h2>HgLogBrowserDialog</h2>
44 <p>
45 Class implementing a dialog to browse the log history.
46 </p>
47 <h3>Derived from</h3>
48 QWidget, Ui_HgLogBrowserDialog
49 <h3>Class Attributes</h3>
50 <table>
51 <tr><td>AuthorColumn</td></tr><tr><td>BranchColumn</td></tr><tr><td>ClosedIndicator</td></tr><tr><td>DateColumn</td></tr><tr><td>IconColumn</td></tr><tr><td>LargefilesCacheL</td></tr><tr><td>LargefilesCacheW</td></tr><tr><td>MessageColumn</td></tr><tr><td>PathSeparatorRe</td></tr><tr><td>PhaseColumn</td></tr><tr><td>RevisionColumn</td></tr><tr><td>TagsColumn</td></tr>
52 </table>
53 <h3>Class Methods</h3>
54 <table>
55 <tr><td>None</td></tr>
56 </table>
57 <h3>Methods</h3>
58 <table>
59 <tr>
60 <td><a href="#HgLogBrowserDialog.__init__">HgLogBrowserDialog</a></td>
61 <td>Constructor</td>
62 </tr><tr>
63 <td><a href="#HgLogBrowserDialog.__branchColor">__branchColor</a></td>
64 <td>Private method to calculate a color for a given branch name.</td>
65 </tr><tr>
66 <td><a href="#HgLogBrowserDialog.__diffRevisions">__diffRevisions</a></td>
67 <td>Private method to do a diff of two revisions.</td>
68 </tr><tr>
69 <td><a href="#HgLogBrowserDialog.__filterLogs">__filterLogs</a></td>
70 <td>Private method to filter the log entries.</td>
71 </tr><tr>
72 <td><a href="#HgLogBrowserDialog.__finish">__finish</a></td>
73 <td>Private slot called when the process finished or the user pressed the button.</td>
74 </tr><tr>
75 <td><a href="#HgLogBrowserDialog.__generateEdges">__generateEdges</a></td>
76 <td>Private method to generate edge info for the give data.</td>
77 </tr><tr>
78 <td><a href="#HgLogBrowserDialog.__generateFileItem">__generateFileItem</a></td>
79 <td>Private method to generate a changed files tree entry.</td>
80 </tr><tr>
81 <td><a href="#HgLogBrowserDialog.__generateIcon">__generateIcon</a></td>
82 <td>Private method to generate an icon containing the revision tree for the given data.</td>
83 </tr><tr>
84 <td><a href="#HgLogBrowserDialog.__generateLogItem">__generateLogItem</a></td>
85 <td>Private method to generate a log tree entry.</td>
86 </tr><tr>
87 <td><a href="#HgLogBrowserDialog.__getClosedBranches">__getClosedBranches</a></td>
88 <td>Private method to get the list of closed branches.</td>
89 </tr><tr>
90 <td><a href="#HgLogBrowserDialog.__getColor">__getColor</a></td>
91 <td>Private method to get the (rotating) name of the color given an index.</td>
92 </tr><tr>
93 <td><a href="#HgLogBrowserDialog.__getLogEntries">__getLogEntries</a></td>
94 <td>Private method to retrieve log entries from the repository.</td>
95 </tr><tr>
96 <td><a href="#HgLogBrowserDialog.__getParents">__getParents</a></td>
97 <td>Private method to get the parents of the currently viewed file/directory.</td>
98 </tr><tr>
99 <td><a href="#HgLogBrowserDialog.__graftActTriggered">__graftActTriggered</a></td>
100 <td>Private slot to handle the Copy Changesets action.</td>
101 </tr><tr>
102 <td><a href="#HgLogBrowserDialog.__identifyProject">__identifyProject</a></td>
103 <td>Private method to determine the revision of the project directory.</td>
104 </tr><tr>
105 <td><a href="#HgLogBrowserDialog.__initData">__initData</a></td>
106 <td>Private method to (re-)initialize some data.</td>
107 </tr><tr>
108 <td><a href="#HgLogBrowserDialog.__lfPullActTriggered">__lfPullActTriggered</a></td>
109 <td>Private slot to pull large files of selected revisions.</td>
110 </tr><tr>
111 <td><a href="#HgLogBrowserDialog.__modifyForLargeFiles">__modifyForLargeFiles</a></td>
112 <td>Private method to convert the displayed file name for a large file.</td>
113 </tr><tr>
114 <td><a href="#HgLogBrowserDialog.__phaseActTriggered">__phaseActTriggered</a></td>
115 <td>Private slot to handle the Change Phase action.</td>
116 </tr><tr>
117 <td><a href="#HgLogBrowserDialog.__procFinished">__procFinished</a></td>
118 <td>Private slot connected to the finished signal.</td>
119 </tr><tr>
120 <td><a href="#HgLogBrowserDialog.__processBuffer">__processBuffer</a></td>
121 <td>Private method to process the buffered output of the hg log command.</td>
122 </tr><tr>
123 <td><a href="#HgLogBrowserDialog.__readStderr">__readStderr</a></td>
124 <td>Private slot to handle the readyReadStandardError signal.</td>
125 </tr><tr>
126 <td><a href="#HgLogBrowserDialog.__readStdout">__readStdout</a></td>
127 <td>Private slot to handle the readyReadStandardOutput signal.</td>
128 </tr><tr>
129 <td><a href="#HgLogBrowserDialog.__resetUI">__resetUI</a></td>
130 <td>Private method to reset the user interface.</td>
131 </tr><tr>
132 <td><a href="#HgLogBrowserDialog.__resizeColumnsFiles">__resizeColumnsFiles</a></td>
133 <td>Private method to resize the changed files tree columns.</td>
134 </tr><tr>
135 <td><a href="#HgLogBrowserDialog.__resizeColumnsLog">__resizeColumnsLog</a></td>
136 <td>Private method to resize the log tree columns.</td>
137 </tr><tr>
138 <td><a href="#HgLogBrowserDialog.__resortFiles">__resortFiles</a></td>
139 <td>Private method to resort the changed files tree.</td>
140 </tr><tr>
141 <td><a href="#HgLogBrowserDialog.__showError">__showError</a></td>
142 <td>Private slot to show some error.</td>
143 </tr><tr>
144 <td><a href="#HgLogBrowserDialog.__switchActTriggered">__switchActTriggered</a></td>
145 <td>Private slot to switch the working directory to the selected revision.</td>
146 </tr><tr>
147 <td><a href="#HgLogBrowserDialog.__tagActTriggered">__tagActTriggered</a></td>
148 <td>Private slot to tag the selected revision.</td>
149 </tr><tr>
150 <td><a href="#HgLogBrowserDialog.__updateDiffButtons">__updateDiffButtons</a></td>
151 <td>Private slot to update the enabled status of the diff buttons.</td>
152 </tr><tr>
153 <td><a href="#HgLogBrowserDialog.__updateGui">__updateGui</a></td>
154 <td>Private slot to update GUI elements except tool menu actions.</td>
155 </tr><tr>
156 <td><a href="#HgLogBrowserDialog.__updateToolMenuActions">__updateToolMenuActions</a></td>
157 <td>Private slot to update the status of the tool menu actions and the tool menu button.</td>
158 </tr><tr>
159 <td><a href="#HgLogBrowserDialog.closeEvent">closeEvent</a></td>
160 <td>Protected slot implementing a close event handler.</td>
161 </tr><tr>
162 <td><a href="#HgLogBrowserDialog.col2x">col2x</a></td>
163 <td>Local function to calculate a x-position for a column.</td>
164 </tr><tr>
165 <td><a href="#HgLogBrowserDialog.keyPressEvent">keyPressEvent</a></td>
166 <td>Protected slot to handle a key press event.</td>
167 </tr><tr>
168 <td><a href="#HgLogBrowserDialog.on_branchCombo_activated">on_branchCombo_activated</a></td>
169 <td>Private slot called, when a new branch is selected.</td>
170 </tr><tr>
171 <td><a href="#HgLogBrowserDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td>
172 <td>Private slot called by a button of the button box clicked.</td>
173 </tr><tr>
174 <td><a href="#HgLogBrowserDialog.on_diffP1Button_clicked">on_diffP1Button_clicked</a></td>
175 <td>Private slot to handle the Diff to Parent 1 button.</td>
176 </tr><tr>
177 <td><a href="#HgLogBrowserDialog.on_diffP2Button_clicked">on_diffP2Button_clicked</a></td>
178 <td>Private slot to handle the Diff to Parent 2 button.</td>
179 </tr><tr>
180 <td><a href="#HgLogBrowserDialog.on_diffRevisionsButton_clicked">on_diffRevisionsButton_clicked</a></td>
181 <td>Private slot to handle the Compare Revisions button.</td>
182 </tr><tr>
183 <td><a href="#HgLogBrowserDialog.on_fieldCombo_activated">on_fieldCombo_activated</a></td>
184 <td>Private slot called, when a new filter field is selected.</td>
185 </tr><tr>
186 <td><a href="#HgLogBrowserDialog.on_fromDate_dateChanged">on_fromDate_dateChanged</a></td>
187 <td>Private slot called, when the from date changes.</td>
188 </tr><tr>
189 <td><a href="#HgLogBrowserDialog.on_input_returnPressed">on_input_returnPressed</a></td>
190 <td>Private slot to handle the press of the return key in the input field.</td>
191 </tr><tr>
192 <td><a href="#HgLogBrowserDialog.on_logTree_currentItemChanged">on_logTree_currentItemChanged</a></td>
193 <td>Private slot called, when the current item of the log tree changes.</td>
194 </tr><tr>
195 <td><a href="#HgLogBrowserDialog.on_logTree_itemSelectionChanged">on_logTree_itemSelectionChanged</a></td>
196 <td>Private slot called, when the selection has changed.</td>
197 </tr><tr>
198 <td><a href="#HgLogBrowserDialog.on_nextButton_clicked">on_nextButton_clicked</a></td>
199 <td>Private slot to handle the Next button.</td>
200 </tr><tr>
201 <td><a href="#HgLogBrowserDialog.on_passwordCheckBox_toggled">on_passwordCheckBox_toggled</a></td>
202 <td>Private slot to handle the password checkbox toggled.</td>
203 </tr><tr>
204 <td><a href="#HgLogBrowserDialog.on_refreshButton_clicked">on_refreshButton_clicked</a></td>
205 <td>Private slot to refresh the log.</td>
206 </tr><tr>
207 <td><a href="#HgLogBrowserDialog.on_rxEdit_textChanged">on_rxEdit_textChanged</a></td>
208 <td>Private slot called, when a filter expression is entered.</td>
209 </tr><tr>
210 <td><a href="#HgLogBrowserDialog.on_sendButton_clicked">on_sendButton_clicked</a></td>
211 <td>Private slot to send the input to the merurial process.</td>
212 </tr><tr>
213 <td><a href="#HgLogBrowserDialog.on_stopCheckBox_clicked">on_stopCheckBox_clicked</a></td>
214 <td>Private slot called, when the stop on copy/move checkbox is clicked.</td>
215 </tr><tr>
216 <td><a href="#HgLogBrowserDialog.on_toDate_dateChanged">on_toDate_dateChanged</a></td>
217 <td>Private slot called, when the from date changes.</td>
218 </tr><tr>
219 <td><a href="#HgLogBrowserDialog.show">show</a></td>
220 <td>Public slot to show the dialog.</td>
221 </tr><tr>
222 <td><a href="#HgLogBrowserDialog.start">start</a></td>
223 <td>Public slot to start the hg log command.</td>
224 </tr>
225 </table>
226 <h3>Static Methods</h3>
227 <table>
228 <tr><td>None</td></tr>
229 </table>
230 <a NAME="HgLogBrowserDialog.__init__" ID="HgLogBrowserDialog.__init__"></a>
231 <h4>HgLogBrowserDialog (Constructor)</h4>
232 <b>HgLogBrowserDialog</b>(<i>vcs, mode="log", parent=None</i>)
233 <p>
234 Constructor
235 </p><dl>
236 <dt><i>vcs</i></dt>
237 <dd>
238 reference to the vcs object
239 </dd><dt><i>mode</i></dt>
240 <dd>
241 mode of the dialog (string; one of log, incoming, outgoing)
242 </dd><dt><i>parent</i></dt>
243 <dd>
244 parent widget (QWidget)
245 </dd>
246 </dl><a NAME="HgLogBrowserDialog.__branchColor" ID="HgLogBrowserDialog.__branchColor"></a>
247 <h4>HgLogBrowserDialog.__branchColor</h4>
248 <b>__branchColor</b>(<i>branchName</i>)
249 <p>
250 Private method to calculate a color for a given branch name.
251 </p><dl>
252 <dt><i>branchName</i></dt>
253 <dd>
254 name of the branch (string)
255 </dd>
256 </dl><dl>
257 <dt>Returns:</dt>
258 <dd>
259 name of the color to use (string)
260 </dd>
261 </dl><a NAME="HgLogBrowserDialog.__diffRevisions" ID="HgLogBrowserDialog.__diffRevisions"></a>
262 <h4>HgLogBrowserDialog.__diffRevisions</h4>
263 <b>__diffRevisions</b>(<i>rev1, rev2</i>)
264 <p>
265 Private method to do a diff of two revisions.
266 </p><dl>
267 <dt><i>rev1</i></dt>
268 <dd>
269 first revision number (integer)
270 </dd><dt><i>rev2</i></dt>
271 <dd>
272 second revision number (integer)
273 </dd>
274 </dl><a NAME="HgLogBrowserDialog.__filterLogs" ID="HgLogBrowserDialog.__filterLogs"></a>
275 <h4>HgLogBrowserDialog.__filterLogs</h4>
276 <b>__filterLogs</b>(<i></i>)
277 <p>
278 Private method to filter the log entries.
279 </p><a NAME="HgLogBrowserDialog.__finish" ID="HgLogBrowserDialog.__finish"></a>
280 <h4>HgLogBrowserDialog.__finish</h4>
281 <b>__finish</b>(<i></i>)
282 <p>
283 Private slot called when the process finished or the user pressed
284 the button.
285 </p><a NAME="HgLogBrowserDialog.__generateEdges" ID="HgLogBrowserDialog.__generateEdges"></a>
286 <h4>HgLogBrowserDialog.__generateEdges</h4>
287 <b>__generateEdges</b>(<i>rev, parents</i>)
288 <p>
289 Private method to generate edge info for the give data.
290 </p><dl>
291 <dt><i>rev</i></dt>
292 <dd>
293 revision to calculate edge info for (integer)
294 </dd><dt><i>parents</i></dt>
295 <dd>
296 list of parent revisions (list of integers)
297 </dd>
298 </dl><dl>
299 <dt>Returns:</dt>
300 <dd>
301 tuple containing the column and color index for
302 the given node and a list of tuples indicating the edges
303 between the given node and its parents
304 (integer, integer, [(integer, integer, integer), ...])
305 </dd>
306 </dl><a NAME="HgLogBrowserDialog.__generateFileItem" ID="HgLogBrowserDialog.__generateFileItem"></a>
307 <h4>HgLogBrowserDialog.__generateFileItem</h4>
308 <b>__generateFileItem</b>(<i>action, path, copyfrom</i>)
309 <p>
310 Private method to generate a changed files tree entry.
311 </p><dl>
312 <dt><i>action</i></dt>
313 <dd>
314 indicator for the change action ("A", "D" or "M")
315 </dd><dt><i>path</i></dt>
316 <dd>
317 path of the file in the repository (string)
318 </dd><dt><i>copyfrom</i></dt>
319 <dd>
320 path the file was copied from (string)
321 </dd>
322 </dl><dl>
323 <dt>Returns:</dt>
324 <dd>
325 reference to the generated item (QTreeWidgetItem)
326 </dd>
327 </dl><a NAME="HgLogBrowserDialog.__generateIcon" ID="HgLogBrowserDialog.__generateIcon"></a>
328 <h4>HgLogBrowserDialog.__generateIcon</h4>
329 <b>__generateIcon</b>(<i>column, color, bottomedges, topedges, dotColor, currentRev, closed</i>)
330 <p>
331 Private method to generate an icon containing the revision tree for the
332 given data.
333 </p><dl>
334 <dt><i>column</i></dt>
335 <dd>
336 column index of the revision (integer)
337 </dd><dt><i>color</i></dt>
338 <dd>
339 color of the node (integer)
340 </dd><dt><i>bottomedges</i></dt>
341 <dd>
342 list of edges for the bottom of the node
343 (list of tuples of three integers)
344 </dd><dt><i>topedges</i></dt>
345 <dd>
346 list of edges for the top of the node
347 (list of tuples of three integers)
348 </dd><dt><i>dotColor</i></dt>
349 <dd>
350 color to be used for the dot (QColor)
351 </dd><dt><i>currentRev</i></dt>
352 <dd>
353 flag indicating to draw the icon for the
354 current revision (boolean)
355 </dd><dt><i>closed</i></dt>
356 <dd>
357 flag indicating to draw an icon for a closed
358 branch (boolean)
359 </dd>
360 </dl><dl>
361 <dt>Returns:</dt>
362 <dd>
363 icon for the node (QIcon)
364 </dd>
365 </dl><a NAME="HgLogBrowserDialog.__generateLogItem" ID="HgLogBrowserDialog.__generateLogItem"></a>
366 <h4>HgLogBrowserDialog.__generateLogItem</h4>
367 <b>__generateLogItem</b>(<i>author, date, message, revision, changedPaths, parents, branches, tags, phase, bookmarks=None</i>)
368 <p>
369 Private method to generate a log tree entry.
370 </p><dl>
371 <dt><i>author</i></dt>
372 <dd>
373 author info (string)
374 </dd><dt><i>date</i></dt>
375 <dd>
376 date info (string)
377 </dd><dt><i>message</i></dt>
378 <dd>
379 text of the log message (list of strings)
380 </dd><dt><i>revision</i></dt>
381 <dd>
382 revision info (string)
383 </dd><dt><i>changedPaths</i></dt>
384 <dd>
385 list of dictionary objects containing
386 info about the changed files/directories
387 </dd><dt><i>parents</i></dt>
388 <dd>
389 list of parent revisions (list of integers)
390 </dd><dt><i>branches</i></dt>
391 <dd>
392 list of branches (list of strings)
393 </dd><dt><i>tags</i></dt>
394 <dd>
395 list of tags (string)
396 </dd><dt><i>phase</i></dt>
397 <dd>
398 phase of the entry (string)
399 </dd><dt><i>bookmarks</i></dt>
400 <dd>
401 list of bookmarks (string)
402 </dd>
403 </dl><dl>
404 <dt>Returns:</dt>
405 <dd>
406 reference to the generated item (QTreeWidgetItem)
407 </dd>
408 </dl><a NAME="HgLogBrowserDialog.__getClosedBranches" ID="HgLogBrowserDialog.__getClosedBranches"></a>
409 <h4>HgLogBrowserDialog.__getClosedBranches</h4>
410 <b>__getClosedBranches</b>(<i></i>)
411 <p>
412 Private method to get the list of closed branches.
413 </p><a NAME="HgLogBrowserDialog.__getColor" ID="HgLogBrowserDialog.__getColor"></a>
414 <h4>HgLogBrowserDialog.__getColor</h4>
415 <b>__getColor</b>(<i>n</i>)
416 <p>
417 Private method to get the (rotating) name of the color given an index.
418 </p><dl>
419 <dt><i>n</i></dt>
420 <dd>
421 color index (integer)
422 </dd>
423 </dl><dl>
424 <dt>Returns:</dt>
425 <dd>
426 color name (string)
427 </dd>
428 </dl><a NAME="HgLogBrowserDialog.__getLogEntries" ID="HgLogBrowserDialog.__getLogEntries"></a>
429 <h4>HgLogBrowserDialog.__getLogEntries</h4>
430 <b>__getLogEntries</b>(<i>startRev=None</i>)
431 <p>
432 Private method to retrieve log entries from the repository.
433 </p><dl>
434 <dt><i>startRev</i></dt>
435 <dd>
436 revision number to start from (integer, string)
437 </dd>
438 </dl><a NAME="HgLogBrowserDialog.__getParents" ID="HgLogBrowserDialog.__getParents"></a>
439 <h4>HgLogBrowserDialog.__getParents</h4>
440 <b>__getParents</b>(<i>rev</i>)
441 <p>
442 Private method to get the parents of the currently viewed
443 file/directory.
444 </p><dl>
445 <dt><i>rev</i></dt>
446 <dd>
447 revision number to get parents for (string)
448 </dd>
449 </dl><dl>
450 <dt>Returns:</dt>
451 <dd>
452 list of parent revisions (list of integers)
453 </dd>
454 </dl><a NAME="HgLogBrowserDialog.__graftActTriggered" ID="HgLogBrowserDialog.__graftActTriggered"></a>
455 <h4>HgLogBrowserDialog.__graftActTriggered</h4>
456 <b>__graftActTriggered</b>(<i></i>)
457 <p>
458 Private slot to handle the Copy Changesets action.
459 </p><a NAME="HgLogBrowserDialog.__identifyProject" ID="HgLogBrowserDialog.__identifyProject"></a>
460 <h4>HgLogBrowserDialog.__identifyProject</h4>
461 <b>__identifyProject</b>(<i></i>)
462 <p>
463 Private method to determine the revision of the project directory.
464 </p><a NAME="HgLogBrowserDialog.__initData" ID="HgLogBrowserDialog.__initData"></a>
465 <h4>HgLogBrowserDialog.__initData</h4>
466 <b>__initData</b>(<i></i>)
467 <p>
468 Private method to (re-)initialize some data.
469 </p><a NAME="HgLogBrowserDialog.__lfPullActTriggered" ID="HgLogBrowserDialog.__lfPullActTriggered"></a>
470 <h4>HgLogBrowserDialog.__lfPullActTriggered</h4>
471 <b>__lfPullActTriggered</b>(<i></i>)
472 <p>
473 Private slot to pull large files of selected revisions.
474 </p><a NAME="HgLogBrowserDialog.__modifyForLargeFiles" ID="HgLogBrowserDialog.__modifyForLargeFiles"></a>
475 <h4>HgLogBrowserDialog.__modifyForLargeFiles</h4>
476 <b>__modifyForLargeFiles</b>(<i>filename</i>)
477 <p>
478 Private method to convert the displayed file name for a large file.
479 </p><dl>
480 <dt><i>filename</i></dt>
481 <dd>
482 file name to be processed (string)
483 </dd>
484 </dl><dl>
485 <dt>Returns:</dt>
486 <dd>
487 processed file name (string)
488 </dd>
489 </dl><a NAME="HgLogBrowserDialog.__phaseActTriggered" ID="HgLogBrowserDialog.__phaseActTriggered"></a>
490 <h4>HgLogBrowserDialog.__phaseActTriggered</h4>
491 <b>__phaseActTriggered</b>(<i></i>)
492 <p>
493 Private slot to handle the Change Phase action.
494 </p><a NAME="HgLogBrowserDialog.__procFinished" ID="HgLogBrowserDialog.__procFinished"></a>
495 <h4>HgLogBrowserDialog.__procFinished</h4>
496 <b>__procFinished</b>(<i>exitCode, exitStatus</i>)
497 <p>
498 Private slot connected to the finished signal.
499 </p><dl>
500 <dt><i>exitCode</i></dt>
501 <dd>
502 exit code of the process (integer)
503 </dd><dt><i>exitStatus</i></dt>
504 <dd>
505 exit status of the process (QProcess.ExitStatus)
506 </dd>
507 </dl><a NAME="HgLogBrowserDialog.__processBuffer" ID="HgLogBrowserDialog.__processBuffer"></a>
508 <h4>HgLogBrowserDialog.__processBuffer</h4>
509 <b>__processBuffer</b>(<i></i>)
510 <p>
511 Private method to process the buffered output of the hg log command.
512 </p><a NAME="HgLogBrowserDialog.__readStderr" ID="HgLogBrowserDialog.__readStderr"></a>
513 <h4>HgLogBrowserDialog.__readStderr</h4>
514 <b>__readStderr</b>(<i></i>)
515 <p>
516 Private slot to handle the readyReadStandardError signal.
517 </p><p>
518 It reads the error output of the process and inserts it into the
519 error pane.
520 </p><a NAME="HgLogBrowserDialog.__readStdout" ID="HgLogBrowserDialog.__readStdout"></a>
521 <h4>HgLogBrowserDialog.__readStdout</h4>
522 <b>__readStdout</b>(<i></i>)
523 <p>
524 Private slot to handle the readyReadStandardOutput signal.
525 </p><p>
526 It reads the output of the process and inserts it into a buffer.
527 </p><a NAME="HgLogBrowserDialog.__resetUI" ID="HgLogBrowserDialog.__resetUI"></a>
528 <h4>HgLogBrowserDialog.__resetUI</h4>
529 <b>__resetUI</b>(<i></i>)
530 <p>
531 Private method to reset the user interface.
532 </p><a NAME="HgLogBrowserDialog.__resizeColumnsFiles" ID="HgLogBrowserDialog.__resizeColumnsFiles"></a>
533 <h4>HgLogBrowserDialog.__resizeColumnsFiles</h4>
534 <b>__resizeColumnsFiles</b>(<i></i>)
535 <p>
536 Private method to resize the changed files tree columns.
537 </p><a NAME="HgLogBrowserDialog.__resizeColumnsLog" ID="HgLogBrowserDialog.__resizeColumnsLog"></a>
538 <h4>HgLogBrowserDialog.__resizeColumnsLog</h4>
539 <b>__resizeColumnsLog</b>(<i></i>)
540 <p>
541 Private method to resize the log tree columns.
542 </p><a NAME="HgLogBrowserDialog.__resortFiles" ID="HgLogBrowserDialog.__resortFiles"></a>
543 <h4>HgLogBrowserDialog.__resortFiles</h4>
544 <b>__resortFiles</b>(<i></i>)
545 <p>
546 Private method to resort the changed files tree.
547 </p><a NAME="HgLogBrowserDialog.__showError" ID="HgLogBrowserDialog.__showError"></a>
548 <h4>HgLogBrowserDialog.__showError</h4>
549 <b>__showError</b>(<i>out</i>)
550 <p>
551 Private slot to show some error.
552 </p><dl>
553 <dt><i>out</i></dt>
554 <dd>
555 error to be shown (string)
556 </dd>
557 </dl><a NAME="HgLogBrowserDialog.__switchActTriggered" ID="HgLogBrowserDialog.__switchActTriggered"></a>
558 <h4>HgLogBrowserDialog.__switchActTriggered</h4>
559 <b>__switchActTriggered</b>(<i></i>)
560 <p>
561 Private slot to switch the working directory to the
562 selected revision.
563 </p><a NAME="HgLogBrowserDialog.__tagActTriggered" ID="HgLogBrowserDialog.__tagActTriggered"></a>
564 <h4>HgLogBrowserDialog.__tagActTriggered</h4>
565 <b>__tagActTriggered</b>(<i></i>)
566 <p>
567 Private slot to tag the selected revision.
568 </p><a NAME="HgLogBrowserDialog.__updateDiffButtons" ID="HgLogBrowserDialog.__updateDiffButtons"></a>
569 <h4>HgLogBrowserDialog.__updateDiffButtons</h4>
570 <b>__updateDiffButtons</b>(<i></i>)
571 <p>
572 Private slot to update the enabled status of the diff buttons.
573 </p><a NAME="HgLogBrowserDialog.__updateGui" ID="HgLogBrowserDialog.__updateGui"></a>
574 <h4>HgLogBrowserDialog.__updateGui</h4>
575 <b>__updateGui</b>(<i>itm</i>)
576 <p>
577 Private slot to update GUI elements except tool menu actions.
578 </p><dl>
579 <dt><i>itm</i></dt>
580 <dd>
581 reference to the item the update should be based on
582 (QTreeWidgetItem)
583 </dd>
584 </dl><a NAME="HgLogBrowserDialog.__updateToolMenuActions" ID="HgLogBrowserDialog.__updateToolMenuActions"></a>
585 <h4>HgLogBrowserDialog.__updateToolMenuActions</h4>
586 <b>__updateToolMenuActions</b>(<i></i>)
587 <p>
588 Private slot to update the status of the tool menu actions and
589 the tool menu button.
590 </p><a NAME="HgLogBrowserDialog.closeEvent" ID="HgLogBrowserDialog.closeEvent"></a>
591 <h4>HgLogBrowserDialog.closeEvent</h4>
592 <b>closeEvent</b>(<i>e</i>)
593 <p>
594 Protected slot implementing a close event handler.
595 </p><dl>
596 <dt><i>e</i></dt>
597 <dd>
598 close event (QCloseEvent)
599 </dd>
600 </dl><a NAME="HgLogBrowserDialog.col2x" ID="HgLogBrowserDialog.col2x"></a>
601 <h4>HgLogBrowserDialog.col2x</h4>
602 <b>col2x</b>(<i>radius</i>)
603 <p>
604 Local function to calculate a x-position for a column.
605 </p><dl>
606 <dt><i>col</i></dt>
607 <dd>
608 column number (integer)
609 </dd><dt><i>radius</i></dt>
610 <dd>
611 radius of the indicator circle (integer)
612 </dd>
613 </dl><a NAME="HgLogBrowserDialog.keyPressEvent" ID="HgLogBrowserDialog.keyPressEvent"></a>
614 <h4>HgLogBrowserDialog.keyPressEvent</h4>
615 <b>keyPressEvent</b>(<i>evt</i>)
616 <p>
617 Protected slot to handle a key press event.
618 </p><dl>
619 <dt><i>evt</i></dt>
620 <dd>
621 the key press event (QKeyEvent)
622 </dd>
623 </dl><a NAME="HgLogBrowserDialog.on_branchCombo_activated" ID="HgLogBrowserDialog.on_branchCombo_activated"></a>
624 <h4>HgLogBrowserDialog.on_branchCombo_activated</h4>
625 <b>on_branchCombo_activated</b>(<i>txt</i>)
626 <p>
627 Private slot called, when a new branch is selected.
628 </p><dl>
629 <dt><i>txt</i></dt>
630 <dd>
631 text of the selected branch (string)
632 </dd>
633 </dl><a NAME="HgLogBrowserDialog.on_buttonBox_clicked" ID="HgLogBrowserDialog.on_buttonBox_clicked"></a>
634 <h4>HgLogBrowserDialog.on_buttonBox_clicked</h4>
635 <b>on_buttonBox_clicked</b>(<i>button</i>)
636 <p>
637 Private slot called by a button of the button box clicked.
638 </p><dl>
639 <dt><i>button</i></dt>
640 <dd>
641 button that was clicked (QAbstractButton)
642 </dd>
643 </dl><a NAME="HgLogBrowserDialog.on_diffP1Button_clicked" ID="HgLogBrowserDialog.on_diffP1Button_clicked"></a>
644 <h4>HgLogBrowserDialog.on_diffP1Button_clicked</h4>
645 <b>on_diffP1Button_clicked</b>(<i></i>)
646 <p>
647 Private slot to handle the Diff to Parent 1 button.
648 </p><a NAME="HgLogBrowserDialog.on_diffP2Button_clicked" ID="HgLogBrowserDialog.on_diffP2Button_clicked"></a>
649 <h4>HgLogBrowserDialog.on_diffP2Button_clicked</h4>
650 <b>on_diffP2Button_clicked</b>(<i></i>)
651 <p>
652 Private slot to handle the Diff to Parent 2 button.
653 </p><a NAME="HgLogBrowserDialog.on_diffRevisionsButton_clicked" ID="HgLogBrowserDialog.on_diffRevisionsButton_clicked"></a>
654 <h4>HgLogBrowserDialog.on_diffRevisionsButton_clicked</h4>
655 <b>on_diffRevisionsButton_clicked</b>(<i></i>)
656 <p>
657 Private slot to handle the Compare Revisions button.
658 </p><a NAME="HgLogBrowserDialog.on_fieldCombo_activated" ID="HgLogBrowserDialog.on_fieldCombo_activated"></a>
659 <h4>HgLogBrowserDialog.on_fieldCombo_activated</h4>
660 <b>on_fieldCombo_activated</b>(<i>txt</i>)
661 <p>
662 Private slot called, when a new filter field is selected.
663 </p><dl>
664 <dt><i>txt</i></dt>
665 <dd>
666 text of the selected field (string)
667 </dd>
668 </dl><a NAME="HgLogBrowserDialog.on_fromDate_dateChanged" ID="HgLogBrowserDialog.on_fromDate_dateChanged"></a>
669 <h4>HgLogBrowserDialog.on_fromDate_dateChanged</h4>
670 <b>on_fromDate_dateChanged</b>(<i>date</i>)
671 <p>
672 Private slot called, when the from date changes.
673 </p><dl>
674 <dt><i>date</i></dt>
675 <dd>
676 new date (QDate)
677 </dd>
678 </dl><a NAME="HgLogBrowserDialog.on_input_returnPressed" ID="HgLogBrowserDialog.on_input_returnPressed"></a>
679 <h4>HgLogBrowserDialog.on_input_returnPressed</h4>
680 <b>on_input_returnPressed</b>(<i></i>)
681 <p>
682 Private slot to handle the press of the return key in the input field.
683 </p><a NAME="HgLogBrowserDialog.on_logTree_currentItemChanged" ID="HgLogBrowserDialog.on_logTree_currentItemChanged"></a>
684 <h4>HgLogBrowserDialog.on_logTree_currentItemChanged</h4>
685 <b>on_logTree_currentItemChanged</b>(<i>current, previous</i>)
686 <p>
687 Private slot called, when the current item of the log tree changes.
688 </p><dl>
689 <dt><i>current</i></dt>
690 <dd>
691 reference to the new current item (QTreeWidgetItem)
692 </dd><dt><i>previous</i></dt>
693 <dd>
694 reference to the old current item (QTreeWidgetItem)
695 </dd>
696 </dl><a NAME="HgLogBrowserDialog.on_logTree_itemSelectionChanged" ID="HgLogBrowserDialog.on_logTree_itemSelectionChanged"></a>
697 <h4>HgLogBrowserDialog.on_logTree_itemSelectionChanged</h4>
698 <b>on_logTree_itemSelectionChanged</b>(<i></i>)
699 <p>
700 Private slot called, when the selection has changed.
701 </p><a NAME="HgLogBrowserDialog.on_nextButton_clicked" ID="HgLogBrowserDialog.on_nextButton_clicked"></a>
702 <h4>HgLogBrowserDialog.on_nextButton_clicked</h4>
703 <b>on_nextButton_clicked</b>(<i></i>)
704 <p>
705 Private slot to handle the Next button.
706 </p><a NAME="HgLogBrowserDialog.on_passwordCheckBox_toggled" ID="HgLogBrowserDialog.on_passwordCheckBox_toggled"></a>
707 <h4>HgLogBrowserDialog.on_passwordCheckBox_toggled</h4>
708 <b>on_passwordCheckBox_toggled</b>(<i>isOn</i>)
709 <p>
710 Private slot to handle the password checkbox toggled.
711 </p><dl>
712 <dt><i>isOn</i></dt>
713 <dd>
714 flag indicating the status of the check box (boolean)
715 </dd>
716 </dl><a NAME="HgLogBrowserDialog.on_refreshButton_clicked" ID="HgLogBrowserDialog.on_refreshButton_clicked"></a>
717 <h4>HgLogBrowserDialog.on_refreshButton_clicked</h4>
718 <b>on_refreshButton_clicked</b>(<i></i>)
719 <p>
720 Private slot to refresh the log.
721 </p><a NAME="HgLogBrowserDialog.on_rxEdit_textChanged" ID="HgLogBrowserDialog.on_rxEdit_textChanged"></a>
722 <h4>HgLogBrowserDialog.on_rxEdit_textChanged</h4>
723 <b>on_rxEdit_textChanged</b>(<i>txt</i>)
724 <p>
725 Private slot called, when a filter expression is entered.
726 </p><dl>
727 <dt><i>txt</i></dt>
728 <dd>
729 filter expression (string)
730 </dd>
731 </dl><a NAME="HgLogBrowserDialog.on_sendButton_clicked" ID="HgLogBrowserDialog.on_sendButton_clicked"></a>
732 <h4>HgLogBrowserDialog.on_sendButton_clicked</h4>
733 <b>on_sendButton_clicked</b>(<i></i>)
734 <p>
735 Private slot to send the input to the merurial process.
736 </p><a NAME="HgLogBrowserDialog.on_stopCheckBox_clicked" ID="HgLogBrowserDialog.on_stopCheckBox_clicked"></a>
737 <h4>HgLogBrowserDialog.on_stopCheckBox_clicked</h4>
738 <b>on_stopCheckBox_clicked</b>(<i>checked</i>)
739 <p>
740 Private slot called, when the stop on copy/move checkbox is clicked.
741 </p><dl>
742 <dt><i>checked</i></dt>
743 <dd>
744 flag indicating the state of the check box (boolean)
745 </dd>
746 </dl><a NAME="HgLogBrowserDialog.on_toDate_dateChanged" ID="HgLogBrowserDialog.on_toDate_dateChanged"></a>
747 <h4>HgLogBrowserDialog.on_toDate_dateChanged</h4>
748 <b>on_toDate_dateChanged</b>(<i>date</i>)
749 <p>
750 Private slot called, when the from date changes.
751 </p><dl>
752 <dt><i>date</i></dt>
753 <dd>
754 new date (QDate)
755 </dd>
756 </dl><a NAME="HgLogBrowserDialog.show" ID="HgLogBrowserDialog.show"></a>
757 <h4>HgLogBrowserDialog.show</h4>
758 <b>show</b>(<i></i>)
759 <p>
760 Public slot to show the dialog.
761 </p><a NAME="HgLogBrowserDialog.start" ID="HgLogBrowserDialog.start"></a>
762 <h4>HgLogBrowserDialog.start</h4>
763 <b>start</b>(<i>fn, bundle=None, isFile=False</i>)
764 <p>
765 Public slot to start the hg log command.
766 </p><dl>
767 <dt><i>fn</i></dt>
768 <dd>
769 filename to show the log for (string)
770 </dd><dt><i>bundle=</i></dt>
771 <dd>
772 name of a bundle file (string)
773 </dd><dt><i>isFile=</i></dt>
774 <dd>
775 flag indicating log for a file is to be shown
776 (boolean)
777 </dd>
778 </dl>
779 <div align="right"><a href="#top">Up</a></div>
780 <hr />
781 </body></html>

eric ide

mercurial