eric6/Documentation/Source/eric6.MicroPython.MicroPythonFileManagerWidget.html

changeset 7145
ceb3e8b242c1
child 7273
391d6b7b1eff
equal deleted inserted replaced
7143:9eb66bad154d 7145:ceb3e8b242c1
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.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><a NAME="top" ID="top"></a>
22 <h1>eric6.MicroPython.MicroPythonFileManagerWidget</h1>
23 <p>
24 Module implementing a file manager for MicroPython devices.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>None</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr>
33 <td><a href="#MicroPythonFileManagerWidget">MicroPythonFileManagerWidget</a></td>
34 <td>Class implementing a file manager for MicroPython devices.</td>
35 </tr>
36 </table>
37 <h3>Functions</h3>
38 <table>
39 <tr><td>None</td></tr>
40 </table>
41 <hr /><hr />
42 <a NAME="MicroPythonFileManagerWidget" ID="MicroPythonFileManagerWidget"></a>
43 <h2>MicroPythonFileManagerWidget</h2>
44 <p>
45 Class implementing a file manager for MicroPython devices.
46 </p>
47 <h3>Derived from</h3>
48 QWidget, Ui_MicroPythonFileManagerWidget
49 <h3>Class Attributes</h3>
50 <table>
51 <tr><td>None</td></tr>
52 </table>
53 <h3>Class Methods</h3>
54 <table>
55 <tr><td>None</td></tr>
56 </table>
57 <h3>Methods</h3>
58 <table>
59 <tr>
60 <td><a href="#MicroPythonFileManagerWidget.__init__">MicroPythonFileManagerWidget</a></td>
61 <td>Constructor</td>
62 </tr><tr>
63 <td><a href="#MicroPythonFileManagerWidget.__changeDeviceDirectory">__changeDeviceDirectory</a></td>
64 <td>Private slot to change the current directory of the device.</td>
65 </tr><tr>
66 <td><a href="#MicroPythonFileManagerWidget.__changeLocalDirectory">__changeLocalDirectory</a></td>
67 <td>Private slot to change the local directory.</td>
68 </tr><tr>
69 <td><a href="#MicroPythonFileManagerWidget.__createDeviceDirectory">__createDeviceDirectory</a></td>
70 <td>Private slot to create a directory on the device.</td>
71 </tr><tr>
72 <td><a href="#MicroPythonFileManagerWidget.__createLocalDirectory">__createLocalDirectory</a></td>
73 <td>Private slot to create a local directory.</td>
74 </tr><tr>
75 <td><a href="#MicroPythonFileManagerWidget.__deleteDeviceDirectory">__deleteDeviceDirectory</a></td>
76 <td>Private slot to delete an empty directory on the device.</td>
77 </tr><tr>
78 <td><a href="#MicroPythonFileManagerWidget.__deleteDeviceDirectoryTree">__deleteDeviceDirectoryTree</a></td>
79 <td>Private slot to delete a directory and all its subdirectories recursively.</td>
80 </tr><tr>
81 <td><a href="#MicroPythonFileManagerWidget.__deleteDeviceFile">__deleteDeviceFile</a></td>
82 <td>Private slot to delete a file.</td>
83 </tr><tr>
84 <td><a href="#MicroPythonFileManagerWidget.__deleteLocalDirectoryTree">__deleteLocalDirectoryTree</a></td>
85 <td>Private slot to delete a local directory tree.</td>
86 </tr><tr>
87 <td><a href="#MicroPythonFileManagerWidget.__deleteLocalFile">__deleteLocalFile</a></td>
88 <td>Private slot to delete a local file.</td>
89 </tr><tr>
90 <td><a href="#MicroPythonFileManagerWidget.__deviceHiddenChanged">__deviceHiddenChanged</a></td>
91 <td>Private slot handling a change of the device show hidden menu entry.</td>
92 </tr><tr>
93 <td><a href="#MicroPythonFileManagerWidget.__fsInfoResultReceived">__fsInfoResultReceived</a></td>
94 <td>Private slot to show the file system information of the device.</td>
95 </tr><tr>
96 <td><a href="#MicroPythonFileManagerWidget.__handleCurrentDir">__handleCurrentDir</a></td>
97 <td>Private slot to handle a change of the current directory of the device.</td>
98 </tr><tr>
99 <td><a href="#MicroPythonFileManagerWidget.__handleError">__handleError</a></td>
100 <td>Private slot to handle errors.</td>
101 </tr><tr>
102 <td><a href="#MicroPythonFileManagerWidget.__handleGetDone">__handleGetDone</a></td>
103 <td>Private slot handling a successful copy of a file from the device.</td>
104 </tr><tr>
105 <td><a href="#MicroPythonFileManagerWidget.__handleLongListFiles">__handleLongListFiles</a></td>
106 <td>Private slot to receive a long directory listing.</td>
107 </tr><tr>
108 <td><a href="#MicroPythonFileManagerWidget.__handleRsyncDone">__handleRsyncDone</a></td>
109 <td>Private method to handle the completion of the rsync operation.</td>
110 </tr><tr>
111 <td><a href="#MicroPythonFileManagerWidget.__handleRsyncProgressMessage">__handleRsyncProgressMessage</a></td>
112 <td>Private slot handling progress messages sent by the file manager.</td>
113 </tr><tr>
114 <td><a href="#MicroPythonFileManagerWidget.__isFileInList">__isFileInList</a></td>
115 <td>Private method to check, if a file name is contained in a tree widget.</td>
116 </tr><tr>
117 <td><a href="#MicroPythonFileManagerWidget.__listLocalFiles">__listLocalFiles</a></td>
118 <td>Private method to populate the local files list.</td>
119 </tr><tr>
120 <td><a href="#MicroPythonFileManagerWidget.__localHiddenChanged">__localHiddenChanged</a></td>
121 <td>Private slot handling a change of the local show hidden menu entry.</td>
122 </tr><tr>
123 <td><a href="#MicroPythonFileManagerWidget.__newDeviceList">__newDeviceList</a></td>
124 <td>Private slot to initiate a new long list of the device directory.</td>
125 </tr><tr>
126 <td><a href="#MicroPythonFileManagerWidget.__progressInfoDialogFinished">__progressInfoDialogFinished</a></td>
127 <td>Private slot handling the closing of the progress info dialog.</td>
128 </tr><tr>
129 <td><a href="#MicroPythonFileManagerWidget.__showDeviceContextMenu">__showDeviceContextMenu</a></td>
130 <td>Private slot to show the REPL context menu.</td>
131 </tr><tr>
132 <td><a href="#MicroPythonFileManagerWidget.__showFileSystemInfo">__showFileSystemInfo</a></td>
133 <td>Private slot to show some file system information.</td>
134 </tr><tr>
135 <td><a href="#MicroPythonFileManagerWidget.__showLocalContextMenu">__showLocalContextMenu</a></td>
136 <td>Private slot to show the REPL context menu.</td>
137 </tr><tr>
138 <td><a href="#MicroPythonFileManagerWidget.on_deviceFileTreeWidget_itemActivated">on_deviceFileTreeWidget_itemActivated</a></td>
139 <td>Private slot to handle the activation of a device item.</td>
140 </tr><tr>
141 <td><a href="#MicroPythonFileManagerWidget.on_deviceFileTreeWidget_itemSelectionChanged">on_deviceFileTreeWidget_itemSelectionChanged</a></td>
142 <td>Private slot handling a change of selection in the local pane.</td>
143 </tr><tr>
144 <td><a href="#MicroPythonFileManagerWidget.on_deviceReloadButton_clicked">on_deviceReloadButton_clicked</a></td>
145 <td>Private slot to reload the device list.</td>
146 </tr><tr>
147 <td><a href="#MicroPythonFileManagerWidget.on_deviceUpButton_clicked">on_deviceUpButton_clicked</a></td>
148 <td>Private slot to go up one directory level on the device.</td>
149 </tr><tr>
150 <td><a href="#MicroPythonFileManagerWidget.on_getAsButton_clicked">on_getAsButton_clicked</a></td>
151 <td>Private slot to copy the selected file from the connected device with a different name.</td>
152 </tr><tr>
153 <td><a href="#MicroPythonFileManagerWidget.on_getButton_clicked">on_getButton_clicked</a></td>
154 <td>Private slot to copy the selected file from the connected device.</td>
155 </tr><tr>
156 <td><a href="#MicroPythonFileManagerWidget.on_localFileTreeWidget_itemActivated">on_localFileTreeWidget_itemActivated</a></td>
157 <td>Private slot to handle the activation of a local item.</td>
158 </tr><tr>
159 <td><a href="#MicroPythonFileManagerWidget.on_localFileTreeWidget_itemSelectionChanged">on_localFileTreeWidget_itemSelectionChanged</a></td>
160 <td>Private slot handling a change of selection in the local pane.</td>
161 </tr><tr>
162 <td><a href="#MicroPythonFileManagerWidget.on_localReloadButton_clicked">on_localReloadButton_clicked</a></td>
163 <td>Private slot to reload the local list.</td>
164 </tr><tr>
165 <td><a href="#MicroPythonFileManagerWidget.on_localUpButton_clicked">on_localUpButton_clicked</a></td>
166 <td>Private slot to go up one directory level.</td>
167 </tr><tr>
168 <td><a href="#MicroPythonFileManagerWidget.on_putAsButton_clicked">on_putAsButton_clicked</a></td>
169 <td>Private slot to copy the selected file to the connected device with a different name.</td>
170 </tr><tr>
171 <td><a href="#MicroPythonFileManagerWidget.on_putButton_clicked">on_putButton_clicked</a></td>
172 <td>Private slot to copy the selected file to the connected device.</td>
173 </tr><tr>
174 <td><a href="#MicroPythonFileManagerWidget.on_syncButton_clicked">on_syncButton_clicked</a></td>
175 <td>Private slot to synchronize the local directory to the device.</td>
176 </tr><tr>
177 <td><a href="#MicroPythonFileManagerWidget.start">start</a></td>
178 <td>Public method to start the widget.</td>
179 </tr><tr>
180 <td><a href="#MicroPythonFileManagerWidget.stop">stop</a></td>
181 <td>Public method to stop the widget.</td>
182 </tr>
183 </table>
184 <h3>Static Methods</h3>
185 <table>
186 <tr><td>None</td></tr>
187 </table>
188 <a NAME="MicroPythonFileManagerWidget.__init__" ID="MicroPythonFileManagerWidget.__init__"></a>
189 <h4>MicroPythonFileManagerWidget (Constructor)</h4>
190 <b>MicroPythonFileManagerWidget</b>(<i>commandsInterface, deviceWithLocalAccess, parent=None</i>)
191 <p>
192 Constructor
193 </p><dl>
194 <dt><i>commandsInterface</i> (MicroPythonCommandsInterface)</dt>
195 <dd>
196 reference to the commands interface object
197 </dd><dt><i>deviceWithLocalAccess</i> (bool)</dt>
198 <dd>
199 flag indicating the device supports file
200 access via a local directory
201 </dd><dt><i>parent</i> (QWidget)</dt>
202 <dd>
203 reference to the parent widget
204 </dd>
205 </dl><a NAME="MicroPythonFileManagerWidget.__changeDeviceDirectory" ID="MicroPythonFileManagerWidget.__changeDeviceDirectory"></a>
206 <h4>MicroPythonFileManagerWidget.__changeDeviceDirectory</h4>
207 <b>__changeDeviceDirectory</b>(<i></i>)
208 <p>
209 Private slot to change the current directory of the device.
210 </p><p>
211 Note: This triggers a re-population of the device list for the new
212 current directory.
213 </p><a NAME="MicroPythonFileManagerWidget.__changeLocalDirectory" ID="MicroPythonFileManagerWidget.__changeLocalDirectory"></a>
214 <h4>MicroPythonFileManagerWidget.__changeLocalDirectory</h4>
215 <b>__changeLocalDirectory</b>(<i>localDevice=False</i>)
216 <p>
217 Private slot to change the local directory.
218 </p><dl>
219 <dt><i>localDevice</i> (bool)</dt>
220 <dd>
221 flag indicating device access via local file system
222 </dd>
223 </dl><a NAME="MicroPythonFileManagerWidget.__createDeviceDirectory" ID="MicroPythonFileManagerWidget.__createDeviceDirectory"></a>
224 <h4>MicroPythonFileManagerWidget.__createDeviceDirectory</h4>
225 <b>__createDeviceDirectory</b>(<i></i>)
226 <p>
227 Private slot to create a directory on the device.
228 </p><a NAME="MicroPythonFileManagerWidget.__createLocalDirectory" ID="MicroPythonFileManagerWidget.__createLocalDirectory"></a>
229 <h4>MicroPythonFileManagerWidget.__createLocalDirectory</h4>
230 <b>__createLocalDirectory</b>(<i>localDevice=False</i>)
231 <p>
232 Private slot to create a local directory.
233 </p><dl>
234 <dt><i>localDevice</i> (bool)</dt>
235 <dd>
236 flag indicating device access via local file system
237 </dd>
238 </dl><a NAME="MicroPythonFileManagerWidget.__deleteDeviceDirectory" ID="MicroPythonFileManagerWidget.__deleteDeviceDirectory"></a>
239 <h4>MicroPythonFileManagerWidget.__deleteDeviceDirectory</h4>
240 <b>__deleteDeviceDirectory</b>(<i></i>)
241 <p>
242 Private slot to delete an empty directory on the device.
243 </p><a NAME="MicroPythonFileManagerWidget.__deleteDeviceDirectoryTree" ID="MicroPythonFileManagerWidget.__deleteDeviceDirectoryTree"></a>
244 <h4>MicroPythonFileManagerWidget.__deleteDeviceDirectoryTree</h4>
245 <b>__deleteDeviceDirectoryTree</b>(<i></i>)
246 <p>
247 Private slot to delete a directory and all its subdirectories
248 recursively.
249 </p><a NAME="MicroPythonFileManagerWidget.__deleteDeviceFile" ID="MicroPythonFileManagerWidget.__deleteDeviceFile"></a>
250 <h4>MicroPythonFileManagerWidget.__deleteDeviceFile</h4>
251 <b>__deleteDeviceFile</b>(<i></i>)
252 <p>
253 Private slot to delete a file.
254 </p><a NAME="MicroPythonFileManagerWidget.__deleteLocalDirectoryTree" ID="MicroPythonFileManagerWidget.__deleteLocalDirectoryTree"></a>
255 <h4>MicroPythonFileManagerWidget.__deleteLocalDirectoryTree</h4>
256 <b>__deleteLocalDirectoryTree</b>(<i>localDevice=False</i>)
257 <p>
258 Private slot to delete a local directory tree.
259 </p><dl>
260 <dt><i>localDevice</i> (bool)</dt>
261 <dd>
262 flag indicating device access via local file system
263 </dd>
264 </dl><a NAME="MicroPythonFileManagerWidget.__deleteLocalFile" ID="MicroPythonFileManagerWidget.__deleteLocalFile"></a>
265 <h4>MicroPythonFileManagerWidget.__deleteLocalFile</h4>
266 <b>__deleteLocalFile</b>(<i>localDevice=False</i>)
267 <p>
268 Private slot to delete a local file.
269 </p><dl>
270 <dt><i>localDevice</i> (bool)</dt>
271 <dd>
272 flag indicating device access via local file system
273 </dd>
274 </dl><a NAME="MicroPythonFileManagerWidget.__deviceHiddenChanged" ID="MicroPythonFileManagerWidget.__deviceHiddenChanged"></a>
275 <h4>MicroPythonFileManagerWidget.__deviceHiddenChanged</h4>
276 <b>__deviceHiddenChanged</b>(<i>checked</i>)
277 <p>
278 Private slot handling a change of the device show hidden menu entry.
279 </p><dl>
280 <dt><i>checked</i> (bool)</dt>
281 <dd>
282 new check state of the action
283 </dd>
284 </dl><a NAME="MicroPythonFileManagerWidget.__fsInfoResultReceived" ID="MicroPythonFileManagerWidget.__fsInfoResultReceived"></a>
285 <h4>MicroPythonFileManagerWidget.__fsInfoResultReceived</h4>
286 <b>__fsInfoResultReceived</b>(<i>fsinfo</i>)
287 <p>
288 Private slot to show the file system information of the device.
289 </p><dl>
290 <dt><i>fsinfo</i> (tuple of tuples of (str, int, int, int))</dt>
291 <dd>
292 tuple of tuples containing the file system name, the
293 total size, the used size and the free size
294 </dd>
295 </dl><a NAME="MicroPythonFileManagerWidget.__handleCurrentDir" ID="MicroPythonFileManagerWidget.__handleCurrentDir"></a>
296 <h4>MicroPythonFileManagerWidget.__handleCurrentDir</h4>
297 <b>__handleCurrentDir</b>(<i>dirname</i>)
298 <p>
299 Private slot to handle a change of the current directory of the device.
300 </p><dl>
301 <dt><i>dirname</i> (str)</dt>
302 <dd>
303 name of the current directory
304 </dd>
305 </dl><a NAME="MicroPythonFileManagerWidget.__handleError" ID="MicroPythonFileManagerWidget.__handleError"></a>
306 <h4>MicroPythonFileManagerWidget.__handleError</h4>
307 <b>__handleError</b>(<i>method, error</i>)
308 <p>
309 Private slot to handle errors.
310 </p><dl>
311 <dt><i>method</i> (str)</dt>
312 <dd>
313 name of the method the error occured in
314 </dd><dt><i>error</i> (str)</dt>
315 <dd>
316 error message
317 </dd>
318 </dl><a NAME="MicroPythonFileManagerWidget.__handleGetDone" ID="MicroPythonFileManagerWidget.__handleGetDone"></a>
319 <h4>MicroPythonFileManagerWidget.__handleGetDone</h4>
320 <b>__handleGetDone</b>(<i>deviceFile, localFile</i>)
321 <p>
322 Private slot handling a successful copy of a file from the device.
323 </p><dl>
324 <dt><i>deviceFile</i> (str)</dt>
325 <dd>
326 name of the file on the device
327 </dd><dt><i>localFile</i> (str)</dt>
328 <dd>
329 name of the local file
330 </dd>
331 </dl><a NAME="MicroPythonFileManagerWidget.__handleLongListFiles" ID="MicroPythonFileManagerWidget.__handleLongListFiles"></a>
332 <h4>MicroPythonFileManagerWidget.__handleLongListFiles</h4>
333 <b>__handleLongListFiles</b>(<i>filesList</i>)
334 <p>
335 Private slot to receive a long directory listing.
336 </p><dl>
337 <dt><i>filesList</i> (tuple of (str, str, str, str))</dt>
338 <dd>
339 tuple containing tuples with name, mode, size and time
340 for each directory entry
341 </dd>
342 </dl><a NAME="MicroPythonFileManagerWidget.__handleRsyncDone" ID="MicroPythonFileManagerWidget.__handleRsyncDone"></a>
343 <h4>MicroPythonFileManagerWidget.__handleRsyncDone</h4>
344 <b>__handleRsyncDone</b>(<i>localDir, deviceDir</i>)
345 <p>
346 Private method to handle the completion of the rsync operation.
347 </p><dl>
348 <dt><i>localDir</i> (str)</dt>
349 <dd>
350 name of the local directory
351 </dd><dt><i>deviceDir</i> (str)</dt>
352 <dd>
353 name of the device directory
354 </dd>
355 </dl><a NAME="MicroPythonFileManagerWidget.__handleRsyncProgressMessage" ID="MicroPythonFileManagerWidget.__handleRsyncProgressMessage"></a>
356 <h4>MicroPythonFileManagerWidget.__handleRsyncProgressMessage</h4>
357 <b>__handleRsyncProgressMessage</b>(<i>message</i>)
358 <p>
359 Private slot handling progress messages sent by the file manager.
360 </p><dl>
361 <dt><i>message</i> (str)</dt>
362 <dd>
363 message to be shown
364 </dd>
365 </dl><a NAME="MicroPythonFileManagerWidget.__isFileInList" ID="MicroPythonFileManagerWidget.__isFileInList"></a>
366 <h4>MicroPythonFileManagerWidget.__isFileInList</h4>
367 <b>__isFileInList</b>(<i>filename, treeWidget</i>)
368 <p>
369 Private method to check, if a file name is contained in a tree widget.
370 </p><dl>
371 <dt><i>filename</i> (str)</dt>
372 <dd>
373 name of the file to check
374 </dd><dt><i>treeWidget</i></dt>
375 <dd>
376 reference to the tree widget to be checked against
377 </dd>
378 </dl><dl>
379 <dt>Returns:</dt>
380 <dd>
381 flag indicating that the file name is present
382 </dd>
383 </dl><dl>
384 <dt>Return Type:</dt>
385 <dd>
386 bool
387 </dd>
388 </dl><a NAME="MicroPythonFileManagerWidget.__listLocalFiles" ID="MicroPythonFileManagerWidget.__listLocalFiles"></a>
389 <h4>MicroPythonFileManagerWidget.__listLocalFiles</h4>
390 <b>__listLocalFiles</b>(<i>dirname="", localDevice=False</i>)
391 <p>
392 Private method to populate the local files list.
393 </p><dl>
394 <dt><i>dirname</i> (str)</dt>
395 <dd>
396 name of the local directory to be listed
397 </dd><dt><i>localDevice</i> (bool)</dt>
398 <dd>
399 flag indicating device access via local file system
400 </dd>
401 </dl><a NAME="MicroPythonFileManagerWidget.__localHiddenChanged" ID="MicroPythonFileManagerWidget.__localHiddenChanged"></a>
402 <h4>MicroPythonFileManagerWidget.__localHiddenChanged</h4>
403 <b>__localHiddenChanged</b>(<i>checked</i>)
404 <p>
405 Private slot handling a change of the local show hidden menu entry.
406 </p><dl>
407 <dt><i>checked</i> (bool)</dt>
408 <dd>
409 new check state of the action
410 </dd>
411 </dl><a NAME="MicroPythonFileManagerWidget.__newDeviceList" ID="MicroPythonFileManagerWidget.__newDeviceList"></a>
412 <h4>MicroPythonFileManagerWidget.__newDeviceList</h4>
413 <b>__newDeviceList</b>(<i></i>)
414 <p>
415 Private slot to initiate a new long list of the device directory.
416 </p><a NAME="MicroPythonFileManagerWidget.__progressInfoDialogFinished" ID="MicroPythonFileManagerWidget.__progressInfoDialogFinished"></a>
417 <h4>MicroPythonFileManagerWidget.__progressInfoDialogFinished</h4>
418 <b>__progressInfoDialogFinished</b>(<i></i>)
419 <p>
420 Private slot handling the closing of the progress info dialog.
421 </p><a NAME="MicroPythonFileManagerWidget.__showDeviceContextMenu" ID="MicroPythonFileManagerWidget.__showDeviceContextMenu"></a>
422 <h4>MicroPythonFileManagerWidget.__showDeviceContextMenu</h4>
423 <b>__showDeviceContextMenu</b>(<i>pos</i>)
424 <p>
425 Private slot to show the REPL context menu.
426 </p><dl>
427 <dt><i>pos</i> (QPoint)</dt>
428 <dd>
429 position to show the menu at
430 </dd>
431 </dl><a NAME="MicroPythonFileManagerWidget.__showFileSystemInfo" ID="MicroPythonFileManagerWidget.__showFileSystemInfo"></a>
432 <h4>MicroPythonFileManagerWidget.__showFileSystemInfo</h4>
433 <b>__showFileSystemInfo</b>(<i></i>)
434 <p>
435 Private slot to show some file system information.
436 </p><a NAME="MicroPythonFileManagerWidget.__showLocalContextMenu" ID="MicroPythonFileManagerWidget.__showLocalContextMenu"></a>
437 <h4>MicroPythonFileManagerWidget.__showLocalContextMenu</h4>
438 <b>__showLocalContextMenu</b>(<i>pos</i>)
439 <p>
440 Private slot to show the REPL context menu.
441 </p><dl>
442 <dt><i>pos</i> (QPoint)</dt>
443 <dd>
444 position to show the menu at
445 </dd>
446 </dl><a NAME="MicroPythonFileManagerWidget.on_deviceFileTreeWidget_itemActivated" ID="MicroPythonFileManagerWidget.on_deviceFileTreeWidget_itemActivated"></a>
447 <h4>MicroPythonFileManagerWidget.on_deviceFileTreeWidget_itemActivated</h4>
448 <b>on_deviceFileTreeWidget_itemActivated</b>(<i>item, column</i>)
449 <p>
450 Private slot to handle the activation of a device item.
451 </p><p>
452 If the item is a directory, the current working directory is changed
453 and the list will be re-populated for this directory.
454 </p><dl>
455 <dt><i>item</i> (QTreeWidgetItem)</dt>
456 <dd>
457 reference to the activated item
458 </dd><dt><i>column</i> (int)</dt>
459 <dd>
460 column of the activation
461 </dd>
462 </dl><a NAME="MicroPythonFileManagerWidget.on_deviceFileTreeWidget_itemSelectionChanged" ID="MicroPythonFileManagerWidget.on_deviceFileTreeWidget_itemSelectionChanged"></a>
463 <h4>MicroPythonFileManagerWidget.on_deviceFileTreeWidget_itemSelectionChanged</h4>
464 <b>on_deviceFileTreeWidget_itemSelectionChanged</b>(<i></i>)
465 <p>
466 Private slot handling a change of selection in the local pane.
467 </p><a NAME="MicroPythonFileManagerWidget.on_deviceReloadButton_clicked" ID="MicroPythonFileManagerWidget.on_deviceReloadButton_clicked"></a>
468 <h4>MicroPythonFileManagerWidget.on_deviceReloadButton_clicked</h4>
469 <b>on_deviceReloadButton_clicked</b>(<i></i>)
470 <p>
471 Private slot to reload the device list.
472 </p><a NAME="MicroPythonFileManagerWidget.on_deviceUpButton_clicked" ID="MicroPythonFileManagerWidget.on_deviceUpButton_clicked"></a>
473 <h4>MicroPythonFileManagerWidget.on_deviceUpButton_clicked</h4>
474 <b>on_deviceUpButton_clicked</b>(<i></i>)
475 <p>
476 Private slot to go up one directory level on the device.
477 </p><a NAME="MicroPythonFileManagerWidget.on_getAsButton_clicked" ID="MicroPythonFileManagerWidget.on_getAsButton_clicked"></a>
478 <h4>MicroPythonFileManagerWidget.on_getAsButton_clicked</h4>
479 <b>on_getAsButton_clicked</b>(<i></i>)
480 <p>
481 Private slot to copy the selected file from the connected device
482 with a different name.
483 </p><a NAME="MicroPythonFileManagerWidget.on_getButton_clicked" ID="MicroPythonFileManagerWidget.on_getButton_clicked"></a>
484 <h4>MicroPythonFileManagerWidget.on_getButton_clicked</h4>
485 <b>on_getButton_clicked</b>(<i>getAs=False</i>)
486 <p>
487 Private slot to copy the selected file from the connected device.
488 </p><dl>
489 <dt><i>getAs</i> (bool)</dt>
490 <dd>
491 flag indicating to give it a new name
492 </dd>
493 </dl><a NAME="MicroPythonFileManagerWidget.on_localFileTreeWidget_itemActivated" ID="MicroPythonFileManagerWidget.on_localFileTreeWidget_itemActivated"></a>
494 <h4>MicroPythonFileManagerWidget.on_localFileTreeWidget_itemActivated</h4>
495 <b>on_localFileTreeWidget_itemActivated</b>(<i>item, column</i>)
496 <p>
497 Private slot to handle the activation of a local item.
498 </p><p>
499 If the item is a directory, the list will be re-populated for this
500 directory.
501 </p><dl>
502 <dt><i>item</i> (QTreeWidgetItem)</dt>
503 <dd>
504 reference to the activated item
505 </dd><dt><i>column</i> (int)</dt>
506 <dd>
507 column of the activation
508 </dd>
509 </dl><a NAME="MicroPythonFileManagerWidget.on_localFileTreeWidget_itemSelectionChanged" ID="MicroPythonFileManagerWidget.on_localFileTreeWidget_itemSelectionChanged"></a>
510 <h4>MicroPythonFileManagerWidget.on_localFileTreeWidget_itemSelectionChanged</h4>
511 <b>on_localFileTreeWidget_itemSelectionChanged</b>(<i></i>)
512 <p>
513 Private slot handling a change of selection in the local pane.
514 </p><a NAME="MicroPythonFileManagerWidget.on_localReloadButton_clicked" ID="MicroPythonFileManagerWidget.on_localReloadButton_clicked"></a>
515 <h4>MicroPythonFileManagerWidget.on_localReloadButton_clicked</h4>
516 <b>on_localReloadButton_clicked</b>(<i></i>)
517 <p>
518 Private slot to reload the local list.
519 </p><a NAME="MicroPythonFileManagerWidget.on_localUpButton_clicked" ID="MicroPythonFileManagerWidget.on_localUpButton_clicked"></a>
520 <h4>MicroPythonFileManagerWidget.on_localUpButton_clicked</h4>
521 <b>on_localUpButton_clicked</b>(<i></i>)
522 <p>
523 Private slot to go up one directory level.
524 </p><a NAME="MicroPythonFileManagerWidget.on_putAsButton_clicked" ID="MicroPythonFileManagerWidget.on_putAsButton_clicked"></a>
525 <h4>MicroPythonFileManagerWidget.on_putAsButton_clicked</h4>
526 <b>on_putAsButton_clicked</b>(<i></i>)
527 <p>
528 Private slot to copy the selected file to the connected device
529 with a different name.
530 </p><a NAME="MicroPythonFileManagerWidget.on_putButton_clicked" ID="MicroPythonFileManagerWidget.on_putButton_clicked"></a>
531 <h4>MicroPythonFileManagerWidget.on_putButton_clicked</h4>
532 <b>on_putButton_clicked</b>(<i>putAs=False</i>)
533 <p>
534 Private slot to copy the selected file to the connected device.
535 </p><dl>
536 <dt><i>putAs</i> (bool)</dt>
537 <dd>
538 flag indicating to give it a new name
539 </dd>
540 </dl><a NAME="MicroPythonFileManagerWidget.on_syncButton_clicked" ID="MicroPythonFileManagerWidget.on_syncButton_clicked"></a>
541 <h4>MicroPythonFileManagerWidget.on_syncButton_clicked</h4>
542 <b>on_syncButton_clicked</b>(<i></i>)
543 <p>
544 Private slot to synchronize the local directory to the device.
545 </p><a NAME="MicroPythonFileManagerWidget.start" ID="MicroPythonFileManagerWidget.start"></a>
546 <h4>MicroPythonFileManagerWidget.start</h4>
547 <b>start</b>(<i></i>)
548 <p>
549 Public method to start the widget.
550 </p><a NAME="MicroPythonFileManagerWidget.stop" ID="MicroPythonFileManagerWidget.stop"></a>
551 <h4>MicroPythonFileManagerWidget.stop</h4>
552 <b>stop</b>(<i></i>)
553 <p>
554 Public method to stop the widget.
555 </p>
556 <div align="right"><a href="#top">Up</a></div>
557 <hr />
558 </body></html>

eric ide

mercurial