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