More include cleanups to the classes under editor/plugins.

This commit is contained in:
Relintai 2022-03-18 21:48:35 +01:00
parent 6f637e65b0
commit 2b5cc26584
20 changed files with 46 additions and 67 deletions

View File

@ -31,7 +31,7 @@
/*************************************************************************/
#include "editor/plugins/abstract_polygon_2d_editor.h"
#include "scene/2d/light_occluder_2d.h"
#include "core/object.h"
#include "core/reference.h"
#include "core/variant.h"

View File

@ -31,7 +31,7 @@
/*************************************************************************/
#include "editor/plugins/abstract_polygon_2d_editor.h"
#include "scene/2d/line_2d.h"
#include "core/object.h"
#include "core/variant.h"

View File

@ -230,6 +230,10 @@ MaterialEditor::MaterialEditor() {
}
}
MaterialEditor::~MaterialEditor() {
}
///////////////////////
bool EditorInspectorPluginMaterial::can_handle(Object *p_object) {

View File

@ -30,19 +30,17 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "editor/editor_inspector.h"
#include "scene/gui/control.h"
#include "editor/property_editor.h"
#include "scene/resources/primitive_meshes.h"
#include "editor/editor_node.h"
#include "editor/editor_plugin.h"
#include "scene/3d/camera.h"
#include "scene/3d/light.h"
#include "scene/3d/mesh_instance.h"
#include "scene/resources/material.h"
#include "core/object.h"
#include "core/reference.h"
#include "core/ustring.h"
#include "editor/editor_inspector.h"
#include "scene/gui/control.h"
#include "scene/resources/environment.h"
class ViewportContainer;
@ -88,6 +86,7 @@ protected:
public:
void edit(Ref<Material> p_material, const Ref<Environment> &p_env);
MaterialEditor();
~MaterialEditor();
};
class EditorInspectorPluginMaterial : public EditorInspectorPlugin {

View File

@ -30,17 +30,14 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "editor/editor_node.h"
#include "editor/editor_plugin.h"
#include "scene/3d/camera.h"
#include "scene/3d/light.h"
#include "scene/3d/mesh_instance.h"
#include "scene/gui/viewport_container.h"
#include "scene/resources/material.h"
#include "core/object.h"
#include "core/reference.h"
#include "core/ustring.h"
#include "editor/editor_inspector.h"
#include "scene/resources/material.h"
#include "scene/resources/mesh.h"
class Camera;

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/3d/mesh_instance.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 ConfirmationDialog;

View File

@ -30,14 +30,12 @@
/* 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/3d/multimesh_instance.h"
#include "scene/gui/spin_box.h"
#include "core/node_path.h"
#include "core/object.h"
#include "core/ustring.h"
#include "scene/gui/control.h"
class AcceptDialog;
class ConfirmationDialog;

View File

@ -31,7 +31,7 @@
/*************************************************************************/
#include "editor/plugins/abstract_polygon_2d_editor.h"
#include "scene/2d/navigation_polygon.h"
#include "core/object.h"
#include "core/reference.h"
#include "core/variant.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/control.h"
#include "editor/editor_plugin.h"
#include "scene/gui/spin_box.h"
#include "core/math/face3.h"
#include "core/node_path.h"
#include "core/object.h"
#include "core/pool_vector.h"
#include "scene/gui/control.h"
class ConfirmationDialog;
class EditorFileDialog;

View File

@ -30,15 +30,14 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "editor/editor_node.h"
#include "scene/gui/box_container.h"
#include "editor/editor_plugin.h"
#include "scene/2d/path_2d.h"
#include "scene/gui/tool_button.h"
#include "core/math/vector2.h"
#include "core/object.h"
#include "core/reference.h"
#include "core/ustring.h"
#include "scene/gui/box_container.h"
class CanvasItemEditor;
class Control;

View File

@ -31,15 +31,15 @@
/*************************************************************************/
#include "editor/spatial_editor_gizmos.h"
#include "scene/3d/path.h"
#include "editor/plugins/spatial_editor_plugin.h"
#include "editor/editor_plugin.h"
#include "core/math/vector2.h"
#include "core/math/vector3.h"
#include "core/object.h"
#include "core/reference.h"
#include "core/ustring.h"
#include "core/variant.h"
#include "editor/editor_plugin.h"
#include "editor/plugins/spatial_editor_plugin.h"
class Camera;
class EditorNode;

View File

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

View File

@ -31,7 +31,7 @@
/*************************************************************************/
#include "editor/plugins/abstract_polygon_2d_editor.h"
#include "scene/gui/scroll_container.h"
#include "core/array.h"
#include "core/color.h"
#include "core/math/vector2.h"
@ -39,7 +39,6 @@
#include "core/pool_vector.h"
#include "core/reference.h"
#include "core/vector.h"
#include "scene/gui/base_button.h"
class AcceptDialog;
class Button;

View File

@ -30,18 +30,16 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "editor/editor_node.h"
#include "scene/gui/panel_container.h"
#include "editor/editor_plugin.h"
#include "scene/gui/dialogs.h"
#include "scene/gui/file_dialog.h"
#include "scene/gui/tree.h"
#include "scene/main/resource_preloader.h"
#include "core/math/vector2.h"
#include "core/object.h"
#include "core/reference.h"
#include "core/ustring.h"
#include "core/variant.h"
#include "scene/gui/panel_container.h"
class AcceptDialog;
class Button;

View File

@ -30,12 +30,8 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "editor/editor_node.h"
#include "editor/editor_plugin.h"
#include "scene/3d/occluder.h"
#include "scene/3d/portal.h"
#include "scene/3d/room.h"
#include "scene/3d/room_manager.h"
#include "scene/resources/material.h"
#include "core/object.h"
#include "core/ustring.h"

View File

@ -31,9 +31,7 @@
/*************************************************************************/
#include "editor/editor_inspector.h"
#include "editor/editor_spin_slider.h"
#include "editor/property_selector.h"
#include "scene/animation/animation_tree.h"
#include "core/node_path.h"
#include "core/object.h"
#include "core/ustring.h"

View File

@ -30,22 +30,14 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "core/script_language.h"
#include "editor/code_editor.h"
#include "editor/editor_help.h"
#include "editor/editor_help_search.h"
#include "editor/editor_plugin.h"
#include "editor/script_create_dialog.h"
#include "scene/gui/item_list.h"
#include "scene/gui/line_edit.h"
#include "scene/gui/menu_button.h"
#include "scene/gui/split_container.h"
#include "scene/gui/tab_container.h"
#include "scene/gui/text_edit.h"
#include "scene/gui/tool_button.h"
#include "scene/gui/tree.h"
#include "scene/main/timer.h"
#include "scene/gui/box_container.h"
#include "scene/gui/dialogs.h"
#include "scene/gui/panel_container.h"
#include "scene/resources/text_file.h"
#include "core/script_language.h"
#include "core/array.h"
#include "core/error_list.h"
#include "core/list.h"
@ -58,9 +50,6 @@
#include "core/ustring.h"
#include "core/variant.h"
#include "core/vector.h"
#include "scene/gui/box_container.h"
#include "scene/gui/dialogs.h"
#include "scene/gui/panel_container.h"
class Button;
class ConfigFile;

View File

@ -43,6 +43,7 @@
#include "scene/gui/control.h"
#include "scene/gui/label.h"
#include "scene/gui/tab_container.h"
#include "scene/gui/check_button.h"
RenameDialog::RenameDialog(SceneTreeEditor *p_scene_tree_editor, UndoRedo *p_undo_redo) {
scene_tree_editor = p_scene_tree_editor;

View File

@ -41,6 +41,8 @@
#include "core/undo_redo.h"
#include "editor/scene_tree_editor.h"
class CheckButton;
/**
@author Blazej Floch
*/

View File

@ -36,6 +36,7 @@
#include "editor/property_editor.h"
#include "scene/3d/camera.h"
#include "scene/gui/box_container.h"
#include "scene/gui/margin_container.h"
#include "scene/gui/button.h"
class Tree;