Moved more includes.

This commit is contained in:
Relintai 2022-03-17 13:58:13 +01:00
parent 3ca78453da
commit ad43fd50bd
12 changed files with 30 additions and 6 deletions

View File

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

View File

@ -42,6 +42,8 @@
#include "scene/gui/center_container.h"
#include "scene/gui/label.h"
#include "scene/gui/margin_container.h"
#include "scene/gui/popup_menu.h"
#include "scene/gui/scroll_bar.h"
EditorFileDialog::GetIconFunc EditorFileDialog::get_icon_func = nullptr;
EditorFileDialog::GetIconFunc EditorFileDialog::get_large_icon_func = nullptr;

View File

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

View File

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

View File

@ -41,6 +41,7 @@
#include "scene/gui/option_button.h"
#include "scene/gui/tool_button.h"
#include "scene/gui/tree.h"
#include "scene/gui/scroll_bar.h"
FileDialog::GetIconFunc FileDialog::get_icon_func = nullptr;
FileDialog::GetIconFunc FileDialog::get_large_icon_func = nullptr;

View File

@ -147,3 +147,7 @@ LinkButton::LinkButton() {
set_focus_mode(FOCUS_NONE);
set_default_cursor_shape(CURSOR_POINTING_HAND);
}
LinkButton::~LinkButton() {
}

View File

@ -61,6 +61,7 @@ public:
UnderlineMode get_underline_mode() const;
LinkButton();
~LinkButton();
};
VARIANT_ENUM_CAST(LinkButton::UnderlineMode);

View File

@ -31,6 +31,7 @@
#include "texture_button.h"
#include "core/typedefs.h"
#include <stdlib.h>
#include "scene/resources/bit_map.h"
Size2 TextureButton::get_minimum_size() const {
Size2 rscale = Control::get_minimum_size();

View File

@ -32,7 +32,10 @@
#define TEXTURE_BUTTON_H
#include "scene/gui/base_button.h"
#include "scene/resources/bit_map.h"
#include "core/reference.h"
class BitMap;
class TextureButton : public BaseButton {
GDCLASS(TextureButton, BaseButton);

View File

@ -39,6 +39,10 @@
#include "scene/main/viewport.h"
#include "scene/main/timer.h"
#include "scene/gui/shortcut.h"
#include "scene/gui/line_edit.h"
#include "scene/gui/popup_menu.h"
#include "scene/gui/scroll_bar.h"
#include "scene/gui/slider.h"
#ifdef TOOLS_ENABLED
#include "editor/editor_scale.h"

View File

@ -31,13 +31,15 @@
#ifndef TREE_H
#define TREE_H
#include "core/object.h"
#include "scene/gui/control.h"
#include "scene/gui/line_edit.h"
#include "scene/gui/popup_menu.h"
#include "scene/gui/scroll_bar.h"
#include "scene/gui/slider.h"
class Tree;
class HScrollBar;
class VScrollBar;
class LineEdit;
class HSlider;
class PopupMenu;
class TreeItem : public Object {
GDCLASS(TreeItem, Object);

View File

@ -32,8 +32,9 @@
#define VIDEO_PLAYER_H
#include "scene/gui/control.h"
#include "scene/resources/video_stream.h"
#include "servers/audio/audio_rb_resampler.h"
#include "scene/resources/video_stream.h"
#include "servers/audio_server.h"
class VideoPlayer : public Control {