14 #ifndef FILE_CHOOSER_H_INCLUDED
15 #define FILE_CHOOSER_H_INCLUDED
66 std::string const &title,
bool show_directory_buttons =
true,
68 int xloc = -1,
int yloc = -1);
75 bool show_directory_buttons =
true,
77 int xloc = -1,
int yloc = -1);
int show_file_chooser_dialog_save(CVideo &video, std::string &filename, std::string const &title, const std::string &default_file_name, bool show_directory_buttons, const std::string &type_a_head, int xloc, int yloc)
Show a filechooser dialog in a "save" mode, that is, without relying on autocomplete to allow saving ...
void set_autocomplete(bool value)
void set_save_text(const std::string &filename)
std::string get_choice() const
Return the chosen file.
bool show_directory_buttons_
std::string format_filename(const std::string &filename) const
GLsizei const GLfloat * value
virtual gui::dialog::dimension_measurements layout(int xloc=-1, int yloc=-1)
int show_file_chooser_dialog(CVideo &video, std::string &filename, std::string const &title, bool show_directory_buttons, const std::string &type_a_head, int xloc, int yloc)
Show a dialog where the user can navigate through files and select a file.
void select_file(const std::string &file)
Various uncategorised dialogs.
void action(gui::dialog_process_info &dp_info)
std::string last_textbox_text_
file_dialog(CVideo &video, const std::string &file_path, const std::string &title, const std::string &default_file_name, bool show_directory_buttons)
std::string unformat_filename(const std::string &filename) const
gui::file_menu * files_list_
std::string default_file_name_
std::string format_dirname(const std::string &dirname) const
A config object defines a single node in a WML file, with access to child nodes.
GLsizei const GLcharARB ** string