53 std::vector<std::string>
filenames()
const;
82 std::shared_ptr<FileDialogImpl> impl;
void set_filter_index(int filter_index)
Sets a default filter, on a 0-based index.
void set_filename(const std::string &filename)
Sets a string containing the full path of the file selected.
void set_multi_select(bool multiselect)
Sets if multiple files can be selected or not.
Displays the system open file dialog.
Definition: open_file_dialog.h:41
void set_title(const std::string &title)
Sets the text that appears in the title bar.
bool show()
Shows the file dialog.
std::string filename() const
Get the full path of the file selected.
void add_filter(const std::string &filter_description, const std::string &filter_extension, bool is_default=false)
Add a filter that determines what types of files are displayed.
std::vector< std::string > filenames() const
Gets an array that contains one file name for each selected file.
void clear_filters()
Clears all filters.
OpenFileDialog(View *owner)
Constructs an open file dialog.
View for an area of the user interface.
Definition: view.h:68
void set_initial_directory(const std::string &path)
Sets the initial directory that is displayed.
Definition: Application/application.h:35