Include cleanps.

This commit is contained in:
Relintai 2022-03-18 21:07:58 +01:00
parent a112bd877c
commit 6f637e65b0
24 changed files with 50 additions and 115 deletions

View File

@ -30,10 +30,6 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "editor/editor_node.h"
#include "scene/2d/polygon_2d.h"
#include "scene/gui/tool_button.h"
#include "core/math/vector2.h"
#include "core/object.h"
#include "core/reference.h"

View File

@ -64,6 +64,7 @@
#include "scene/main/node.h"
#include "scene/resources/font.h"
#include "scene/resources/texture.h"
#include "scene/animation/animation_blend_space_1d.h"
StringName AnimationNodeBlendSpace1DEditor::get_blend_position_path() const {
StringName path = AnimationTreeEditor::get_singleton()->get_base_path() + "blend_position";
@ -785,3 +786,7 @@ AnimationNodeBlendSpace1DEditor::AnimationNodeBlendSpace1DEditor() {
set_custom_minimum_size(Size2(0, 150 * EDSCALE));
}
AnimationNodeBlendSpace1DEditor::~AnimationNodeBlendSpace1DEditor() {
}

View File

@ -30,22 +30,14 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "editor/editor_node.h"
#include "editor/editor_plugin.h"
#include "editor/plugins/animation_tree_editor_plugin.h"
#include "editor/property_editor.h"
#include "scene/animation/animation_blend_space_1d.h"
#include "scene/gui/button.h"
#include "scene/gui/graph_edit.h"
#include "scene/gui/popup.h"
#include "scene/gui/tree.h"
#include "core/math/vector2.h"
#include "core/object.h"
#include "core/reference.h"
#include "core/string_name.h"
#include "core/ustring.h"
#include "core/vector.h"
#include "scene/animation/animation_tree.h"
class Button;
class Control;
@ -60,6 +52,7 @@ class SpinBox;
class ToolButton;
class UndoRedo;
class VSeparator;
class AnimationNodeBlendSpace1D;
class AnimationNodeBlendSpace1DEditor : public AnimationTreeNodeEditorPlugin {
GDCLASS(AnimationNodeBlendSpace1DEditor, AnimationTreeNodeEditorPlugin);
@ -150,6 +143,7 @@ public:
virtual bool can_edit(const Ref<AnimationNode> &p_node);
virtual void edit(const Ref<AnimationNode> &p_node);
AnimationNodeBlendSpace1DEditor();
~AnimationNodeBlendSpace1DEditor();
};
#endif // ANIMATION_BLEND_SPACE_1D_EDITOR_H

View File

@ -30,6 +30,7 @@
#include "animation_blend_space_2d_editor.h"
#include "scene/animation/animation_blend_space_2d.h"
#include "core/io/resource_loader.h"
#include "core/math/delaunay.h"
#include "core/os/keyboard.h"

View File

@ -30,22 +30,14 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "editor/editor_node.h"
#include "editor/editor_plugin.h"
#include "editor/plugins/animation_tree_editor_plugin.h"
#include "editor/property_editor.h"
#include "scene/animation/animation_blend_space_2d.h"
#include "scene/gui/button.h"
#include "scene/gui/graph_edit.h"
#include "scene/gui/popup.h"
#include "scene/gui/tree.h"
#include "core/math/vector2.h"
#include "core/object.h"
#include "core/reference.h"
#include "core/string_name.h"
#include "core/ustring.h"
#include "core/vector.h"
#include "scene/animation/animation_tree.h"
class Button;
class Control;
@ -61,6 +53,7 @@ class SpinBox;
class ToolButton;
class UndoRedo;
class VSeparator;
class AnimationNodeBlendSpace2D;
class AnimationNodeBlendSpace2DEditor : public AnimationTreeNodeEditorPlugin {
GDCLASS(AnimationNodeBlendSpace2DEditor, AnimationTreeNodeEditorPlugin);

View File

@ -68,6 +68,7 @@
#include "scene/main/node.h"
#include "scene/resources/animation.h"
#include "scene/resources/style_box.h"
#include "scene/animation/animation_blend_tree.h"
void AnimationNodeBlendTreeEditor::add_custom_type(const String &p_name, const Ref<Script> &p_script) {
for (int i = 0; i < add_options.size(); i++) {

View File

@ -30,15 +30,8 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "editor/editor_node.h"
#include "editor/editor_plugin.h"
#include "editor/plugins/animation_tree_editor_plugin.h"
#include "editor/property_editor.h"
#include "scene/animation/animation_blend_tree.h"
#include "scene/gui/button.h"
#include "scene/gui/graph_edit.h"
#include "scene/gui/popup.h"
#include "scene/gui/tree.h"
#include "core/map.h"
#include "core/math/vector2.h"
#include "core/object.h"
@ -48,7 +41,6 @@
#include "core/ustring.h"
#include "core/variant.h"
#include "core/vector.h"
#include "scene/animation/animation_tree.h"
class ProgressBar;
class AcceptDialog;
@ -63,6 +55,7 @@ class Node;
class PanelContainer;
class Tree;
class UndoRedo;
class AnimationNodeBlendTree;
class AnimationNodeBlendTreeEditor : public AnimationTreeNodeEditorPlugin {
GDCLASS(AnimationNodeBlendTreeEditor, AnimationTreeNodeEditorPlugin);

View File

@ -30,13 +30,9 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "editor/editor_node.h"
#include "editor/editor_plugin.h"
#include "scene/animation/animation_player.h"
#include "scene/gui/dialogs.h"
#include "scene/gui/slider.h"
#include "scene/gui/spin_box.h"
#include "scene/gui/texture_button.h"
#include "scene/gui/box_container.h"
#include "core/dictionary.h"
#include "core/math/vector2.h"
#include "core/object.h"
@ -44,10 +40,6 @@
#include "core/rid.h"
#include "core/ustring.h"
#include "core/vector.h"
#include "scene/gui/box_container.h"
#include "scene/gui/tool_button.h"
#include "scene/resources/material.h"
#include "scene/resources/shader.h"
class AnimationTrackEditor;
class AnimationPlayerEditorPlugin;

View File

@ -30,15 +30,9 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "editor/editor_node.h"
#include "editor/editor_plugin.h"
#include "editor/plugins/animation_tree_editor_plugin.h"
#include "editor/property_editor.h"
#include "scene/animation/animation_node_state_machine.h"
#include "scene/gui/button.h"
#include "scene/gui/graph_edit.h"
#include "scene/gui/popup.h"
#include "scene/gui/tree.h"
#include "core/math/rect2.h"
#include "core/math/vector2.h"
#include "core/object.h"
@ -46,8 +40,6 @@
#include "core/string_name.h"
#include "core/ustring.h"
#include "core/vector.h"
#include "scene/animation/animation_tree.h"
#include "scene/gui/control.h"
class EditorFileDialog;
class HBoxContainer;

View File

@ -30,20 +30,14 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "editor/editor_node.h"
#include "editor/editor_plugin.h"
#include "editor/property_editor.h"
#include "scene/animation/animation_tree.h"
#include "scene/gui/button.h"
#include "scene/gui/graph_edit.h"
#include "scene/gui/popup.h"
#include "scene/gui/tree.h"
#include "scene/gui/box_container.h"
#include "core/object.h"
#include "core/object_id.h"
#include "core/reference.h"
#include "core/ustring.h"
#include "core/vector.h"
#include "scene/gui/box_container.h"
class AnimationNode;
class AnimationTree;

View File

@ -30,13 +30,9 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "editor/editor_node.h"
#include "editor/editor_plugin.h"
#include "editor/property_editor.h"
#include "scene/animation/animation_tree_player.h"
#include "scene/gui/button.h"
#include "scene/gui/popup.h"
#include "scene/gui/tree.h"
#include "scene/gui/control.h"
#include "core/list.h"
#include "core/math/vector2.h"
#include "core/object.h"
@ -44,7 +40,6 @@
#include "core/set.h"
#include "core/string_name.h"
#include "core/ustring.h"
#include "scene/gui/control.h"
class AcceptDialog;
class AnimationTreePlayer;

View File

@ -53,6 +53,7 @@
#include "scene/main/node.h"
#include "scene/resources/texture.h"
#include "servers/visual_server.h"
#include "servers/audio/audio_stream.h"
void AudioStreamEditor::_notification(int p_what) {
if (p_what == NOTIFICATION_READY) {

View File

@ -30,18 +30,16 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "editor/editor_node.h"
#include "editor/editor_plugin.h"
#include "scene/audio/audio_stream_player.h"
#include "scene/gui/color_rect.h"
#include "scene/resources/texture.h"
#include "core/math/math_defs.h"
#include "core/object.h"
#include "core/object_id.h"
#include "core/reference.h"
#include "core/ustring.h"
#include "servers/audio/audio_stream.h"
class AudioStream;
class AudioStreamPlayer;
class Control;
class EditorNode;

View File

@ -30,12 +30,11 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "editor/editor_node.h"
#include "scene/gui/control.h"
#include "editor/editor_plugin.h"
#include "scene/3d/camera.h"
#include "core/object.h"
#include "core/ustring.h"
#include "scene/gui/control.h"
class Button;
class EditorNode;

View File

@ -30,14 +30,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "editor/editor_node.h"
#include "scene/gui/control.h"
#include "editor/editor_plugin.h"
#include "scene/2d/canvas_item.h"
#include "scene/gui/box_container.h"
#include "scene/gui/check_box.h"
#include "scene/gui/label.h"
#include "scene/gui/panel_container.h"
#include "scene/gui/spin_box.h"
#include "core/dictionary.h"
#include "core/list.h"
#include "core/map.h"
@ -52,10 +48,6 @@
#include "core/ustring.h"
#include "core/variant.h"
#include "core/vector.h"
#include "scene/gui/control.h"
#include "scene/gui/shortcut.h"
#include "scene/resources/style_box.h"
#include "scene/resources/texture.h"
class CanvasItemEditorViewport;
class AcceptDialog;

View File

@ -30,18 +30,14 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "editor/editor_node.h"
#include "editor/editor_plugin.h"
#include "scene/3d/collision_polygon.h"
#include "scene/3d/immediate_geometry.h"
#include "scene/3d/mesh_instance.h"
#include "scene/gui/tool_button.h"
#include "scene/gui/box_container.h"
#include "core/math/vector2.h"
#include "core/object.h"
#include "core/reference.h"
#include "core/ustring.h"
#include "core/vector.h"
#include "scene/gui/box_container.h"
class CanvasItemEditor;
class ArrayMesh;

View File

@ -30,11 +30,9 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "core/os/input.h"
#include "core/os/keyboard.h"
#include "editor/editor_node.h"
#include "editor/editor_plugin.h"
#include "scene/2d/collision_shape_2d.h"
#include "scene/gui/control.h"
#include "core/math/transform_2d.h"
#include "core/math/vector2.h"
#include "core/object.h"
@ -42,7 +40,6 @@
#include "core/ustring.h"
#include "core/variant.h"
#include "core/vector.h"
#include "scene/gui/control.h"
class CanvasItemEditor;
class CollisionShape2D;

View File

@ -30,12 +30,8 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "editor/editor_node.h"
#include "editor/editor_plugin.h"
#include "scene/2d/collision_polygon_2d.h"
#include "scene/2d/cpu_particles_2d.h"
#include "scene/gui/box_container.h"
#include "scene/gui/file_dialog.h"
#include "core/object.h"
#include "core/ustring.h"

View File

@ -31,10 +31,8 @@
/*************************************************************************/
#include "editor/plugins/particles_editor_plugin.h"
#include "scene/3d/cpu_particles.h"
#include "core/object.h"
#include "core/ustring.h"
#include "editor/editor_plugin.h"
class CPUParticles;
class EditorNode;

View File

@ -30,14 +30,13 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "editor/editor_node.h"
#include "editor/editor_plugin.h"
#include "editor/editor_resource_preview.h"
#include "scene/resources/curve.h"
#include "core/array.h"
#include "core/math/transform_2d.h"
#include "core/math/vector2.h"
#include "core/object.h"
#include "core/reference.h"
#include "core/ustring.h"
#include "editor/editor_inspector.h"

View File

@ -31,6 +31,7 @@
/*************************************************************************/
#include "editor/editor_resource_preview.h"
#include "core/safe_refcount.h"
#include "core/math/vector2.h"
#include "core/object.h"

View File

@ -36,6 +36,7 @@
#include "core/undo_redo.h"
#include "core/vector.h"
#include "editor/editor_node.h"
#include "scene/resources/gradient.h"
Size2 GradientEditor::get_minimum_size() const {
return Size2(0, 60) * EDSCALE;
@ -79,6 +80,10 @@ GradientEditor::GradientEditor() {
editing = false;
}
GradientEditor::~GradientEditor() {
}
///////////////////////
bool EditorInspectorPluginGradient::can_handle(Object *p_object) {

View File

@ -30,16 +30,16 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "editor/editor_node.h"
#include "editor/editor_inspector.h"
#include "editor/editor_plugin.h"
#include "scene/gui/gradient_edit.h"
#include "core/math/vector2.h"
#include "core/object.h"
#include "core/reference.h"
#include "core/ustring.h"
#include "editor/editor_inspector.h"
#include "scene/resources/gradient.h"
class Gradient;
class EditorNode;
class GradientEditor : public GradientEdit {
@ -58,6 +58,7 @@ public:
virtual Size2 get_minimum_size() const;
void set_gradient(const Ref<Gradient> &p_gradient);
GradientEditor();
~GradientEditor();
};
class EditorInspectorPluginGradient : public EditorInspectorPlugin {

View File

@ -30,22 +30,18 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "canvas_item_editor_plugin.h"
#include "editor/editor_inspector.h"
#include "editor/editor_node.h"
#include "core/object.h"
#include "scene/gui/box_container.h"
#include "editor/editor_plugin.h"
#include "scene/gui/menu_button.h"
#include "scene/gui/option_button.h"
#include "scene/gui/popup_menu.h"
#include "core/list.h"
#include "core/object.h"
#include "core/reference.h"
#include "core/string_name.h"
#include "core/ustring.h"
#include "core/variant.h"
#include "core/vector.h"
#include "scene/gui/box_container.h"
#include "scene/gui/item_list.h"
#include "scene/resources/texture.h"
class AcceptDialog;