Thin wrapper around the native OS file-open / file-save dialog. More...
#include <Malena/Utilities/FileDialog.h>
Classes | |
| struct | Filter |
Static Public Member Functions | |
| static std::string | open (const std::vector< Filter > &filters={}, const std::string &defaultPath="") |
| Show an open-file dialog. Returns the selected path or "". | |
| static std::vector< std::string > | openMultiple (const std::vector< Filter > &filters={}, const std::string &defaultPath="") |
| Show a multi-select open dialog. Returns selected paths or {}. | |
| static std::string | save (const std::vector< Filter > &filters={}, const std::string &defaultPath="", const std::string &defaultName="") |
| Show a save-file dialog. Returns the chosen path or "". | |
Thin wrapper around the native OS file-open / file-save dialog.
All methods are blocking — the SFML event loop is suspended while the dialog is open, which is normal behaviour for desktop applications. Returns an empty string (or empty vector) when the user cancels.
Definition at line 32 of file FileDialog.h.
|
static |
Show an open-file dialog. Returns the selected path or "".
|
static |
Show a multi-select open dialog. Returns selected paths or {}.
|
static |
Show a save-file dialog. Returns the chosen path or "".