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