32 #include "scene/gui/dialogs.h" 33 #include "scene/gui/tree.h" 34 #include "scene/gui/line_edit.h" 35 #include "scene/gui/option_button.h" 36 #include "scene/gui/dialogs.h" 37 #include "scene/gui/tool_button.h" 38 #include "os/dir_access.h" 39 #include "box_container.h" 66 static GetIconFunc get_icon_func;
67 static GetIconFunc get_large_icon_func;
68 static RegisterFunc register_func;
69 static RegisterFunc unregister_func;
96 static bool default_show_hidden_files;
97 bool show_hidden_files;
102 void update_file_list();
103 void update_filters();
105 void _tree_selected();
107 void _select_drive(
int p_idx);
108 void _tree_dc_selected();
109 void _dir_entered(
String p_dir);
110 void _file_entered(
const String& p_file);
111 void _action_pressed();
112 void _save_confirm_pressed();
113 void _cancel_pressed();
114 void _filter_selected(
int);
116 void _make_dir_confirm();
118 void _update_drives();
120 void _unhandled_input(
const InputEvent& p_event);
122 virtual void _post_popup();
126 void _notification(
int p_what);
127 static void _bind_methods();
131 void clear_filters();
132 void add_filter(
const String& p_filter);
134 void set_enable_multiple_selection(
bool p_enable);
137 String get_current_dir()
const;
138 String get_current_file()
const;
139 String get_current_path()
const;
140 void set_current_dir(
const String& p_dir);
141 void set_current_file(
const String& p_file);
142 void set_current_path(
const String& p_path);
144 void set_mode(Mode p_mode);
145 Mode get_mode()
const;
148 LineEdit *get_line_edit() {
return file; }
150 void set_access(Access p_access);
151 Access get_access()
const;
153 void set_show_hidden_files(
bool p_show);
154 bool is_showing_hidden_files()
const;
156 static void set_default_show_hidden_files(
bool p_show);
172 void _chosen(
const String& p_text);
175 static void _bind_methods();
178 Button *get_button() {
return button; }
179 LineEdit *get_line_edit() {
return line_edit; }
180 FileDialog *get_file_dialog() {
return dialog; }
185 VARIANT_ENUM_CAST( FileDialog::Mode );
186 VARIANT_ENUM_CAST( FileDialog::Access );
Definition: file_dialog.h:43
Definition: box_container.h:69
Definition: dialogs.h:144
Definition: box_container.h:80
Definition: file_dialog.h:165
Definition: dir_access.h:41
Definition: line_edit.h:36