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

changeset 3
0d9daebf5b8c
equal deleted inserted replaced
2:bc6196164237 3:0d9daebf5b8c
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
4 <html><head>
5 <title>eric4.Plugins.VcsPlugins.vcsPySvn.SvnLogBrowserDialog</title>
6 <style>
7 body {
8 background:white;
9 margin: 0em 1em 10em 1em;
10 color: black;
11 }
12
13 h1 { color: white; background: #4FA4FF; }
14 h2 { color: white; background: #4FA4FF; }
15 h3 { color: white; background: #00557F; }
16 h4 { color: white; background: #00557F; }
17
18 a { color: #AA5500; }
19
20 </style>
21 </head>
22 <body><a NAME="top" ID="top"></a>
23 <h1>eric4.Plugins.VcsPlugins.vcsPySvn.SvnLogBrowserDialog</h1>
24 <p>
25 Module implementing a dialog to browse the log history.
26 </p>
27 <h3>Global Attributes</h3>
28 <table>
29 <tr><td>None</td></tr>
30 </table>
31 <h3>Classes</h3>
32 <table>
33 <tr>
34 <td><a href="#SvnLogBrowserDialog">SvnLogBrowserDialog</a></td>
35 <td>Class implementing a dialog to browse the log history.</td>
36 </tr>
37 </table>
38 <h3>Functions</h3>
39 <table>
40 <tr><td>None</td></tr>
41 </table>
42 <hr /><hr />
43 <a NAME="SvnLogBrowserDialog" ID="SvnLogBrowserDialog"></a>
44 <h2>SvnLogBrowserDialog</h2>
45 <p>
46 Class implementing a dialog to browse the log history.
47 </p>
48 <h3>Derived from</h3>
49 QDialog, SvnDialogMixin, Ui_SvnLogBrowserDialog
50 <h3>Class Attributes</h3>
51 <table>
52 <tr><td>None</td></tr>
53 </table>
54 <h3>Methods</h3>
55 <table>
56 <tr>
57 <td><a href="#SvnLogBrowserDialog.__init__">SvnLogBrowserDialog</a></td>
58 <td>Constructor</td>
59 </tr><tr>
60 <td><a href="#SvnLogBrowserDialog.__diffRevisions">__diffRevisions</a></td>
61 <td>Private method to do a diff of two revisions.</td>
62 </tr><tr>
63 <td><a href="#SvnLogBrowserDialog.__filterLogs">__filterLogs</a></td>
64 <td>Private method to filter the log entries.</td>
65 </tr><tr>
66 <td><a href="#SvnLogBrowserDialog.__finish">__finish</a></td>
67 <td>Private slot called when the user pressed the button.</td>
68 </tr><tr>
69 <td><a href="#SvnLogBrowserDialog.__generateFileItem">__generateFileItem</a></td>
70 <td>Private method to generate a changed files tree entry.</td>
71 </tr><tr>
72 <td><a href="#SvnLogBrowserDialog.__generateLogItem">__generateLogItem</a></td>
73 <td>Private method to generate a log tree entry.</td>
74 </tr><tr>
75 <td><a href="#SvnLogBrowserDialog.__getLogEntries">__getLogEntries</a></td>
76 <td>Private method to retrieve log entries from the repository.</td>
77 </tr><tr>
78 <td><a href="#SvnLogBrowserDialog.__resizeColumnsFiles">__resizeColumnsFiles</a></td>
79 <td>Private method to resize the changed files tree columns.</td>
80 </tr><tr>
81 <td><a href="#SvnLogBrowserDialog.__resizeColumnsLog">__resizeColumnsLog</a></td>
82 <td>Private method to resize the log tree columns.</td>
83 </tr><tr>
84 <td><a href="#SvnLogBrowserDialog.__resortFiles">__resortFiles</a></td>
85 <td>Private method to resort the changed files tree.</td>
86 </tr><tr>
87 <td><a href="#SvnLogBrowserDialog.__resortLog">__resortLog</a></td>
88 <td>Private method to resort the log tree.</td>
89 </tr><tr>
90 <td><a href="#SvnLogBrowserDialog.__showError">__showError</a></td>
91 <td>Private slot to show an error message.</td>
92 </tr><tr>
93 <td><a href="#SvnLogBrowserDialog._reset">_reset</a></td>
94 <td>Protected method to reset the internal state of the dialog.</td>
95 </tr><tr>
96 <td><a href="#SvnLogBrowserDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td>
97 <td>Private slot called by a button of the button box clicked.</td>
98 </tr><tr>
99 <td><a href="#SvnLogBrowserDialog.on_clearRxEditButton_clicked">on_clearRxEditButton_clicked</a></td>
100 <td>Private slot called by a click of the clear RX edit button.</td>
101 </tr><tr>
102 <td><a href="#SvnLogBrowserDialog.on_diffPreviousButton_clicked">on_diffPreviousButton_clicked</a></td>
103 <td>Private slot to handle the Diff to Previous button.</td>
104 </tr><tr>
105 <td><a href="#SvnLogBrowserDialog.on_diffRevisionsButton_clicked">on_diffRevisionsButton_clicked</a></td>
106 <td>Private slot to handle the Compare Revisions button.</td>
107 </tr><tr>
108 <td><a href="#SvnLogBrowserDialog.on_fieldCombo_activated">on_fieldCombo_activated</a></td>
109 <td>Private slot called, when a new filter field is selected.</td>
110 </tr><tr>
111 <td><a href="#SvnLogBrowserDialog.on_fromDate_dateChanged">on_fromDate_dateChanged</a></td>
112 <td>Private slot called, when the from date changes.</td>
113 </tr><tr>
114 <td><a href="#SvnLogBrowserDialog.on_logTree_currentItemChanged">on_logTree_currentItemChanged</a></td>
115 <td>Private slot called, when the current item of the log tree changes.</td>
116 </tr><tr>
117 <td><a href="#SvnLogBrowserDialog.on_logTree_itemSelectionChanged">on_logTree_itemSelectionChanged</a></td>
118 <td>Private slot called, when the selection has changed.</td>
119 </tr><tr>
120 <td><a href="#SvnLogBrowserDialog.on_nextButton_clicked">on_nextButton_clicked</a></td>
121 <td>Private slot to handle the Next button.</td>
122 </tr><tr>
123 <td><a href="#SvnLogBrowserDialog.on_rxEdit_textChanged">on_rxEdit_textChanged</a></td>
124 <td>Private slot called, when a filter expression is entered.</td>
125 </tr><tr>
126 <td><a href="#SvnLogBrowserDialog.on_stopCheckBox_clicked">on_stopCheckBox_clicked</a></td>
127 <td>Private slot called, when the stop on copy/move checkbox is clicked</td>
128 </tr><tr>
129 <td><a href="#SvnLogBrowserDialog.on_toDate_dateChanged">on_toDate_dateChanged</a></td>
130 <td>Private slot called, when the from date changes.</td>
131 </tr><tr>
132 <td><a href="#SvnLogBrowserDialog.start">start</a></td>
133 <td>Public slot to start the svn log command.</td>
134 </tr>
135 </table>
136 <a NAME="SvnLogBrowserDialog.__init__" ID="SvnLogBrowserDialog.__init__"></a>
137 <h4>SvnLogBrowserDialog (Constructor)</h4>
138 <b>SvnLogBrowserDialog</b>(<i>vcs, parent = None</i>)
139 <p>
140 Constructor
141 </p><dl>
142 <dt><i>vcs</i></dt>
143 <dd>
144 reference to the vcs object
145 </dd><dt><i>parent</i></dt>
146 <dd>
147 parent widget (QWidget)
148 </dd>
149 </dl><a NAME="SvnLogBrowserDialog.__diffRevisions" ID="SvnLogBrowserDialog.__diffRevisions"></a>
150 <h4>SvnLogBrowserDialog.__diffRevisions</h4>
151 <b>__diffRevisions</b>(<i>rev1, rev2, peg_rev</i>)
152 <p>
153 Private method to do a diff of two revisions.
154 </p><dl>
155 <dt><i>rev1</i></dt>
156 <dd>
157 first revision number (integer)
158 </dd><dt><i>rev2</i></dt>
159 <dd>
160 second revision number (integer)
161 </dd><dt><i>peg_rev</i></dt>
162 <dd>
163 revision number to use as a reference (integer)
164 </dd>
165 </dl><a NAME="SvnLogBrowserDialog.__filterLogs" ID="SvnLogBrowserDialog.__filterLogs"></a>
166 <h4>SvnLogBrowserDialog.__filterLogs</h4>
167 <b>__filterLogs</b>(<i></i>)
168 <p>
169 Private method to filter the log entries.
170 </p><a NAME="SvnLogBrowserDialog.__finish" ID="SvnLogBrowserDialog.__finish"></a>
171 <h4>SvnLogBrowserDialog.__finish</h4>
172 <b>__finish</b>(<i></i>)
173 <p>
174 Private slot called when the user pressed the button.
175 </p><a NAME="SvnLogBrowserDialog.__generateFileItem" ID="SvnLogBrowserDialog.__generateFileItem"></a>
176 <h4>SvnLogBrowserDialog.__generateFileItem</h4>
177 <b>__generateFileItem</b>(<i>action, path, copyFrom, copyRev</i>)
178 <p>
179 Private method to generate a changed files tree entry.
180 </p><dl>
181 <dt><i>action</i></dt>
182 <dd>
183 indicator for the change action ("A", "D" or "M")
184 </dd><dt><i>path</i></dt>
185 <dd>
186 path of the file in the repository (string)
187 </dd><dt><i>copyFrom</i></dt>
188 <dd>
189 path the file was copied from (None, string)
190 </dd><dt><i>copyRev</i></dt>
191 <dd>
192 revision the file was copied from (None, string)
193 </dd>
194 </dl><dl>
195 <dt>Returns:</dt>
196 <dd>
197 reference to the generated item (QTreeWidgetItem)
198 </dd>
199 </dl><a NAME="SvnLogBrowserDialog.__generateLogItem" ID="SvnLogBrowserDialog.__generateLogItem"></a>
200 <h4>SvnLogBrowserDialog.__generateLogItem</h4>
201 <b>__generateLogItem</b>(<i>author, date, message, revision, changedPaths</i>)
202 <p>
203 Private method to generate a log tree entry.
204 </p><dl>
205 <dt><i>author</i></dt>
206 <dd>
207 author info (string)
208 </dd><dt><i>date</i></dt>
209 <dd>
210 date info (integer)
211 </dd><dt><i>message</i></dt>
212 <dd>
213 text of the log message (string)
214 </dd><dt><i>revision</i></dt>
215 <dd>
216 revision info (string or pysvn.opt_revision_kind)
217 </dd><dt><i>changedPaths</i></dt>
218 <dd>
219 list of pysvn dictionary like objects containing
220 info about the changed files/directories
221 </dd>
222 </dl><dl>
223 <dt>Returns:</dt>
224 <dd>
225 reference to the generated item (QTreeWidgetItem)
226 </dd>
227 </dl><a NAME="SvnLogBrowserDialog.__getLogEntries" ID="SvnLogBrowserDialog.__getLogEntries"></a>
228 <h4>SvnLogBrowserDialog.__getLogEntries</h4>
229 <b>__getLogEntries</b>(<i>startRev = None</i>)
230 <p>
231 Private method to retrieve log entries from the repository.
232 </p><dl>
233 <dt><i>startRev</i></dt>
234 <dd>
235 revision number to start from (integer, string)
236 </dd>
237 </dl><a NAME="SvnLogBrowserDialog.__resizeColumnsFiles" ID="SvnLogBrowserDialog.__resizeColumnsFiles"></a>
238 <h4>SvnLogBrowserDialog.__resizeColumnsFiles</h4>
239 <b>__resizeColumnsFiles</b>(<i></i>)
240 <p>
241 Private method to resize the changed files tree columns.
242 </p><a NAME="SvnLogBrowserDialog.__resizeColumnsLog" ID="SvnLogBrowserDialog.__resizeColumnsLog"></a>
243 <h4>SvnLogBrowserDialog.__resizeColumnsLog</h4>
244 <b>__resizeColumnsLog</b>(<i></i>)
245 <p>
246 Private method to resize the log tree columns.
247 </p><a NAME="SvnLogBrowserDialog.__resortFiles" ID="SvnLogBrowserDialog.__resortFiles"></a>
248 <h4>SvnLogBrowserDialog.__resortFiles</h4>
249 <b>__resortFiles</b>(<i></i>)
250 <p>
251 Private method to resort the changed files tree.
252 </p><a NAME="SvnLogBrowserDialog.__resortLog" ID="SvnLogBrowserDialog.__resortLog"></a>
253 <h4>SvnLogBrowserDialog.__resortLog</h4>
254 <b>__resortLog</b>(<i></i>)
255 <p>
256 Private method to resort the log tree.
257 </p><a NAME="SvnLogBrowserDialog.__showError" ID="SvnLogBrowserDialog.__showError"></a>
258 <h4>SvnLogBrowserDialog.__showError</h4>
259 <b>__showError</b>(<i>msg</i>)
260 <p>
261 Private slot to show an error message.
262 </p><dl>
263 <dt><i>msg</i></dt>
264 <dd>
265 error message to show (string)
266 </dd>
267 </dl><a NAME="SvnLogBrowserDialog._reset" ID="SvnLogBrowserDialog._reset"></a>
268 <h4>SvnLogBrowserDialog._reset</h4>
269 <b>_reset</b>(<i></i>)
270 <p>
271 Protected method to reset the internal state of the dialog.
272 </p><a NAME="SvnLogBrowserDialog.on_buttonBox_clicked" ID="SvnLogBrowserDialog.on_buttonBox_clicked"></a>
273 <h4>SvnLogBrowserDialog.on_buttonBox_clicked</h4>
274 <b>on_buttonBox_clicked</b>(<i>button</i>)
275 <p>
276 Private slot called by a button of the button box clicked.
277 </p><dl>
278 <dt><i>button</i></dt>
279 <dd>
280 button that was clicked (QAbstractButton)
281 </dd>
282 </dl><a NAME="SvnLogBrowserDialog.on_clearRxEditButton_clicked" ID="SvnLogBrowserDialog.on_clearRxEditButton_clicked"></a>
283 <h4>SvnLogBrowserDialog.on_clearRxEditButton_clicked</h4>
284 <b>on_clearRxEditButton_clicked</b>(<i></i>)
285 <p>
286 Private slot called by a click of the clear RX edit button.
287 </p><a NAME="SvnLogBrowserDialog.on_diffPreviousButton_clicked" ID="SvnLogBrowserDialog.on_diffPreviousButton_clicked"></a>
288 <h4>SvnLogBrowserDialog.on_diffPreviousButton_clicked</h4>
289 <b>on_diffPreviousButton_clicked</b>(<i></i>)
290 <p>
291 Private slot to handle the Diff to Previous button.
292 </p><a NAME="SvnLogBrowserDialog.on_diffRevisionsButton_clicked" ID="SvnLogBrowserDialog.on_diffRevisionsButton_clicked"></a>
293 <h4>SvnLogBrowserDialog.on_diffRevisionsButton_clicked</h4>
294 <b>on_diffRevisionsButton_clicked</b>(<i></i>)
295 <p>
296 Private slot to handle the Compare Revisions button.
297 </p><a NAME="SvnLogBrowserDialog.on_fieldCombo_activated" ID="SvnLogBrowserDialog.on_fieldCombo_activated"></a>
298 <h4>SvnLogBrowserDialog.on_fieldCombo_activated</h4>
299 <b>on_fieldCombo_activated</b>(<i>txt</i>)
300 <p>
301 Private slot called, when a new filter field is selected.
302 </p><dl>
303 <dt><i>txt</i></dt>
304 <dd>
305 text of the selected field (string)
306 </dd>
307 </dl><a NAME="SvnLogBrowserDialog.on_fromDate_dateChanged" ID="SvnLogBrowserDialog.on_fromDate_dateChanged"></a>
308 <h4>SvnLogBrowserDialog.on_fromDate_dateChanged</h4>
309 <b>on_fromDate_dateChanged</b>(<i>date</i>)
310 <p>
311 Private slot called, when the from date changes.
312 </p><dl>
313 <dt><i>date</i></dt>
314 <dd>
315 new date (QDate)
316 </dd>
317 </dl><a NAME="SvnLogBrowserDialog.on_logTree_currentItemChanged" ID="SvnLogBrowserDialog.on_logTree_currentItemChanged"></a>
318 <h4>SvnLogBrowserDialog.on_logTree_currentItemChanged</h4>
319 <b>on_logTree_currentItemChanged</b>(<i>current, previous</i>)
320 <p>
321 Private slot called, when the current item of the log tree changes.
322 </p><dl>
323 <dt><i>current</i></dt>
324 <dd>
325 reference to the new current item (QTreeWidgetItem)
326 </dd><dt><i>previous</i></dt>
327 <dd>
328 reference to the old current item (QTreeWidgetItem)
329 </dd>
330 </dl><a NAME="SvnLogBrowserDialog.on_logTree_itemSelectionChanged" ID="SvnLogBrowserDialog.on_logTree_itemSelectionChanged"></a>
331 <h4>SvnLogBrowserDialog.on_logTree_itemSelectionChanged</h4>
332 <b>on_logTree_itemSelectionChanged</b>(<i></i>)
333 <p>
334 Private slot called, when the selection has changed.
335 </p><a NAME="SvnLogBrowserDialog.on_nextButton_clicked" ID="SvnLogBrowserDialog.on_nextButton_clicked"></a>
336 <h4>SvnLogBrowserDialog.on_nextButton_clicked</h4>
337 <b>on_nextButton_clicked</b>(<i></i>)
338 <p>
339 Private slot to handle the Next button.
340 </p><a NAME="SvnLogBrowserDialog.on_rxEdit_textChanged" ID="SvnLogBrowserDialog.on_rxEdit_textChanged"></a>
341 <h4>SvnLogBrowserDialog.on_rxEdit_textChanged</h4>
342 <b>on_rxEdit_textChanged</b>(<i>txt</i>)
343 <p>
344 Private slot called, when a filter expression is entered.
345 </p><dl>
346 <dt><i>txt</i></dt>
347 <dd>
348 filter expression (string)
349 </dd>
350 </dl><a NAME="SvnLogBrowserDialog.on_stopCheckBox_clicked" ID="SvnLogBrowserDialog.on_stopCheckBox_clicked"></a>
351 <h4>SvnLogBrowserDialog.on_stopCheckBox_clicked</h4>
352 <b>on_stopCheckBox_clicked</b>(<i>checked</i>)
353 <p>
354 Private slot called, when the stop on copy/move checkbox is clicked
355 </p><a NAME="SvnLogBrowserDialog.on_toDate_dateChanged" ID="SvnLogBrowserDialog.on_toDate_dateChanged"></a>
356 <h4>SvnLogBrowserDialog.on_toDate_dateChanged</h4>
357 <b>on_toDate_dateChanged</b>(<i>date</i>)
358 <p>
359 Private slot called, when the from date changes.
360 </p><dl>
361 <dt><i>date</i></dt>
362 <dd>
363 new date (QDate)
364 </dd>
365 </dl><a NAME="SvnLogBrowserDialog.start" ID="SvnLogBrowserDialog.start"></a>
366 <h4>SvnLogBrowserDialog.start</h4>
367 <b>start</b>(<i>fn</i>)
368 <p>
369 Public slot to start the svn log command.
370 </p><dl>
371 <dt><i>fn</i></dt>
372 <dd>
373 filename to show the log for (string)
374 </dd>
375 </dl>
376 <div align="right"><a href="#top">Up</a></div>
377 <hr />
378 </body></html>

eric ide

mercurial