Cleaned up the rest of the includes in the headers under engine/plugins. They can still be improved, by moving references too, but that will be done later.

This commit is contained in:
Relintai 2022-03-18 22:55:47 +01:00
parent 2b5cc26584
commit b41f01cb92
16 changed files with 47 additions and 84 deletions

View File

@ -161,6 +161,7 @@
#include "editor/settings_config_dialog.h"
#include "scene/resources/environment.h"
#include "scene/resources/world.h"
#include "scene/main/viewport.h"
#include <stdio.h>
#include <stdlib.h>

View File

@ -30,12 +30,12 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "scene/gui/dialogs.h"
#include "script_editor_plugin.h"
#include "core/reference.h"
#include "core/vector.h"
#include "scene/gui/color_picker.h"
#include "scene/gui/dialogs.h"
#include "scene/gui/tree.h"
#include "script_editor_plugin.h"
#include "core/color.h"
#include "core/list.h"
#include "core/map.h"

View File

@ -32,13 +32,10 @@
#include "editor/code_editor.h"
#include "editor/editor_plugin.h"
#include "scene/gui/menu_button.h"
#include "scene/gui/panel_container.h"
#include "scene/gui/tab_container.h"
#include "scene/gui/text_edit.h"
#include "scene/main/timer.h"
#include "scene/resources/shader.h"
#include "servers/visual/shader_language.h"
#include "core/list.h"
#include "core/math/vector2.h"
#include "core/object.h"

View File

@ -30,13 +30,11 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "editor/editor_node.h"
#include "editor/editor_plugin.h"
#include "scene/2d/skeleton_2d.h"
#include "scene/gui/spin_box.h"
#include "scene/gui/control.h"
#include "core/object.h"
#include "core/ustring.h"
#include "scene/gui/control.h"
class AcceptDialog;
class EditorNode;

View File

@ -30,8 +30,8 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "editor/editor_node.h"
#include "editor/editor_plugin.h"
#include "core/object.h"
#include "core/ustring.h"

View File

@ -30,15 +30,16 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "core/reference.h"
#include "editor/editor_node.h"
#include "scene/gui/control.h"
#include "scene/gui/box_container.h"
#include "scene/gui/container.h"
#include "scene/3d/spatial.h"
#include "editor/editor_plugin.h"
#include "editor/editor_scale.h"
#include "scene/3d/immediate_geometry.h"
#include "scene/3d/light.h"
#include "scene/3d/skeleton.h"
#include "scene/3d/visual_instance.h"
#include "scene/gui/panel_container.h"
#include "scene/gui/spin_box.h"
#include "core/reference.h"
#include "core/color.h"
#include "core/dictionary.h"
#include "core/error_macros.h"
@ -57,17 +58,11 @@
#include "core/ustring.h"
#include "core/variant.h"
#include "core/vector.h"
#include "scene/3d/spatial.h"
#include "scene/gui/box_container.h"
#include "scene/gui/button.h"
#include "scene/gui/container.h"
#include "scene/gui/control.h"
#include "scene/gui/spin_box.h"
#include "scene/main/node.h"
#include "editor/editor_scale.h"
#include "scene/resources/material.h"
#include "scene/resources/mesh.h"
#include "scene/resources/texture.h"
#include "servers/visual_server.h"
class Camera;
class SpatialEditor;
@ -99,6 +94,7 @@ class TriangleMesh;
class UndoRedo;
class VSplitContainer;
class Viewport;
class SpinBox;
class EditorSpatialGizmo : public SpatialGizmo {
GDCLASS(EditorSpatialGizmo, SpatialGizmo);

View File

@ -30,15 +30,14 @@
/* 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/sprite.h"
#include "scene/gui/spin_box.h"
#include "core/math/vector2.h"
#include "core/object.h"
#include "core/ustring.h"
#include "core/vector.h"
#include "scene/gui/control.h"
class AcceptDialog;
class Button;

View File

@ -30,14 +30,9 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "editor/editor_node.h"
#include "editor/editor_plugin.h"
#include "scene/2d/animated_sprite.h"
#include "scene/gui/dialogs.h"
#include "scene/gui/file_dialog.h"
#include "scene/gui/split_container.h"
#include "scene/gui/texture_rect.h"
#include "scene/gui/tree.h"
#include "editor/editor_plugin.h"
#include "core/math/vector2.h"
#include "core/object.h"
#include "core/reference.h"

View File

@ -30,17 +30,14 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "scene/gui/box_container.h"
#include "editor/editor_plugin.h"
#include "editor/editor_inspector.h"
#include "editor/editor_node.h"
#include "scene/gui/option_button.h"
#include "scene/gui/texture_rect.h"
#include "scene/resources/style_box.h"
#include "core/object.h"
#include "core/reference.h"
#include "core/ustring.h"
#include "core/variant.h"
#include "editor/editor_plugin.h"
#include "scene/gui/box_container.h"
class Control;
class EditorNode;

View File

@ -31,6 +31,7 @@
/*************************************************************************/
#include "script_editor_plugin.h"
#include "core/color.h"
#include "core/list.h"
#include "core/map.h"

View File

@ -30,14 +30,14 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "editor/editor_node.h"
#include "scene/gui/margin_container.h"
#include "editor/editor_inspector.h"
#include "editor/editor_plugin.h"
#include "scene/resources/texture.h"
#include "core/object.h"
#include "core/reference.h"
#include "core/ustring.h"
#include "editor/editor_inspector.h"
#include "scene/gui/margin_container.h"
class EditorNode;
class Label;

View File

@ -30,14 +30,12 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "canvas_item_editor_plugin.h"
#include "editor/editor_node.h"
#include "scene/gui/box_container.h"
#include "editor/editor_plugin.h"
#include "scene/2d/sprite.h"
#include "scene/3d/sprite_3d.h"
#include "scene/gui/nine_patch_rect.h"
#include "scene/resources/style_box.h"
#include "scene/resources/texture.h"
#include "core/dictionary.h"
#include "core/list.h"
#include "core/map.h"
@ -47,7 +45,7 @@
#include "core/reference.h"
#include "core/rid.h"
#include "core/ustring.h"
#include "scene/gui/box_container.h"
class Button;
class EditorNode;

View File

@ -30,15 +30,14 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "scene/gui/box_container.h"
#include "scene/gui/dialogs.h"
#include "scene/gui/margin_container.h"
#include "scene/gui/option_button.h"
#include "scene/gui/scroll_container.h"
#include "scene/gui/tabs.h"
#include "scene/gui/texture_rect.h"
#include "editor/editor_plugin.h"
#include "scene/resources/theme.h"
#include "theme_editor_preview.h"
#include "editor/editor_node.h"
#include "scene/resources/style_box.h"
#include "core/list.h"
#include "core/map.h"
#include "core/object.h"
@ -48,9 +47,6 @@
#include "core/string_name.h"
#include "core/ustring.h"
#include "core/vector.h"
#include "editor/editor_plugin.h"
#include "scene/gui/box_container.h"
#include "scene/resources/style_box.h"
class Button;
class CheckButton;

View File

@ -31,28 +31,13 @@
/*************************************************************************/
#include "scene/gui/box_container.h"
#include "scene/gui/check_box.h"
#include "scene/gui/check_button.h"
#include "scene/gui/color_picker.h"
#include "scene/gui/color_rect.h"
#include "scene/gui/label.h"
#include "scene/gui/margin_container.h"
#include "scene/gui/menu_button.h"
#include "scene/gui/option_button.h"
#include "scene/gui/panel.h"
#include "scene/gui/progress_bar.h"
#include "scene/gui/scroll_container.h"
#include "scene/gui/separator.h"
#include "scene/gui/spin_box.h"
#include "scene/gui/tab_container.h"
#include "scene/gui/text_edit.h"
#include "scene/gui/tree.h"
#include "scene/resources/theme.h"
#include "editor/editor_node.h"
#include "core/color.h"
#include "core/object.h"
#include "core/reference.h"
#include "core/ustring.h"
#include "scene/resources/theme.h"
#include "scene/resources/font.h"
#include "scene/resources/packed_scene.h"
#include "scene/resources/style_box.h"

View File

@ -30,10 +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/texture_editor_plugin.h"
#include "scene/main/viewport.h"
#include "core/object.h"
#include "core/ustring.h"

View File

@ -72,6 +72,7 @@
#include "scene/resources/surface_tool.h"
#include "scene/resources/world.h"
#include "servers/physics_server.h"
#include "editor/editor_node.h"
#define HANDLE_HALF_SIZE 9.5