27#ifndef EASY3D_UTIL_DIALOG_H
28#define EASY3D_UTIL_DIALOG_H
52 std::vector<std::string> open(
53 const std::string& title,
54 const std::string& default_directory,
55 const std::vector<std::string>& filters,
74 const std::string& title =
"Please choose a file to open",
75 const std::string& default_directory =
"",
76 const std::vector<std::string>& filters = {
"All Files (*.*)",
"*" }
96 const std::string& title =
"Please choose a file name",
97 const std::string& default_file_name =
"",
98 const std::vector<std::string>& filters = {
"All Files (*.*)",
"*" },
99 bool confirm_overwrite = true
110 std::string open_folder(
111 const std::string& title =
"Please choose a folder",
112 const std::string& default_directory =
""
124 enum class Response {
151 const std::string& title,
152 const std::string& message,
153 Type type = Type::info
167 const std::string& title,
168 const std::string& message,
169 Choice choice = Choice::ok_cancel,
170 Type type = Type::info
180 static std::string open(
const std::string& file_name,
const std::string& filters) ;
183#ifdef HAS_TINY_FILE_DIALOG
190 static std::string open(
191 const std::vector<std::string> & filetypes,
192 const std::string& default_path =
""
202 static std::vector<std::string> open(
203 const std::vector<std::string>& filetypes,
205 const std::string& default_path =
""
213 static std::string save(
214 const std::vector<std::string>& filetypes,
215 const std::string& default_file_name =
""
221#ifdef HAS_TINY_FILE_DIALOG
Definition: collider.cpp:182
Vec< 3, float > vec3
A 3D point/vector of float type.
Definition: types.h:45