|
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>eric5.Plugins.VcsPlugins.vcsSubversion.SvnRepoBrowserDialog</title> |
|
6 <style> |
|
7 b'body {\n background:white;\n margin: 0em 1em 10em 1em;\n color: black;\n}\n\nh1 { color: white; background: #4FA4FF; }\nh2 { color: white; background: #4FA4FF; }\nh3 { color: white; background: #00557F; }\nh4 { color: white; background: #00557F; }\n \na { color: #AA5500; }\n' |
|
8 </style> |
|
9 </head> |
|
10 <body><a NAME="top" ID="top"></a> |
|
11 <h1>eric5.Plugins.VcsPlugins.vcsSubversion.SvnRepoBrowserDialog</h1> |
|
12 <p> |
|
13 Module implementing the subversion repository browser dialog. |
|
14 </p> |
|
15 <h3>Global Attributes</h3> |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 <table> |
|
21 <tr> |
|
22 <td><a href="#SvnRepoBrowserDialog">SvnRepoBrowserDialog</a></td> |
|
23 <td>Class implementing the subversion repository browser dialog.</td> |
|
24 </tr> |
|
25 </table> |
|
26 <h3>Functions</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <hr /><hr /> |
|
31 <a NAME="SvnRepoBrowserDialog" ID="SvnRepoBrowserDialog"></a> |
|
32 <h2>SvnRepoBrowserDialog</h2> |
|
33 <p> |
|
34 Class implementing the subversion repository browser dialog. |
|
35 </p> |
|
36 <h3>Derived from</h3> |
|
37 QDialog, Ui_SvnRepoBrowserDialog |
|
38 <h3>Class Attributes</h3> |
|
39 <table> |
|
40 <tr><td>None</td></tr> |
|
41 </table> |
|
42 <h3>Methods</h3> |
|
43 <table> |
|
44 <tr> |
|
45 <td><a href="#SvnRepoBrowserDialog.__init__">SvnRepoBrowserDialog</a></td> |
|
46 <td>Constructor</td> |
|
47 </tr><tr> |
|
48 <td><a href="#SvnRepoBrowserDialog.__finish">__finish</a></td> |
|
49 <td>Private slot called when the process finished or the user pressed the button.</td> |
|
50 </tr><tr> |
|
51 <td><a href="#SvnRepoBrowserDialog.__generateItem">__generateItem</a></td> |
|
52 <td>Private method to generate a tree item in the repository tree.</td> |
|
53 </tr><tr> |
|
54 <td><a href="#SvnRepoBrowserDialog.__listRepo">__listRepo</a></td> |
|
55 <td>Private method to perform the svn list command.</td> |
|
56 </tr><tr> |
|
57 <td><a href="#SvnRepoBrowserDialog.__normalizeUrl">__normalizeUrl</a></td> |
|
58 <td>Private method to normalite the url.</td> |
|
59 </tr><tr> |
|
60 <td><a href="#SvnRepoBrowserDialog.__procFinished">__procFinished</a></td> |
|
61 <td>Private slot connected to the finished signal.</td> |
|
62 </tr><tr> |
|
63 <td><a href="#SvnRepoBrowserDialog.__readStderr">__readStderr</a></td> |
|
64 <td>Private slot to handle the readyReadStandardError signal.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#SvnRepoBrowserDialog.__readStdout">__readStdout</a></td> |
|
67 <td>Private slot to handle the readyReadStandardOutput signal.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#SvnRepoBrowserDialog.__repoRoot">__repoRoot</a></td> |
|
70 <td>Private method to get the repository root using the svn info command.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#SvnRepoBrowserDialog.__resizeColumns">__resizeColumns</a></td> |
|
73 <td>Private method to resize the tree columns.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#SvnRepoBrowserDialog.__resort">__resort</a></td> |
|
76 <td>Private method to resort the tree.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#SvnRepoBrowserDialog.accept">accept</a></td> |
|
79 <td>Public slot called when the dialog is accepted.</td> |
|
80 </tr><tr> |
|
81 <td><a href="#SvnRepoBrowserDialog.closeEvent">closeEvent</a></td> |
|
82 <td>Private slot implementing a close event handler.</td> |
|
83 </tr><tr> |
|
84 <td><a href="#SvnRepoBrowserDialog.getSelectedUrl">getSelectedUrl</a></td> |
|
85 <td>Public method to retrieve the selected repository URL.</td> |
|
86 </tr><tr> |
|
87 <td><a href="#SvnRepoBrowserDialog.keyPressEvent">keyPressEvent</a></td> |
|
88 <td>Protected slot to handle a key press event.</td> |
|
89 </tr><tr> |
|
90 <td><a href="#SvnRepoBrowserDialog.on_input_returnPressed">on_input_returnPressed</a></td> |
|
91 <td>Private slot to handle the press of the return key in the input field.</td> |
|
92 </tr><tr> |
|
93 <td><a href="#SvnRepoBrowserDialog.on_passwordCheckBox_toggled">on_passwordCheckBox_toggled</a></td> |
|
94 <td>Private slot to handle the password checkbox toggled.</td> |
|
95 </tr><tr> |
|
96 <td><a href="#SvnRepoBrowserDialog.on_repoTree_itemCollapsed">on_repoTree_itemCollapsed</a></td> |
|
97 <td>Private slot called when an item is collapsed.</td> |
|
98 </tr><tr> |
|
99 <td><a href="#SvnRepoBrowserDialog.on_repoTree_itemExpanded">on_repoTree_itemExpanded</a></td> |
|
100 <td>Private slot called when an item is expanded.</td> |
|
101 </tr><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><tr> |
|
105 <td><a href="#SvnRepoBrowserDialog.on_sendButton_clicked">on_sendButton_clicked</a></td> |
|
106 <td>Private slot to send the input to the subversion process.</td> |
|
107 </tr><tr> |
|
108 <td><a href="#SvnRepoBrowserDialog.on_urlCombo_currentIndexChanged">on_urlCombo_currentIndexChanged</a></td> |
|
109 <td>Private slot called, when a new repository URL is entered or selected.</td> |
|
110 </tr><tr> |
|
111 <td><a href="#SvnRepoBrowserDialog.start">start</a></td> |
|
112 <td>Public slot to start the svn info command.</td> |
|
113 </tr> |
|
114 </table> |
|
115 <a NAME="SvnRepoBrowserDialog.__init__" ID="SvnRepoBrowserDialog.__init__"></a> |
|
116 <h4>SvnRepoBrowserDialog (Constructor)</h4> |
|
117 <b>SvnRepoBrowserDialog</b>(<i>vcs, mode = "browse", parent = None</i>) |
|
118 <p> |
|
119 Constructor |
|
120 </p><dl> |
|
121 <dt><i>vcs</i></dt> |
|
122 <dd> |
|
123 reference to the vcs object |
|
124 </dd><dt><i>mode</i></dt> |
|
125 <dd> |
|
126 mode of the dialog (string, "browse" or "select") |
|
127 </dd><dt><i>parent</i></dt> |
|
128 <dd> |
|
129 parent widget (QWidget) |
|
130 </dd> |
|
131 </dl><a NAME="SvnRepoBrowserDialog.__finish" ID="SvnRepoBrowserDialog.__finish"></a> |
|
132 <h4>SvnRepoBrowserDialog.__finish</h4> |
|
133 <b>__finish</b>(<i></i>) |
|
134 <p> |
|
135 Private slot called when the process finished or the user pressed the button. |
|
136 </p><a NAME="SvnRepoBrowserDialog.__generateItem" ID="SvnRepoBrowserDialog.__generateItem"></a> |
|
137 <h4>SvnRepoBrowserDialog.__generateItem</h4> |
|
138 <b>__generateItem</b>(<i>repopath, revision, author, size, date, nodekind, url</i>) |
|
139 <p> |
|
140 Private method to generate a tree item in the repository tree. |
|
141 </p><dl> |
|
142 <dt><i>parent</i></dt> |
|
143 <dd> |
|
144 parent of the item to be created (QTreeWidget or QTreeWidgetItem) |
|
145 </dd><dt><i>repopath</i></dt> |
|
146 <dd> |
|
147 path of the item (string) |
|
148 </dd><dt><i>revision</i></dt> |
|
149 <dd> |
|
150 revision info (string) |
|
151 </dd><dt><i>author</i></dt> |
|
152 <dd> |
|
153 author info (string) |
|
154 </dd><dt><i>size</i></dt> |
|
155 <dd> |
|
156 size info (string) |
|
157 </dd><dt><i>date</i></dt> |
|
158 <dd> |
|
159 date info (string) |
|
160 </dd><dt><i>nodekind</i></dt> |
|
161 <dd> |
|
162 node kind info (string, "dir" or "file") |
|
163 </dd><dt><i>url</i></dt> |
|
164 <dd> |
|
165 url of the entry (string) |
|
166 </dd> |
|
167 </dl><dl> |
|
168 <dt>Returns:</dt> |
|
169 <dd> |
|
170 reference to the generated item (QTreeWidgetItem) |
|
171 </dd> |
|
172 </dl><a NAME="SvnRepoBrowserDialog.__listRepo" ID="SvnRepoBrowserDialog.__listRepo"></a> |
|
173 <h4>SvnRepoBrowserDialog.__listRepo</h4> |
|
174 <b>__listRepo</b>(<i>url, parent = None</i>) |
|
175 <p> |
|
176 Private method to perform the svn list command. |
|
177 </p><dl> |
|
178 <dt><i>url</i></dt> |
|
179 <dd> |
|
180 the repository URL to browse (string) |
|
181 </dd><dt><i>parent</i></dt> |
|
182 <dd> |
|
183 reference to the item, the data should be appended to |
|
184 (QTreeWidget or QTreeWidgetItem) |
|
185 </dd> |
|
186 </dl><a NAME="SvnRepoBrowserDialog.__normalizeUrl" ID="SvnRepoBrowserDialog.__normalizeUrl"></a> |
|
187 <h4>SvnRepoBrowserDialog.__normalizeUrl</h4> |
|
188 <b>__normalizeUrl</b>(<i>url</i>) |
|
189 <p> |
|
190 Private method to normalite the url. |
|
191 </p><dl> |
|
192 <dt><i>url</i></dt> |
|
193 <dd> |
|
194 the url to normalize (string) |
|
195 </dd> |
|
196 </dl><dl> |
|
197 <dt>Returns:</dt> |
|
198 <dd> |
|
199 normalized URL (string) |
|
200 </dd> |
|
201 </dl><a NAME="SvnRepoBrowserDialog.__procFinished" ID="SvnRepoBrowserDialog.__procFinished"></a> |
|
202 <h4>SvnRepoBrowserDialog.__procFinished</h4> |
|
203 <b>__procFinished</b>(<i>exitCode, exitStatus</i>) |
|
204 <p> |
|
205 Private slot connected to the finished signal. |
|
206 </p><dl> |
|
207 <dt><i>exitCode</i></dt> |
|
208 <dd> |
|
209 exit code of the process (integer) |
|
210 </dd><dt><i>exitStatus</i></dt> |
|
211 <dd> |
|
212 exit status of the process (QProcess.ExitStatus) |
|
213 </dd> |
|
214 </dl><a NAME="SvnRepoBrowserDialog.__readStderr" ID="SvnRepoBrowserDialog.__readStderr"></a> |
|
215 <h4>SvnRepoBrowserDialog.__readStderr</h4> |
|
216 <b>__readStderr</b>(<i></i>) |
|
217 <p> |
|
218 Private slot to handle the readyReadStandardError signal. |
|
219 </p><p> |
|
220 It reads the error output of the process and inserts it into the |
|
221 error pane. |
|
222 </p><a NAME="SvnRepoBrowserDialog.__readStdout" ID="SvnRepoBrowserDialog.__readStdout"></a> |
|
223 <h4>SvnRepoBrowserDialog.__readStdout</h4> |
|
224 <b>__readStdout</b>(<i></i>) |
|
225 <p> |
|
226 Private slot to handle the readyReadStandardOutput signal. |
|
227 </p><p> |
|
228 It reads the output of the process, formats it and inserts it into |
|
229 the contents pane. |
|
230 </p><a NAME="SvnRepoBrowserDialog.__repoRoot" ID="SvnRepoBrowserDialog.__repoRoot"></a> |
|
231 <h4>SvnRepoBrowserDialog.__repoRoot</h4> |
|
232 <b>__repoRoot</b>(<i>url</i>) |
|
233 <p> |
|
234 Private method to get the repository root using the svn info command. |
|
235 </p><dl> |
|
236 <dt><i>url</i></dt> |
|
237 <dd> |
|
238 the repository URL to browser (string) |
|
239 </dd> |
|
240 </dl><dl> |
|
241 <dt>Returns:</dt> |
|
242 <dd> |
|
243 repository root (string) |
|
244 </dd> |
|
245 </dl><a NAME="SvnRepoBrowserDialog.__resizeColumns" ID="SvnRepoBrowserDialog.__resizeColumns"></a> |
|
246 <h4>SvnRepoBrowserDialog.__resizeColumns</h4> |
|
247 <b>__resizeColumns</b>(<i></i>) |
|
248 <p> |
|
249 Private method to resize the tree columns. |
|
250 </p><a NAME="SvnRepoBrowserDialog.__resort" ID="SvnRepoBrowserDialog.__resort"></a> |
|
251 <h4>SvnRepoBrowserDialog.__resort</h4> |
|
252 <b>__resort</b>(<i></i>) |
|
253 <p> |
|
254 Private method to resort the tree. |
|
255 </p><a NAME="SvnRepoBrowserDialog.accept" ID="SvnRepoBrowserDialog.accept"></a> |
|
256 <h4>SvnRepoBrowserDialog.accept</h4> |
|
257 <b>accept</b>(<i></i>) |
|
258 <p> |
|
259 Public slot called when the dialog is accepted. |
|
260 </p><a NAME="SvnRepoBrowserDialog.closeEvent" ID="SvnRepoBrowserDialog.closeEvent"></a> |
|
261 <h4>SvnRepoBrowserDialog.closeEvent</h4> |
|
262 <b>closeEvent</b>(<i>e</i>) |
|
263 <p> |
|
264 Private slot implementing a close event handler. |
|
265 </p><dl> |
|
266 <dt><i>e</i></dt> |
|
267 <dd> |
|
268 close event (QCloseEvent) |
|
269 </dd> |
|
270 </dl><a NAME="SvnRepoBrowserDialog.getSelectedUrl" ID="SvnRepoBrowserDialog.getSelectedUrl"></a> |
|
271 <h4>SvnRepoBrowserDialog.getSelectedUrl</h4> |
|
272 <b>getSelectedUrl</b>(<i></i>) |
|
273 <p> |
|
274 Public method to retrieve the selected repository URL. |
|
275 </p><dl> |
|
276 <dt>Returns:</dt> |
|
277 <dd> |
|
278 the selected repository URL (string) |
|
279 </dd> |
|
280 </dl><a NAME="SvnRepoBrowserDialog.keyPressEvent" ID="SvnRepoBrowserDialog.keyPressEvent"></a> |
|
281 <h4>SvnRepoBrowserDialog.keyPressEvent</h4> |
|
282 <b>keyPressEvent</b>(<i>evt</i>) |
|
283 <p> |
|
284 Protected slot to handle a key press event. |
|
285 </p><dl> |
|
286 <dt><i>evt</i></dt> |
|
287 <dd> |
|
288 the key press event (QKeyEvent) |
|
289 </dd> |
|
290 </dl><a NAME="SvnRepoBrowserDialog.on_input_returnPressed" ID="SvnRepoBrowserDialog.on_input_returnPressed"></a> |
|
291 <h4>SvnRepoBrowserDialog.on_input_returnPressed</h4> |
|
292 <b>on_input_returnPressed</b>(<i></i>) |
|
293 <p> |
|
294 Private slot to handle the press of the return key in the input field. |
|
295 </p><a NAME="SvnRepoBrowserDialog.on_passwordCheckBox_toggled" ID="SvnRepoBrowserDialog.on_passwordCheckBox_toggled"></a> |
|
296 <h4>SvnRepoBrowserDialog.on_passwordCheckBox_toggled</h4> |
|
297 <b>on_passwordCheckBox_toggled</b>(<i>isOn</i>) |
|
298 <p> |
|
299 Private slot to handle the password checkbox toggled. |
|
300 </p><dl> |
|
301 <dt><i>isOn</i></dt> |
|
302 <dd> |
|
303 flag indicating the status of the check box (boolean) |
|
304 </dd> |
|
305 </dl><a NAME="SvnRepoBrowserDialog.on_repoTree_itemCollapsed" ID="SvnRepoBrowserDialog.on_repoTree_itemCollapsed"></a> |
|
306 <h4>SvnRepoBrowserDialog.on_repoTree_itemCollapsed</h4> |
|
307 <b>on_repoTree_itemCollapsed</b>(<i>item</i>) |
|
308 <p> |
|
309 Private slot called when an item is collapsed. |
|
310 </p><dl> |
|
311 <dt><i>item</i></dt> |
|
312 <dd> |
|
313 reference to the item to be collapsed (QTreeWidgetItem) |
|
314 </dd> |
|
315 </dl><a NAME="SvnRepoBrowserDialog.on_repoTree_itemExpanded" ID="SvnRepoBrowserDialog.on_repoTree_itemExpanded"></a> |
|
316 <h4>SvnRepoBrowserDialog.on_repoTree_itemExpanded</h4> |
|
317 <b>on_repoTree_itemExpanded</b>(<i>item</i>) |
|
318 <p> |
|
319 Private slot called when an item is expanded. |
|
320 </p><dl> |
|
321 <dt><i>item</i></dt> |
|
322 <dd> |
|
323 reference to the item to be expanded (QTreeWidgetItem) |
|
324 </dd> |
|
325 </dl><a NAME="SvnRepoBrowserDialog.on_repoTree_itemSelectionChanged" ID="SvnRepoBrowserDialog.on_repoTree_itemSelectionChanged"></a> |
|
326 <h4>SvnRepoBrowserDialog.on_repoTree_itemSelectionChanged</h4> |
|
327 <b>on_repoTree_itemSelectionChanged</b>(<i></i>) |
|
328 <p> |
|
329 Private slot called when the selection changes. |
|
330 </p><a NAME="SvnRepoBrowserDialog.on_sendButton_clicked" ID="SvnRepoBrowserDialog.on_sendButton_clicked"></a> |
|
331 <h4>SvnRepoBrowserDialog.on_sendButton_clicked</h4> |
|
332 <b>on_sendButton_clicked</b>(<i></i>) |
|
333 <p> |
|
334 Private slot to send the input to the subversion process. |
|
335 </p><a NAME="SvnRepoBrowserDialog.on_urlCombo_currentIndexChanged" ID="SvnRepoBrowserDialog.on_urlCombo_currentIndexChanged"></a> |
|
336 <h4>SvnRepoBrowserDialog.on_urlCombo_currentIndexChanged</h4> |
|
337 <b>on_urlCombo_currentIndexChanged</b>(<i>text</i>) |
|
338 <p> |
|
339 Private slot called, when a new repository URL is entered or selected. |
|
340 </p><dl> |
|
341 <dt><i>text</i></dt> |
|
342 <dd> |
|
343 the text of the current item (string) |
|
344 </dd> |
|
345 </dl><a NAME="SvnRepoBrowserDialog.start" ID="SvnRepoBrowserDialog.start"></a> |
|
346 <h4>SvnRepoBrowserDialog.start</h4> |
|
347 <b>start</b>(<i>url</i>) |
|
348 <p> |
|
349 Public slot to start the svn info command. |
|
350 </p><dl> |
|
351 <dt><i>url</i></dt> |
|
352 <dd> |
|
353 the repository URL to browser (string) |
|
354 </dd> |
|
355 </dl> |
|
356 <div align="right"><a href="#top">Up</a></div> |
|
357 <hr /> |
|
358 </body></html> |