From 85475900e8ff646deb14b10fdda6e08a1c791ef8 Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 17 Mar 2022 12:06:40 +0100 Subject: [PATCH] More include moves. --- editor/export_template_manager.cpp | 1 + editor/export_template_manager.h | 1 + editor/project_manager.cpp | 1 + editor/run_settings_dialog.cpp | 1 + scene/gui/file_dialog.cpp | 3 +-- scene/gui/file_dialog.h | 11 +---------- 6 files changed, 6 insertions(+), 12 deletions(-) diff --git a/editor/export_template_manager.cpp b/editor/export_template_manager.cpp index e0bd8a0ea..36708fdc6 100644 --- a/editor/export_template_manager.cpp +++ b/editor/export_template_manager.cpp @@ -40,6 +40,7 @@ #include "editor_scale.h" #include "progress_dialog.h" #include "scene/gui/link_button.h" +#include "scene/gui/box_container.h" void ExportTemplateManager::_update_template_status() { // Fetch installed templates from the file system. diff --git a/editor/export_template_manager.h b/editor/export_template_manager.h index a94523a2a..3d6b07669 100644 --- a/editor/export_template_manager.h +++ b/editor/export_template_manager.h @@ -40,6 +40,7 @@ #include "scene/main/http_request.h" class ExportTemplateVersion; +class HBoxContainer; class ExportTemplateManager : public AcceptDialog { GDCLASS(ExportTemplateManager, AcceptDialog); diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index b9f335e05..04cd6dfd6 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -54,6 +54,7 @@ #include "scene/gui/label.h" #include "scene/gui/texture_button.h" #include "scene/gui/panel.h" +#include "scene/gui/option_button.h" static inline String get_project_key_from_path(const String &dir) { return dir.replace("/", "::"); diff --git a/editor/run_settings_dialog.cpp b/editor/run_settings_dialog.cpp index 85d06c092..74ff02165 100644 --- a/editor/run_settings_dialog.cpp +++ b/editor/run_settings_dialog.cpp @@ -31,6 +31,7 @@ #include "run_settings_dialog.h" #include "scene/gui/shortcut.h" +#include "scene/gui/option_button.h" void RunSettingsDialog::popup_run_settings() { popup_centered(Size2(300, 150)); diff --git a/scene/gui/file_dialog.cpp b/scene/gui/file_dialog.cpp index c63ade836..3d1f2a1d0 100644 --- a/scene/gui/file_dialog.cpp +++ b/scene/gui/file_dialog.cpp @@ -34,14 +34,13 @@ #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; diff --git a/scene/gui/file_dialog.h b/scene/gui/file_dialog.h index 750838a0c..b1d83e793 100644 --- a/scene/gui/file_dialog.h +++ b/scene/gui/file_dialog.h @@ -32,19 +32,10 @@ #define FILE_DIALOG_H #include "scene/gui/dialogs.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" - +#include "scene/gui/box_container.h" class Button; -class VBoxContainer; class LineEdit; -class HBoxContainer; class OptionButton; class Tree; class AcceptDialog;