49 const std::string&
title()
const 87 std::string
path()
const;
208 virtual const std::string&
window_id()
const override;
311 void push_fileview_row(
class listbox& filelist,
const std::string& name,
const std::string& icon,
bool check_selection =
true);
void push_fileview_row(class listbox &filelist, const std::string &name, const std::string &icon, bool check_selection=true)
Row building helper for refresh_fileview().
void on_bookmark_add_cmd()
Handles Add Bookmark button press events.
void set_input_text(class text_box &t, const std::string &value)
std::vector< std::string > dir_subdirs_
file_dialog & set_extension(const std::string &value)
Sets the default file extension for file names in save mode.
std::string get_filelist_selection(class listbox &filelist)
file_dialog & set_path(const std::string &value)
Sets the initial file selection.
void clear_input_text(class text_box &t)
file_dialog & set_ok_label(const std::string &value)
Sets the OK button label.
file_dialog & set_save_mode(bool value)
Sets the dialog's behavior on non-existent file name inputs.
void refresh_fileview()
Updates the dialog contents to match the internal state.
int user_bookmarks_begin_
Class for a single line text area.
void on_bookmark_del_cmd()
Handles Remove Bookmark button press events.
std::string path() const
Gets the current file selection.
std::string current_entry_
file_dialog & set_read_only(bool value)
Whether to provide user interface elements for manipulating existing objects.
const std::string & title() const
Gets the current dialog title text.
file_dialog & set_filename(const std::string &value)
Sets the initial file name input but not the path.
bool read_only() const
Whether user interface elements for manipulating existing objects are provided.
std::vector< std::string > dir_files_
bool confirm_overwrite(SELECTION_TYPE stype)
Prompts the user before overwriting an existing file.
bool save_mode() const
Returns whether save mode is enabled.
SELECTION_TYPE register_new_selection(const std::string &name)
Updates the internal state and returns the type of the selection.
Various uncategorised dialogs.
bool process_fileview_submit()
Processes file view selection in reaction to row double-click events.
bool on_exit(window &window)
Handles dialog exit events and decides whether to proceed or not.
file_dialog & set_message(const std::string &value)
Sets the current dialog instructions/message text.
void on_bookmark_selected()
Handles selection or deselection of bookmarks.
std::vector< std::string > bookmark_paths_
void on_row_selected()
Handles file/directory selection on single-click.
bool process_textbox_submit()
Processes textbox input in reaction to OK button/Enter key events.
const std::string & message() const
Gets the current dialog instructions/message text.
void sync_bookmarks_bar()
Updates the bookmarks bar state to reflect the internal state.
Abstract base class for all modal dialogs.
bool process_submit_common(const std::string &name)
void on_dir_create_cmd()
Handles New Folder button press events.
void on_file_delete_cmd()
Handles Delete button press events.
base class of top level items, the only item which needs to store the final canvases to draw on...
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
bool is_selection_type_acceptable(SELECTION_TYPE stype) const
Returns whether the given selection type is acceptable for closing the dialog.
file_dialog & set_title(const std::string &value)
Sets the current dialog title text.
virtual const std::string & window_id() const override
The ID of the window to build.