|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Plugins.VcsPlugins.vcsPySvn.SvnRepoBrowserDialog</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> |
|
22 <a NAME="top" ID="top"></a> |
|
23 <h1>eric7.Plugins.VcsPlugins.vcsPySvn.SvnRepoBrowserDialog</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing the subversion repository browser dialog. |
|
27 </p> |
|
28 <h3>Global Attributes</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <h3>Classes</h3> |
|
34 |
|
35 <table> |
|
36 |
|
37 <tr> |
|
38 <td><a href="#SvnRepoBrowserDialog">SvnRepoBrowserDialog</a></td> |
|
39 <td>Class implementing the subversion repository browser dialog.</td> |
|
40 </tr> |
|
41 </table> |
|
42 <h3>Functions</h3> |
|
43 |
|
44 <table> |
|
45 <tr><td>None</td></tr> |
|
46 </table> |
|
47 <hr /> |
|
48 <hr /> |
|
49 <a NAME="SvnRepoBrowserDialog" ID="SvnRepoBrowserDialog"></a> |
|
50 <h2>SvnRepoBrowserDialog</h2> |
|
51 |
|
52 <p> |
|
53 Class implementing the subversion repository browser dialog. |
|
54 </p> |
|
55 <h3>Derived from</h3> |
|
56 QDialog, SvnDialogMixin, Ui_SvnRepoBrowserDialog |
|
57 <h3>Class Attributes</h3> |
|
58 |
|
59 <table> |
|
60 <tr><td>None</td></tr> |
|
61 </table> |
|
62 <h3>Class Methods</h3> |
|
63 |
|
64 <table> |
|
65 <tr><td>None</td></tr> |
|
66 </table> |
|
67 <h3>Methods</h3> |
|
68 |
|
69 <table> |
|
70 |
|
71 <tr> |
|
72 <td><a href="#SvnRepoBrowserDialog.__init__">SvnRepoBrowserDialog</a></td> |
|
73 <td>Constructor</td> |
|
74 </tr> |
|
75 <tr> |
|
76 <td><a href="#SvnRepoBrowserDialog.__generateItem">__generateItem</a></td> |
|
77 <td>Private method to generate a tree item in the repository tree.</td> |
|
78 </tr> |
|
79 <tr> |
|
80 <td><a href="#SvnRepoBrowserDialog.__listRepo">__listRepo</a></td> |
|
81 <td>Private method to perform the svn list command.</td> |
|
82 </tr> |
|
83 <tr> |
|
84 <td><a href="#SvnRepoBrowserDialog.__normalizeUrl">__normalizeUrl</a></td> |
|
85 <td>Private method to normalite the url.</td> |
|
86 </tr> |
|
87 <tr> |
|
88 <td><a href="#SvnRepoBrowserDialog.__resizeColumns">__resizeColumns</a></td> |
|
89 <td>Private method to resize the tree columns.</td> |
|
90 </tr> |
|
91 <tr> |
|
92 <td><a href="#SvnRepoBrowserDialog.__resort">__resort</a></td> |
|
93 <td>Private method to resort the tree.</td> |
|
94 </tr> |
|
95 <tr> |
|
96 <td><a href="#SvnRepoBrowserDialog.__showError">__showError</a></td> |
|
97 <td>Private slot to show an error message.</td> |
|
98 </tr> |
|
99 <tr> |
|
100 <td><a href="#SvnRepoBrowserDialog.accept">accept</a></td> |
|
101 <td>Public slot called when the dialog is accepted.</td> |
|
102 </tr> |
|
103 <tr> |
|
104 <td><a href="#SvnRepoBrowserDialog.getSelectedUrl">getSelectedUrl</a></td> |
|
105 <td>Public method to retrieve the selected repository URL.</td> |
|
106 </tr> |
|
107 <tr> |
|
108 <td><a href="#SvnRepoBrowserDialog.on_repoTree_itemCollapsed">on_repoTree_itemCollapsed</a></td> |
|
109 <td>Private slot called when an item is collapsed.</td> |
|
110 </tr> |
|
111 <tr> |
|
112 <td><a href="#SvnRepoBrowserDialog.on_repoTree_itemExpanded">on_repoTree_itemExpanded</a></td> |
|
113 <td>Private slot called when an item is expanded.</td> |
|
114 </tr> |
|
115 <tr> |
|
116 <td><a href="#SvnRepoBrowserDialog.on_repoTree_itemSelectionChanged">on_repoTree_itemSelectionChanged</a></td> |
|
117 <td>Private slot called when the selection changes.</td> |
|
118 </tr> |
|
119 <tr> |
|
120 <td><a href="#SvnRepoBrowserDialog.on_urlCombo_currentIndexChanged">on_urlCombo_currentIndexChanged</a></td> |
|
121 <td>Private slot called, when a new repository URL is entered or selected.</td> |
|
122 </tr> |
|
123 <tr> |
|
124 <td><a href="#SvnRepoBrowserDialog.start">start</a></td> |
|
125 <td>Public slot to start the svn info command.</td> |
|
126 </tr> |
|
127 </table> |
|
128 <h3>Static Methods</h3> |
|
129 |
|
130 <table> |
|
131 <tr><td>None</td></tr> |
|
132 </table> |
|
133 |
|
134 <a NAME="SvnRepoBrowserDialog.__init__" ID="SvnRepoBrowserDialog.__init__"></a> |
|
135 <h4>SvnRepoBrowserDialog (Constructor)</h4> |
|
136 <b>SvnRepoBrowserDialog</b>(<i>vcs, mode="browse", parent=None</i>) |
|
137 |
|
138 <p> |
|
139 Constructor |
|
140 </p> |
|
141 <dl> |
|
142 |
|
143 <dt><i>vcs</i></dt> |
|
144 <dd> |
|
145 reference to the vcs object |
|
146 </dd> |
|
147 <dt><i>mode</i></dt> |
|
148 <dd> |
|
149 mode of the dialog (string, "browse" or "select") |
|
150 </dd> |
|
151 <dt><i>parent</i></dt> |
|
152 <dd> |
|
153 parent widget (QWidget) |
|
154 </dd> |
|
155 </dl> |
|
156 <a NAME="SvnRepoBrowserDialog.__generateItem" ID="SvnRepoBrowserDialog.__generateItem"></a> |
|
157 <h4>SvnRepoBrowserDialog.__generateItem</h4> |
|
158 <b>__generateItem</b>(<i>parent, repopath, revision, author, size, date, nodekind, url</i>) |
|
159 |
|
160 <p> |
|
161 Private method to generate a tree item in the repository tree. |
|
162 </p> |
|
163 <dl> |
|
164 |
|
165 <dt><i>parent</i></dt> |
|
166 <dd> |
|
167 parent of the item to be created (QTreeWidget or |
|
168 QTreeWidgetItem) |
|
169 </dd> |
|
170 <dt><i>repopath</i></dt> |
|
171 <dd> |
|
172 path of the item (string) |
|
173 </dd> |
|
174 <dt><i>revision</i></dt> |
|
175 <dd> |
|
176 revision info (string or pysvn.opt_revision_kind) |
|
177 </dd> |
|
178 <dt><i>author</i></dt> |
|
179 <dd> |
|
180 author info (string) |
|
181 </dd> |
|
182 <dt><i>size</i></dt> |
|
183 <dd> |
|
184 size info (integer) |
|
185 </dd> |
|
186 <dt><i>date</i></dt> |
|
187 <dd> |
|
188 date info (integer) |
|
189 </dd> |
|
190 <dt><i>nodekind</i></dt> |
|
191 <dd> |
|
192 node kind info (pysvn.node_kind) |
|
193 </dd> |
|
194 <dt><i>url</i></dt> |
|
195 <dd> |
|
196 url of the entry (string) |
|
197 </dd> |
|
198 </dl> |
|
199 <dl> |
|
200 <dt>Return:</dt> |
|
201 <dd> |
|
202 reference to the generated item (QTreeWidgetItem) |
|
203 </dd> |
|
204 </dl> |
|
205 <a NAME="SvnRepoBrowserDialog.__listRepo" ID="SvnRepoBrowserDialog.__listRepo"></a> |
|
206 <h4>SvnRepoBrowserDialog.__listRepo</h4> |
|
207 <b>__listRepo</b>(<i>url, parent=None</i>) |
|
208 |
|
209 <p> |
|
210 Private method to perform the svn list command. |
|
211 </p> |
|
212 <dl> |
|
213 |
|
214 <dt><i>url</i></dt> |
|
215 <dd> |
|
216 the repository URL to browser (string) |
|
217 </dd> |
|
218 <dt><i>parent</i></dt> |
|
219 <dd> |
|
220 reference to the item, the data should be appended to |
|
221 (QTreeWidget or QTreeWidgetItem) |
|
222 </dd> |
|
223 </dl> |
|
224 <a NAME="SvnRepoBrowserDialog.__normalizeUrl" ID="SvnRepoBrowserDialog.__normalizeUrl"></a> |
|
225 <h4>SvnRepoBrowserDialog.__normalizeUrl</h4> |
|
226 <b>__normalizeUrl</b>(<i>url</i>) |
|
227 |
|
228 <p> |
|
229 Private method to normalite the url. |
|
230 </p> |
|
231 <dl> |
|
232 |
|
233 <dt><i>url</i></dt> |
|
234 <dd> |
|
235 the url to normalize (string) |
|
236 </dd> |
|
237 </dl> |
|
238 <dl> |
|
239 <dt>Return:</dt> |
|
240 <dd> |
|
241 normalized URL (string) |
|
242 </dd> |
|
243 </dl> |
|
244 <a NAME="SvnRepoBrowserDialog.__resizeColumns" ID="SvnRepoBrowserDialog.__resizeColumns"></a> |
|
245 <h4>SvnRepoBrowserDialog.__resizeColumns</h4> |
|
246 <b>__resizeColumns</b>(<i></i>) |
|
247 |
|
248 <p> |
|
249 Private method to resize the tree columns. |
|
250 </p> |
|
251 <a NAME="SvnRepoBrowserDialog.__resort" ID="SvnRepoBrowserDialog.__resort"></a> |
|
252 <h4>SvnRepoBrowserDialog.__resort</h4> |
|
253 <b>__resort</b>(<i></i>) |
|
254 |
|
255 <p> |
|
256 Private method to resort the tree. |
|
257 </p> |
|
258 <a NAME="SvnRepoBrowserDialog.__showError" ID="SvnRepoBrowserDialog.__showError"></a> |
|
259 <h4>SvnRepoBrowserDialog.__showError</h4> |
|
260 <b>__showError</b>(<i>msg</i>) |
|
261 |
|
262 <p> |
|
263 Private slot to show an error message. |
|
264 </p> |
|
265 <dl> |
|
266 |
|
267 <dt><i>msg</i></dt> |
|
268 <dd> |
|
269 error message to show (string) |
|
270 </dd> |
|
271 </dl> |
|
272 <a NAME="SvnRepoBrowserDialog.accept" ID="SvnRepoBrowserDialog.accept"></a> |
|
273 <h4>SvnRepoBrowserDialog.accept</h4> |
|
274 <b>accept</b>(<i></i>) |
|
275 |
|
276 <p> |
|
277 Public slot called when the dialog is accepted. |
|
278 </p> |
|
279 <a NAME="SvnRepoBrowserDialog.getSelectedUrl" ID="SvnRepoBrowserDialog.getSelectedUrl"></a> |
|
280 <h4>SvnRepoBrowserDialog.getSelectedUrl</h4> |
|
281 <b>getSelectedUrl</b>(<i></i>) |
|
282 |
|
283 <p> |
|
284 Public method to retrieve the selected repository URL. |
|
285 </p> |
|
286 <dl> |
|
287 <dt>Return:</dt> |
|
288 <dd> |
|
289 the selected repository URL (string) |
|
290 </dd> |
|
291 </dl> |
|
292 <a NAME="SvnRepoBrowserDialog.on_repoTree_itemCollapsed" ID="SvnRepoBrowserDialog.on_repoTree_itemCollapsed"></a> |
|
293 <h4>SvnRepoBrowserDialog.on_repoTree_itemCollapsed</h4> |
|
294 <b>on_repoTree_itemCollapsed</b>(<i>item</i>) |
|
295 |
|
296 <p> |
|
297 Private slot called when an item is collapsed. |
|
298 </p> |
|
299 <dl> |
|
300 |
|
301 <dt><i>item</i></dt> |
|
302 <dd> |
|
303 reference to the item to be collapsed (QTreeWidgetItem) |
|
304 </dd> |
|
305 </dl> |
|
306 <a NAME="SvnRepoBrowserDialog.on_repoTree_itemExpanded" ID="SvnRepoBrowserDialog.on_repoTree_itemExpanded"></a> |
|
307 <h4>SvnRepoBrowserDialog.on_repoTree_itemExpanded</h4> |
|
308 <b>on_repoTree_itemExpanded</b>(<i>item</i>) |
|
309 |
|
310 <p> |
|
311 Private slot called when an item is expanded. |
|
312 </p> |
|
313 <dl> |
|
314 |
|
315 <dt><i>item</i></dt> |
|
316 <dd> |
|
317 reference to the item to be expanded (QTreeWidgetItem) |
|
318 </dd> |
|
319 </dl> |
|
320 <a NAME="SvnRepoBrowserDialog.on_repoTree_itemSelectionChanged" ID="SvnRepoBrowserDialog.on_repoTree_itemSelectionChanged"></a> |
|
321 <h4>SvnRepoBrowserDialog.on_repoTree_itemSelectionChanged</h4> |
|
322 <b>on_repoTree_itemSelectionChanged</b>(<i></i>) |
|
323 |
|
324 <p> |
|
325 Private slot called when the selection changes. |
|
326 </p> |
|
327 <a NAME="SvnRepoBrowserDialog.on_urlCombo_currentIndexChanged" ID="SvnRepoBrowserDialog.on_urlCombo_currentIndexChanged"></a> |
|
328 <h4>SvnRepoBrowserDialog.on_urlCombo_currentIndexChanged</h4> |
|
329 <b>on_urlCombo_currentIndexChanged</b>(<i>index</i>) |
|
330 |
|
331 <p> |
|
332 Private slot called, when a new repository URL is entered or selected. |
|
333 </p> |
|
334 <dl> |
|
335 |
|
336 <dt><i>index</i> (int)</dt> |
|
337 <dd> |
|
338 of the current item |
|
339 </dd> |
|
340 </dl> |
|
341 <a NAME="SvnRepoBrowserDialog.start" ID="SvnRepoBrowserDialog.start"></a> |
|
342 <h4>SvnRepoBrowserDialog.start</h4> |
|
343 <b>start</b>(<i>url</i>) |
|
344 |
|
345 <p> |
|
346 Public slot to start the svn info command. |
|
347 </p> |
|
348 <dl> |
|
349 |
|
350 <dt><i>url</i></dt> |
|
351 <dd> |
|
352 the repository URL to browser (string) |
|
353 </dd> |
|
354 </dl> |
|
355 <div align="right"><a href="#top">Up</a></div> |
|
356 <hr /> |
|
357 </body></html> |