Moved more includes to cpp files.

This commit is contained in:
Relintai 2022-03-17 11:28:57 +01:00
parent 31e29ebd71
commit 2c88c46101
25 changed files with 63 additions and 15 deletions

View File

@ -33,6 +33,7 @@
#include "core/os/os.h"
#include "editor_scale.h"
#include "editor_settings.h"
#include "scene/main/timer.h"
void EditorNetworkProfiler::_bind_methods() {
ClassDB::bind_method(D_METHOD("_update_frame"), &EditorNetworkProfiler::_update_frame);

View File

@ -32,6 +32,7 @@
#include "editor_property_name_processor.h"
#include "editor_scale.h"
#include "scene/gui/shortcut.h"
class SectionedInspectorFilter : public Object {
GDCLASS(SectionedInspectorFilter, Object);

View File

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

View File

@ -30,6 +30,8 @@
#include "run_settings_dialog.h"
#include "scene/gui/shortcut.h"
void RunSettingsDialog::popup_run_settings() {
popup_centered(Size2(300, 150));
}

View File

@ -52,6 +52,7 @@
#include "scene/gui/texture_rect.h"
#include "scene/gui/tree.h"
#include "scene/main/scene_tree.h"
#include "scene/gui/shortcut.h"
#include "scene/3d/camera.h"
#include "scene/main/viewport.h"

View File

@ -39,6 +39,7 @@
#include "scene/gui/text_edit.h"
#include "servers/visual/shader_language.h"
#include "servers/visual/shader_types.h"
#include "scene/gui/shortcut.h"
typedef ShaderLanguage SL;

View File

@ -22,6 +22,8 @@ SOFTWARE.
#include "bs_input_event_key.h"
#include "scene/gui/shortcut.h"
void BSInputEventKey::from_input_event_key(const Ref<InputEventKey> event) {
set_device(event->get_device());

View File

@ -25,6 +25,7 @@ SOFTWARE.
#include "bs_input_event_key.h"
#include "input_map_editor.h"
#include "touch_button.h"
#include "scene/gui/shortcut.h"
void register_ui_extensions_types() {
ClassDB::register_class<TouchButton>();

View File

@ -33,6 +33,7 @@
#include "core/os/keyboard.h"
#include "scene/main/viewport.h"
#include "scene/scene_string_names.h"
#include "scene/gui/shortcut.h"
void BaseButton::_unpress_group() {
if (!button_group.is_valid()) {

View File

@ -34,6 +34,17 @@
#include "core/os/keyboard.h"
#include "core/os/os.h"
#include "scene/gui/check_button.h"
#include "scene/gui/grid_container.h"
#include "scene/gui/label.h"
#include "scene/gui/line_edit.h"
#include "scene/gui/popup.h"
#include "scene/gui/separator.h"
#include "scene/gui/slider.h"
#include "scene/gui/spin_box.h"
#include "scene/gui/texture_rect.h"
#include "scene/gui/tool_button.h"
#ifdef TOOLS_ENABLED
#include "editor/editor_scale.h"
#include "editor/editor_settings.h"
@ -790,6 +801,8 @@ void ColorPicker::_bind_methods() {
ColorPicker::ColorPicker() :
BoxContainer(true) {
preset_container = memnew(GridContainer);
updating = true;
edit_alpha = true;
text_is_constructor = false;

View File

@ -31,18 +31,21 @@
#ifndef COLOR_PICKER_H
#define COLOR_PICKER_H
#include "scene/gui/box_container.h"
#include "scene/gui/button.h"
#include "scene/gui/check_button.h"
#include "scene/gui/grid_container.h"
#include "scene/gui/label.h"
#include "scene/gui/line_edit.h"
#include "scene/gui/popup.h"
#include "scene/gui/separator.h"
#include "scene/gui/slider.h"
#include "scene/gui/spin_box.h"
#include "scene/gui/texture_rect.h"
#include "scene/gui/tool_button.h"
#include "scene/gui/box_container.h"
class Control;
class TextureRect;
class GridContainer;
class HSeparator;
class ToolButton;
class CheckButton;
class HSlider;
class SpinBox;
class Label;
class LineEdit;
class PopupPanel;
class GridContainer;
class ColorPresetButton : public BaseButton {
GDCLASS(ColorPresetButton, BaseButton);
@ -69,7 +72,7 @@ private:
Control *uv_edit;
Control *w_edit;
TextureRect *sample;
GridContainer *preset_container = memnew(GridContainer);
GridContainer *preset_container;
HSeparator *preset_separator;
Button *btn_add_preset;
ToolButton *btn_pick;

View File

@ -41,6 +41,9 @@
#include "scene/main/viewport.h"
#include "scene/scene_string_names.h"
#include "servers/visual_server.h"
#include "scene/gui/shortcut.h"
#include "scene/main/node.h"
#include "scene/main/timer.h"
#ifdef TOOLS_ENABLED
#include "editor/editor_settings.h"

View File

@ -34,14 +34,18 @@
#include "core/math/transform_2d.h"
#include "core/rid.h"
#include "scene/2d/canvas_item.h"
#include "scene/gui/shortcut.h"
#include "scene/main/node.h"
#include "scene/main/timer.h"
#include "scene/resources/theme.h"
class Viewport;
class Label;
class Panel;
class Texture;
class Shader;
class StyleBox;
class Font;
class Node;
class ShortCut;
class Timer;
class Control : public CanvasItem {
GDCLASS(Control, CanvasItem);

View File

@ -33,6 +33,7 @@
#include "core/os/keyboard.h"
#include "core/print_string.h"
#include "scene/gui/label.h"
#include "scene/gui/shortcut.h"
FileDialog::GetIconFunc FileDialog::get_icon_func = nullptr;
FileDialog::GetIconFunc FileDialog::get_large_icon_func = nullptr;

View File

@ -34,6 +34,7 @@
#include "core/os/input.h"
#include "core/os/keyboard.h"
#include "scene/gui/box_container.h"
#include "scene/gui/shortcut.h"
#ifdef TOOLS_ENABLED
#include "editor/editor_scale.h"

View File

@ -36,6 +36,7 @@
#include "core/print_string.h"
#include "core/translation.h"
#include "label.h"
#include "scene/main/timer.h"
#ifdef TOOLS_ENABLED
#include "editor/editor_scale.h"

View File

@ -32,6 +32,7 @@
#include "core/os/input.h"
#include "core/os/keyboard.h"
#include "scene/main/viewport.h"
#include "scene/gui/shortcut.h"
void MenuButton::_unhandled_key_input(Ref<InputEvent> p_event) {
ERR_FAIL_COND(p_event.is_null());

View File

@ -31,6 +31,7 @@
#include "option_button.h"
#include "core/os/input.h"
#include "core/print_string.h"
#include "scene/gui/shortcut.h"
Size2 OptionButton::get_minimum_size() const {
Size2 minsize = Button::get_minimum_size();

View File

@ -34,6 +34,8 @@
#include "core/os/os.h"
#include "core/print_string.h"
#include "core/translation.h"
#include "scene/gui/shortcut.h"
#include "scene/main/timer.h"
String PopupMenu::_get_accel_text(int p_item) const {
ERR_FAIL_INDEX_V(p_item, items.size(), String());

View File

@ -31,6 +31,7 @@
#include "spin_box.h"
#include "core/math/expression.h"
#include "core/os/input.h"
#include "scene/gui/shortcut.h"
Size2 SpinBox::get_minimum_size() const {
Size2 ms = line_edit->get_combined_minimum_size();

View File

@ -37,6 +37,7 @@
#include "core/project_settings.h"
#include "core/script_language.h"
#include "scene/main/viewport.h"
#include "scene/gui/shortcut.h"
#ifdef TOOLS_ENABLED
#include "editor/editor_scale.h"

View File

@ -37,6 +37,8 @@
#include "core/print_string.h"
#include "core/project_settings.h"
#include "scene/main/viewport.h"
#include "scene/main/timer.h"
#include "scene/gui/shortcut.h"
#ifdef TOOLS_ENABLED
#include "editor/editor_scale.h"

View File

@ -53,6 +53,7 @@
#include "scene/resources/mesh.h"
#include "scene/scene_string_names.h"
#include "servers/physics_2d_server.h"
#include "scene/gui/shortcut.h"
void ViewportTexture::setup_local_to_scene() {
Node *local_scene = get_local_scene();

View File

@ -171,6 +171,7 @@
#include "scene/resources/world.h"
#include "scene/resources/world_2d.h"
#include "scene/resources/skin.h"
#include "scene/gui/shortcut.h"
#include "scene/scene_string_names.h"
#ifndef _3D_DISABLED

View File

@ -40,6 +40,7 @@
#include "scene/gui/control.h"
#include "scene/main/instance_placeholder.h"
#include "scene/property_utils.h"
#include "scene/gui/shortcut.h"
#define PACKED_SCENE_VERSION 2