Moved more includes to cpp files.

This commit is contained in:
Relintai 2022-03-17 11:52:53 +01:00
parent 2c88c46101
commit 866569d22a
17 changed files with 51 additions and 6 deletions

View File

@ -39,6 +39,7 @@
#include "scene/gui/margin_container.h"
#include "scene/gui/separator.h"
#include "scene/resources/dynamic_font.h"
#include "scene/gui/texture_button.h"
void GotoLineDialog::popup_find_line(TextEdit *p_edit) {
text_editor = p_edit;

View File

@ -35,6 +35,9 @@
#include "editor/editor_file_system.h"
#include "editor/editor_settings.h"
#include "editor_scale.h"
#include "scene/gui/button.h"
#include "scene/gui/box_container.h"
void EditorDirDialog::_update_dir(TreeItem *p_item, EditorFileSystemDirectory *p_dir, const String &p_select_path) {
updating = true;

View File

@ -38,6 +38,7 @@
#include "editor_node.h"
#include "editor_scale.h"
#include "editor_settings.h"
#include "scene/gui/texture_button.h"
#define CONTRIBUTE_URL vformat("%s/community/contributing/updating_the_class_reference.html", VERSION_DOCS_URL)

View File

@ -35,6 +35,7 @@
#include "editor/editor_settings.h"
#include "scene/gui/item_list.h"
#include "scene/gui/line_edit.h"
#include "scene/gui/box_container.h"
void EditorLayoutsDialog::_line_gui_input(const Ref<InputEvent> &p_event) {
Ref<InputEventKey> k = p_event;

View File

@ -35,6 +35,7 @@
class LineEdit;
class ItemList;
class VBoxContainer;
class EditorLayoutsDialog : public ConfirmationDialog {
GDCLASS(EditorLayoutsDialog, ConfirmationDialog);

View File

@ -34,6 +34,7 @@
#include "scene/gui/viewport_container.h"
#include "scene/resources/particles_material.h"
#include "scene/main/viewport.h"
#include "scene/gui/texture_button.h"
void MaterialEditor::_notification(int p_what) {
if (p_what == NOTIFICATION_READY) {

View File

@ -32,6 +32,7 @@
#include "editor/editor_scale.h"
#include "scene/main/viewport.h"
#include "scene/gui/texture_button.h"
void MeshEditor::_gui_input(Ref<InputEvent> p_event) {
Ref<InputEventMouseMotion> mm = p_event;

View File

@ -37,6 +37,7 @@
#include "editor/editor_scale.h"
#include "editor/editor_settings.h"
#include "scene/2d/skeleton_2d.h"
#include "scene/gui/panel.h"
Node2D *Polygon2DEditor::_get_node() const {
return node;

View File

@ -35,6 +35,7 @@
#include "core/os/keyboard.h"
#include "editor/editor_scale.h"
#include "scene/gui/check_box.h"
#include "scene/gui/panel.h"
/**
@author Mariano Suligoy

View File

@ -51,6 +51,9 @@
#include "scene/gui/texture_rect.h"
#include "scene/gui/tool_button.h"
#include "servers/navigation_server.h"
#include "scene/gui/label.h"
#include "scene/gui/texture_button.h"
#include "scene/gui/panel.h"
static inline String get_project_key_from_path(const String &dir) {
return dir.replace("/", "::");

View File

@ -32,6 +32,8 @@
#include "core/os/keyboard.h"
#include "scene/gui/shortcut.h"
#include "scene/gui/button.h"
#include "scene/gui/box_container.h"
void EditorQuickOpen::popup_dialog(const StringName &p_base, bool p_enable_multi, bool p_dontclear) {
base_type = p_base;

View File

@ -44,6 +44,7 @@
#include "scene/gui/spin_box.h"
#include "scene/gui/texture_rect.h"
#include "scene/gui/tool_button.h"
#include "scene/gui/shortcut.h"
#ifdef TOOLS_ENABLED
#include "editor/editor_scale.h"

View File

@ -30,6 +30,8 @@
#include "color_rect.h"
#include "scene/gui/shortcut.h"
void ColorRect::set_frame_color(const Color &p_color) {
color = p_color;
update();

View File

@ -33,6 +33,12 @@
#include "core/translation.h"
#include "line_edit.h"
#include "box_container.h"
#include "scene/gui/button.h"
#include "scene/gui/label.h"
#include "scene/gui/panel.h"
#include "scene/gui/texture_button.h"
#ifdef TOOLS_ENABLED
#include "editor/editor_node.h"
#include "editor/editor_scale.h"

View File

@ -31,12 +31,12 @@
#ifndef DIALOGS_H
#define DIALOGS_H
#include "box_container.h"
#include "scene/gui/button.h"
#include "scene/gui/label.h"
#include "scene/gui/panel.h"
#include "scene/gui/popup.h"
#include "scene/gui/texture_button.h"
class TextureButton;
class HBoxContainer;
class Label;
class Button;
class WindowDialog : public Popup {
GDCLASS(WindowDialog, Popup);

View File

@ -34,6 +34,14 @@
#include "core/print_string.h"
#include "scene/gui/label.h"
#include "scene/gui/shortcut.h"
/*
#include "box_container.h"
#include "core/os/dir_access.h"
#include "scene/gui/line_edit.h"
#include "scene/gui/option_button.h"
#include "scene/gui/tool_button.h"
#include "scene/gui/tree.h"
*/
FileDialog::GetIconFunc FileDialog::get_icon_func = nullptr;
FileDialog::GetIconFunc FileDialog::get_large_icon_func = nullptr;

View File

@ -31,14 +31,26 @@
#ifndef FILE_DIALOG_H
#define FILE_DIALOG_H
#include "scene/gui/dialogs.h"
#include "box_container.h"
#include "core/os/dir_access.h"
#include "scene/gui/dialogs.h"
#include "scene/gui/line_edit.h"
#include "scene/gui/option_button.h"
#include "scene/gui/tool_button.h"
#include "scene/gui/tree.h"
class Button;
class VBoxContainer;
class LineEdit;
class HBoxContainer;
class OptionButton;
class Tree;
class AcceptDialog;
class DirAccess;
class ToolButton;
class FileDialog : public ConfirmationDialog {
GDCLASS(FileDialog, ConfirmationDialog);