Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 18:28 16 May 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : [MMBasic] Maximite File Selector

Author Message
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1535
Posted: 06:09am 04 Nov 2014
Copy link to clipboard 
Print this post

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
causality ≠ correlation ≠ coincidence
 
00WReX
Newbie

Joined: 24/10/2014
Location: Australia
Posts: 13
Posted: 07:58pm 04 Nov 2014
Copy link to clipboard 
Print this post

I like it. Thanks for sharing.

Cheers,
Shane
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1535
Posted: 06:18am 25 Dec 2014
Copy link to clipboard 
Print this post

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)
  Quote   deleted


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!

MichaelEdited by twofingers 2015-04-10
causality ≠ correlation ≠ coincidence
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1535
Posted: 07:46am 09 Apr 2015
Copy link to clipboard 
Print this post

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
Edited by twofingers 2015-09-19
causality ≠ correlation ≠ coincidence
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025