godot/editor/filesystem_dock.cpp

/**************************************************************************/
/*  filesystem_dock.cpp                                                   */
/**************************************************************************/
/*                         This file is part of:                          */
/*                             GODOT ENGINE                               */
/*                        https://godotengine.org                         */
/**************************************************************************/
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                  */
/*                                                                        */
/* Permission is hereby granted, free of charge, to any person obtaining  */
/* a copy of this software and associated documentation files (the        */
/* "Software"), to deal in the Software without restriction, including    */
/* without limitation the rights to use, copy, modify, merge, publish,    */
/* distribute, sublicense, and/or sell copies of the Software, and to     */
/* permit persons to whom the Software is furnished to do so, subject to  */
/* the following conditions:                                              */
/*                                                                        */
/* The above copyright notice and this permission notice shall be         */
/* included in all copies or substantial portions of the Software.        */
/*                                                                        */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,        */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF     */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY   */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,   */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE      */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                 */
/**************************************************************************/

#include "filesystem_dock.h"

#include "core/config/project_settings.h"
#include "core/io/dir_access.h"
#include "core/io/file_access.h"
#include "core/io/resource_loader.h"
#include "core/os/keyboard.h"
#include "core/os/os.h"
#include "core/templates/list.h"
#include "editor/create_dialog.h"
#include "editor/directory_create_dialog.h"
#include "editor/editor_dock_manager.h"
#include "editor/editor_feature_profile.h"
#include "editor/editor_node.h"
#include "editor/editor_resource_preview.h"
#include "editor/editor_settings.h"
#include "editor/editor_string_names.h"
#include "editor/editor_undo_redo_manager.h"
#include "editor/gui/editor_dir_dialog.h"
#include "editor/gui/editor_scene_tabs.h"
#include "editor/import/3d/scene_import_settings.h"
#include "editor/import_dock.h"
#include "editor/plugins/editor_context_menu_plugin.h"
#include "editor/plugins/editor_resource_conversion_plugin.h"
#include "editor/plugins/editor_resource_tooltip_plugins.h"
#include "editor/scene_create_dialog.h"
#include "editor/scene_tree_dock.h"
#include "editor/shader_create_dialog.h"
#include "editor/themes/editor_scale.h"
#include "editor/themes/editor_theme_manager.h"
#include "scene/gui/item_list.h"
#include "scene/gui/label.h"
#include "scene/gui/line_edit.h"
#include "scene/gui/progress_bar.h"
#include "scene/resources/packed_scene.h"
#include "servers/display_server.h"

Control *FileSystemTree::make_custom_tooltip(const String &p_text) const {}

Control *FileSystemList::make_custom_tooltip(const String &p_text) const {}

void FileSystemList::_line_editor_submit(const String &p_text) {}

bool FileSystemList::edit_selected() {}

String FileSystemList::get_edit_text() {}

void FileSystemList::_text_editor_popup_modal_close() {}

void FileSystemList::_bind_methods() {}

FileSystemList::FileSystemList() {}

FileSystemDock *FileSystemDock::singleton =;

Ref<Texture2D> FileSystemDock::_get_tree_item_icon(bool p_is_valid, const String &p_file_type, const String &p_icon_path) {}

bool FileSystemDock::_create_tree(TreeItem *p_parent, EditorFileSystemDirectory *p_dir, Vector<String> &uncollapsed_paths, bool p_select_in_favorites, bool p_unfold_path) {}

Vector<String> FileSystemDock::get_uncollapsed_paths() const {}

void FileSystemDock::_update_tree(const Vector<String> &p_uncollapsed_paths, bool p_uncollapse_root, bool p_select_in_favorites, bool p_unfold_path) {}

void FileSystemDock::set_display_mode(DisplayMode p_display_mode) {}

void FileSystemDock::_update_display_mode(bool p_force) {}

void FileSystemDock::_notification(int p_what) {}

void FileSystemDock::_tree_multi_selected(Object *p_item, int p_column, bool p_selected) {}

Vector<String> FileSystemDock::get_selected_paths() const {}

String FileSystemDock::get_current_path() const {}

String FileSystemDock::get_current_directory() const {}

void FileSystemDock::_set_current_path_line_edit_text(const String &p_path) {}

void FileSystemDock::_navigate_to_path(const String &p_path, bool p_select_in_favorites) {}

void FileSystemDock::navigate_to_path(const String &p_path) {}

void FileSystemDock::_file_list_thumbnail_done(const String &p_path, const Ref<Texture2D> &p_preview, const Ref<Texture2D> &p_small_preview, const Variant &p_udata) {}

void FileSystemDock::_tree_thumbnail_done(const String &p_path, const Ref<Texture2D> &p_preview, const Ref<Texture2D> &p_small_preview, const Variant &p_udata) {}

void FileSystemDock::_toggle_file_display() {}

void FileSystemDock::_set_file_display(bool p_active) {}

bool FileSystemDock::_is_file_type_disabled_by_feature_profile(const StringName &p_class) {}

void FileSystemDock::_search(EditorFileSystemDirectory *p_path, List<FileInfo> *matches, int p_max_items) {}

void FileSystemDock::_update_file_list(bool p_keep_selection) {}

HashSet<String> FileSystemDock::_get_valid_conversions_for_file_paths(const Vector<String> &p_paths) {}

void FileSystemDock::_select_file(const String &p_path, bool p_select_in_favorites) {}

void FileSystemDock::_tree_activate_file() {}

void FileSystemDock::_file_list_activate_file(int p_idx) {}

void FileSystemDock::_preview_invalidated(const String &p_path) {}

void FileSystemDock::_fs_changed() {}

void FileSystemDock::_set_scanning_mode() {}

void FileSystemDock::_fw_history() {}

void FileSystemDock::_bw_history() {}

void FileSystemDock::_update_history() {}

void FileSystemDock::_push_to_history() {}

void FileSystemDock::_get_all_items_in_dir(EditorFileSystemDirectory *p_efsd, Vector<String> &r_files, Vector<String> &r_folders) const {}

void FileSystemDock::_find_file_owners(EditorFileSystemDirectory *p_efsd, const HashSet<String> &p_renames, HashSet<String> &r_file_owners) const {}

void FileSystemDock::_try_move_item(const FileOrFolder &p_item, const String &p_new_path,
		HashMap<String, String> &p_file_renames, HashMap<String, String> &p_folder_renames) {}

void FileSystemDock::_try_duplicate_item(const FileOrFolder &p_item, const String &p_new_path) const {}

void FileSystemDock::_update_resource_paths_after_move(const HashMap<String, String> &p_renames, const HashMap<String, ResourceUID::ID> &p_uids) const {}

void FileSystemDock::_update_dependencies_after_move(const HashMap<String, String> &p_renames, const HashSet<String> &p_file_owners) const {}

void FileSystemDock::_update_project_settings_after_move(const HashMap<String, String> &p_renames, const HashMap<String, String> &p_folders_renames) {}

String FileSystemDock::_get_unique_name(const FileOrFolder &p_entry, const String &p_at_path) {}

void FileSystemDock::_update_favorites_list_after_move(const HashMap<String, String> &p_files_renames, const HashMap<String, String> &p_folders_renames) const {}

void FileSystemDock::_make_scene_confirm() {}

void FileSystemDock::_resource_removed(const Ref<Resource> &p_resource) {}

void FileSystemDock::_file_removed(const String &p_file) {}

void FileSystemDock::_folder_removed(const String &p_folder) {}

void FileSystemDock::_rename_operation_confirm() {}

void FileSystemDock::_duplicate_operation_confirm(const String &p_path) {}

void FileSystemDock::_overwrite_dialog_action(bool p_overwrite) {}

void FileSystemDock::_convert_dialog_action() {}

Vector<String> FileSystemDock::_check_existing() {}

void FileSystemDock::_move_operation_confirm(const String &p_to_path, bool p_copy, Overwrite p_overwrite) {}

void FileSystemDock::_before_move(HashMap<String, ResourceUID::ID> &r_uids, HashSet<String> &r_file_owners) const {}

Vector<String> FileSystemDock::_tree_get_selected(bool remove_self_inclusion, bool p_include_unselected_cursor) const {}

Vector<String> FileSystemDock::_file_list_get_selected() const {}

Vector<String> FileSystemDock::_remove_self_included_paths(Vector<String> selected_strings) {}

void FileSystemDock::_tree_rmb_option(int p_option) {}

void FileSystemDock::_file_list_rmb_option(int p_option) {}

void FileSystemDock::_generic_rmb_option_selected(int p_option) {}

void FileSystemDock::_file_option(int p_option, const Vector<String> &p_selected) {}

void FileSystemDock::_resource_created() {}

void FileSystemDock::_search_changed(const String &p_text, const Control *p_from) {}

bool FileSystemDock::_matches_all_search_tokens(const String &p_text) {}

void FileSystemDock::_rescan() {}

void FileSystemDock::_change_bottom_dock_placement() {}

void FileSystemDock::_change_split_mode() {}

void FileSystemDock::_split_dragged(int p_offset) {}

void FileSystemDock::fix_dependencies(const String &p_for_file) {}

void FileSystemDock::update_all() {}

void FileSystemDock::focus_on_path() {}

void FileSystemDock::focus_on_filter() {}

void FileSystemDock::create_directory(const String &p_path, const String &p_base_dir) {}

ScriptCreateDialog *FileSystemDock::get_script_create_dialog() const {}

void FileSystemDock::set_file_list_display_mode(FileListDisplayMode p_mode) {}

void FileSystemDock::add_resource_tooltip_plugin(const Ref<EditorResourceTooltipPlugin> &p_plugin) {}

void FileSystemDock::remove_resource_tooltip_plugin(const Ref<EditorResourceTooltipPlugin> &p_plugin) {}

Control *FileSystemDock::create_tooltip_for_path(const String &p_path) const {}

Variant FileSystemDock::get_drag_data_fw(const Point2 &p_point, Control *p_from) {}

bool FileSystemDock::can_drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from) const {}

void FileSystemDock::drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from) {}

void FileSystemDock::_get_drag_target_folder(String &target, bool &target_favorites, const Point2 &p_point, Control *p_from) const {}

void FileSystemDock::_update_folder_colors_setting() {}

void FileSystemDock::_folder_color_index_pressed(int p_index, PopupMenu *p_menu) {}

void FileSystemDock::_file_and_folders_fill_popup(PopupMenu *p_popup, const Vector<String> &p_paths, bool p_display_path_dependent_options) {}

void FileSystemDock::_tree_rmb_select(const Vector2 &p_pos, MouseButton p_button) {}

void FileSystemDock::_tree_empty_click(const Vector2 &p_pos, MouseButton p_button) {}

void FileSystemDock::_tree_empty_selected() {}

void FileSystemDock::_file_list_item_clicked(int p_item, const Vector2 &p_pos, MouseButton p_mouse_button_index) {}

void FileSystemDock::_file_list_empty_clicked(const Vector2 &p_pos, MouseButton p_mouse_button_index) {}

void FileSystemDock::select_file(const String &p_file) {}

void FileSystemDock::_file_multi_selected(int p_index, bool p_selected) {}

void FileSystemDock::_tree_mouse_exited() {}

void FileSystemDock::_reselect_items_selected_on_drag_begin(bool reset) {}

void FileSystemDock::_tree_gui_input(Ref<InputEvent> p_event) {}

void FileSystemDock::_file_list_gui_input(Ref<InputEvent> p_event) {}

bool FileSystemDock::_get_imported_files(const String &p_path, String &r_extension, Vector<String> &r_files) const {}

void FileSystemDock::_update_import_dock() {}

void FileSystemDock::_feature_profile_changed() {}

void FileSystemDock::_project_settings_changed() {}

void FileSystemDock::set_file_sort(FileSortOption p_file_sort) {}

void FileSystemDock::_file_sort_popup(int p_id) {}

const HashMap<String, Color> &FileSystemDock::get_folder_colors() const {}

Dictionary FileSystemDock::get_assigned_folder_colors() const {}

MenuButton *FileSystemDock::_create_file_menu_button() {}

bool FileSystemDock::_can_dock_horizontal() const {}

void FileSystemDock::_set_dock_horizontal(bool p_enable) {}

void FileSystemDock::_bind_methods() {}

void FileSystemDock::save_layout_to_config(Ref<ConfigFile> p_layout, const String &p_section) const {}

void FileSystemDock::load_layout_from_config(Ref<ConfigFile> p_layout, const String &p_section) {}

FileSystemDock::FileSystemDock() {}

FileSystemDock::~FileSystemDock() {}