Thumbnailprovider.dll
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Thumbnailprovider.dll
Not sure how this works but can this be extended to show thumbnails for backup versions also? For all "FCStd*" or at least FCStd1 - FCStd9? Maybe show some overlay to distinguish backups?
Re: Thumbnailprovider.dll
And also for FCBak extension?
Re: Thumbnailprovider.dll
For the records: The process of installing and compiling the DLL on Windows is now described in the Wiki:
Compile_on_Windows#Tumbnail_Provider
Compile_on_Windows#Tumbnail_Provider
Re: Thumbnailprovider.dll
I think this should be supplied with the windows installation and description how to enable it in a readme, doc, ... It is jusr 160kb /(77kb upx-ed) and would be really nice to have. Maybe just a BAT file and a simple "run as administrator" explanation will do the trick.
Re: Thumbnailprovider.dll
Missed that...
Is it hard to implement my previous suggestions? Preview also backup files? Maybe some overlay to indicate that it is a backup file?
Is it hard to implement my previous suggestions? Preview also backup files? Maybe some overlay to indicate that it is a backup file?
Re: Thumbnailprovider.dll
I am not the author of the DLL. You can change the code to work also for FCBak files. As far as I can see, it is just copying and modifying line 110 of Main.cpp:
https://github.com/FreeCAD/FreeCAD/blob ... n.cpp#L110
I can have a closer look later.
Re: Thumbnailprovider.dll
It was really that simple: https://github.com/FreeCAD/FreeCAD/pull/3292
Re: Thumbnailprovider.dll
That is good. But in recent discussion I was reminded that FreeCAD does not open its backup files without firs renaming them to FCStd to avoid inadvertently editing the backup file and thus defeat its purpose. Now if they display proper icons/thumbnails there will be users complaining that they can not directly open them. Could we draw an overlay before passing the image to windows so the user has an indication that this is not a regular FCStd file?
Re: Thumbnailprovider.dll
I don't understand. The way files are displayed in Windows explorer is in general independent on how they can be opened. What would help an overlay that it is a backup? it will not be more clear that backup files cannot directly be opened.
But why not? Please step in and implement this as you like. But take care of the readability.
Here is how it looks here in Windows Explorer with large symbols: and with midsize symbols: