1 #ifndef GEMPYRECLIENT_H
2 #define GEMPYRECLIENT_H
20 using Filter = std::vector<std::tuple<std::string, std::vector<std::string>>>;
29 std::string_view root =
"",
30 const Filter& filters = {});
37 static std::optional<std::vector<std::string>>
open_files_dialog(std::string_view caption =
"",
38 std::string_view root =
"",
39 const Filter& filters = {});
46 std::string_view root =
"");
54 std::string_view root =
"",
const Filter& filters = {});
Dialogs for file access.
Definition: gempyre_client.h:15
static std::optional< std::vector< std::string > > open_files_dialog(std::string_view caption="", std::string_view root="", const Filter &filters={})
Pick files.
static std::optional< std::string > save_file_dialog(std::string_view caption="", std::string_view root="", const Filter &filters={})
Pick a a file or crate a new one.
static std::optional< std::string > open_dir_dialog(std::string_view caption="", std::string_view root="")
Pick a dir.
std::vector< std::tuple< std::string, std::vector< std::string > >> Filter
Filter is for Dialog File name filters.
Definition: gempyre_client.h:20
static std::optional< std::string > open_file_dialog(std::string_view caption="", std::string_view root="", const Filter &filters={})
Pick a file.