|
Forum Index : Microcontroller and PC projects : [MMBasic] Maximite File Selector
| Author | Message | ||||
| twofingers Guru Joined: 02/06/2014 Location: GermanyPosts: 1769 |
Hi all, This is a still incomplete version of my newest File Selector (kind of a File Manager) for Maximites (tested with Duinomite and TFT Maximite). '*********************************************************** *
' FS, FileSelector v.047 (beta) ' ' MMBasic 4.5 / Maximite / Duinomite / B/W ' by twofingers 11-2014 at TBS ' ' Contains code "Bblsort" from MMBasic library (Hugh Buckle) ' and Peters (G8JCF on TBS) Trim() functions '----------------------------------------------------------- - ' still to do: ' scroll (to have more then 210 files) ' replace slow Bblsort() with cfunction (some day ...) ' multi delete, move, copy ' copy '------------------------------------------------- ' Purpose: ' This file selector can ' 1. Navigate on your SD. ' 2. Replaces "Files" command ' 3. Run (execute) ".BAS" files ' 4. Show the content of ".TXT" and ".BMP" files ' to get a impression i.e. before you decide to delete ' 5. Delete selected file ' 6. Rename selected file '********************************************************* ' This code may be freely distributed and changed. ' Provided AS IS without any warranty. ' Use it at your own risk. All information is provided for ' educational purposes only! ' --------------------------------------------- ' Credit to Geoff for his great MMBasic '********************************************************* Download: 2014-11-04_160509_FS.zip Michael ‚My name is Ozymandias, king of kings Look on my works, ye Mighty, and despair!‘ Nothing beside remains. Round the decay Of that colossal wreck, boundless and bare The lone and ... |
||||
| 00WReX Newbie Joined: 24/10/2014 Location: AustraliaPosts: 13 |
I like it. Thanks for sharing.
Cheers, Shane |
||||
| twofingers Guru Joined: 02/06/2014 Location: GermanyPosts: 1769 |
Xmas-Update: '*********************************************************** *
' FS, FileSelector v.091 (beta) ' ' System: MMBasic 4.5 / Maximite / Duinomite / B/W ' by twofingers 11-2014 at TBS ' ' Contains code "Bblsort" from MMBasic library (Hugh Buckle) '----------------------------------------------------------- - ' still to do: ' scroll (to have more then 210 files) ' replace slow Bblsort() with cfunction (some day ...) '------------------------------------------------- ' Purpose: ' This file selector can ' 1. Navigate on your SD. ' 2. Replaces "Files" command ' 3. Run (execute) ".BAS" files ' 4. Show the content of ".TXT" and ".BMP" files ' to get a impression i.e. before you decide to delete ' or to view a help.txt (for MMBasic syntax?) ... ' Save snippets (from view mode) ' 5. Delete selected file/dir ' 6. Rename selected file/dir ' 7. Multi select, copy (for files) und delete (files & dirs) ' 8. Multi move (files) - Note: normaly (on PCs) move means ' just a rename. For FS we must use copy&kill to move files. ' ---------------------------- ' Limits: ' This program handles only 210 items/directory ' If there are more than 210, then a white bar ' appears on the right. ' If no files on SD the program quits. That's because ' I don't know what to display ... ' ---------------------- ' Only files can be sorted and selected. ' Directorys can't be copied, but created. ' Only empty directorys can be killed. ' '*********************************************************** ** ' This code may be freely distributed and changed. ' Provided AS IS without any warranty. ' Use it at your own risk. All information is provided for ' educational purposes only! ' --------------------------------------------- ' ++++++ Credit to Geoff for his great MMBasic ++++++ '*********************************************************** ** '*********************************************************** ** ' Operation keys: ' 4 arrow keys, Home, End (for positioning the cursor) ' Ascii keys find the resp. files (positioning)" ' Del (deletes files and remove (empty!) directorys) ' Enter (execute BAS file, show text and BMP files) ' Insert (copies single files) ' Space (selects files) ' Alt F-Key help ' ' F1 Show a help page ' you can set Time, Date and "auto DeSelect" and "risk mode" ' F2 Rename (Esc) ' F3 ViewFile (Page Up/Dn, [s]=save snippet, Esc) ' F4 Sort (up to 90 files: auto sort) ' F5 Copy selected files/dirs - <ESC> exits Copy (any time) ' for overwrite: ' <y> overwrite current file ' <n> do not overwrite current file ' <ENTER> overwrite all existing files (don't ask again) ' <BSp> continue copy but never overwrite ' F6 Make directory (Esc) ' F7 Move files (copy + kill), see F5 for overwrite options ' F8 MULTI Kill/Delete - <Esc> exits Kill (any time) ' F9 select (alternatively:"+") ' F10 deselect (alternatively:"-") ' F11 Invert the selection (alternatively:"*") ' F12 runs B:\FS (there should be this program) ' ESC quits this program '*********************************************************** *** Download: 2014-12-25_161024_FS91.zip FS.bas is a MMedit crunched (thanks to TassyJim@tbs) version of fs91.bas. edit: New Year Update (includes factus10 fast comb sort code) DS3231.bas is Jman's library for DS3231 RTC modules. edit: (9.Apr.2015) download deleted. Please don't use FS96! Happy 2015 to all TBS members!
Michael ‚My name is Ozymandias, king of kings Look on my works, ye Mighty, and despair!‘ Nothing beside remains. Round the decay Of that colossal wreck, boundless and bare The lone and ... |
||||
| twofingers Guru Joined: 02/06/2014 Location: GermanyPosts: 1769 |
4. Update: Changes: 09.04.2015 1. Comb sort corrected 2. Path displayed 3. Other minor changes (Overflow, Readtime, Home key, ...) 13.04.2015: Readtime issue 20.04.2015: MaskEdit: insert, delete, timing 17.09.2015 print file size only if cursor stands still (since 099) '************************************************************
' FS, FileSelector v.099 (beta) released 17.9.2015 ' ' System: MMBasic 4.5 / Maximite / Duinomite / B/W ' by twofingers 11-2014 at TBS ' Credit: ' Contains factus10@TBS "CombSort" code (modified) '------------------------------------------------------------ ' still to do: ' ' replace CombSort() with cfunction (some day ...) ' Find file? ' Date$ valid? (in Help) '------------------------------------------------- ' Purpose: ' This file selector can ' 1. Navigate on your SD. ' 2. Replaces "Files" command ' 3. Run (execute) ".BAS" files ' 4. Show the content of ".TXT" and ".BMP" files ' to get a impression i.e. before you decide to delete ' or to view a help.txt (for MMBasic syntax?) ... ' Save snippets (from view mode) ' 5. Delete selected file/dir ' 6. Rename selected file/dir ' 7. Multi select, copy (for files) und delete (files & dirs) ' 8. Multi move (files) - Note: normaly (on PCs) move means ' just a rename. For FS we must use copy&kill to move files. ' 9. From "Help" you can easily setup Time & Date of your RTC ' ------------------------------ ' Limits: ' This program handles only 210 (or less) items/directorys ' If there are more than 210, then a white bar ' appears on the right. ' If no files on SD the program quits. That's because ' I don't know what to display ... ' Normaly this "fs.bas" program should be in the main dir ' (and ds3231.bas too if you are using a DS3231/2 or ' DS1307 RTC) ' ---------------------- ' Only files can be selected (for copy, delete or move). ' Directorys can't be copied or moved, but created and renamed. ' Only empty directorys can be killed. ' '************************************************************* ' This code may be freely distributed and changed. ' Provided AS IS without any warranty. ' Use it at your own risk. All information is provided for ' educational purposes only! ' --------------------------------------------- ' ++++++ Credit to Geoff for his great MMBasic ++++++ '************************************************************* '************************************************************* ' Operation keys: ' 4 arrow keys, Home, End (for positioning the cursor) ' Ascii keys find the resp. files (positioning)" ' Del (deletes files and remove (empty!) directorys) ' Enter (execute BAS file, show text and BMP files) ' Insert (copies single files) ' Space (selects files), TAB moves to root dir ' Alt F-Key help ' ' F1 Show a help page ' you can set Time, Date and "auto DeSelect" and "risk mode" ' F2 Rename (Esc,Home,End,Ins,Del,BSp,Enter,Left,Right) ' F3 ViewFile (Page Up/Dn, [s]=save snippet, Esc) ' F4 Sort ' F5 Copy selected files/dirs - <ESC> exits Copy (any time) ' for overwrite: ' <y> overwrite current file ' <n> do not overwrite current file ' <ENTER> overwrite all existing files (don't ask again) ' <BSp> continue copy but never overwrite ' F6 Make directory (Esc) ' F7 Move files (copy + kill), see F5 for overwrite options ' F8 MULTI Kill/Delete - <Esc> exits Kill (any time) ' F9 select (alternatively:"+") ' F10 deselect (alternatively:"-") ' F11 Invert the selection (alternatively:"*") ' F12 runs B:\FS (there should be this program) ' CTRL+x quits this program '************************************************************** DOWNLOAD 2015-09-18_165950_FS99.zip Regards Michael ‚My name is Ozymandias, king of kings Look on my works, ye Mighty, and despair!‘ Nothing beside remains. Round the decay Of that colossal wreck, boundless and bare The lone and ... |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2026 |