FileDialog
File Open
, File Save
and Folder Picker
dialogs.
Note. There is an option to use native
controls, or Glok
controls. (See native
boolean parameter of the constructor).
Initially, only native
controls were possible, but I added Glok
controls, and made this the default because :
The native library seems to have a critical bug when running on Linux. It very occasionally crashes the application :-(
The native dialogs really annoy me - they ignore the initialDirectory I've read somewhere that this is deliberate, because users were confused by this feature. WTF? So now I have to navigate to the same folder again and again just to Save-As with a new name? No!
The native library's API is dreadful, and hints that it was written by a very poor programmer. I don't trust it!
Filtering is a little naff. You can only filter by extension names, and not by general wildcard patterns.
The downsides of the Glok controls :
Looks and behaves differently from the native controls
Doesn't include
favourite
places.
But has some advantages too :
Uses the same Theme as your application.
Allows you to browse a folder using the file-manager (via a right-click menu).
The native controls look different (and familiar) depending on your platform (Window, MacOS, Linux). As they are native
, they are not affected by your Theme.