-
Notifications
You must be signed in to change notification settings - Fork 0
class_filedialog
reduz edited this page Feb 23, 2014
·
9 revisions
####Inherits: ConfirmationDialog ####Category: Core
Dialog for selecting files or directories in the filesystem.
- void
clear_filters( ) - void
add_filter( String filter ) -
String
get_current_dir( ) const -
String
get_current_file( ) const -
String
get_current_path( ) const - void
set_current_dir( String dir ) - void
set_current_file( String file ) - void
set_current_path( String path ) - void
set_mode( int mode ) -
int
get_mode( ) const -
VBoxContainer
get_vbox( ) - void
set_access( int access ) -
int
get_access( ) const - void
invalidate( )
-
files_selected( StringArray paths ) -
dir_selected( String dir ) -
file_selected( String path )
- MODE_OPEN_FILE = 0 - Editor will not allow to select unexisting files.
- MODE_OPEN_FILES = 1
- MODE_OPEN_DIR = 2
- MODE_SAVE_FILE = 3 - Editor will warn when a file exists.
- ACCESS_RESOURCES = 0
- ACCESS_USERDATA = 1
- ACCESS_FILESYSTEM = 2
FileDialog is a preset dialog used to choose files and directories in the filesystem. It supports filter masks.
- void
clear_filters( )
Clear all the added filters in the dialog.
- void
add_filter( String filter )
Add a custom filter. Filter format is: "mask ; description", example (C++): dialog-"lt;add_filter("*.png ; PNG Images");
-
String
get_current_dir( ) const
Get the current working directory of the file dialog.
-
String
get_current_file( ) const
Get the current selected file of the file dialog (empty if none).
-
String
get_current_path( ) const
Get the current selected path (directory and file) of the file dialog (empty if none).
- void
set_mode( int mode )
Set the file dialog mode from the MODE_* enum.
-
int
get_mode( ) const
Get the file dialog mode from the MODE_* enum.