You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Merge pull request #69062 from trollodel/lightweight_editor_mass
Use forward-declarations in big editor classes
This commit is contained in:
@@ -38,8 +38,13 @@
|
||||
#include "editor/editor_node.h"
|
||||
#include "editor/editor_properties.h"
|
||||
#include "editor/editor_scale.h"
|
||||
#include "editor/editor_settings.h"
|
||||
#include "editor/editor_undo_redo_manager.h"
|
||||
|
||||
#include "scene/gui/menu_button.h"
|
||||
#include "scene/gui/option_button.h"
|
||||
#include "scene/gui/separator.h"
|
||||
|
||||
#ifdef DEBUG_ENABLED
|
||||
#include "servers/navigation_server_3d.h"
|
||||
#endif // DEBUG_ENABLED
|
||||
|
||||
@@ -39,6 +39,9 @@
|
||||
#include "scene/gui/control.h"
|
||||
#include "scene/gui/label.h"
|
||||
|
||||
class MenuButton;
|
||||
class EditorUndoRedoManager;
|
||||
|
||||
class TileDataEditor : public VBoxContainer {
|
||||
GDCLASS(TileDataEditor, VBoxContainer);
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#include "editor/editor_node.h"
|
||||
#include "editor/editor_resource_preview.h"
|
||||
#include "editor/editor_scale.h"
|
||||
#include "editor/editor_settings.h"
|
||||
#include "editor/editor_undo_redo_manager.h"
|
||||
#include "editor/plugins/canvas_item_editor_plugin.h"
|
||||
|
||||
|
||||
@@ -32,7 +32,9 @@
|
||||
|
||||
#include "editor/editor_node.h"
|
||||
#include "editor/editor_scale.h"
|
||||
#include "editor/editor_settings.h"
|
||||
#include "editor/editor_undo_redo_manager.h"
|
||||
#include "scene/gui/separator.h"
|
||||
|
||||
void TileProxiesManagerDialog::_right_clicked(int p_item, Vector2 p_local_mouse_pos, Object *p_item_list, MouseButton p_mouse_button_index) {
|
||||
if (p_mouse_button_index != MouseButton::RIGHT) {
|
||||
|
||||
@@ -36,6 +36,8 @@
|
||||
#include "scene/gui/dialogs.h"
|
||||
#include "scene/gui/item_list.h"
|
||||
|
||||
class EditorUndoRedoManager;
|
||||
|
||||
class TileProxiesManagerDialog : public ConfirmationDialog {
|
||||
GDCLASS(TileProxiesManagerDialog, ConfirmationDialog);
|
||||
|
||||
|
||||
@@ -35,10 +35,10 @@
|
||||
#include "editor/editor_inspector.h"
|
||||
#include "editor/editor_node.h"
|
||||
#include "editor/editor_scale.h"
|
||||
#include "editor/editor_settings.h"
|
||||
#include "editor/editor_undo_redo_manager.h"
|
||||
#include "editor/progress_dialog.h"
|
||||
|
||||
#include "editor/editor_node.h"
|
||||
#include "scene/gui/box_container.h"
|
||||
#include "scene/gui/button.h"
|
||||
#include "scene/gui/control.h"
|
||||
|
||||
@@ -37,7 +37,10 @@
|
||||
#include "scene/gui/split_container.h"
|
||||
#include "scene/resources/tile_set.h"
|
||||
|
||||
class Popup;
|
||||
class TileSet;
|
||||
class Tree;
|
||||
class VSeparator;
|
||||
|
||||
class TileSetAtlasSourceEditor : public HBoxContainer {
|
||||
GDCLASS(TileSetAtlasSourceEditor, HBoxContainer);
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
#include "editor/editor_file_system.h"
|
||||
#include "editor/editor_node.h"
|
||||
#include "editor/editor_scale.h"
|
||||
#include "editor/editor_settings.h"
|
||||
#include "editor/editor_undo_redo_manager.h"
|
||||
|
||||
#include "scene/gui/box_container.h"
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
#include "editor/editor_undo_redo_manager.h"
|
||||
|
||||
#include "scene/gui/item_list.h"
|
||||
#include "scene/gui/split_container.h"
|
||||
|
||||
#include "core/core_string_names.h"
|
||||
|
||||
|
||||
@@ -30,10 +30,13 @@
|
||||
|
||||
#include "tiles_editor_plugin.h"
|
||||
|
||||
#include "tile_set_editor.h"
|
||||
|
||||
#include "core/os/mutex.h"
|
||||
|
||||
#include "editor/editor_node.h"
|
||||
#include "editor/editor_scale.h"
|
||||
#include "editor/editor_settings.h"
|
||||
#include "editor/plugins/canvas_item_editor_plugin.h"
|
||||
|
||||
#include "scene/2d/tile_map.h"
|
||||
@@ -43,8 +46,6 @@
|
||||
#include "scene/gui/separator.h"
|
||||
#include "scene/resources/tile_set.h"
|
||||
|
||||
#include "tile_set_editor.h"
|
||||
|
||||
TilesEditorPlugin *TilesEditorPlugin::singleton = nullptr;
|
||||
|
||||
void TilesEditorPlugin::_preview_frame_started() {
|
||||
|
||||
Reference in New Issue
Block a user