#include <openfiledialog.h>
Public Member Functions | |
Construction | |
| CL_OpenFileDialog (CL_GUIComponent *owner) | |
| Constructs an open file dialog. | |
| virtual | ~CL_OpenFileDialog () |
Attributes | |
| CL_String | get_filename () const |
| Get the full path of the file selected. | |
| std::vector< CL_String > | get_filenames () const |
| Gets an array that contains one file name for each selected file. | |
Operations | |
| void | set_multi_select (bool multiselect) |
| Sets if multiple files can be selected or not. | |
| void | set_filename (const CL_String &filename) |
| Sets a string containing the full path of the file selected. | |
| void | add_filter (const CL_String &filter_description, const CL_String &filter_extension, bool is_default=false) |
| Add a filter that determines what types of files are displayed. | |
| void | clear_filters () |
| Clears all filters. | |
| void | set_filter_index (int filter_index) |
| Sets a default filter, on a 0-based index. | |
| void | set_initial_directory (const CL_String &path) |
| Sets the initial directory that is displayed. | |
| void | set_title (const CL_String &title) |
| Sets the text that appears in the title bar. | |
| bool | show () |
| Shows the file dialog. | |
|
|
Constructs an open file dialog.
|
|
|
|
|
||||||||||||||||
|
Add a filter that determines what types of files are displayed.
|
|
|
Clears all filters.
|
|
|
Get the full path of the file selected. If multiple files are selected, this returns the first file.
|
|
|
Gets an array that contains one file name for each selected file.
|
|
|
Sets a string containing the full path of the file selected.
|
|
|
Sets a default filter, on a 0-based index.
|
|
|
Sets the initial directory that is displayed.
|
|
|
Sets if multiple files can be selected or not.
|
|
|
Sets the text that appears in the title bar.
|
|
|
Shows the file dialog.
|
1.4.6