You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-02 16:48:55 +00:00
Use forward-declarations in EditorPlugin where possible
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
#include "scene/gui/box_container.h"
|
||||
|
||||
class CanvasItemEditor;
|
||||
class ConfirmationDialog;
|
||||
|
||||
class AbstractPolygon2DEditor : public HBoxContainer {
|
||||
GDCLASS(AbstractPolygon2DEditor, HBoxContainer);
|
||||
|
||||
@@ -40,7 +40,8 @@
|
||||
#include "scene/gui/separator.h"
|
||||
#include "scene/gui/tree.h"
|
||||
|
||||
class EditorUndoRedoManager;
|
||||
class CheckBox;
|
||||
class PanelContainer;
|
||||
|
||||
class AnimationNodeBlendSpace1DEditor : public AnimationTreeNodeEditorPlugin {
|
||||
GDCLASS(AnimationNodeBlendSpace1DEditor, AnimationTreeNodeEditorPlugin);
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
#include "editor/editor_undo_redo_manager.h"
|
||||
#include "scene/animation/animation_blend_tree.h"
|
||||
#include "scene/animation/animation_player.h"
|
||||
#include "scene/gui/grid_container.h"
|
||||
#include "scene/gui/menu_button.h"
|
||||
#include "scene/gui/panel.h"
|
||||
#include "scene/main/window.h"
|
||||
|
||||
@@ -40,6 +40,10 @@
|
||||
#include "scene/gui/separator.h"
|
||||
#include "scene/gui/tree.h"
|
||||
|
||||
class CheckBox;
|
||||
class OptionButton;
|
||||
class PanelContainer;
|
||||
|
||||
class EditorUndoRedoManager;
|
||||
|
||||
class AnimationNodeBlendSpace2DEditor : public AnimationTreeNodeEditorPlugin {
|
||||
|
||||
@@ -31,17 +31,22 @@
|
||||
#ifndef ANIMATION_BLEND_TREE_EDITOR_PLUGIN_H
|
||||
#define ANIMATION_BLEND_TREE_EDITOR_PLUGIN_H
|
||||
|
||||
#include "editor/editor_plugin.h"
|
||||
#include "editor/plugins/animation_tree_editor_plugin.h"
|
||||
#include "scene/animation/animation_blend_tree.h"
|
||||
#include "scene/gui/button.h"
|
||||
#include "scene/gui/graph_edit.h"
|
||||
#include "scene/gui/panel_container.h"
|
||||
#include "scene/gui/popup.h"
|
||||
#include "scene/gui/tree.h"
|
||||
|
||||
class AcceptDialog;
|
||||
class CheckBox;
|
||||
class ProgressBar;
|
||||
class EditorFileDialog;
|
||||
class EditorProperty;
|
||||
class EditorUndoRedoManager;
|
||||
class MenuButton;
|
||||
class PanelContainer;
|
||||
|
||||
class AnimationNodeBlendTreeEditor : public AnimationTreeNodeEditorPlugin {
|
||||
GDCLASS(AnimationNodeBlendTreeEditor, AnimationTreeNodeEditorPlugin);
|
||||
|
||||
@@ -31,16 +31,17 @@
|
||||
#ifndef ANIMATION_STATE_MACHINE_EDITOR_H
|
||||
#define ANIMATION_STATE_MACHINE_EDITOR_H
|
||||
|
||||
#include "editor/editor_plugin.h"
|
||||
#include "editor/plugins/animation_tree_editor_plugin.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"
|
||||
|
||||
class ConfirmationDialog;
|
||||
class EditorFileDialog;
|
||||
class EditorUndoRedoManager;
|
||||
class OptionButton;
|
||||
class PanelContainer;
|
||||
|
||||
class AnimationNodeStateMachineEditor : public AnimationTreeNodeEditorPlugin {
|
||||
GDCLASS(AnimationNodeStateMachineEditor, AnimationTreeNodeEditorPlugin);
|
||||
|
||||
@@ -50,6 +50,9 @@
|
||||
#include "scene/gui/texture_button.h"
|
||||
#include "scene/main/http_request.h"
|
||||
|
||||
class EditorFileDialog;
|
||||
class MenuButton;
|
||||
|
||||
class EditorAssetLibraryItem : public PanelContainer {
|
||||
GDCLASS(EditorAssetLibraryItem, PanelContainer);
|
||||
|
||||
|
||||
@@ -31,9 +31,12 @@
|
||||
#ifndef BIT_MAP_EDITOR_PLUGIN_H
|
||||
#define BIT_MAP_EDITOR_PLUGIN_H
|
||||
|
||||
#include "editor/editor_inspector.h"
|
||||
#include "editor/editor_plugin.h"
|
||||
#include "scene/resources/bit_map.h"
|
||||
|
||||
class TextureRect;
|
||||
|
||||
class BitMapEditor : public VBoxContainer {
|
||||
GDCLASS(BitMapEditor, VBoxContainer);
|
||||
|
||||
|
||||
@@ -42,8 +42,11 @@
|
||||
#include "scene/gui/texture_rect.h"
|
||||
#include "scene/main/canvas_item.h"
|
||||
|
||||
class AcceptDialog;
|
||||
class ConfirmationDialog;
|
||||
class EditorData;
|
||||
class CanvasItemEditorViewport;
|
||||
class MenuButton;
|
||||
class ViewPanner;
|
||||
|
||||
class CanvasItemEditorSelectedItem : public Object {
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#include "editor/editor_settings.h"
|
||||
#include "editor/editor_undo_redo_manager.h"
|
||||
#include "editor/plugins/canvas_item_editor_plugin.h"
|
||||
#include "scene/gui/grid_container.h"
|
||||
#include "scene/gui/separator.h"
|
||||
|
||||
// Inspector controls.
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#ifndef CONTROL_EDITOR_PLUGIN_H
|
||||
#define CONTROL_EDITOR_PLUGIN_H
|
||||
|
||||
#include "editor/editor_inspector.h"
|
||||
#include "editor/editor_plugin.h"
|
||||
#include "scene/gui/box_container.h"
|
||||
#include "scene/gui/button.h"
|
||||
@@ -45,6 +46,7 @@
|
||||
#include "scene/gui/texture_rect.h"
|
||||
|
||||
class EditorUndoRedoManager;
|
||||
class GridContainer;
|
||||
|
||||
// Inspector controls.
|
||||
class ControlPositioningWarning : public MarginContainer {
|
||||
|
||||
@@ -36,10 +36,13 @@
|
||||
#include "scene/2d/cpu_particles_2d.h"
|
||||
#include "scene/gui/box_container.h"
|
||||
|
||||
class EditorPlugin;
|
||||
class CheckBox;
|
||||
class ConfirmationDialog;
|
||||
class SpinBox;
|
||||
class EditorFileDialog;
|
||||
class EditorUndoRedoManager;
|
||||
class MenuButton;
|
||||
class OptionButton;
|
||||
|
||||
class CPUParticles2DEditorPlugin : public EditorPlugin {
|
||||
GDCLASS(CPUParticles2DEditorPlugin, EditorPlugin);
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#ifndef CURVE_EDITOR_PLUGIN_H
|
||||
#define CURVE_EDITOR_PLUGIN_H
|
||||
|
||||
#include "editor/editor_inspector.h"
|
||||
#include "editor/editor_plugin.h"
|
||||
#include "editor/editor_resource_preview.h"
|
||||
#include "scene/resources/curve.h"
|
||||
|
||||
@@ -37,8 +37,12 @@
|
||||
#include "scene/gui/box_container.h"
|
||||
#include "scene/gui/spin_box.h"
|
||||
|
||||
class CheckBox;
|
||||
class ConfirmationDialog;
|
||||
class EditorFileDialog;
|
||||
class EditorUndoRedoManager;
|
||||
class MenuButton;
|
||||
class OptionButton;
|
||||
|
||||
class GPUParticles2DEditorPlugin : public EditorPlugin {
|
||||
GDCLASS(GPUParticles2DEditorPlugin, EditorPlugin);
|
||||
|
||||
@@ -35,6 +35,10 @@
|
||||
#include "scene/3d/gpu_particles_3d.h"
|
||||
#include "scene/gui/spin_box.h"
|
||||
|
||||
class ConfirmationDialog;
|
||||
class HBoxContainer;
|
||||
class MenuButton;
|
||||
class OptionButton;
|
||||
class SceneTreeDialog;
|
||||
|
||||
class GPUParticles3DEditorBase : public Control {
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
|
||||
struct EditorProgress;
|
||||
class EditorFileDialog;
|
||||
class HBoxContainer;
|
||||
|
||||
class GPUParticlesCollisionSDF3DEditorPlugin : public EditorPlugin {
|
||||
GDCLASS(GPUParticlesCollisionSDF3DEditorPlugin, EditorPlugin);
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#ifndef GRADIENT_EDITOR_PLUGIN_H
|
||||
#define GRADIENT_EDITOR_PLUGIN_H
|
||||
|
||||
#include "editor/editor_inspector.h"
|
||||
#include "editor/editor_plugin.h"
|
||||
#include "gradient_editor.h"
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#ifndef GRADIENT_TEXTURE_2D_EDITOR_PLUGIN_H
|
||||
#define GRADIENT_TEXTURE_2D_EDITOR_PLUGIN_H
|
||||
|
||||
#include "editor/editor_inspector.h"
|
||||
#include "editor/editor_plugin.h"
|
||||
#include "editor/editor_spin_slider.h"
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#ifndef MATERIAL_EDITOR_PLUGIN_H
|
||||
#define MATERIAL_EDITOR_PLUGIN_H
|
||||
|
||||
#include "editor/editor_inspector.h"
|
||||
#include "editor/editor_plugin.h"
|
||||
#include "editor/plugins/editor_resource_conversion_plugin.h"
|
||||
#include "scene/3d/camera_3d.h"
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#ifndef MESH_EDITOR_PLUGIN_H
|
||||
#define MESH_EDITOR_PLUGIN_H
|
||||
|
||||
#include "editor/editor_inspector.h"
|
||||
#include "editor/editor_plugin.h"
|
||||
#include "scene/3d/camera_3d.h"
|
||||
#include "scene/3d/light_3d.h"
|
||||
|
||||
@@ -35,6 +35,10 @@
|
||||
#include "scene/3d/mesh_instance_3d.h"
|
||||
#include "scene/gui/spin_box.h"
|
||||
|
||||
class AcceptDialog;
|
||||
class ConfirmationDialog;
|
||||
class MenuButton;
|
||||
|
||||
class MeshInstance3DEditor : public Control {
|
||||
GDCLASS(MeshInstance3DEditor, Control);
|
||||
|
||||
|
||||
@@ -36,6 +36,10 @@
|
||||
#include "scene/gui/slider.h"
|
||||
#include "scene/gui/spin_box.h"
|
||||
|
||||
class AcceptDialog;
|
||||
class ConfirmationDialog;
|
||||
class MenuButton;
|
||||
class OptionButton;
|
||||
class SceneTreeDialog;
|
||||
|
||||
class MultiMeshEditor : public Control {
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
#include "scene/3d/light_3d.h"
|
||||
#include "scene/3d/visual_instance_3d.h"
|
||||
#include "scene/3d/world_environment.h"
|
||||
#include "scene/gui/box_container.h"
|
||||
#include "scene/gui/color_picker.h"
|
||||
#include "scene/gui/panel_container.h"
|
||||
#include "scene/gui/spin_box.h"
|
||||
@@ -47,9 +48,14 @@
|
||||
#include "scene/resources/fog_material.h"
|
||||
#include "scene/resources/sky_material.h"
|
||||
|
||||
class AcceptDialog;
|
||||
class CheckBox;
|
||||
class ConfirmationDialog;
|
||||
class EditorData;
|
||||
class MenuButton;
|
||||
class Node3DEditor;
|
||||
class Node3DEditorViewport;
|
||||
class OptionButton;
|
||||
class SubViewportContainer;
|
||||
class DirectionalLight3D;
|
||||
class WorldEnvironment;
|
||||
|
||||
@@ -33,10 +33,12 @@
|
||||
|
||||
#include "editor/editor_plugin.h"
|
||||
#include "scene/2d/path_2d.h"
|
||||
#include "scene/gui/box_container.h"
|
||||
#include "scene/gui/separator.h"
|
||||
|
||||
class CanvasItemEditor;
|
||||
class EditorUndoRedoManager;
|
||||
class MenuButton;
|
||||
|
||||
class Path2DEditor : public HBoxContainer {
|
||||
GDCLASS(Path2DEditor, HBoxContainer);
|
||||
|
||||
@@ -37,6 +37,8 @@
|
||||
#include "scene/3d/path_3d.h"
|
||||
#include "scene/gui/separator.h"
|
||||
|
||||
class MenuButton;
|
||||
|
||||
class Path3DGizmo : public EditorNode3DGizmo {
|
||||
GDCLASS(Path3DGizmo, EditorNode3DGizmo);
|
||||
|
||||
|
||||
@@ -33,11 +33,17 @@
|
||||
|
||||
#include "editor/plugins/abstract_polygon_2d_editor.h"
|
||||
|
||||
class AcceptDialog;
|
||||
class ButtonGroup;
|
||||
class HScrollBar;
|
||||
class HSlider;
|
||||
class MenuButton;
|
||||
class Panel;
|
||||
class ScrollContainer;
|
||||
class SpinBox;
|
||||
class TextureRect;
|
||||
class ViewPanner;
|
||||
class VScrollBar;
|
||||
|
||||
class Polygon2DEditor : public AbstractPolygon2DEditor {
|
||||
GDCLASS(Polygon2DEditor, AbstractPolygon2DEditor);
|
||||
|
||||
@@ -34,10 +34,12 @@
|
||||
#include "editor/editor_plugin.h"
|
||||
#include "scene/3d/collision_polygon_3d.h"
|
||||
#include "scene/3d/mesh_instance_3d.h"
|
||||
#include "scene/gui/box_container.h"
|
||||
#include "scene/resources/immediate_mesh.h"
|
||||
|
||||
class CanvasItemEditor;
|
||||
class EditorUndoRedoManager;
|
||||
class MenuButton;
|
||||
|
||||
class Polygon3DEditor : public HBoxContainer {
|
||||
GDCLASS(Polygon3DEditor, HBoxContainer);
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
|
||||
#include "editor/editor_plugin.h"
|
||||
#include "scene/gui/dialogs.h"
|
||||
#include "scene/gui/panel_container.h"
|
||||
#include "scene/gui/tree.h"
|
||||
#include "scene/main/resource_preloader.h"
|
||||
|
||||
|
||||
@@ -30,6 +30,8 @@
|
||||
|
||||
#include "root_motion_editor_plugin.h"
|
||||
#include "editor/editor_node.h"
|
||||
#include "scene/animation/animation_player.h"
|
||||
#include "scene/animation/animation_tree.h"
|
||||
#include "scene/main/window.h"
|
||||
|
||||
void EditorPropertyRootMotion::_confirmed() {
|
||||
|
||||
@@ -32,9 +32,8 @@
|
||||
#define ROOT_MOTION_EDITOR_PLUGIN_H
|
||||
|
||||
#include "editor/editor_inspector.h"
|
||||
#include "editor/editor_spin_slider.h"
|
||||
#include "editor/property_selector.h"
|
||||
#include "scene/animation/animation_tree.h"
|
||||
|
||||
class Tree;
|
||||
|
||||
class EditorPropertyRootMotion : public EditorProperty {
|
||||
GDCLASS(EditorPropertyRootMotion, EditorProperty);
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
#include "scene/resources/text_file.h"
|
||||
|
||||
class EditorFileDialog;
|
||||
class TextureRect;
|
||||
|
||||
class EditorSyntaxHighlighter : public SyntaxHighlighter {
|
||||
GDCLASS(EditorSyntaxHighlighter, SyntaxHighlighter)
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
|
||||
class HSplitContainer;
|
||||
class ItemList;
|
||||
class MenuButton;
|
||||
class ShaderCreateDialog;
|
||||
class TabContainer;
|
||||
class TextShaderEditor;
|
||||
|
||||
@@ -35,6 +35,9 @@
|
||||
#include "scene/2d/skeleton_2d.h"
|
||||
#include "scene/gui/spin_box.h"
|
||||
|
||||
class AcceptDialog;
|
||||
class MenuButton;
|
||||
|
||||
class Skeleton2DEditor : public Control {
|
||||
GDCLASS(Skeleton2DEditor, Control);
|
||||
|
||||
|
||||
@@ -35,6 +35,10 @@
|
||||
#include "scene/2d/sprite_2d.h"
|
||||
#include "scene/gui/spin_box.h"
|
||||
|
||||
class AcceptDialog;
|
||||
class ConfirmationDialog;
|
||||
class MenuButton;
|
||||
|
||||
class Sprite2DEditor : public Control {
|
||||
GDCLASS(Sprite2DEditor, Control);
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#ifndef TEXTURE_3D_EDITOR_PLUGIN_H
|
||||
#define TEXTURE_3D_EDITOR_PLUGIN_H
|
||||
|
||||
#include "editor/editor_inspector.h"
|
||||
#include "editor/editor_plugin.h"
|
||||
#include "scene/gui/spin_box.h"
|
||||
#include "scene/resources/shader.h"
|
||||
|
||||
@@ -31,9 +31,13 @@
|
||||
#ifndef TEXTURE_EDITOR_PLUGIN_H
|
||||
#define TEXTURE_EDITOR_PLUGIN_H
|
||||
|
||||
#include "editor/editor_inspector.h"
|
||||
#include "editor/editor_plugin.h"
|
||||
#include "scene/gui/margin_container.h"
|
||||
#include "scene/resources/texture.h"
|
||||
|
||||
class TextureRect;
|
||||
|
||||
class TexturePreview : public MarginContainer {
|
||||
GDCLASS(TexturePreview, MarginContainer);
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#ifndef TEXTURE_LAYERED_EDITOR_PLUGIN_H
|
||||
#define TEXTURE_LAYERED_EDITOR_PLUGIN_H
|
||||
|
||||
#include "editor/editor_inspector.h"
|
||||
#include "editor/editor_plugin.h"
|
||||
#include "scene/gui/spin_box.h"
|
||||
#include "scene/resources/shader.h"
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#define TEXTURE_REGION_EDITOR_PLUGIN_H
|
||||
|
||||
#include "canvas_item_editor_plugin.h"
|
||||
#include "editor/editor_inspector.h"
|
||||
#include "editor/editor_plugin.h"
|
||||
#include "scene/2d/sprite_2d.h"
|
||||
#include "scene/3d/sprite_3d.h"
|
||||
@@ -41,6 +42,7 @@
|
||||
|
||||
class ViewPanner;
|
||||
class EditorUndoRedoManager;
|
||||
class OptionButton;
|
||||
|
||||
class TextureRegionEditor : public AcceptDialog {
|
||||
GDCLASS(TextureRegionEditor, AcceptDialog);
|
||||
|
||||
@@ -45,6 +45,8 @@
|
||||
#include "scene/resources/theme.h"
|
||||
|
||||
class EditorFileDialog;
|
||||
class PanelContainer;
|
||||
class TabContainer;
|
||||
|
||||
class ThemeItemImportTree : public VBoxContainer {
|
||||
GDCLASS(ThemeItemImportTree, VBoxContainer);
|
||||
|
||||
@@ -32,20 +32,13 @@
|
||||
#define VISUAL_SHADER_EDITOR_PLUGIN_H
|
||||
|
||||
#include "editor/editor_plugin.h"
|
||||
#include "editor/editor_properties.h"
|
||||
#include "editor/plugins/editor_resource_conversion_plugin.h"
|
||||
#include "scene/resources/visual_shader.h"
|
||||
|
||||
class Button;
|
||||
class CodeEdit;
|
||||
class CodeHighlighter;
|
||||
class CurveEditor;
|
||||
class GraphEdit;
|
||||
class GraphNode;
|
||||
class PopupMenu;
|
||||
class PopupPanel;
|
||||
class RichTextLabel;
|
||||
class TextEdit;
|
||||
class Tree;
|
||||
|
||||
class VisualShaderEditor;
|
||||
class EditorUndoRedoManager;
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
|
||||
class EditorFileDialog;
|
||||
struct EditorProgress;
|
||||
class HBoxContainer;
|
||||
|
||||
class VoxelGIEditorPlugin : public EditorPlugin {
|
||||
GDCLASS(VoxelGIEditorPlugin, EditorPlugin);
|
||||
|
||||
Reference in New Issue
Block a user