2#include "file_dialog.h"
7std::string
file_open_dialog(
const std::string& title,
const std::string& filter,
const std::string& path)
12 return d->file_open_dialog(title,filter,path);
21 return d->file_open_dialog(title,
"",path);
30 return d->file_save_dialog(title,
"",path);
35std::string
files_open_dialog(std::vector<std::string>& file_names,
const std::string& title,
const std::string& filter,
const std::string& path)
40 return d->files_open_dialog(file_names,title,filter,path);
44std::string
file_save_dialog(
const std::string& title,
const std::string& filter,
const std::string& path)
49 return d->file_save_dialog(title,filter,path);
reference counted pointer, which can work together with types that are derived from ref_counted,...
bool empty() const
check if pointer is not yet set
std::string file_open_dialog(const std::string &title, const std::string &filter, const std::string &path)
ask the user for a file name to open a file.
gui_driver_ptr get_gui_driver()
return the currently registered gui driver or an empty pointer if non has been registered
std::string directory_save_dialog(const std::string &title, const std::string &path)
ask the user for a new directory.
std::string directory_open_dialog(const std::string &title, const std::string &path)
ask the user for an existing directory.
std::string file_save_dialog(const std::string &title, const std::string &filter, const std::string &path)
ask the user for a file name to save a file.
std::string files_open_dialog(std::vector< std::string > &file_names, const std::string &title, const std::string &filter, const std::string &path)
ask user for an open dialog that can select multiple files, return common path prefix and fill field ...