summaryrefslogtreecommitdiff
path: root/tools/editor/editor_file_dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/editor/editor_file_dialog.cpp')
-rw-r--r--tools/editor/editor_file_dialog.cpp108
1 files changed, 54 insertions, 54 deletions
diff --git a/tools/editor/editor_file_dialog.cpp b/tools/editor/editor_file_dialog.cpp
index 28557648e5..e2202bbc21 100644
--- a/tools/editor/editor_file_dialog.cpp
+++ b/tools/editor/editor_file_dialog.cpp
@@ -1160,55 +1160,55 @@ EditorFileDialog::DisplayMode EditorFileDialog::get_display_mode() const{
void EditorFileDialog::_bind_methods() {
- ObjectTypeDB::bind_method(_MD("_unhandled_input"),&EditorFileDialog::_unhandled_input);
-
- ObjectTypeDB::bind_method(_MD("_item_selected"),&EditorFileDialog::_item_selected);
- ObjectTypeDB::bind_method(_MD("_item_db_selected"),&EditorFileDialog::_item_dc_selected);
- ObjectTypeDB::bind_method(_MD("_dir_entered"),&EditorFileDialog::_dir_entered);
- ObjectTypeDB::bind_method(_MD("_file_entered"),&EditorFileDialog::_file_entered);
- ObjectTypeDB::bind_method(_MD("_action_pressed"),&EditorFileDialog::_action_pressed);
- ObjectTypeDB::bind_method(_MD("_cancel_pressed"),&EditorFileDialog::_cancel_pressed);
- ObjectTypeDB::bind_method(_MD("_filter_selected"),&EditorFileDialog::_filter_selected);
- ObjectTypeDB::bind_method(_MD("_save_confirm_pressed"),&EditorFileDialog::_save_confirm_pressed);
-
- ObjectTypeDB::bind_method(_MD("clear_filters"),&EditorFileDialog::clear_filters);
- ObjectTypeDB::bind_method(_MD("add_filter","filter"),&EditorFileDialog::add_filter);
- ObjectTypeDB::bind_method(_MD("get_current_dir"),&EditorFileDialog::get_current_dir);
- ObjectTypeDB::bind_method(_MD("get_current_file"),&EditorFileDialog::get_current_file);
- ObjectTypeDB::bind_method(_MD("get_current_path"),&EditorFileDialog::get_current_path);
- ObjectTypeDB::bind_method(_MD("set_current_dir","dir"),&EditorFileDialog::set_current_dir);
- ObjectTypeDB::bind_method(_MD("set_current_file","file"),&EditorFileDialog::set_current_file);
- ObjectTypeDB::bind_method(_MD("set_current_path","path"),&EditorFileDialog::set_current_path);
- ObjectTypeDB::bind_method(_MD("set_mode","mode"),&EditorFileDialog::set_mode);
- ObjectTypeDB::bind_method(_MD("get_mode"),&EditorFileDialog::get_mode);
- ObjectTypeDB::bind_method(_MD("get_vbox:VBoxContainer"),&EditorFileDialog::get_vbox);
- ObjectTypeDB::bind_method(_MD("set_access","access"),&EditorFileDialog::set_access);
- ObjectTypeDB::bind_method(_MD("get_access"),&EditorFileDialog::get_access);
- ObjectTypeDB::bind_method(_MD("set_show_hidden_files","show"),&EditorFileDialog::set_show_hidden_files);
- ObjectTypeDB::bind_method(_MD("is_showing_hidden_files"),&EditorFileDialog::is_showing_hidden_files);
- ObjectTypeDB::bind_method(_MD("_select_drive"),&EditorFileDialog::_select_drive);
- ObjectTypeDB::bind_method(_MD("_make_dir"),&EditorFileDialog::_make_dir);
- ObjectTypeDB::bind_method(_MD("_make_dir_confirm"),&EditorFileDialog::_make_dir_confirm);
- ObjectTypeDB::bind_method(_MD("_update_file_list"),&EditorFileDialog::update_file_list);
- ObjectTypeDB::bind_method(_MD("_update_dir"),&EditorFileDialog::update_dir);
- ObjectTypeDB::bind_method(_MD("_thumbnail_done"),&EditorFileDialog::_thumbnail_done);
- ObjectTypeDB::bind_method(_MD("set_display_mode","mode"),&EditorFileDialog::set_display_mode);
- ObjectTypeDB::bind_method(_MD("get_display_mode"),&EditorFileDialog::get_display_mode);
- ObjectTypeDB::bind_method(_MD("_thumbnail_result"),&EditorFileDialog::_thumbnail_result);
- ObjectTypeDB::bind_method(_MD("set_disable_overwrite_warning","disable"),&EditorFileDialog::set_disable_overwrite_warning);
- ObjectTypeDB::bind_method(_MD("is_overwrite_warning_disabled"),&EditorFileDialog::is_overwrite_warning_disabled);
-
- ObjectTypeDB::bind_method(_MD("_recent_selected"),&EditorFileDialog::_recent_selected);
- ObjectTypeDB::bind_method(_MD("_go_back"),&EditorFileDialog::_go_back);
- ObjectTypeDB::bind_method(_MD("_go_forward"),&EditorFileDialog::_go_forward);
- ObjectTypeDB::bind_method(_MD("_go_up"),&EditorFileDialog::_go_up);
-
- ObjectTypeDB::bind_method(_MD("_favorite_toggled"),&EditorFileDialog::_favorite_toggled);
- ObjectTypeDB::bind_method(_MD("_favorite_selected"),&EditorFileDialog::_favorite_selected);
- ObjectTypeDB::bind_method(_MD("_favorite_move_up"),&EditorFileDialog::_favorite_move_up);
- ObjectTypeDB::bind_method(_MD("_favorite_move_down"),&EditorFileDialog::_favorite_move_down);
-
- ObjectTypeDB::bind_method(_MD("invalidate"),&EditorFileDialog::invalidate);
+ ClassDB::bind_method(_MD("_unhandled_input"),&EditorFileDialog::_unhandled_input);
+
+ ClassDB::bind_method(_MD("_item_selected"),&EditorFileDialog::_item_selected);
+ ClassDB::bind_method(_MD("_item_db_selected"),&EditorFileDialog::_item_dc_selected);
+ ClassDB::bind_method(_MD("_dir_entered"),&EditorFileDialog::_dir_entered);
+ ClassDB::bind_method(_MD("_file_entered"),&EditorFileDialog::_file_entered);
+ ClassDB::bind_method(_MD("_action_pressed"),&EditorFileDialog::_action_pressed);
+ ClassDB::bind_method(_MD("_cancel_pressed"),&EditorFileDialog::_cancel_pressed);
+ ClassDB::bind_method(_MD("_filter_selected"),&EditorFileDialog::_filter_selected);
+ ClassDB::bind_method(_MD("_save_confirm_pressed"),&EditorFileDialog::_save_confirm_pressed);
+
+ ClassDB::bind_method(_MD("clear_filters"),&EditorFileDialog::clear_filters);
+ ClassDB::bind_method(_MD("add_filter","filter"),&EditorFileDialog::add_filter);
+ ClassDB::bind_method(_MD("get_current_dir"),&EditorFileDialog::get_current_dir);
+ ClassDB::bind_method(_MD("get_current_file"),&EditorFileDialog::get_current_file);
+ ClassDB::bind_method(_MD("get_current_path"),&EditorFileDialog::get_current_path);
+ ClassDB::bind_method(_MD("set_current_dir","dir"),&EditorFileDialog::set_current_dir);
+ ClassDB::bind_method(_MD("set_current_file","file"),&EditorFileDialog::set_current_file);
+ ClassDB::bind_method(_MD("set_current_path","path"),&EditorFileDialog::set_current_path);
+ ClassDB::bind_method(_MD("set_mode","mode"),&EditorFileDialog::set_mode);
+ ClassDB::bind_method(_MD("get_mode"),&EditorFileDialog::get_mode);
+ ClassDB::bind_method(_MD("get_vbox:VBoxContainer"),&EditorFileDialog::get_vbox);
+ ClassDB::bind_method(_MD("set_access","access"),&EditorFileDialog::set_access);
+ ClassDB::bind_method(_MD("get_access"),&EditorFileDialog::get_access);
+ ClassDB::bind_method(_MD("set_show_hidden_files","show"),&EditorFileDialog::set_show_hidden_files);
+ ClassDB::bind_method(_MD("is_showing_hidden_files"),&EditorFileDialog::is_showing_hidden_files);
+ ClassDB::bind_method(_MD("_select_drive"),&EditorFileDialog::_select_drive);
+ ClassDB::bind_method(_MD("_make_dir"),&EditorFileDialog::_make_dir);
+ ClassDB::bind_method(_MD("_make_dir_confirm"),&EditorFileDialog::_make_dir_confirm);
+ ClassDB::bind_method(_MD("_update_file_list"),&EditorFileDialog::update_file_list);
+ ClassDB::bind_method(_MD("_update_dir"),&EditorFileDialog::update_dir);
+ ClassDB::bind_method(_MD("_thumbnail_done"),&EditorFileDialog::_thumbnail_done);
+ ClassDB::bind_method(_MD("set_display_mode","mode"),&EditorFileDialog::set_display_mode);
+ ClassDB::bind_method(_MD("get_display_mode"),&EditorFileDialog::get_display_mode);
+ ClassDB::bind_method(_MD("_thumbnail_result"),&EditorFileDialog::_thumbnail_result);
+ ClassDB::bind_method(_MD("set_disable_overwrite_warning","disable"),&EditorFileDialog::set_disable_overwrite_warning);
+ ClassDB::bind_method(_MD("is_overwrite_warning_disabled"),&EditorFileDialog::is_overwrite_warning_disabled);
+
+ ClassDB::bind_method(_MD("_recent_selected"),&EditorFileDialog::_recent_selected);
+ ClassDB::bind_method(_MD("_go_back"),&EditorFileDialog::_go_back);
+ ClassDB::bind_method(_MD("_go_forward"),&EditorFileDialog::_go_forward);
+ ClassDB::bind_method(_MD("_go_up"),&EditorFileDialog::_go_up);
+
+ ClassDB::bind_method(_MD("_favorite_toggled"),&EditorFileDialog::_favorite_toggled);
+ ClassDB::bind_method(_MD("_favorite_selected"),&EditorFileDialog::_favorite_selected);
+ ClassDB::bind_method(_MD("_favorite_move_up"),&EditorFileDialog::_favorite_move_up);
+ ClassDB::bind_method(_MD("_favorite_move_down"),&EditorFileDialog::_favorite_move_down);
+
+ ClassDB::bind_method(_MD("invalidate"),&EditorFileDialog::invalidate);
ADD_SIGNAL(MethodInfo("file_selected",PropertyInfo( Variant::STRING,"path")));
ADD_SIGNAL(MethodInfo("files_selected",PropertyInfo( Variant::STRING_ARRAY,"paths")));
@@ -1490,11 +1490,11 @@ EditorFileDialog::~EditorFileDialog() {
void EditorLineEditFileChooser::_bind_methods() {
- ObjectTypeDB::bind_method(_MD("_browse"),&EditorLineEditFileChooser::_browse);
- ObjectTypeDB::bind_method(_MD("_chosen"),&EditorLineEditFileChooser::_chosen);
- ObjectTypeDB::bind_method(_MD("get_button:Button"),&EditorLineEditFileChooser::get_button);
- ObjectTypeDB::bind_method(_MD("get_line_edit:LineEdit"),&EditorLineEditFileChooser::get_line_edit);
- ObjectTypeDB::bind_method(_MD("get_file_dialog:EditorFileDialog"),&EditorLineEditFileChooser::get_file_dialog);
+ ClassDB::bind_method(_MD("_browse"),&EditorLineEditFileChooser::_browse);
+ ClassDB::bind_method(_MD("_chosen"),&EditorLineEditFileChooser::_chosen);
+ ClassDB::bind_method(_MD("get_button:Button"),&EditorLineEditFileChooser::get_button);
+ ClassDB::bind_method(_MD("get_line_edit:LineEdit"),&EditorLineEditFileChooser::get_line_edit);
+ ClassDB::bind_method(_MD("get_file_dialog:EditorFileDialog"),&EditorLineEditFileChooser::get_file_dialog);
}