11 # include <nlohmann/json.hpp>
23 #define COMMON_DIALOG_OPTIONS() \
24 std::optional<std::string> title = std::nullopt; \
25 std::optional<std::filesystem::path> defaultPath = std::nullopt; \
26 std::vector<Filter> filters = {}; \
27 bool forcePath = false
Definition: file_dialog.hpp:6
void to_json(nlohmann::json &json, OpenDialogOptions const &options)
Definition: file_dialog_options.cpp:34
void from_json(nlohmann::json const &json, OpenDialogOptions &options)
Definition: file_dialog_options.cpp:40
NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(FetchOptions, method, headers, body, verbose, followRedirects, maxRedirects, autoReferer, dontDecodeBody, verifyPeer, verifyHost)
Definition: file_dialog_options.hpp:37
Definition: file_dialog_options.hpp:17
std::string name
Definition: file_dialog_options.hpp:18
std::vector< std::string > masks
Definition: file_dialog_options.hpp:19
Definition: file_dialog_options.hpp:30
bool allowMultiSelect
Definition: file_dialog_options.hpp:33
Definition: file_dialog_options.hpp:42
bool forceOverwrite
Definition: file_dialog_options.hpp:45