Can I get thumbnail previews with the file picker?

16 views
Skip to first unread message

Zeke Williams

unread,
May 15, 2021, 8:56:20 AM5/15/21
to fltk.general
One thing that irks me about GTK is that the file picker doesn't have thumbnail previews and I also find Qt to be too heavy for me. Can I have thumbnail previews with the FLTK file picker out of the box or would I have to modify FLTK to get that?

imm

unread,
May 15, 2021, 9:07:39 AM5/15/21
to general fltk
On Sat, 15 May 2021, 13:56 Zeke Williams wrote:
One thing that irks me about GTK is that the file picker doesn't have thumbnail previews and I also find Qt to be too heavy for me. Can I have thumbnail previews with the FLTK file picker out of the box or would I have to modify FLTK to get that?


The key, as I'm sure you can imagine, is that robustly supporting thumbnail previews tends to be neither "fast" nor "light" so tends to be missing from lighter weight toolkits.
The fltk built-in chooser doesn't do thumbnails as a result (in common with gtk and so on) but it does provide an (optional) preview window for the selected file, which might help?

Failing that, the fltk built-in chooser is intended to be subclassed so you can extend it if you're feeling keen...

The FL_Native_File_Chooser, in contrast, basically attempts to load the system provided chooser and only falls back to the built-in chooser if that fails... But the chooser it loads from the system is usually gtk, so...

--
Ian
From my Fairphone FP3

Reply all
Reply to author
Forward
0 new messages