|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.MicroPython.MicroPythonFileManagerWidget</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.MicroPython.MicroPythonFileManagerWidget</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing a file manager for MicroPython devices. |
|
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="#MicroPythonFileManagerWidget">MicroPythonFileManagerWidget</a></td> |
|
39 <td>Class implementing a file manager for MicroPython devices.</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="MicroPythonFileManagerWidget" ID="MicroPythonFileManagerWidget"></a> |
|
50 <h2>MicroPythonFileManagerWidget</h2> |
|
51 |
|
52 <p> |
|
53 Class implementing a file manager for MicroPython devices. |
|
54 </p> |
|
55 <h3>Derived from</h3> |
|
56 QWidget, Ui_MicroPythonFileManagerWidget |
|
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="#MicroPythonFileManagerWidget.__init__">MicroPythonFileManagerWidget</a></td> |
|
73 <td>Constructor</td> |
|
74 </tr> |
|
75 <tr> |
|
76 <td><a href="#MicroPythonFileManagerWidget.__changeDeviceDirectory">__changeDeviceDirectory</a></td> |
|
77 <td>Private slot to change the current directory of the device.</td> |
|
78 </tr> |
|
79 <tr> |
|
80 <td><a href="#MicroPythonFileManagerWidget.__changeLocalDirectory">__changeLocalDirectory</a></td> |
|
81 <td>Private slot to change the local directory.</td> |
|
82 </tr> |
|
83 <tr> |
|
84 <td><a href="#MicroPythonFileManagerWidget.__createDeviceDirectory">__createDeviceDirectory</a></td> |
|
85 <td>Private slot to create a directory on the device.</td> |
|
86 </tr> |
|
87 <tr> |
|
88 <td><a href="#MicroPythonFileManagerWidget.__createLocalDirectory">__createLocalDirectory</a></td> |
|
89 <td>Private slot to create a local directory.</td> |
|
90 </tr> |
|
91 <tr> |
|
92 <td><a href="#MicroPythonFileManagerWidget.__deleteDeviceDirectory">__deleteDeviceDirectory</a></td> |
|
93 <td>Private slot to delete an empty directory on the device.</td> |
|
94 </tr> |
|
95 <tr> |
|
96 <td><a href="#MicroPythonFileManagerWidget.__deleteDeviceDirectoryTree">__deleteDeviceDirectoryTree</a></td> |
|
97 <td>Private slot to delete a directory and all its subdirectories recursively.</td> |
|
98 </tr> |
|
99 <tr> |
|
100 <td><a href="#MicroPythonFileManagerWidget.__deleteDeviceFile">__deleteDeviceFile</a></td> |
|
101 <td>Private slot to delete a file.</td> |
|
102 </tr> |
|
103 <tr> |
|
104 <td><a href="#MicroPythonFileManagerWidget.__deleteLocalDirectoryTree">__deleteLocalDirectoryTree</a></td> |
|
105 <td>Private slot to delete a local directory tree.</td> |
|
106 </tr> |
|
107 <tr> |
|
108 <td><a href="#MicroPythonFileManagerWidget.__deleteLocalFile">__deleteLocalFile</a></td> |
|
109 <td>Private slot to delete a local file.</td> |
|
110 </tr> |
|
111 <tr> |
|
112 <td><a href="#MicroPythonFileManagerWidget.__deviceHiddenChanged">__deviceHiddenChanged</a></td> |
|
113 <td>Private slot handling a change of the device show hidden menu entry.</td> |
|
114 </tr> |
|
115 <tr> |
|
116 <td><a href="#MicroPythonFileManagerWidget.__fsInfoResultReceived">__fsInfoResultReceived</a></td> |
|
117 <td>Private slot to show the file system information of the device.</td> |
|
118 </tr> |
|
119 <tr> |
|
120 <td><a href="#MicroPythonFileManagerWidget.__handleCurrentDir">__handleCurrentDir</a></td> |
|
121 <td>Private slot to handle a change of the current directory of the device.</td> |
|
122 </tr> |
|
123 <tr> |
|
124 <td><a href="#MicroPythonFileManagerWidget.__handleError">__handleError</a></td> |
|
125 <td>Private slot to handle errors.</td> |
|
126 </tr> |
|
127 <tr> |
|
128 <td><a href="#MicroPythonFileManagerWidget.__handleGetDone">__handleGetDone</a></td> |
|
129 <td>Private slot handling a successful copy of a file from the device.</td> |
|
130 </tr> |
|
131 <tr> |
|
132 <td><a href="#MicroPythonFileManagerWidget.__handleLongListFiles">__handleLongListFiles</a></td> |
|
133 <td>Private slot to receive a long directory listing.</td> |
|
134 </tr> |
|
135 <tr> |
|
136 <td><a href="#MicroPythonFileManagerWidget.__handleRsyncDone">__handleRsyncDone</a></td> |
|
137 <td>Private method to handle the completion of the rsync operation.</td> |
|
138 </tr> |
|
139 <tr> |
|
140 <td><a href="#MicroPythonFileManagerWidget.__handleRsyncProgressMessage">__handleRsyncProgressMessage</a></td> |
|
141 <td>Private slot handling progress messages sent by the file manager.</td> |
|
142 </tr> |
|
143 <tr> |
|
144 <td><a href="#MicroPythonFileManagerWidget.__isFileInList">__isFileInList</a></td> |
|
145 <td>Private method to check, if a file name is contained in a tree widget.</td> |
|
146 </tr> |
|
147 <tr> |
|
148 <td><a href="#MicroPythonFileManagerWidget.__listLocalFiles">__listLocalFiles</a></td> |
|
149 <td>Private method to populate the local files list.</td> |
|
150 </tr> |
|
151 <tr> |
|
152 <td><a href="#MicroPythonFileManagerWidget.__localHiddenChanged">__localHiddenChanged</a></td> |
|
153 <td>Private slot handling a change of the local show hidden menu entry.</td> |
|
154 </tr> |
|
155 <tr> |
|
156 <td><a href="#MicroPythonFileManagerWidget.__newDeviceList">__newDeviceList</a></td> |
|
157 <td>Private slot to initiate a new long list of the device directory.</td> |
|
158 </tr> |
|
159 <tr> |
|
160 <td><a href="#MicroPythonFileManagerWidget.__progressInfoDialogFinished">__progressInfoDialogFinished</a></td> |
|
161 <td>Private slot handling the closing of the progress info dialog.</td> |
|
162 </tr> |
|
163 <tr> |
|
164 <td><a href="#MicroPythonFileManagerWidget.__showDeviceContextMenu">__showDeviceContextMenu</a></td> |
|
165 <td>Private slot to show the REPL context menu.</td> |
|
166 </tr> |
|
167 <tr> |
|
168 <td><a href="#MicroPythonFileManagerWidget.__showFileSystemInfo">__showFileSystemInfo</a></td> |
|
169 <td>Private slot to show some file system information.</td> |
|
170 </tr> |
|
171 <tr> |
|
172 <td><a href="#MicroPythonFileManagerWidget.__showLocalContextMenu">__showLocalContextMenu</a></td> |
|
173 <td>Private slot to show the REPL context menu.</td> |
|
174 </tr> |
|
175 <tr> |
|
176 <td><a href="#MicroPythonFileManagerWidget.on_deviceFileTreeWidget_itemActivated">on_deviceFileTreeWidget_itemActivated</a></td> |
|
177 <td>Private slot to handle the activation of a device item.</td> |
|
178 </tr> |
|
179 <tr> |
|
180 <td><a href="#MicroPythonFileManagerWidget.on_deviceFileTreeWidget_itemSelectionChanged">on_deviceFileTreeWidget_itemSelectionChanged</a></td> |
|
181 <td>Private slot handling a change of selection in the local pane.</td> |
|
182 </tr> |
|
183 <tr> |
|
184 <td><a href="#MicroPythonFileManagerWidget.on_deviceHomeButton_clicked">on_deviceHomeButton_clicked</a></td> |
|
185 <td>Private slot to move to the device home directory.</td> |
|
186 </tr> |
|
187 <tr> |
|
188 <td><a href="#MicroPythonFileManagerWidget.on_deviceReloadButton_clicked">on_deviceReloadButton_clicked</a></td> |
|
189 <td>Private slot to reload the device list.</td> |
|
190 </tr> |
|
191 <tr> |
|
192 <td><a href="#MicroPythonFileManagerWidget.on_deviceUpButton_clicked">on_deviceUpButton_clicked</a></td> |
|
193 <td>Private slot to go up one directory level on the device.</td> |
|
194 </tr> |
|
195 <tr> |
|
196 <td><a href="#MicroPythonFileManagerWidget.on_getAsButton_clicked">on_getAsButton_clicked</a></td> |
|
197 <td>Private slot to copy the selected file from the connected device with a different name.</td> |
|
198 </tr> |
|
199 <tr> |
|
200 <td><a href="#MicroPythonFileManagerWidget.on_getButton_clicked">on_getButton_clicked</a></td> |
|
201 <td>Private slot to copy the selected file from the connected device.</td> |
|
202 </tr> |
|
203 <tr> |
|
204 <td><a href="#MicroPythonFileManagerWidget.on_localFileTreeWidget_itemActivated">on_localFileTreeWidget_itemActivated</a></td> |
|
205 <td>Private slot to handle the activation of a local item.</td> |
|
206 </tr> |
|
207 <tr> |
|
208 <td><a href="#MicroPythonFileManagerWidget.on_localFileTreeWidget_itemSelectionChanged">on_localFileTreeWidget_itemSelectionChanged</a></td> |
|
209 <td>Private slot handling a change of selection in the local pane.</td> |
|
210 </tr> |
|
211 <tr> |
|
212 <td><a href="#MicroPythonFileManagerWidget.on_localHomeButton_clicked">on_localHomeButton_clicked</a></td> |
|
213 <td>Private slot to change directory to the configured workspace.</td> |
|
214 </tr> |
|
215 <tr> |
|
216 <td><a href="#MicroPythonFileManagerWidget.on_localReloadButton_clicked">on_localReloadButton_clicked</a></td> |
|
217 <td>Private slot to reload the local list.</td> |
|
218 </tr> |
|
219 <tr> |
|
220 <td><a href="#MicroPythonFileManagerWidget.on_localUpButton_clicked">on_localUpButton_clicked</a></td> |
|
221 <td>Private slot to go up one directory level.</td> |
|
222 </tr> |
|
223 <tr> |
|
224 <td><a href="#MicroPythonFileManagerWidget.on_putAsButton_clicked">on_putAsButton_clicked</a></td> |
|
225 <td>Private slot to copy the selected file to the connected device with a different name.</td> |
|
226 </tr> |
|
227 <tr> |
|
228 <td><a href="#MicroPythonFileManagerWidget.on_putButton_clicked">on_putButton_clicked</a></td> |
|
229 <td>Private slot to copy the selected file to the connected device.</td> |
|
230 </tr> |
|
231 <tr> |
|
232 <td><a href="#MicroPythonFileManagerWidget.on_syncButton_clicked">on_syncButton_clicked</a></td> |
|
233 <td>Private slot to synchronize the local directory to the device.</td> |
|
234 </tr> |
|
235 <tr> |
|
236 <td><a href="#MicroPythonFileManagerWidget.start">start</a></td> |
|
237 <td>Public method to start the widget.</td> |
|
238 </tr> |
|
239 <tr> |
|
240 <td><a href="#MicroPythonFileManagerWidget.stop">stop</a></td> |
|
241 <td>Public method to stop the widget.</td> |
|
242 </tr> |
|
243 </table> |
|
244 <h3>Static Methods</h3> |
|
245 |
|
246 <table> |
|
247 <tr><td>None</td></tr> |
|
248 </table> |
|
249 |
|
250 <a NAME="MicroPythonFileManagerWidget.__init__" ID="MicroPythonFileManagerWidget.__init__"></a> |
|
251 <h4>MicroPythonFileManagerWidget (Constructor)</h4> |
|
252 <b>MicroPythonFileManagerWidget</b>(<i>commandsInterface, deviceWithLocalAccess, parent=None</i>) |
|
253 |
|
254 <p> |
|
255 Constructor |
|
256 </p> |
|
257 <dl> |
|
258 |
|
259 <dt><i>commandsInterface</i> (MicroPythonCommandsInterface)</dt> |
|
260 <dd> |
|
261 reference to the commands interface object |
|
262 </dd> |
|
263 <dt><i>deviceWithLocalAccess</i> (bool)</dt> |
|
264 <dd> |
|
265 flag indicating the device supports file |
|
266 access via a local directory |
|
267 </dd> |
|
268 <dt><i>parent</i> (QWidget)</dt> |
|
269 <dd> |
|
270 reference to the parent widget |
|
271 </dd> |
|
272 </dl> |
|
273 <a NAME="MicroPythonFileManagerWidget.__changeDeviceDirectory" ID="MicroPythonFileManagerWidget.__changeDeviceDirectory"></a> |
|
274 <h4>MicroPythonFileManagerWidget.__changeDeviceDirectory</h4> |
|
275 <b>__changeDeviceDirectory</b>(<i></i>) |
|
276 |
|
277 <p> |
|
278 Private slot to change the current directory of the device. |
|
279 </p> |
|
280 <p> |
|
281 Note: This triggers a re-population of the device list for the new |
|
282 current directory. |
|
283 </p> |
|
284 <a NAME="MicroPythonFileManagerWidget.__changeLocalDirectory" ID="MicroPythonFileManagerWidget.__changeLocalDirectory"></a> |
|
285 <h4>MicroPythonFileManagerWidget.__changeLocalDirectory</h4> |
|
286 <b>__changeLocalDirectory</b>(<i>localDevice=False</i>) |
|
287 |
|
288 <p> |
|
289 Private slot to change the local directory. |
|
290 </p> |
|
291 <dl> |
|
292 |
|
293 <dt><i>localDevice</i> (bool)</dt> |
|
294 <dd> |
|
295 flag indicating device access via local file system |
|
296 </dd> |
|
297 </dl> |
|
298 <a NAME="MicroPythonFileManagerWidget.__createDeviceDirectory" ID="MicroPythonFileManagerWidget.__createDeviceDirectory"></a> |
|
299 <h4>MicroPythonFileManagerWidget.__createDeviceDirectory</h4> |
|
300 <b>__createDeviceDirectory</b>(<i></i>) |
|
301 |
|
302 <p> |
|
303 Private slot to create a directory on the device. |
|
304 </p> |
|
305 <a NAME="MicroPythonFileManagerWidget.__createLocalDirectory" ID="MicroPythonFileManagerWidget.__createLocalDirectory"></a> |
|
306 <h4>MicroPythonFileManagerWidget.__createLocalDirectory</h4> |
|
307 <b>__createLocalDirectory</b>(<i>localDevice=False</i>) |
|
308 |
|
309 <p> |
|
310 Private slot to create a local directory. |
|
311 </p> |
|
312 <dl> |
|
313 |
|
314 <dt><i>localDevice</i> (bool)</dt> |
|
315 <dd> |
|
316 flag indicating device access via local file system |
|
317 </dd> |
|
318 </dl> |
|
319 <a NAME="MicroPythonFileManagerWidget.__deleteDeviceDirectory" ID="MicroPythonFileManagerWidget.__deleteDeviceDirectory"></a> |
|
320 <h4>MicroPythonFileManagerWidget.__deleteDeviceDirectory</h4> |
|
321 <b>__deleteDeviceDirectory</b>(<i></i>) |
|
322 |
|
323 <p> |
|
324 Private slot to delete an empty directory on the device. |
|
325 </p> |
|
326 <a NAME="MicroPythonFileManagerWidget.__deleteDeviceDirectoryTree" ID="MicroPythonFileManagerWidget.__deleteDeviceDirectoryTree"></a> |
|
327 <h4>MicroPythonFileManagerWidget.__deleteDeviceDirectoryTree</h4> |
|
328 <b>__deleteDeviceDirectoryTree</b>(<i></i>) |
|
329 |
|
330 <p> |
|
331 Private slot to delete a directory and all its subdirectories |
|
332 recursively. |
|
333 </p> |
|
334 <a NAME="MicroPythonFileManagerWidget.__deleteDeviceFile" ID="MicroPythonFileManagerWidget.__deleteDeviceFile"></a> |
|
335 <h4>MicroPythonFileManagerWidget.__deleteDeviceFile</h4> |
|
336 <b>__deleteDeviceFile</b>(<i></i>) |
|
337 |
|
338 <p> |
|
339 Private slot to delete a file. |
|
340 </p> |
|
341 <a NAME="MicroPythonFileManagerWidget.__deleteLocalDirectoryTree" ID="MicroPythonFileManagerWidget.__deleteLocalDirectoryTree"></a> |
|
342 <h4>MicroPythonFileManagerWidget.__deleteLocalDirectoryTree</h4> |
|
343 <b>__deleteLocalDirectoryTree</b>(<i>localDevice=False</i>) |
|
344 |
|
345 <p> |
|
346 Private slot to delete a local directory tree. |
|
347 </p> |
|
348 <dl> |
|
349 |
|
350 <dt><i>localDevice</i> (bool)</dt> |
|
351 <dd> |
|
352 flag indicating device access via local file system |
|
353 </dd> |
|
354 </dl> |
|
355 <a NAME="MicroPythonFileManagerWidget.__deleteLocalFile" ID="MicroPythonFileManagerWidget.__deleteLocalFile"></a> |
|
356 <h4>MicroPythonFileManagerWidget.__deleteLocalFile</h4> |
|
357 <b>__deleteLocalFile</b>(<i>localDevice=False</i>) |
|
358 |
|
359 <p> |
|
360 Private slot to delete a local file. |
|
361 </p> |
|
362 <dl> |
|
363 |
|
364 <dt><i>localDevice</i> (bool)</dt> |
|
365 <dd> |
|
366 flag indicating device access via local file system |
|
367 </dd> |
|
368 </dl> |
|
369 <a NAME="MicroPythonFileManagerWidget.__deviceHiddenChanged" ID="MicroPythonFileManagerWidget.__deviceHiddenChanged"></a> |
|
370 <h4>MicroPythonFileManagerWidget.__deviceHiddenChanged</h4> |
|
371 <b>__deviceHiddenChanged</b>(<i>checked</i>) |
|
372 |
|
373 <p> |
|
374 Private slot handling a change of the device show hidden menu entry. |
|
375 </p> |
|
376 <dl> |
|
377 |
|
378 <dt><i>checked</i> (bool)</dt> |
|
379 <dd> |
|
380 new check state of the action |
|
381 </dd> |
|
382 </dl> |
|
383 <a NAME="MicroPythonFileManagerWidget.__fsInfoResultReceived" ID="MicroPythonFileManagerWidget.__fsInfoResultReceived"></a> |
|
384 <h4>MicroPythonFileManagerWidget.__fsInfoResultReceived</h4> |
|
385 <b>__fsInfoResultReceived</b>(<i>fsinfo</i>) |
|
386 |
|
387 <p> |
|
388 Private slot to show the file system information of the device. |
|
389 </p> |
|
390 <dl> |
|
391 |
|
392 <dt><i>fsinfo</i> (tuple of tuples of (str, int, int, int))</dt> |
|
393 <dd> |
|
394 tuple of tuples containing the file system name, the |
|
395 total size, the used size and the free size |
|
396 </dd> |
|
397 </dl> |
|
398 <a NAME="MicroPythonFileManagerWidget.__handleCurrentDir" ID="MicroPythonFileManagerWidget.__handleCurrentDir"></a> |
|
399 <h4>MicroPythonFileManagerWidget.__handleCurrentDir</h4> |
|
400 <b>__handleCurrentDir</b>(<i>dirname</i>) |
|
401 |
|
402 <p> |
|
403 Private slot to handle a change of the current directory of the device. |
|
404 </p> |
|
405 <dl> |
|
406 |
|
407 <dt><i>dirname</i> (str)</dt> |
|
408 <dd> |
|
409 name of the current directory |
|
410 </dd> |
|
411 </dl> |
|
412 <a NAME="MicroPythonFileManagerWidget.__handleError" ID="MicroPythonFileManagerWidget.__handleError"></a> |
|
413 <h4>MicroPythonFileManagerWidget.__handleError</h4> |
|
414 <b>__handleError</b>(<i>method, error</i>) |
|
415 |
|
416 <p> |
|
417 Private slot to handle errors. |
|
418 </p> |
|
419 <dl> |
|
420 |
|
421 <dt><i>method</i> (str)</dt> |
|
422 <dd> |
|
423 name of the method the error occured in |
|
424 </dd> |
|
425 <dt><i>error</i> (str)</dt> |
|
426 <dd> |
|
427 error message |
|
428 </dd> |
|
429 </dl> |
|
430 <a NAME="MicroPythonFileManagerWidget.__handleGetDone" ID="MicroPythonFileManagerWidget.__handleGetDone"></a> |
|
431 <h4>MicroPythonFileManagerWidget.__handleGetDone</h4> |
|
432 <b>__handleGetDone</b>(<i>deviceFile, localFile</i>) |
|
433 |
|
434 <p> |
|
435 Private slot handling a successful copy of a file from the device. |
|
436 </p> |
|
437 <dl> |
|
438 |
|
439 <dt><i>deviceFile</i> (str)</dt> |
|
440 <dd> |
|
441 name of the file on the device |
|
442 </dd> |
|
443 <dt><i>localFile</i> (str)</dt> |
|
444 <dd> |
|
445 name of the local file |
|
446 </dd> |
|
447 </dl> |
|
448 <a NAME="MicroPythonFileManagerWidget.__handleLongListFiles" ID="MicroPythonFileManagerWidget.__handleLongListFiles"></a> |
|
449 <h4>MicroPythonFileManagerWidget.__handleLongListFiles</h4> |
|
450 <b>__handleLongListFiles</b>(<i>filesList</i>) |
|
451 |
|
452 <p> |
|
453 Private slot to receive a long directory listing. |
|
454 </p> |
|
455 <dl> |
|
456 |
|
457 <dt><i>filesList</i> (tuple of (str, str, str, str))</dt> |
|
458 <dd> |
|
459 tuple containing tuples with name, mode, size and time |
|
460 for each directory entry |
|
461 </dd> |
|
462 </dl> |
|
463 <a NAME="MicroPythonFileManagerWidget.__handleRsyncDone" ID="MicroPythonFileManagerWidget.__handleRsyncDone"></a> |
|
464 <h4>MicroPythonFileManagerWidget.__handleRsyncDone</h4> |
|
465 <b>__handleRsyncDone</b>(<i>localDir, deviceDir</i>) |
|
466 |
|
467 <p> |
|
468 Private method to handle the completion of the rsync operation. |
|
469 </p> |
|
470 <dl> |
|
471 |
|
472 <dt><i>localDir</i> (str)</dt> |
|
473 <dd> |
|
474 name of the local directory |
|
475 </dd> |
|
476 <dt><i>deviceDir</i> (str)</dt> |
|
477 <dd> |
|
478 name of the device directory |
|
479 </dd> |
|
480 </dl> |
|
481 <a NAME="MicroPythonFileManagerWidget.__handleRsyncProgressMessage" ID="MicroPythonFileManagerWidget.__handleRsyncProgressMessage"></a> |
|
482 <h4>MicroPythonFileManagerWidget.__handleRsyncProgressMessage</h4> |
|
483 <b>__handleRsyncProgressMessage</b>(<i>message</i>) |
|
484 |
|
485 <p> |
|
486 Private slot handling progress messages sent by the file manager. |
|
487 </p> |
|
488 <dl> |
|
489 |
|
490 <dt><i>message</i> (str)</dt> |
|
491 <dd> |
|
492 message to be shown |
|
493 </dd> |
|
494 </dl> |
|
495 <a NAME="MicroPythonFileManagerWidget.__isFileInList" ID="MicroPythonFileManagerWidget.__isFileInList"></a> |
|
496 <h4>MicroPythonFileManagerWidget.__isFileInList</h4> |
|
497 <b>__isFileInList</b>(<i>filename, treeWidget</i>) |
|
498 |
|
499 <p> |
|
500 Private method to check, if a file name is contained in a tree widget. |
|
501 </p> |
|
502 <dl> |
|
503 |
|
504 <dt><i>filename</i> (str)</dt> |
|
505 <dd> |
|
506 name of the file to check |
|
507 </dd> |
|
508 <dt><i>treeWidget</i></dt> |
|
509 <dd> |
|
510 reference to the tree widget to be checked against |
|
511 </dd> |
|
512 </dl> |
|
513 <dl> |
|
514 <dt>Return:</dt> |
|
515 <dd> |
|
516 flag indicating that the file name is present |
|
517 </dd> |
|
518 </dl> |
|
519 <dl> |
|
520 <dt>Return Type:</dt> |
|
521 <dd> |
|
522 bool |
|
523 </dd> |
|
524 </dl> |
|
525 <a NAME="MicroPythonFileManagerWidget.__listLocalFiles" ID="MicroPythonFileManagerWidget.__listLocalFiles"></a> |
|
526 <h4>MicroPythonFileManagerWidget.__listLocalFiles</h4> |
|
527 <b>__listLocalFiles</b>(<i>dirname="", localDevice=False</i>) |
|
528 |
|
529 <p> |
|
530 Private method to populate the local files list. |
|
531 </p> |
|
532 <dl> |
|
533 |
|
534 <dt><i>dirname</i> (str)</dt> |
|
535 <dd> |
|
536 name of the local directory to be listed |
|
537 </dd> |
|
538 <dt><i>localDevice</i> (bool)</dt> |
|
539 <dd> |
|
540 flag indicating device access via local file system |
|
541 </dd> |
|
542 </dl> |
|
543 <a NAME="MicroPythonFileManagerWidget.__localHiddenChanged" ID="MicroPythonFileManagerWidget.__localHiddenChanged"></a> |
|
544 <h4>MicroPythonFileManagerWidget.__localHiddenChanged</h4> |
|
545 <b>__localHiddenChanged</b>(<i>checked</i>) |
|
546 |
|
547 <p> |
|
548 Private slot handling a change of the local show hidden menu entry. |
|
549 </p> |
|
550 <dl> |
|
551 |
|
552 <dt><i>checked</i> (bool)</dt> |
|
553 <dd> |
|
554 new check state of the action |
|
555 </dd> |
|
556 </dl> |
|
557 <a NAME="MicroPythonFileManagerWidget.__newDeviceList" ID="MicroPythonFileManagerWidget.__newDeviceList"></a> |
|
558 <h4>MicroPythonFileManagerWidget.__newDeviceList</h4> |
|
559 <b>__newDeviceList</b>(<i></i>) |
|
560 |
|
561 <p> |
|
562 Private slot to initiate a new long list of the device directory. |
|
563 </p> |
|
564 <a NAME="MicroPythonFileManagerWidget.__progressInfoDialogFinished" ID="MicroPythonFileManagerWidget.__progressInfoDialogFinished"></a> |
|
565 <h4>MicroPythonFileManagerWidget.__progressInfoDialogFinished</h4> |
|
566 <b>__progressInfoDialogFinished</b>(<i></i>) |
|
567 |
|
568 <p> |
|
569 Private slot handling the closing of the progress info dialog. |
|
570 </p> |
|
571 <a NAME="MicroPythonFileManagerWidget.__showDeviceContextMenu" ID="MicroPythonFileManagerWidget.__showDeviceContextMenu"></a> |
|
572 <h4>MicroPythonFileManagerWidget.__showDeviceContextMenu</h4> |
|
573 <b>__showDeviceContextMenu</b>(<i>pos</i>) |
|
574 |
|
575 <p> |
|
576 Private slot to show the REPL context menu. |
|
577 </p> |
|
578 <dl> |
|
579 |
|
580 <dt><i>pos</i> (QPoint)</dt> |
|
581 <dd> |
|
582 position to show the menu at |
|
583 </dd> |
|
584 </dl> |
|
585 <a NAME="MicroPythonFileManagerWidget.__showFileSystemInfo" ID="MicroPythonFileManagerWidget.__showFileSystemInfo"></a> |
|
586 <h4>MicroPythonFileManagerWidget.__showFileSystemInfo</h4> |
|
587 <b>__showFileSystemInfo</b>(<i></i>) |
|
588 |
|
589 <p> |
|
590 Private slot to show some file system information. |
|
591 </p> |
|
592 <a NAME="MicroPythonFileManagerWidget.__showLocalContextMenu" ID="MicroPythonFileManagerWidget.__showLocalContextMenu"></a> |
|
593 <h4>MicroPythonFileManagerWidget.__showLocalContextMenu</h4> |
|
594 <b>__showLocalContextMenu</b>(<i>pos</i>) |
|
595 |
|
596 <p> |
|
597 Private slot to show the REPL context menu. |
|
598 </p> |
|
599 <dl> |
|
600 |
|
601 <dt><i>pos</i> (QPoint)</dt> |
|
602 <dd> |
|
603 position to show the menu at |
|
604 </dd> |
|
605 </dl> |
|
606 <a NAME="MicroPythonFileManagerWidget.on_deviceFileTreeWidget_itemActivated" ID="MicroPythonFileManagerWidget.on_deviceFileTreeWidget_itemActivated"></a> |
|
607 <h4>MicroPythonFileManagerWidget.on_deviceFileTreeWidget_itemActivated</h4> |
|
608 <b>on_deviceFileTreeWidget_itemActivated</b>(<i>item, column</i>) |
|
609 |
|
610 <p> |
|
611 Private slot to handle the activation of a device item. |
|
612 </p> |
|
613 <p> |
|
614 If the item is a directory, the current working directory is changed |
|
615 and the list will be re-populated for this directory. |
|
616 </p> |
|
617 <dl> |
|
618 |
|
619 <dt><i>item</i> (QTreeWidgetItem)</dt> |
|
620 <dd> |
|
621 reference to the activated item |
|
622 </dd> |
|
623 <dt><i>column</i> (int)</dt> |
|
624 <dd> |
|
625 column of the activation |
|
626 </dd> |
|
627 </dl> |
|
628 <a NAME="MicroPythonFileManagerWidget.on_deviceFileTreeWidget_itemSelectionChanged" ID="MicroPythonFileManagerWidget.on_deviceFileTreeWidget_itemSelectionChanged"></a> |
|
629 <h4>MicroPythonFileManagerWidget.on_deviceFileTreeWidget_itemSelectionChanged</h4> |
|
630 <b>on_deviceFileTreeWidget_itemSelectionChanged</b>(<i></i>) |
|
631 |
|
632 <p> |
|
633 Private slot handling a change of selection in the local pane. |
|
634 </p> |
|
635 <a NAME="MicroPythonFileManagerWidget.on_deviceHomeButton_clicked" ID="MicroPythonFileManagerWidget.on_deviceHomeButton_clicked"></a> |
|
636 <h4>MicroPythonFileManagerWidget.on_deviceHomeButton_clicked</h4> |
|
637 <b>on_deviceHomeButton_clicked</b>(<i></i>) |
|
638 |
|
639 <p> |
|
640 Private slot to move to the device home directory. |
|
641 </p> |
|
642 <a NAME="MicroPythonFileManagerWidget.on_deviceReloadButton_clicked" ID="MicroPythonFileManagerWidget.on_deviceReloadButton_clicked"></a> |
|
643 <h4>MicroPythonFileManagerWidget.on_deviceReloadButton_clicked</h4> |
|
644 <b>on_deviceReloadButton_clicked</b>(<i></i>) |
|
645 |
|
646 <p> |
|
647 Private slot to reload the device list. |
|
648 </p> |
|
649 <a NAME="MicroPythonFileManagerWidget.on_deviceUpButton_clicked" ID="MicroPythonFileManagerWidget.on_deviceUpButton_clicked"></a> |
|
650 <h4>MicroPythonFileManagerWidget.on_deviceUpButton_clicked</h4> |
|
651 <b>on_deviceUpButton_clicked</b>(<i></i>) |
|
652 |
|
653 <p> |
|
654 Private slot to go up one directory level on the device. |
|
655 </p> |
|
656 <a NAME="MicroPythonFileManagerWidget.on_getAsButton_clicked" ID="MicroPythonFileManagerWidget.on_getAsButton_clicked"></a> |
|
657 <h4>MicroPythonFileManagerWidget.on_getAsButton_clicked</h4> |
|
658 <b>on_getAsButton_clicked</b>(<i></i>) |
|
659 |
|
660 <p> |
|
661 Private slot to copy the selected file from the connected device |
|
662 with a different name. |
|
663 </p> |
|
664 <a NAME="MicroPythonFileManagerWidget.on_getButton_clicked" ID="MicroPythonFileManagerWidget.on_getButton_clicked"></a> |
|
665 <h4>MicroPythonFileManagerWidget.on_getButton_clicked</h4> |
|
666 <b>on_getButton_clicked</b>(<i>getAs=False</i>) |
|
667 |
|
668 <p> |
|
669 Private slot to copy the selected file from the connected device. |
|
670 </p> |
|
671 <dl> |
|
672 |
|
673 <dt><i>getAs</i> (bool)</dt> |
|
674 <dd> |
|
675 flag indicating to give it a new name |
|
676 </dd> |
|
677 </dl> |
|
678 <a NAME="MicroPythonFileManagerWidget.on_localFileTreeWidget_itemActivated" ID="MicroPythonFileManagerWidget.on_localFileTreeWidget_itemActivated"></a> |
|
679 <h4>MicroPythonFileManagerWidget.on_localFileTreeWidget_itemActivated</h4> |
|
680 <b>on_localFileTreeWidget_itemActivated</b>(<i>item, column</i>) |
|
681 |
|
682 <p> |
|
683 Private slot to handle the activation of a local item. |
|
684 </p> |
|
685 <p> |
|
686 If the item is a directory, the list will be re-populated for this |
|
687 directory. |
|
688 </p> |
|
689 <dl> |
|
690 |
|
691 <dt><i>item</i> (QTreeWidgetItem)</dt> |
|
692 <dd> |
|
693 reference to the activated item |
|
694 </dd> |
|
695 <dt><i>column</i> (int)</dt> |
|
696 <dd> |
|
697 column of the activation |
|
698 </dd> |
|
699 </dl> |
|
700 <a NAME="MicroPythonFileManagerWidget.on_localFileTreeWidget_itemSelectionChanged" ID="MicroPythonFileManagerWidget.on_localFileTreeWidget_itemSelectionChanged"></a> |
|
701 <h4>MicroPythonFileManagerWidget.on_localFileTreeWidget_itemSelectionChanged</h4> |
|
702 <b>on_localFileTreeWidget_itemSelectionChanged</b>(<i></i>) |
|
703 |
|
704 <p> |
|
705 Private slot handling a change of selection in the local pane. |
|
706 </p> |
|
707 <a NAME="MicroPythonFileManagerWidget.on_localHomeButton_clicked" ID="MicroPythonFileManagerWidget.on_localHomeButton_clicked"></a> |
|
708 <h4>MicroPythonFileManagerWidget.on_localHomeButton_clicked</h4> |
|
709 <b>on_localHomeButton_clicked</b>(<i></i>) |
|
710 |
|
711 <p> |
|
712 Private slot to change directory to the configured workspace. |
|
713 </p> |
|
714 <a NAME="MicroPythonFileManagerWidget.on_localReloadButton_clicked" ID="MicroPythonFileManagerWidget.on_localReloadButton_clicked"></a> |
|
715 <h4>MicroPythonFileManagerWidget.on_localReloadButton_clicked</h4> |
|
716 <b>on_localReloadButton_clicked</b>(<i></i>) |
|
717 |
|
718 <p> |
|
719 Private slot to reload the local list. |
|
720 </p> |
|
721 <a NAME="MicroPythonFileManagerWidget.on_localUpButton_clicked" ID="MicroPythonFileManagerWidget.on_localUpButton_clicked"></a> |
|
722 <h4>MicroPythonFileManagerWidget.on_localUpButton_clicked</h4> |
|
723 <b>on_localUpButton_clicked</b>(<i></i>) |
|
724 |
|
725 <p> |
|
726 Private slot to go up one directory level. |
|
727 </p> |
|
728 <a NAME="MicroPythonFileManagerWidget.on_putAsButton_clicked" ID="MicroPythonFileManagerWidget.on_putAsButton_clicked"></a> |
|
729 <h4>MicroPythonFileManagerWidget.on_putAsButton_clicked</h4> |
|
730 <b>on_putAsButton_clicked</b>(<i></i>) |
|
731 |
|
732 <p> |
|
733 Private slot to copy the selected file to the connected device |
|
734 with a different name. |
|
735 </p> |
|
736 <a NAME="MicroPythonFileManagerWidget.on_putButton_clicked" ID="MicroPythonFileManagerWidget.on_putButton_clicked"></a> |
|
737 <h4>MicroPythonFileManagerWidget.on_putButton_clicked</h4> |
|
738 <b>on_putButton_clicked</b>(<i>putAs=False</i>) |
|
739 |
|
740 <p> |
|
741 Private slot to copy the selected file to the connected device. |
|
742 </p> |
|
743 <dl> |
|
744 |
|
745 <dt><i>putAs</i> (bool)</dt> |
|
746 <dd> |
|
747 flag indicating to give it a new name |
|
748 </dd> |
|
749 </dl> |
|
750 <a NAME="MicroPythonFileManagerWidget.on_syncButton_clicked" ID="MicroPythonFileManagerWidget.on_syncButton_clicked"></a> |
|
751 <h4>MicroPythonFileManagerWidget.on_syncButton_clicked</h4> |
|
752 <b>on_syncButton_clicked</b>(<i></i>) |
|
753 |
|
754 <p> |
|
755 Private slot to synchronize the local directory to the device. |
|
756 </p> |
|
757 <a NAME="MicroPythonFileManagerWidget.start" ID="MicroPythonFileManagerWidget.start"></a> |
|
758 <h4>MicroPythonFileManagerWidget.start</h4> |
|
759 <b>start</b>(<i></i>) |
|
760 |
|
761 <p> |
|
762 Public method to start the widget. |
|
763 </p> |
|
764 <a NAME="MicroPythonFileManagerWidget.stop" ID="MicroPythonFileManagerWidget.stop"></a> |
|
765 <h4>MicroPythonFileManagerWidget.stop</h4> |
|
766 <b>stop</b>(<i></i>) |
|
767 |
|
768 <p> |
|
769 Public method to stop the widget. |
|
770 </p> |
|
771 <div align="right"><a href="#top">Up</a></div> |
|
772 <hr /> |
|
773 </body></html> |