/**************************************************************************/ /* editor_properties_vector.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_properties_vector.h" #include "editor/editor_settings.h" #include "editor/editor_string_names.h" #include "editor/gui/editor_spin_slider.h" #include "editor/themes/editor_scale.h" #include "scene/gui/box_container.h" #include "scene/gui/texture_button.h" const String EditorPropertyVectorN::COMPONENT_LABELS[4] = …; void EditorPropertyVectorN::_set_read_only(bool p_read_only) { … } void EditorPropertyVectorN::_value_changed(double val, const String &p_name) { … } void EditorPropertyVectorN::update_property() { … } void EditorPropertyVectorN::_update_ratio() { … } void EditorPropertyVectorN::_store_link(bool p_linked) { … } void EditorPropertyVectorN::_grab_changed(bool p_grab) { … } void EditorPropertyVectorN::_notification(int p_what) { … } void EditorPropertyVectorN::setup(double p_min, double p_max, double p_step, bool p_hide_slider, bool p_link, const String &p_suffix, bool p_radians_as_degrees) { … } EditorPropertyVectorN::EditorPropertyVectorN(Variant::Type p_type, bool p_force_wide, bool p_horizontal) { … } EditorPropertyVector2::EditorPropertyVector2(bool p_force_wide) : … { … } EditorPropertyVector2i::EditorPropertyVector2i(bool p_force_wide) : … { … } EditorPropertyVector3::EditorPropertyVector3(bool p_force_wide) : … { … } EditorPropertyVector3i::EditorPropertyVector3i(bool p_force_wide) : … { … } EditorPropertyVector4::EditorPropertyVector4(bool p_force_wide) : … { … } EditorPropertyVector4i::EditorPropertyVector4i(bool p_force_wide) : … { … }