43 const std::vector<Filter>& filters = {},
44 const std::string& defaultPath =
"");
48 const std::vector<Filter>& filters = {},
49 const std::string& defaultPath =
"",
50 const std::string& defaultName =
"");
54 const std::vector<Filter>& filters = {},
55 const std::string& defaultPath =
"");
Thin wrapper around the native OS file-open / file-save dialog.
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 "".
static std::string open(const std::vector< Filter > &filters={}, const std::string &defaultPath="")
Show an open-file dialog. Returns the selected path or "".
std::string spec
Comma-separated extensions, e.g. "json,quiz".
std::string name
Display label, e.g. "Quiz Files".