godot/editor/editor_data.cpp

/**************************************************************************/
/*  editor_data.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 "editor_data.h"

#include "core/config/project_settings.h"
#include "core/extension/gdextension_manager.h"
#include "core/io/file_access.h"
#include "core/io/image_loader.h"
#include "core/io/resource_loader.h"
#include "editor/editor_node.h"
#include "editor/editor_string_names.h"
#include "editor/editor_undo_redo_manager.h"
#include "editor/multi_node_edit.h"
#include "editor/plugins/editor_context_menu_plugin.h"
#include "editor/plugins/editor_plugin.h"
#include "editor/plugins/script_editor_plugin.h"
#include "editor/themes/editor_scale.h"
#include "scene/gui/popup_menu.h"
#include "scene/resources/packed_scene.h"

void EditorSelectionHistory::cleanup_history() {}

void EditorSelectionHistory::add_object(ObjectID p_object, const String &p_property, bool p_inspector_only) {}

void EditorSelectionHistory::replace_object(ObjectID p_old_object, ObjectID p_new_object) {}

int EditorSelectionHistory::get_history_len() {}

int EditorSelectionHistory::get_history_pos() {}

ObjectID EditorSelectionHistory::get_history_obj(int p_obj) const {}

bool EditorSelectionHistory::is_at_beginning() const {}

bool EditorSelectionHistory::is_at_end() const {}

bool EditorSelectionHistory::next() {}

bool EditorSelectionHistory::previous() {}

bool EditorSelectionHistory::is_current_inspector_only() const {}

ObjectID EditorSelectionHistory::get_current() {}

int EditorSelectionHistory::get_path_size() const {}

ObjectID EditorSelectionHistory::get_path_object(int p_index) const {}

String EditorSelectionHistory::get_path_property(int p_index) const {}

void EditorSelectionHistory::clear() {}

EditorSelectionHistory::EditorSelectionHistory() {}

////////////////////////////////////////////////////////////

EditorPlugin *EditorData::get_handling_main_editor(Object *p_object) {}

Vector<EditorPlugin *> EditorData::get_handling_sub_editors(Object *p_object) {}

EditorPlugin *EditorData::get_editor_by_name(const String &p_name) {}

void EditorData::copy_object_params(Object *p_object) {}

void EditorData::get_editor_breakpoints(List<String> *p_breakpoints) {}

Dictionary EditorData::get_editor_plugin_states() const {}

Dictionary EditorData::get_scene_editor_states(int p_idx) const {}

void EditorData::set_editor_plugin_states(const Dictionary &p_states) {}

void EditorData::notify_edited_scene_changed() {}

void EditorData::notify_resource_saved(const Ref<Resource> &p_resource) {}

void EditorData::notify_scene_saved(const String &p_path) {}

void EditorData::clear_editor_states() {}

void EditorData::save_editor_external_data() {}

void EditorData::apply_changes_in_editors() {}

void EditorData::paste_object_params(Object *p_object) {}

bool EditorData::call_build() {}

void EditorData::set_scene_as_saved(int p_idx) {}

bool EditorData::is_scene_changed(int p_idx) {}

int EditorData::get_scene_history_id_from_path(const String &p_path) const {}

int EditorData::get_current_edited_scene_history_id() const {}

int EditorData::get_scene_history_id(int p_idx) const {}

void EditorData::add_undo_redo_inspector_hook_callback(Callable p_callable) {}

void EditorData::remove_undo_redo_inspector_hook_callback(Callable p_callable) {}

const Vector<Callable> EditorData::get_undo_redo_inspector_hook_callback() {}

void EditorData::add_move_array_element_function(const StringName &p_class, Callable p_callable) {}

void EditorData::remove_move_array_element_function(const StringName &p_class) {}

Callable EditorData::get_move_array_element_function(const StringName &p_class) const {}

void EditorData::remove_editor_plugin(EditorPlugin *p_plugin) {}

void EditorData::add_editor_plugin(EditorPlugin *p_plugin) {}

int EditorData::get_editor_plugin_count() const {}

EditorPlugin *EditorData::get_editor_plugin(int p_idx) {}

void EditorData::add_extension_editor_plugin(const StringName &p_class_name, EditorPlugin *p_plugin) {}

void EditorData::remove_extension_editor_plugin(const StringName &p_class_name) {}

bool EditorData::has_extension_editor_plugin(const StringName &p_class_name) {}

EditorPlugin *EditorData::get_extension_editor_plugin(const StringName &p_class_name) {}

void EditorData::add_custom_type(const String &p_type, const String &p_inherits, const Ref<Script> &p_script, const Ref<Texture2D> &p_icon) {}

Variant EditorData::instantiate_custom_type(const String &p_type, const String &p_inherits) {}

const EditorData::CustomType *EditorData::get_custom_type_by_name(const String &p_type) const {}

const EditorData::CustomType *EditorData::get_custom_type_by_path(const String &p_path) const {}

bool EditorData::is_type_recognized(const String &p_type) const {}

void EditorData::remove_custom_type(const String &p_type) {}

void EditorData::instantiate_object_properties(Object *p_object) {}

int EditorData::add_edited_scene(int p_at_pos) {}

void EditorData::move_edited_scene_index(int p_idx, int p_to_idx) {}

void EditorData::remove_scene(int p_idx) {}

bool EditorData::_find_updated_instances(Node *p_root, Node *p_node, HashSet<String> &checked_paths) {}

bool EditorData::check_and_update_scene(int p_idx) {}

int EditorData::get_edited_scene() const {}

int EditorData::get_edited_scene_from_path(const String &p_path) const {}

void EditorData::set_edited_scene(int p_idx) {}

Node *EditorData::get_edited_scene_root(int p_idx) {}

void EditorData::set_edited_scene_root(Node *p_root) {}

int EditorData::get_edited_scene_count() const {}

Vector<EditorData::EditedScene> EditorData::get_edited_scenes() const {}

void EditorData::set_scene_modified_time(int p_idx, uint64_t p_time) {}

uint64_t EditorData::get_scene_modified_time(int p_idx) const {}

String EditorData::get_scene_type(int p_idx) const {}

void EditorData::move_edited_scene_to_index(int p_idx) {}

Ref<Script> EditorData::get_scene_root_script(int p_idx) const {}

String EditorData::get_scene_title(int p_idx, bool p_always_strip_extension) const {}

void EditorData::set_scene_path(int p_idx, const String &p_path) {}

String EditorData::get_scene_path(int p_idx) const {}

void EditorData::set_edited_scene_live_edit_root(const NodePath &p_root) {}

NodePath EditorData::get_edited_scene_live_edit_root() {}

void EditorData::save_edited_scene_state(EditorSelection *p_selection, EditorSelectionHistory *p_history, const Dictionary &p_custom) {}

Dictionary EditorData::restore_edited_scene_state(EditorSelection *p_selection, EditorSelectionHistory *p_history) {}

void EditorData::clear_edited_scenes() {}

void EditorData::set_plugin_window_layout(Ref<ConfigFile> p_layout) {}

void EditorData::get_plugin_window_layout(Ref<ConfigFile> p_layout) {}

bool EditorData::script_class_is_parent(const String &p_class, const String &p_inherits) {}

StringName EditorData::script_class_get_base(const String &p_class) const {}

Variant EditorData::script_class_instance(const String &p_class) {}

Ref<Script> EditorData::script_class_load_script(const String &p_class) const {}

void EditorData::script_class_set_icon_path(const String &p_class, const String &p_icon_path) {}

String EditorData::script_class_get_icon_path(const String &p_class) const {}

StringName EditorData::script_class_get_name(const String &p_path) const {}

void EditorData::script_class_set_name(const String &p_path, const StringName &p_class) {}

void EditorData::script_class_save_icon_paths() {}

void EditorData::script_class_load_icon_paths() {}

Ref<Texture2D> EditorData::extension_class_get_icon(const String &p_class) const {}

Ref<Texture2D> EditorData::_load_script_icon(const String &p_path) const {}

Ref<Texture2D> EditorData::get_script_icon(const Ref<Script> &p_script) {}

void EditorData::clear_script_icon_cache() {}

EditorData::EditorData() {}

EditorData::~EditorData() {}

///////////////////////////////////////////////////////////////////////////////

void EditorSelection::_node_removed(Node *p_node) {}

void EditorSelection::add_node(Node *p_node) {}

void EditorSelection::remove_node(Node *p_node) {}

bool EditorSelection::is_selected(Node *p_node) const {}

void EditorSelection::_bind_methods() {}

void EditorSelection::add_editor_plugin(Object *p_object) {}

void EditorSelection::_update_node_list() {}

void EditorSelection::update() {}

void EditorSelection::_emit_change() {}

TypedArray<Node> EditorSelection::_get_transformable_selected_nodes() {}

TypedArray<Node> EditorSelection::get_selected_nodes() {}

List<Node *> &EditorSelection::get_selected_node_list() {}

List<Node *> EditorSelection::get_full_selected_node_list() {}

void EditorSelection::clear() {}

EditorSelection::EditorSelection() {}

EditorSelection::~EditorSelection() {}