From 11572c6e309692b62554ae852dfa8fb8943bcbd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 14 Feb 2022 14:00:03 +0100 Subject: Editor: Cleanup some includes dependencies Removes some unnecessary includes from `editor_node.h`, and instead add those where they're used. Removes unnecessary `editor_node.h` includes in various editor classes. Renames `dynamicfont` to `dynamic_font` in a couple files. Misc cleanup while jumping through that rabbit hole. --- editor/plugins/tiles/atlas_merging_dialog.h | 2 -- editor/plugins/tiles/tile_map_editor.h | 1 - editor/plugins/tiles/tile_proxies_manager_dialog.h | 3 --- editor/plugins/tiles/tile_set_atlas_source_editor.h | 1 - editor/plugins/tiles/tile_set_editor.cpp | 1 + editor/plugins/tiles/tile_set_scenes_collection_source_editor.h | 1 - 6 files changed, 1 insertion(+), 8 deletions(-) (limited to 'editor/plugins/tiles') diff --git a/editor/plugins/tiles/atlas_merging_dialog.h b/editor/plugins/tiles/atlas_merging_dialog.h index 6fc1a3b7e0..6cf555247d 100644 --- a/editor/plugins/tiles/atlas_merging_dialog.h +++ b/editor/plugins/tiles/atlas_merging_dialog.h @@ -32,13 +32,11 @@ #define ATLAS_MERGING_DIALOG_H #include "editor/editor_properties.h" - #include "scene/gui/dialogs.h" #include "scene/gui/item_list.h" #include "scene/gui/texture_rect.h" #include "scene/resources/tile_set.h" -class EditorNode; class EditorFileDialog; class AtlasMergingDialog : public ConfirmationDialog { diff --git a/editor/plugins/tiles/tile_map_editor.h b/editor/plugins/tiles/tile_map_editor.h index 49e8cacac8..d09061015f 100644 --- a/editor/plugins/tiles/tile_map_editor.h +++ b/editor/plugins/tiles/tile_map_editor.h @@ -46,7 +46,6 @@ #include "scene/gui/tab_bar.h" #include "scene/gui/tree.h" -class EditorNode; class UndoRedo; class TileMapEditorPlugin : public Object { diff --git a/editor/plugins/tiles/tile_proxies_manager_dialog.h b/editor/plugins/tiles/tile_proxies_manager_dialog.h index 4c8741c660..3f1461391e 100644 --- a/editor/plugins/tiles/tile_proxies_manager_dialog.h +++ b/editor/plugins/tiles/tile_proxies_manager_dialog.h @@ -32,13 +32,10 @@ #define TILE_PROXIES_MANAGER_DIALOG_H #include "editor/editor_properties.h" - #include "scene/2d/tile_map.h" #include "scene/gui/dialogs.h" #include "scene/gui/item_list.h" -class EditorNode; - class TileProxiesManagerDialog : public ConfirmationDialog { GDCLASS(TileProxiesManagerDialog, ConfirmationDialog); diff --git a/editor/plugins/tiles/tile_set_atlas_source_editor.h b/editor/plugins/tiles/tile_set_atlas_source_editor.h index f0c8367d57..4a90b821f8 100644 --- a/editor/plugins/tiles/tile_set_atlas_source_editor.h +++ b/editor/plugins/tiles/tile_set_atlas_source_editor.h @@ -37,7 +37,6 @@ #include "scene/gui/split_container.h" #include "scene/resources/tile_set.h" -class EditorNode; class TileSet; class TileSetAtlasSourceEditor : public HBoxContainer { diff --git a/editor/plugins/tiles/tile_set_editor.cpp b/editor/plugins/tiles/tile_set_editor.cpp index 9ca50497af..97b342c6a7 100644 --- a/editor/plugins/tiles/tile_set_editor.cpp +++ b/editor/plugins/tiles/tile_set_editor.cpp @@ -33,6 +33,7 @@ #include "tile_data_editors.h" #include "tiles_editor_plugin.h" +#include "editor/editor_file_system.h" #include "editor/editor_node.h" #include "editor/editor_scale.h" diff --git a/editor/plugins/tiles/tile_set_scenes_collection_source_editor.h b/editor/plugins/tiles/tile_set_scenes_collection_source_editor.h index bc4e975c8d..8904e8524a 100644 --- a/editor/plugins/tiles/tile_set_scenes_collection_source_editor.h +++ b/editor/plugins/tiles/tile_set_scenes_collection_source_editor.h @@ -37,7 +37,6 @@ #include "scene/gui/item_list.h" #include "scene/resources/tile_set.h" -class EditorNode; class UndoRedo; class TileSetScenesCollectionSourceEditor : public HBoxContainer { -- cgit v1.2.3