|
Post by mueh on Mar 12, 2021 3:10:22 GMT -5
George: Thanks for adding toggling layout . There is a problem when the path selected contains f.e. more than Min% (30%) PNG files . In this case it doesn't display Media in the new box and toggling doesn't work . When i started to change Min% to 90 to circumvent problem the status bar is set up in streched format without new Media/Normal box . There is second layout after opt FM Done which didn't get changed . I feel that if there are more media files than Min% it should show Media in box and allow toggle back to normal and back to media . Another minor thing is that Min% doesn't allow 100 % for all files and 101% to turn it off on initial selection . Toggling should still work .
One question to FORGET . It seems that it deletes the entry in FLIST instead of marking it forgotten . Thanks
|
|
|
Post by Stefan on Mar 12, 2021 7:13:52 GMT -5
I've not yet tried the new 'TOGGLE' view feature for FM.
But it occurs to me that it's a neat thing that shouldn't be tied to "NORMAL" or "MEDIA" directories. Perhaps it should be 'STANDARD' and 'ALTERNATIVE' respectively.
Different users will have different needs, so why not simply offer two different 'views' for FM and allow the user to toggle freely between them. Every user can pick from the list of supported column headers and mix and match as they wish.
George, If you wanted to really go 'all in', you could store the most recently used view for each directory someplace. Then you have your 'default' view for each directory as set by the user - no need to figure out what %ge files of which format it holds. If there is no entry for a given directory, it automatically inherits the view from its parent directory (ie, higher up the path) If the none of the parent directories are listed either, it gets the 'standard' view.
|
|
|
Post by George on Mar 12, 2021 11:17:47 GMT -5
MUEH: Stefan:
Ill correct that toggle setting handling. I sort-of rushed that code as the better half was tapping her feet (we were going out for dinner)
I like the Standard/Alternate names better.
Keeping last used Layout seems reasonable, but I'm not sure about cluttering up the user's file system with the data. Maybe I can figure out another way.
If I figure out a method, do we still need/want the Media Threshold thing? I think we could then remove it.
George
|
|
|
Post by Stefan on Mar 12, 2021 14:14:51 GMT -5
George, It occurs to me that you wouldn't need to save the view setting for EVERY directory. As there are only two possibilities, and every directory gets Standard unless the user switches it to Alternate, you only need to keep a list of the Alternate ones. As there are probably fewer Alternates than Standards, the list would be smaller and hence (a) faster to scan and (b) perhaps kept in memory for the SPFLite session.
|
|
|
Post by George on Mar 12, 2021 14:39:56 GMT -5
Stefan: Very true, maybe I could just dump it into the CFG file. It would be a simple change (famous last words).
George
|
|
|
Post by George on Mar 13, 2021 10:52:55 GMT -5
Robert:
The Registry, is generally something to avoid. Especially now that there are 2 (32 and 64 bit) and some functions like Delete require opening the correct one. I'm not toying with that right now.
Adding to the CFG file is trivial. It's done and working.
All I have left to do is add some automatic cleanup code to remove entries after some long interval (6 months, a year?). And if entries 'go away' for some reason, what happens? Well, they get the STANDARD layout and it takes all of 2 seconds to click on the StatusBar toggle to go back to the ALTERNATE and the new setting will be saved.
Oh yes, a minor addition to CFGMaint to handle the new entries.
George
===> I completely agree, George. I was only noting that Windows used it, not that you should copy the idea. Besides, if you can find a place for it in SQLite, then you are copying the "concept" of retaining a format description on a per-folder basis, which is what Windows does, without actually using the Registry. I am good with that - R
|
|
|
Post by Jo on Mar 13, 2021 11:13:58 GMT -5
Robert, George: There is another important reason not to use WindowsRegistry: Sometimes I have to use PCs and not having admin-authority, therefore my thumb-drive has a complete portable SPFLite installation. There is no need to install anything or to try to write to the registry (don't know, if it would succeed without admin).
BTW: V2.3 does execute from thumb-drive, V2.4 complains about not finding SPFLite.CFG in C:\Users\...Documents\SPFLite
Jo
|
|
|
Post by George on Mar 13, 2021 11:53:10 GMT -5
Jo: 2.4 was quickly cobbled to use CFG2 for test purposes. I'm sure it will be fine when it reverts back to the normal CFG name.
George
|
|
|
Post by George on Mar 13, 2021 12:04:07 GMT -5
OK, yet another update. This one: - Renames the two FM Layouts as STANDARD and ALTERNATE
- Removes the Media threshold setting from Options => FM.
- To switch between STANDARD and ALTERNATE toggle via the Status Bar display box.
- The choice between STANDARD and ALTERNATE will be saved for every folder displayed via FilePath, as well as for each of the different FM Display modes (Recent, Found, FLISTS, etc.)
- The saved settings are time-stamped and will get cleaned up (removed) after 180 days. All it takes to keep the setting alive is to view the display periodically. If it does 'go away', simply re-display it and toggle to your preferred choice.
George V2.4.21072 SPFLite24.exe (509.5 KB)
|
|
|
Post by George on Mar 13, 2021 12:24:36 GMT -5
If we keep the limited access to some of the extended file properties, can we agree on what they will be?
Right now SPFLite provides:
Artist FStop
Album Genre
BRate (Bit Rate) HRes
BDepth (Bit Depth) ISO
Contrib Len
CamMaker Title
CamModel Trk
Dimension (X x Y) Images and Videeo VRes
Exp Year
Flash
So ... what others should be there?
Are the names OK? Please keep in mind that while long names may be more descriptive, the FM column has to be at least as wide as the name+1 (for the +-* sort indicator) e.g "Horizontal Resolution" would be displaying "96 dpi" - 14 wasted columns.
Please don't ask for "all of them", it's just not practical.
George
|
|
|
Post by mueh on Mar 14, 2021 2:21:57 GMT -5
George: Execute OPT in FM and end it with Done . The FM Status bar is set up without the STANDARD/ALTERNATE box . It sets up the EDIT status bar in FM . pCmdOPTIONS calls StatusBarSetup instead of DoStatusBar which would set up FM status bar if it's FM Tab . CRCMV: Maximize/Minimize window to get FM status bar back . Thanks
|
|
|
Post by George on Mar 14, 2021 10:15:14 GMT -5
Robert: In your last post, the spacing you're seeing doesn't come through. Wrap it is CODE to keep the spacing.
George
|
|
|
Post by George on Mar 14, 2021 10:56:24 GMT -5
MUEH: Turns out to be elsewhere. I altered GlobalOptionSet to reverse the order of tab processing. Also removed the StatusBarSetup in Options since it is also performed by GlobalOptionsSet.
That whole area of refreshing the display after Options, or Screen re-sizing etc. needs to totally re-done. But debugging anything in the screen refresh/redraw logic is exceedingly painful. You can't use breakpoint or watches since the simple view of any debug data triggers a windows refresh and you keep ending up back at the same breakpoint. So I just keep poking and prodding to keep it all 'sort of' working.
George
|
|
|
Post by George on Mar 14, 2021 12:52:06 GMT -5
Robert: My you have been busy. - I will Add SUBTITLE, RATING and PUBLISHER
- I do not want to get into modifying Properties. Besides, we already have full line LB clicking and RB Context menus.
- I haven't found a way to open the File Properties directly. I've posted a question in the PB forums, maybe one of those wizards knows a way.
- O/OO and W/WW will now be supported in FM line commands.
- Corrected the missing abbreviation in the 1st column. Another artifact of making NAME an optional column.
- Separating EXT from the NAME when a separate EXT column is present. I'm afraid that's a NO, my mind can't go another layer of complexity.
- The wrapping in the file type box. That's controlled by the Windows code, I have no control. Won't matter, all spaces etc. are removed from the string anyway. Since you have so many, maybe it just needs a bigger box. Or maybe there's an 'allow scrolling' optional, I'll check.
[UPDATE] Have an answer for opening Properties directly. So what shall the line command be?
[\UPDATE] George
|
|
|
Post by George on Mar 14, 2021 14:31:59 GMT -5
Robert: Sorry, but that basically messes up the re-write which makes all columns independent, table driven items. All the column heading, contents and sorting are now done without any knowledge of what the columns are. (OK, some minor exceptions for the NAME field, but ...)
I'm really trying to avoid all this little "tweak here, tweak there, etc" to accomplish all these 'niceties'. I've run into all kinds of these old tweaks in making these FM changes.
George
|
|