Skip to content

Commit

Permalink
Merge pull request godotengine#156 from WhalesState/headers-forward-d…
Browse files Browse the repository at this point in the history
…eclarations

Headers forward declarations.
  • Loading branch information
jss2a98aj authored Nov 30, 2024
2 parents 644c509 + ee5a7ab commit bd5215b
Show file tree
Hide file tree
Showing 350 changed files with 1,243 additions and 507 deletions.
2 changes: 2 additions & 0 deletions editor/action_map_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
#include "editor/event_listener_line_edit.h"
#include "editor/input_event_configuration_dialog.h"
#include "editor/themes/editor_scale.h"
#include "scene/gui/box_container.h"
#include "scene/gui/check_button.h"
#include "scene/gui/label.h"
#include "scene/gui/separator.h"
#include "scene/gui/tree.h"

Expand Down
2 changes: 2 additions & 0 deletions editor/animation_bezier_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
#include "editor/gui/editor_spin_slider.h"
#include "editor/plugins/animation_player_editor_plugin.h"
#include "editor/themes/editor_scale.h"
#include "scene/gui/button.h"
#include "scene/gui/popup_menu.h"
#include "scene/gui/view_panner.h"
#include "scene/resources/text_line.h"

Expand Down
7 changes: 7 additions & 0 deletions editor/animation_track_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,23 @@
#include "editor/plugins/animation_player_editor_plugin.h"
#include "editor/themes/editor_scale.h"
#include "scene/3d/mesh_instance_3d.h"
#include "scene/3d/node_3d.h"
#include "scene/animation/animation_player.h"
#include "scene/animation/tween.h"
#include "scene/gui/check_box.h"
#include "scene/gui/grid_container.h"
#include "scene/gui/label.h"
#include "scene/gui/line_edit.h"
#include "scene/gui/menu_button.h"
#include "scene/gui/option_button.h"
#include "scene/gui/panel_container.h"
#include "scene/gui/popup_menu.h"
#include "scene/gui/scroll_bar.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/tree.h"
#include "scene/gui/view_panner.h"
#include "scene/main/window.h"
#include "servers/audio/audio_stream.h"
Expand Down
13 changes: 8 additions & 5 deletions editor/animation_track_editor.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,26 @@
#include "editor/editor_data.h"
#include "editor/editor_properties.h"
#include "editor/property_selector.h"
#include "scene/3d/node_3d.h"
#include "scene/gui/control.h"
#include "scene/gui/menu_button.h"
#include "scene/gui/scroll_bar.h"
#include "scene/gui/tree.h"
#include "scene/gui/box_container.h"
#include "scene/gui/range.h"
#include "scene/resources/animation.h"

class AnimationTrackEditor;
class AnimationTrackEdit;
class CheckBox;
class EditorSpinSlider;
class HSlider;
class HScrollBar;
class MenuButton;
class Node3D;
class OptionButton;
class PanelContainer;
class Popup;
class SceneTreeDialog;
class SpinBox;
class TextureRect;
class Tree;
class TreeItem;
class ViewPanner;

class AnimationTrackKeyEdit : public Object {
Expand Down
8 changes: 8 additions & 0 deletions editor/code_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,16 @@
#include "editor/plugins/script_editor_plugin.h"
#include "editor/themes/editor_scale.h"
#include "editor/themes/editor_theme_manager.h"
#include "scene/gui/check_box.h"
#include "scene/gui/code_edit.h"
#include "scene/gui/label.h"
#include "scene/gui/line_edit.h"
#include "scene/gui/menu_button.h"
#include "scene/gui/popup_menu.h"
#include "scene/gui/scroll_container.h"
#include "scene/gui/separator.h"
#include "scene/gui/texture_button.h"
#include "scene/main/timer.h"
#include "scene/resources/font.h"

void GotoLineDialog::popup_find_line(CodeEdit *p_edit) {
Expand Down
14 changes: 8 additions & 6 deletions editor/code_editor.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,18 @@
#ifndef CODE_EDITOR_H
#define CODE_EDITOR_H

#include "core/object/script_language.h"
#include "scene/gui/box_container.h"
#include "scene/gui/button.h"
#include "scene/gui/check_box.h"
#include "scene/gui/code_edit.h"
#include "scene/gui/dialogs.h"
#include "scene/gui/label.h"
#include "scene/gui/line_edit.h"
#include "scene/main/timer.h"

class Button;
class CheckBox;
class CodeEdit;
class Label;
class LineEdit;
class MenuButton;
class TextureButton;
class Timer;

class GotoLineDialog : public ConfirmationDialog {
GDCLASS(GotoLineDialog, ConfirmationDialog);
Expand Down
1 change: 1 addition & 0 deletions editor/connections_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#include "plugins/script_editor_plugin.h"
#include "scene/gui/button.h"
#include "scene/gui/check_box.h"
#include "scene/gui/check_button.h"
#include "scene/gui/label.h"
#include "scene/gui/line_edit.h"
#include "scene/gui/margin_container.h"
Expand Down
3 changes: 2 additions & 1 deletion editor/connections_dialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@
#ifndef CONNECTIONS_DIALOG_H
#define CONNECTIONS_DIALOG_H

#include "scene/gui/check_button.h"
#include "scene/gui/box_container.h"
#include "scene/gui/dialogs.h"
#include "scene/gui/tree.h"

class Button;
class CheckBox;
class CheckButton;
class ConnectDialogBinds;
class EditorInspector;
class Label;
Expand Down
5 changes: 5 additions & 0 deletions editor/create_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
#include "editor/editor_settings.h"
#include "editor/editor_string_names.h"
#include "editor/themes/editor_scale.h"
#include "scene/gui/button.h"
#include "scene/gui/item_list.h"
#include "scene/gui/line_edit.h"
#include "scene/gui/split_container.h"
#include "scene/gui/tree.h"

void CreateDialog::popup_create(bool p_dont_clear, bool p_replace_mode, const String &p_current_type, const String &p_current_name) {
_fill_type_list();
Expand Down
9 changes: 5 additions & 4 deletions editor/create_dialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@
#define CREATE_DIALOG_H

#include "editor/editor_help.h"
#include "scene/gui/button.h"
#include "scene/gui/dialogs.h"
#include "scene/gui/item_list.h"
#include "scene/gui/line_edit.h"
#include "scene/gui/tree.h"

class ItemList;
class LineEdit;
class Tree;
class TreeItem;

class CreateDialog : public ConfirmationDialog {
GDCLASS(CreateDialog, ConfirmationDialog);
Expand Down
1 change: 1 addition & 0 deletions editor/debugger/editor_debugger_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include "editor/scene_tree_dock.h"
#include "editor/themes/editor_theme_manager.h"
#include "scene/gui/menu_button.h"
#include "scene/gui/popup_menu.h"
#include "scene/gui/tab_container.h"
#include "scene/resources/packed_scene.h"

Expand Down
2 changes: 2 additions & 0 deletions editor/debugger/editor_debugger_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
#include "editor/gui/editor_file_dialog.h"
#include "editor/scene_tree_dock.h"
#include "scene/debugger/scene_debugger.h"
#include "scene/gui/label.h"
#include "scene/gui/popup_menu.h"
#include "scene/gui/texture_rect.h"
#include "scene/resources/packed_scene.h"
#include "servers/display_server.h"
Expand Down
1 change: 1 addition & 0 deletions editor/debugger/editor_profiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "editor/editor_string_names.h"
#include "editor/themes/editor_scale.h"
#include "editor/themes/editor_theme_manager.h"
#include "scene/main/timer.h"
#include "scene/resources/image_texture.h"

void EditorProfiler::_make_metric_ptrs(Metric &m) {
Expand Down
1 change: 1 addition & 0 deletions editor/debugger/editor_visual_profiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "editor/editor_settings.h"
#include "editor/editor_string_names.h"
#include "editor/themes/editor_scale.h"
#include "scene/main/timer.h"
#include "scene/resources/image_texture.h"

void EditorVisualProfiler::add_frame_metric(const Metric &p_metric) {
Expand Down
1 change: 1 addition & 0 deletions editor/debugger/script_editor_debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
#include "scene/gui/label.h"
#include "scene/gui/line_edit.h"
#include "scene/gui/margin_container.h"
#include "scene/gui/popup_menu.h"
#include "scene/gui/rich_text_label.h"
#include "scene/gui/separator.h"
#include "scene/gui/split_container.h"
Expand Down
6 changes: 6 additions & 0 deletions editor/dependency_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,13 @@
#include "editor/editor_settings.h"
#include "editor/gui/editor_file_dialog.h"
#include "editor/themes/editor_scale.h"
#include "scene/gui/box_container.h"
#include "scene/gui/button.h"
#include "scene/gui/item_list.h"
#include "scene/gui/label.h"
#include "scene/gui/margin_container.h"
#include "scene/gui/popup_menu.h"
#include "scene/gui/tree.h"

void DependencyEditor::_searched(const String &p_path) {
HashMap<String, String> dep_rename;
Expand Down
8 changes: 5 additions & 3 deletions editor/dependency_editor.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@
#define DEPENDENCY_EDITOR_H

#include "scene/gui/dialogs.h"
#include "scene/gui/item_list.h"
#include "scene/gui/tab_container.h"
#include "scene/gui/tree.h"

class ItemList;
class PopupMenu;
class Tree;
class TreeItem;

class EditorFileDialog;
class EditorFileSystemDirectory;
Expand Down
10 changes: 10 additions & 0 deletions editor/editor_about.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,17 @@
#include "core/version.h"
#include "editor/editor_string_names.h"
#include "editor/themes/editor_scale.h"
#include "scene/gui/box_container.h"
#include "scene/gui/item_list.h"
#include "scene/gui/label.h"
#include "scene/gui/link_button.h"
#include "scene/gui/rich_text_label.h"
#include "scene/gui/scroll_container.h"
#include "scene/gui/separator.h"
#include "scene/gui/split_container.h"
#include "scene/gui/tab_container.h"
#include "scene/gui/texture_rect.h"
#include "scene/gui/tree.h"
#include "scene/resources/style_box.h"

// The metadata key used to store and retrieve the version text to copy to the clipboard.
Expand Down
16 changes: 7 additions & 9 deletions editor/editor_about.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,13 @@
#define EDITOR_ABOUT_H

#include "scene/gui/dialogs.h"
#include "scene/gui/item_list.h"
#include "scene/gui/link_button.h"
#include "scene/gui/rich_text_label.h"
#include "scene/gui/scroll_container.h"
#include "scene/gui/separator.h"
#include "scene/gui/split_container.h"
#include "scene/gui/tab_container.h"
#include "scene/gui/texture_rect.h"
#include "scene/gui/tree.h"

class ItemList;
class LinkButton;
class RichTextLabel;
class ScrollContainer;
class TextureRect;
class Tree;

/**
* NOTE: Do not assume the EditorNode singleton to be available in this class' methods.
Expand Down
1 change: 1 addition & 0 deletions editor/editor_asset_installer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#include "scene/gui/link_button.h"
#include "scene/gui/separator.h"
#include "scene/gui/split_container.h"
#include "scene/gui/tree.h"

void EditorAssetInstaller::_item_checked_cbk() {
if (updating_source || !source_tree->get_edited()) {
Expand Down
4 changes: 3 additions & 1 deletion editor/editor_asset_installer.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@
#define EDITOR_ASSET_INSTALLER_H

#include "scene/gui/dialogs.h"
#include "scene/gui/tree.h"

class CheckBox;
class EditorFileDialog;
class Label;
class LinkButton;
class Tree;
class TreeItem;
class VBoxContainer;

class EditorAssetInstaller : public ConfirmationDialog {
GDCLASS(EditorAssetInstaller, ConfirmationDialog);
Expand Down
15 changes: 15 additions & 0 deletions editor/editor_audio_buses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,18 @@
#include "editor/gui/editor_file_dialog.h"
#include "editor/themes/editor_scale.h"
#include "editor/themes/editor_theme_manager.h"
#include "scene/gui/button.h"
#include "scene/gui/label.h"
#include "scene/gui/line_edit.h"
#include "scene/gui/menu_button.h"
#include "scene/gui/option_button.h"
#include "scene/gui/panel.h"
#include "scene/gui/popup_menu.h"
#include "scene/gui/scroll_container.h"
#include "scene/gui/separator.h"
#include "scene/gui/slider.h"
#include "scene/gui/texture_progress_bar.h"
#include "scene/main/timer.h"
#include "scene/resources/font.h"
#include "servers/audio_server.h"

Expand Down Expand Up @@ -328,6 +339,10 @@ void EditorAudioBus::_name_changed(const String &p_new_name) {
updating_bus = false;
}

void EditorAudioBus::_name_focus_exit() {
_name_changed(track_name->get_text());
}

void EditorAudioBus::_volume_changed(float p_normalized) {
if (updating_bus) {
return;
Expand Down
23 changes: 11 additions & 12 deletions editor/editor_audio_buses.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,20 @@

#include "editor/plugins/editor_plugin.h"
#include "scene/gui/box_container.h"
#include "scene/gui/button.h"
#include "scene/gui/control.h"
#include "scene/gui/line_edit.h"
#include "scene/gui/menu_button.h"
#include "scene/gui/option_button.h"
#include "scene/gui/panel.h"
#include "scene/gui/panel_container.h"
#include "scene/gui/scroll_container.h"
#include "scene/gui/slider.h"
#include "scene/gui/texture_progress_bar.h"
#include "scene/gui/texture_rect.h"
#include "scene/gui/tree.h"

class Button;
class EditorAudioBuses;
class EditorFileDialog;
class LineEdit;
class MenuButton;
class OptionButton;
class Panel;
class ScrollContainer;
class TextureProgressBar;
class Tree;
class Timer;
class VSlider;

class EditorAudioBus : public PanelContainer {
GDCLASS(EditorAudioBus, PanelContainer);
Expand Down Expand Up @@ -95,7 +94,7 @@ class EditorAudioBus : public PanelContainer {
void _bus_popup_pressed(int p_option);

void _name_changed(const String &p_new_name);
void _name_focus_exit() { _name_changed(track_name->get_text()); }
void _name_focus_exit();
void _volume_changed(float p_normalized);
float _normalized_volume_to_scaled_db(float normalized);
float _scaled_db_to_normalized_volume(float db);
Expand Down
3 changes: 3 additions & 0 deletions editor/editor_autoload_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
#include "editor/gui/editor_file_dialog.h"
#include "editor/project_settings_editor.h"
#include "editor/themes/editor_scale.h"
#include "scene/gui/button.h"
#include "scene/gui/label.h"
#include "scene/gui/line_edit.h"
#include "scene/main/window.h"
#include "scene/resources/packed_scene.h"

Expand Down
5 changes: 3 additions & 2 deletions editor/editor_autoload_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@
#define EDITOR_AUTOLOAD_SETTINGS_H

#include "scene/gui/box_container.h"
#include "scene/gui/button.h"
#include "scene/gui/tree.h"

class Button;
class EditorFileDialog;
class LineEdit;
class Tree;

class EditorAutoloadSettings : public VBoxContainer {
GDCLASS(EditorAutoloadSettings, VBoxContainer);
Expand Down
Loading

0 comments on commit bd5215b

Please sign in to comment.