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