godot/editor/plugins/tiles/tile_set_atlas_source_editor.cpp

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

#include "tiles_editor_plugin.h"

#include "editor/editor_inspector.h"
#include "editor/editor_node.h"
#include "editor/editor_settings.h"
#include "editor/editor_string_names.h"
#include "editor/editor_undo_redo_manager.h"
#include "editor/gui/editor_toaster.h"
#include "editor/plugins/tiles/tile_set_editor.h"
#include "editor/progress_dialog.h"
#include "editor/themes/editor_scale.h"

#include "scene/gui/box_container.h"
#include "scene/gui/button.h"
#include "scene/gui/control.h"
#include "scene/gui/item_list.h"
#include "scene/gui/separator.h"
#include "scene/gui/split_container.h"
#include "scene/gui/tab_container.h"

#include "core/math/geometry_2d.h"
#include "core/os/keyboard.h"

#include "servers/navigation_server_2d.h"

void TileSetAtlasSourceEditor::TileSetAtlasSourceProxyObject::set_id(int p_id) {}

int TileSetAtlasSourceEditor::TileSetAtlasSourceProxyObject::get_id() const {}

bool TileSetAtlasSourceEditor::TileSetAtlasSourceProxyObject::_set(const StringName &p_name, const Variant &p_value) {}

bool TileSetAtlasSourceEditor::TileSetAtlasSourceProxyObject::_get(const StringName &p_name, Variant &r_ret) const {}

void TileSetAtlasSourceEditor::TileSetAtlasSourceProxyObject::_get_property_list(List<PropertyInfo> *p_list) const {}

void TileSetAtlasSourceEditor::TileSetAtlasSourceProxyObject::_bind_methods() {}

void TileSetAtlasSourceEditor::TileSetAtlasSourceProxyObject::edit(Ref<TileSet> p_tile_set, Ref<TileSetAtlasSource> p_tile_set_atlas_source, int p_source_id) {}

// -- Proxy object used by the tile inspector --
bool TileSetAtlasSourceEditor::AtlasTileProxyObject::_set(const StringName &p_name, const Variant &p_value) {}

bool TileSetAtlasSourceEditor::AtlasTileProxyObject::_get(const StringName &p_name, Variant &r_ret) const {}

void TileSetAtlasSourceEditor::AtlasTileProxyObject::_get_property_list(List<PropertyInfo> *p_list) const {}

void TileSetAtlasSourceEditor::AtlasTileProxyObject::edit(Ref<TileSetAtlasSource> p_tile_set_atlas_source, const RBSet<TileSelection> &p_tiles) {}

void TileSetAtlasSourceEditor::AtlasTileProxyObject::_bind_methods() {}

void TileSetAtlasSourceEditor::_inspector_property_selected(const String &p_property) {}

void TileSetAtlasSourceEditor::_update_tile_id_label() {}

void TileSetAtlasSourceEditor::_update_source_inspector() {}

void TileSetAtlasSourceEditor::_update_fix_selected_and_hovered_tiles() {}

void TileSetAtlasSourceEditor::_update_atlas_source_inspector() {}

void TileSetAtlasSourceEditor::_update_tile_inspector() {}

void TileSetAtlasSourceEditor::_update_tile_data_editors() {}

void TileSetAtlasSourceEditor::_update_current_tile_data_editor() {}

void TileSetAtlasSourceEditor::_tile_data_editor_dropdown_button_draw() {}

void TileSetAtlasSourceEditor::_tile_data_editor_dropdown_button_pressed() {}

void TileSetAtlasSourceEditor::_tile_data_editors_tree_selected() {}

void TileSetAtlasSourceEditor::_update_atlas_view() {}

void TileSetAtlasSourceEditor::_update_toolbar() {}

void TileSetAtlasSourceEditor::_update_buttons() {}

void TileSetAtlasSourceEditor::_tile_atlas_control_mouse_exited() {}

void TileSetAtlasSourceEditor::_tile_atlas_view_transform_changed() {}

void TileSetAtlasSourceEditor::_tile_atlas_control_gui_input(const Ref<InputEvent> &p_event) {}

void TileSetAtlasSourceEditor::_end_dragging() {}

HashMap<Vector2i, List<const PropertyInfo *>> TileSetAtlasSourceEditor::_group_properties_per_tiles(const List<PropertyInfo> &r_list, const TileSetAtlasSource *p_atlas) {}

void TileSetAtlasSourceEditor::_menu_option(int p_option) {}

void TileSetAtlasSourceEditor::shortcut_input(const Ref<InputEvent> &p_event) {}

void TileSetAtlasSourceEditor::_set_selection_from_array(const Array &p_selection) {}

Array TileSetAtlasSourceEditor::_get_selection_as_array() {}

void TileSetAtlasSourceEditor::_tile_atlas_control_draw() {}

void TileSetAtlasSourceEditor::_tile_atlas_control_unscaled_draw() {}

void TileSetAtlasSourceEditor::_tile_alternatives_control_gui_input(const Ref<InputEvent> &p_event) {}

void TileSetAtlasSourceEditor::_tile_alternatives_control_mouse_exited() {}

void TileSetAtlasSourceEditor::_tile_alternatives_control_draw() {}

void TileSetAtlasSourceEditor::_tile_alternatives_control_unscaled_draw() {}

void TileSetAtlasSourceEditor::_tile_set_changed() {}

void TileSetAtlasSourceEditor::_tile_proxy_object_changed(const String &p_what) {}

void TileSetAtlasSourceEditor::_atlas_source_proxy_object_changed(const String &p_what) {}

void TileSetAtlasSourceEditor::_undo_redo_inspector_callback(Object *p_undo_redo, Object *p_edited, const String &p_property, const Variant &p_new_value) {}

Vector2i TileSetAtlasSourceEditor::_get_drag_offset_tile_coords(const Vector2i &p_offset) const {}

void TileSetAtlasSourceEditor::edit(Ref<TileSet> p_tile_set, TileSetAtlasSource *p_tile_set_atlas_source, int p_source_id) {}

void TileSetAtlasSourceEditor::init_new_atlases(const Vector<Ref<TileSetAtlasSource>> &p_atlases) {}

void TileSetAtlasSourceEditor::_update_source_texture() {}

void TileSetAtlasSourceEditor::_check_outside_tiles() {}

void TileSetAtlasSourceEditor::_cleanup_outside_tiles() {}

void TileSetAtlasSourceEditor::_auto_create_tiles() {}

void TileSetAtlasSourceEditor::_cancel_auto_create_tiles() {}

void TileSetAtlasSourceEditor::_auto_remove_tiles() {}

void TileSetAtlasSourceEditor::_notification(int p_what) {}

void TileSetAtlasSourceEditor::_bind_methods() {}

TileSetAtlasSourceEditor::TileSetAtlasSourceEditor() {}

TileSetAtlasSourceEditor::~TileSetAtlasSourceEditor() {}

////// EditorPropertyTilePolygon //////

void EditorPropertyTilePolygon::_add_focusable_children(Node *p_node) {}

void EditorPropertyTilePolygon::_polygons_changed() {}

void EditorPropertyTilePolygon::update_property() {}

void EditorPropertyTilePolygon::setup_single_mode(const StringName &p_property, const String &p_base_type) {}

void EditorPropertyTilePolygon::setup_multiple_mode(const StringName &p_property, const StringName &p_count_property, const String &p_element_pattern, const String &p_base_type) {}

EditorPropertyTilePolygon::EditorPropertyTilePolygon() {}

////// EditorInspectorPluginTileData //////

bool EditorInspectorPluginTileData::can_handle(Object *p_object) {}

bool EditorInspectorPluginTileData::parse_property(Object *p_object, const Variant::Type p_type, const String &p_path, const PropertyHint p_hint, const String &p_hint_text, const BitField<PropertyUsageFlags> p_usage, const bool p_wide) {}

Control::CursorShape TileSetAtlasSourceEditor::TileAtlasControl::get_cursor_shape(const Point2 &p_pos) const {}