summaryrefslogtreecommitdiff
path: root/editor/plugins/tiles
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-02-14 14:00:03 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-02-15 14:54:15 +0100
commit11572c6e309692b62554ae852dfa8fb8943bcbd7 (patch)
tree32280e24a2957b4edf32157f40a43a602ff147fb /editor/plugins/tiles
parent1d910b1e5868814938d644ff181cf30d75516762 (diff)
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.
Diffstat (limited to 'editor/plugins/tiles')
-rw-r--r--editor/plugins/tiles/atlas_merging_dialog.h2
-rw-r--r--editor/plugins/tiles/tile_map_editor.h1
-rw-r--r--editor/plugins/tiles/tile_proxies_manager_dialog.h3
-rw-r--r--editor/plugins/tiles/tile_set_atlas_source_editor.h1
-rw-r--r--editor/plugins/tiles/tile_set_editor.cpp1
-rw-r--r--editor/plugins/tiles/tile_set_scenes_collection_source_editor.h1
6 files changed, 1 insertions, 8 deletions
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 {