Documentation/Source/eric6.Plugins.VcsPlugins.vcsPySvn.SvnLogBrowserDialog.html

changeset 3673
e26d7d0c1088
child 5449
7679d1d3671a
equal deleted inserted replaced
3670:f0cb7579c0b4 3673:e26d7d0c1088
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.Plugins.VcsPlugins.vcsPySvn.SvnLogBrowserDialog</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.vcsPySvn.SvnLogBrowserDialog</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>None</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr>
33 <td><a href="#SvnLogBrowserDialog">SvnLogBrowserDialog</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="SvnLogBrowserDialog" ID="SvnLogBrowserDialog"></a>
43 <h2>SvnLogBrowserDialog</h2>
44 <p>
45 Class implementing a dialog to browse the log history.
46 </p>
47 <h3>Derived from</h3>
48 QWidget, SvnDialogMixin, Ui_SvnLogBrowserDialog
49 <h3>Class Attributes</h3>
50 <table>
51 <tr><td>None</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="#SvnLogBrowserDialog.__init__">SvnLogBrowserDialog</a></td>
61 <td>Constructor</td>
62 </tr><tr>
63 <td><a href="#SvnLogBrowserDialog.__diffRevisions">__diffRevisions</a></td>
64 <td>Private method to do a diff of two revisions.</td>
65 </tr><tr>
66 <td><a href="#SvnLogBrowserDialog.__filterLogs">__filterLogs</a></td>
67 <td>Private method to filter the log entries.</td>
68 </tr><tr>
69 <td><a href="#SvnLogBrowserDialog.__finish">__finish</a></td>
70 <td>Private slot called when the user pressed the button.</td>
71 </tr><tr>
72 <td><a href="#SvnLogBrowserDialog.__generateFileItem">__generateFileItem</a></td>
73 <td>Private method to generate a changed files tree entry.</td>
74 </tr><tr>
75 <td><a href="#SvnLogBrowserDialog.__generateLogItem">__generateLogItem</a></td>
76 <td>Private method to generate a log tree entry.</td>
77 </tr><tr>
78 <td><a href="#SvnLogBrowserDialog.__getLogEntries">__getLogEntries</a></td>
79 <td>Private method to retrieve log entries from the repository.</td>
80 </tr><tr>
81 <td><a href="#SvnLogBrowserDialog.__initData">__initData</a></td>
82 <td>Private method to (re-)initialize some data.</td>
83 </tr><tr>
84 <td><a href="#SvnLogBrowserDialog.__resetUI">__resetUI</a></td>
85 <td>Private method to reset the user interface.</td>
86 </tr><tr>
87 <td><a href="#SvnLogBrowserDialog.__resizeColumnsFiles">__resizeColumnsFiles</a></td>
88 <td>Private method to resize the changed files tree columns.</td>
89 </tr><tr>
90 <td><a href="#SvnLogBrowserDialog.__resizeColumnsLog">__resizeColumnsLog</a></td>
91 <td>Private method to resize the log tree columns.</td>
92 </tr><tr>
93 <td><a href="#SvnLogBrowserDialog.__resortFiles">__resortFiles</a></td>
94 <td>Private method to resort the changed files tree.</td>
95 </tr><tr>
96 <td><a href="#SvnLogBrowserDialog.__resortLog">__resortLog</a></td>
97 <td>Private method to resort the log tree.</td>
98 </tr><tr>
99 <td><a href="#SvnLogBrowserDialog.__showError">__showError</a></td>
100 <td>Private slot to show an error message.</td>
101 </tr><tr>
102 <td><a href="#SvnLogBrowserDialog._reset">_reset</a></td>
103 <td>Protected method to reset the internal state of the dialog.</td>
104 </tr><tr>
105 <td><a href="#SvnLogBrowserDialog.closeEvent">closeEvent</a></td>
106 <td>Protected slot implementing a close event handler.</td>
107 </tr><tr>
108 <td><a href="#SvnLogBrowserDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td>
109 <td>Private slot called by a button of the button box clicked.</td>
110 </tr><tr>
111 <td><a href="#SvnLogBrowserDialog.on_diffPreviousButton_clicked">on_diffPreviousButton_clicked</a></td>
112 <td>Private slot to handle the Diff to Previous button.</td>
113 </tr><tr>
114 <td><a href="#SvnLogBrowserDialog.on_diffRevisionsButton_clicked">on_diffRevisionsButton_clicked</a></td>
115 <td>Private slot to handle the Compare Revisions button.</td>
116 </tr><tr>
117 <td><a href="#SvnLogBrowserDialog.on_fieldCombo_activated">on_fieldCombo_activated</a></td>
118 <td>Private slot called, when a new filter field is selected.</td>
119 </tr><tr>
120 <td><a href="#SvnLogBrowserDialog.on_fromDate_dateChanged">on_fromDate_dateChanged</a></td>
121 <td>Private slot called, when the from date changes.</td>
122 </tr><tr>
123 <td><a href="#SvnLogBrowserDialog.on_logTree_currentItemChanged">on_logTree_currentItemChanged</a></td>
124 <td>Private slot called, when the current item of the log tree changes.</td>
125 </tr><tr>
126 <td><a href="#SvnLogBrowserDialog.on_logTree_itemSelectionChanged">on_logTree_itemSelectionChanged</a></td>
127 <td>Private slot called, when the selection has changed.</td>
128 </tr><tr>
129 <td><a href="#SvnLogBrowserDialog.on_nextButton_clicked">on_nextButton_clicked</a></td>
130 <td>Private slot to handle the Next button.</td>
131 </tr><tr>
132 <td><a href="#SvnLogBrowserDialog.on_rxEdit_textChanged">on_rxEdit_textChanged</a></td>
133 <td>Private slot called, when a filter expression is entered.</td>
134 </tr><tr>
135 <td><a href="#SvnLogBrowserDialog.on_stopCheckBox_clicked">on_stopCheckBox_clicked</a></td>
136 <td>Private slot called, when the stop on copy/move checkbox is clicked.</td>
137 </tr><tr>
138 <td><a href="#SvnLogBrowserDialog.on_toDate_dateChanged">on_toDate_dateChanged</a></td>
139 <td>Private slot called, when the from date changes.</td>
140 </tr><tr>
141 <td><a href="#SvnLogBrowserDialog.show">show</a></td>
142 <td>Public slot to show the dialog.</td>
143 </tr><tr>
144 <td><a href="#SvnLogBrowserDialog.start">start</a></td>
145 <td>Public slot to start the svn log command.</td>
146 </tr>
147 </table>
148 <h3>Static Methods</h3>
149 <table>
150 <tr><td>None</td></tr>
151 </table>
152 <a NAME="SvnLogBrowserDialog.__init__" ID="SvnLogBrowserDialog.__init__"></a>
153 <h4>SvnLogBrowserDialog (Constructor)</h4>
154 <b>SvnLogBrowserDialog</b>(<i>vcs, parent=None</i>)
155 <p>
156 Constructor
157 </p><dl>
158 <dt><i>vcs</i></dt>
159 <dd>
160 reference to the vcs object
161 </dd><dt><i>parent</i></dt>
162 <dd>
163 parent widget (QWidget)
164 </dd>
165 </dl><a NAME="SvnLogBrowserDialog.__diffRevisions" ID="SvnLogBrowserDialog.__diffRevisions"></a>
166 <h4>SvnLogBrowserDialog.__diffRevisions</h4>
167 <b>__diffRevisions</b>(<i>rev1, rev2, peg_rev</i>)
168 <p>
169 Private method to do a diff of two revisions.
170 </p><dl>
171 <dt><i>rev1</i></dt>
172 <dd>
173 first revision number (integer)
174 </dd><dt><i>rev2</i></dt>
175 <dd>
176 second revision number (integer)
177 </dd><dt><i>peg_rev</i></dt>
178 <dd>
179 revision number to use as a reference (integer)
180 </dd>
181 </dl><a NAME="SvnLogBrowserDialog.__filterLogs" ID="SvnLogBrowserDialog.__filterLogs"></a>
182 <h4>SvnLogBrowserDialog.__filterLogs</h4>
183 <b>__filterLogs</b>(<i></i>)
184 <p>
185 Private method to filter the log entries.
186 </p><a NAME="SvnLogBrowserDialog.__finish" ID="SvnLogBrowserDialog.__finish"></a>
187 <h4>SvnLogBrowserDialog.__finish</h4>
188 <b>__finish</b>(<i></i>)
189 <p>
190 Private slot called when the user pressed the button.
191 </p><a NAME="SvnLogBrowserDialog.__generateFileItem" ID="SvnLogBrowserDialog.__generateFileItem"></a>
192 <h4>SvnLogBrowserDialog.__generateFileItem</h4>
193 <b>__generateFileItem</b>(<i>action, path, copyFrom, copyRev</i>)
194 <p>
195 Private method to generate a changed files tree entry.
196 </p><dl>
197 <dt><i>action</i></dt>
198 <dd>
199 indicator for the change action ("A", "D" or "M")
200 </dd><dt><i>path</i></dt>
201 <dd>
202 path of the file in the repository (string)
203 </dd><dt><i>copyFrom</i></dt>
204 <dd>
205 path the file was copied from (None, string)
206 </dd><dt><i>copyRev</i></dt>
207 <dd>
208 revision the file was copied from (None, string)
209 </dd>
210 </dl><dl>
211 <dt>Returns:</dt>
212 <dd>
213 reference to the generated item (QTreeWidgetItem)
214 </dd>
215 </dl><a NAME="SvnLogBrowserDialog.__generateLogItem" ID="SvnLogBrowserDialog.__generateLogItem"></a>
216 <h4>SvnLogBrowserDialog.__generateLogItem</h4>
217 <b>__generateLogItem</b>(<i>author, date, message, revision, changedPaths</i>)
218 <p>
219 Private method to generate a log tree entry.
220 </p><dl>
221 <dt><i>author</i></dt>
222 <dd>
223 author info (string)
224 </dd><dt><i>date</i></dt>
225 <dd>
226 date info (integer)
227 </dd><dt><i>message</i></dt>
228 <dd>
229 text of the log message (string)
230 </dd><dt><i>revision</i></dt>
231 <dd>
232 revision info (string or pysvn.opt_revision_kind)
233 </dd><dt><i>changedPaths</i></dt>
234 <dd>
235 list of pysvn dictionary like objects containing
236 info about the changed files/directories
237 </dd>
238 </dl><dl>
239 <dt>Returns:</dt>
240 <dd>
241 reference to the generated item (QTreeWidgetItem)
242 </dd>
243 </dl><a NAME="SvnLogBrowserDialog.__getLogEntries" ID="SvnLogBrowserDialog.__getLogEntries"></a>
244 <h4>SvnLogBrowserDialog.__getLogEntries</h4>
245 <b>__getLogEntries</b>(<i>startRev=None</i>)
246 <p>
247 Private method to retrieve log entries from the repository.
248 </p><dl>
249 <dt><i>startRev</i></dt>
250 <dd>
251 revision number to start from (integer, string)
252 </dd>
253 </dl><a NAME="SvnLogBrowserDialog.__initData" ID="SvnLogBrowserDialog.__initData"></a>
254 <h4>SvnLogBrowserDialog.__initData</h4>
255 <b>__initData</b>(<i></i>)
256 <p>
257 Private method to (re-)initialize some data.
258 </p><a NAME="SvnLogBrowserDialog.__resetUI" ID="SvnLogBrowserDialog.__resetUI"></a>
259 <h4>SvnLogBrowserDialog.__resetUI</h4>
260 <b>__resetUI</b>(<i></i>)
261 <p>
262 Private method to reset the user interface.
263 </p><a NAME="SvnLogBrowserDialog.__resizeColumnsFiles" ID="SvnLogBrowserDialog.__resizeColumnsFiles"></a>
264 <h4>SvnLogBrowserDialog.__resizeColumnsFiles</h4>
265 <b>__resizeColumnsFiles</b>(<i></i>)
266 <p>
267 Private method to resize the changed files tree columns.
268 </p><a NAME="SvnLogBrowserDialog.__resizeColumnsLog" ID="SvnLogBrowserDialog.__resizeColumnsLog"></a>
269 <h4>SvnLogBrowserDialog.__resizeColumnsLog</h4>
270 <b>__resizeColumnsLog</b>(<i></i>)
271 <p>
272 Private method to resize the log tree columns.
273 </p><a NAME="SvnLogBrowserDialog.__resortFiles" ID="SvnLogBrowserDialog.__resortFiles"></a>
274 <h4>SvnLogBrowserDialog.__resortFiles</h4>
275 <b>__resortFiles</b>(<i></i>)
276 <p>
277 Private method to resort the changed files tree.
278 </p><a NAME="SvnLogBrowserDialog.__resortLog" ID="SvnLogBrowserDialog.__resortLog"></a>
279 <h4>SvnLogBrowserDialog.__resortLog</h4>
280 <b>__resortLog</b>(<i></i>)
281 <p>
282 Private method to resort the log tree.
283 </p><a NAME="SvnLogBrowserDialog.__showError" ID="SvnLogBrowserDialog.__showError"></a>
284 <h4>SvnLogBrowserDialog.__showError</h4>
285 <b>__showError</b>(<i>msg</i>)
286 <p>
287 Private slot to show an error message.
288 </p><dl>
289 <dt><i>msg</i></dt>
290 <dd>
291 error message to show (string)
292 </dd>
293 </dl><a NAME="SvnLogBrowserDialog._reset" ID="SvnLogBrowserDialog._reset"></a>
294 <h4>SvnLogBrowserDialog._reset</h4>
295 <b>_reset</b>(<i></i>)
296 <p>
297 Protected method to reset the internal state of the dialog.
298 </p><a NAME="SvnLogBrowserDialog.closeEvent" ID="SvnLogBrowserDialog.closeEvent"></a>
299 <h4>SvnLogBrowserDialog.closeEvent</h4>
300 <b>closeEvent</b>(<i>e</i>)
301 <p>
302 Protected slot implementing a close event handler.
303 </p><dl>
304 <dt><i>e</i></dt>
305 <dd>
306 close event (QCloseEvent)
307 </dd>
308 </dl><a NAME="SvnLogBrowserDialog.on_buttonBox_clicked" ID="SvnLogBrowserDialog.on_buttonBox_clicked"></a>
309 <h4>SvnLogBrowserDialog.on_buttonBox_clicked</h4>
310 <b>on_buttonBox_clicked</b>(<i>button</i>)
311 <p>
312 Private slot called by a button of the button box clicked.
313 </p><dl>
314 <dt><i>button</i></dt>
315 <dd>
316 button that was clicked (QAbstractButton)
317 </dd>
318 </dl><a NAME="SvnLogBrowserDialog.on_diffPreviousButton_clicked" ID="SvnLogBrowserDialog.on_diffPreviousButton_clicked"></a>
319 <h4>SvnLogBrowserDialog.on_diffPreviousButton_clicked</h4>
320 <b>on_diffPreviousButton_clicked</b>(<i></i>)
321 <p>
322 Private slot to handle the Diff to Previous button.
323 </p><a NAME="SvnLogBrowserDialog.on_diffRevisionsButton_clicked" ID="SvnLogBrowserDialog.on_diffRevisionsButton_clicked"></a>
324 <h4>SvnLogBrowserDialog.on_diffRevisionsButton_clicked</h4>
325 <b>on_diffRevisionsButton_clicked</b>(<i></i>)
326 <p>
327 Private slot to handle the Compare Revisions button.
328 </p><a NAME="SvnLogBrowserDialog.on_fieldCombo_activated" ID="SvnLogBrowserDialog.on_fieldCombo_activated"></a>
329 <h4>SvnLogBrowserDialog.on_fieldCombo_activated</h4>
330 <b>on_fieldCombo_activated</b>(<i>txt</i>)
331 <p>
332 Private slot called, when a new filter field is selected.
333 </p><dl>
334 <dt><i>txt</i></dt>
335 <dd>
336 text of the selected field (string)
337 </dd>
338 </dl><a NAME="SvnLogBrowserDialog.on_fromDate_dateChanged" ID="SvnLogBrowserDialog.on_fromDate_dateChanged"></a>
339 <h4>SvnLogBrowserDialog.on_fromDate_dateChanged</h4>
340 <b>on_fromDate_dateChanged</b>(<i>date</i>)
341 <p>
342 Private slot called, when the from date changes.
343 </p><dl>
344 <dt><i>date</i></dt>
345 <dd>
346 new date (QDate)
347 </dd>
348 </dl><a NAME="SvnLogBrowserDialog.on_logTree_currentItemChanged" ID="SvnLogBrowserDialog.on_logTree_currentItemChanged"></a>
349 <h4>SvnLogBrowserDialog.on_logTree_currentItemChanged</h4>
350 <b>on_logTree_currentItemChanged</b>(<i>current, previous</i>)
351 <p>
352 Private slot called, when the current item of the log tree changes.
353 </p><dl>
354 <dt><i>current</i></dt>
355 <dd>
356 reference to the new current item (QTreeWidgetItem)
357 </dd><dt><i>previous</i></dt>
358 <dd>
359 reference to the old current item (QTreeWidgetItem)
360 </dd>
361 </dl><a NAME="SvnLogBrowserDialog.on_logTree_itemSelectionChanged" ID="SvnLogBrowserDialog.on_logTree_itemSelectionChanged"></a>
362 <h4>SvnLogBrowserDialog.on_logTree_itemSelectionChanged</h4>
363 <b>on_logTree_itemSelectionChanged</b>(<i></i>)
364 <p>
365 Private slot called, when the selection has changed.
366 </p><a NAME="SvnLogBrowserDialog.on_nextButton_clicked" ID="SvnLogBrowserDialog.on_nextButton_clicked"></a>
367 <h4>SvnLogBrowserDialog.on_nextButton_clicked</h4>
368 <b>on_nextButton_clicked</b>(<i></i>)
369 <p>
370 Private slot to handle the Next button.
371 </p><a NAME="SvnLogBrowserDialog.on_rxEdit_textChanged" ID="SvnLogBrowserDialog.on_rxEdit_textChanged"></a>
372 <h4>SvnLogBrowserDialog.on_rxEdit_textChanged</h4>
373 <b>on_rxEdit_textChanged</b>(<i>txt</i>)
374 <p>
375 Private slot called, when a filter expression is entered.
376 </p><dl>
377 <dt><i>txt</i></dt>
378 <dd>
379 filter expression (string)
380 </dd>
381 </dl><a NAME="SvnLogBrowserDialog.on_stopCheckBox_clicked" ID="SvnLogBrowserDialog.on_stopCheckBox_clicked"></a>
382 <h4>SvnLogBrowserDialog.on_stopCheckBox_clicked</h4>
383 <b>on_stopCheckBox_clicked</b>(<i>checked</i>)
384 <p>
385 Private slot called, when the stop on copy/move checkbox is clicked.
386 </p><dl>
387 <dt><i>checked</i></dt>
388 <dd>
389 flag indicating the check box state (boolean)
390 </dd>
391 </dl><a NAME="SvnLogBrowserDialog.on_toDate_dateChanged" ID="SvnLogBrowserDialog.on_toDate_dateChanged"></a>
392 <h4>SvnLogBrowserDialog.on_toDate_dateChanged</h4>
393 <b>on_toDate_dateChanged</b>(<i>date</i>)
394 <p>
395 Private slot called, when the from date changes.
396 </p><dl>
397 <dt><i>date</i></dt>
398 <dd>
399 new date (QDate)
400 </dd>
401 </dl><a NAME="SvnLogBrowserDialog.show" ID="SvnLogBrowserDialog.show"></a>
402 <h4>SvnLogBrowserDialog.show</h4>
403 <b>show</b>(<i></i>)
404 <p>
405 Public slot to show the dialog.
406 </p><a NAME="SvnLogBrowserDialog.start" ID="SvnLogBrowserDialog.start"></a>
407 <h4>SvnLogBrowserDialog.start</h4>
408 <b>start</b>(<i>fn, isFile=False</i>)
409 <p>
410 Public slot to start the svn log command.
411 </p><dl>
412 <dt><i>fn</i></dt>
413 <dd>
414 filename to show the log for (string)
415 </dd><dt><i>isFile=</i></dt>
416 <dd>
417 flag indicating log for a file is to be shown
418 (boolean)
419 </dd>
420 </dl>
421 <div align="right"><a href="#top">Up</a></div>
422 <hr />
423 </body></html>

eric ide

mercurial