Skip to content

Commit

Permalink
Remove the remaining unneeded header file includes
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingJellyfish committed Apr 19, 2024
1 parent f70c2ab commit 52edb85
Show file tree
Hide file tree
Showing 31 changed files with 97 additions and 27 deletions.
10 changes: 9 additions & 1 deletion src/guiengine/skin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,20 @@
#include "config/user_config.hpp"
#include "graphics/2dutils.hpp"
#include "graphics/central_settings.hpp"
#include "graphics/irr_driver.hpp"
#include "guiengine/engine.hpp"
#include "guiengine/modaldialog.hpp"
#include "guiengine/scalable_font.hpp"
#include "guiengine/screen.hpp"
#include "guiengine/screen_keyboard.hpp"
#include "guiengine/widgets.hpp"
#include "guiengine/widgets/bubble_widget.hpp"
#include "guiengine/widgets/check_box_widget.hpp"
#include "guiengine/widgets/list_widget.hpp"
#include "guiengine/widgets/model_view_widget.hpp"
#include "guiengine/widgets/progress_bar_widget.hpp"
#include "guiengine/widgets/rating_bar_widget.hpp"
#include "guiengine/widgets/ribbon_widget.hpp"
#include "guiengine/widgets/spinner_widget.hpp"
#include "io/file_manager.hpp"
#include "states_screens/state_manager.hpp"
#include "utils/log.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/network/protocols/client_lobby.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "guiengine/screen_keyboard.hpp"
#include "input/device_manager.hpp"
#include "input/input_device.hpp"
#include "io/file_manager.hpp"
#include "items/network_item_manager.hpp"
#include "items/powerup_manager.hpp"
#include "karts/abstract_kart.hpp"
Expand Down
2 changes: 2 additions & 0 deletions src/states_screens/addons_screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@
#include "addons/addons_manager.hpp"
#include "addons/news_manager.hpp"
#include "config/user_config.hpp"
#include "graphics/irr_driver.hpp"
#include "guiengine/CGUISpriteBank.hpp"
#include "guiengine/modaldialog.hpp"
#include "guiengine/scalable_font.hpp"
#include "guiengine/widget.hpp"
#include "guiengine/widgets/ribbon_widget.hpp"
#include "guiengine/widgets/spinner_widget.hpp"
#include "io/file_manager.hpp"
#include "online/request_manager.hpp"
#include "states_screens/dialogs/addons_loading.hpp"
Expand Down
8 changes: 3 additions & 5 deletions src/states_screens/addons_screen.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@

#include "addons/addons_manager.hpp"
#include "guiengine/screen.hpp"
#include "guiengine/widgets/label_widget.hpp"
#include "guiengine/widgets/list_widget.hpp"
#include "guiengine/widgets/text_box_widget.hpp"
#include "states_screens/dialogs/addons_loading.hpp"

/* used for the installed/unsinstalled icons*/
namespace irr { namespace gui { class STKModifiedSpriteBank; } }

namespace GUIEngine { class Widget; }
namespace GUIEngine { class LabelWidget; class Widget; }

class AddonsLoading;
struct DateFilter {
core::stringw label;
int year;
Expand Down Expand Up @@ -61,8 +61,6 @@ class AddonsScreen : public GUIEngine::Screen,

irr::gui::STKModifiedSpriteBank
*m_icon_bank;
GUIEngine::LabelWidget
*m_update_status;

/** Currently selected type. */
std::string m_type;
Expand Down
6 changes: 5 additions & 1 deletion src/states_screens/dialogs/addons_loading.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@
#include "guiengine/engine.hpp"
#include "guiengine/message_queue.hpp"
#include "guiengine/scalable_font.hpp"
#include "guiengine/widgets.hpp"
#include "guiengine/widgets/bubble_widget.hpp"
#include "guiengine/widgets/label_widget.hpp"
#include "guiengine/widgets/rating_bar_widget.hpp"
#include "guiengine/widgets/ribbon_widget.hpp"
#include "guiengine/widgets/progress_bar_widget.hpp"
#include "input/input_manager.hpp"
#include "io/file_manager.hpp"
#include "network/protocols/client_lobby.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/states_screens/dialogs/addons_loading.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@

#include "addons/addon.hpp"
#include "addons/addons_manager.hpp"
#include "guiengine/widgets.hpp"
#include "guiengine/modaldialog.hpp"
#include "utils/cpp2011.hpp"
#include "utils/synchronised.hpp"

namespace GUIEngine { class IconButtonWidget; class ProgressBarWidget; }
namespace Online { class HTTPRequest; }

/**
Expand Down
5 changes: 5 additions & 0 deletions src/states_screens/dialogs/addons_pack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
#include "karts/kart_properties.hpp"
#include "karts/kart_properties_manager.hpp"
#include "guiengine/message_queue.hpp"
#include "guiengine/widgets/bubble_widget.hpp"
#include "guiengine/widgets/icon_button_widget.hpp"
#include "guiengine/widgets/label_widget.hpp"
#include "guiengine/widgets/progress_bar_widget.hpp"
#include "guiengine/widgets/ribbon_widget.hpp"
#include "network/protocols/client_lobby.hpp"
#include "online/http_request.hpp"
#include "states_screens/addons_screen.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/states_screens/dialogs/addons_pack.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
#ifndef HEADER_ADDONS_PACK_HPP
#define HEADER_ADDONS_PACK_HPP

#include "guiengine/widgets.hpp"
#include "guiengine/modaldialog.hpp"
#include "utils/cpp2011.hpp"

class AddonsPackRequest;
namespace GUIEngine { class LabelWidget; class ProgressBarWidget; }

/**
* \ingroup states_screens
Expand Down
5 changes: 4 additions & 1 deletion src/states_screens/dialogs/change_password_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
#include "audio/sfx_manager.hpp"
#include "config/player_manager.hpp"
#include "guiengine/engine.hpp"
#include "guiengine/widgets.hpp"
#include "guiengine/widgets/icon_button_widget.hpp"
#include "guiengine/widgets/label_widget.hpp"
#include "guiengine/widgets/ribbon_widget.hpp"
#include "guiengine/widgets/text_box_widget.hpp"
#include "online/xml_request.hpp"
#include "states_screens/dialogs/message_dialog.hpp"
#include "states_screens/state_manager.hpp"
Expand Down
7 changes: 6 additions & 1 deletion src/states_screens/dialogs/download_assets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,14 @@
#include "states_screens/dialogs/download_assets.hpp"

#include "config/user_config.hpp"
#include "states_screens/dialogs/message_dialog.hpp"
#include "guiengine/widgets/bubble_widget.hpp"
#include "guiengine/widgets/icon_button_widget.hpp"
#include "guiengine/widgets/label_widget.hpp"
#include "guiengine/widgets/progress_bar_widget.hpp"
#include "guiengine/widgets/ribbon_widget.hpp"
#include "io/file_manager.hpp"
#include "online/http_request.hpp"
#include "states_screens/dialogs/message_dialog.hpp"
#include "states_screens/state_manager.hpp"
#include "utils/extract_mobile_assets.hpp"
#include "utils/download_assets_size.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/states_screens/dialogs/download_assets.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@

#ifdef MOBILE_STK

#include "guiengine/widgets.hpp"
#include "guiengine/modaldialog.hpp"
#include "utils/cpp2011.hpp"

class DownloadAssetsRequest;
namespace GUIEngine { class IconButtonWidget; class ProgressBarWidget; }

/**
* \ingroup states_screens
Expand Down
5 changes: 5 additions & 0 deletions src/states_screens/dialogs/ghost_replay_info_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
#include "config/player_manager.hpp"
#include "guiengine/CGUISpriteBank.hpp"
#include "graphics/stk_tex_manager.hpp"
#include "guiengine/widgets/check_box_widget.hpp"
#include "guiengine/widgets/icon_button_widget.hpp"
#include "guiengine/widgets/label_widget.hpp"
#include "guiengine/widgets/list_widget.hpp"
#include "guiengine/widgets/ribbon_widget.hpp"
#include "karts/kart_properties.hpp"
#include "karts/kart_properties_manager.hpp"
#include "race/race_manager.hpp"
Expand Down
7 changes: 6 additions & 1 deletion src/states_screens/dialogs/ghost_replay_info_dialog.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,14 @@
#define HEADER_GHOST_REPLAY_INFO_DIALOG_HPP

#include "guiengine/modaldialog.hpp"
#include "guiengine/widgets.hpp"
#include "replay/replay_play.hpp"

namespace GUIEngine
{
class CheckBoxWidget; class IconButtonWidget; class ListWidget;
class RibbonWidget;
}

/** \brief Dialog that allows a user to do action with ghost replay file
* \ingroup states_screens
*/
Expand Down
4 changes: 4 additions & 0 deletions src/states_screens/dialogs/high_score_info_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
#include "config/user_config.hpp"
#include "guiengine/CGUISpriteBank.hpp"
#include "graphics/stk_tex_manager.hpp"
#include "guiengine/widgets/icon_button_widget.hpp"
#include "guiengine/widgets/label_widget.hpp"
#include "guiengine/widgets/list_widget.hpp"
#include "guiengine/widgets/ribbon_widget.hpp"
#include "input/device_manager.hpp"
#include "input/input_manager.hpp"
#include "karts/kart_properties.hpp"
Expand Down
7 changes: 6 additions & 1 deletion src/states_screens/dialogs/high_score_info_dialog.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,15 @@
#define HEADER_HIGH_SCORE_INFO_DIALOG_HPP

#include "guiengine/modaldialog.hpp"
#include "guiengine/widgets.hpp"
#include "race/grand_prix_data.hpp"
#include "race/highscores.hpp"

namespace GUIEngine
{
class IconButtonWidget; class LabelWidget; class ListWidget;
class RibbonWidget;
}

/** \brief Dialog that allows a user to manage a high score
* \ingroup states_screens
*/
Expand Down
4 changes: 4 additions & 0 deletions src/states_screens/dialogs/recovery_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
#include "audio/sfx_manager.hpp"
#include "config/player_manager.hpp"
#include "guiengine/engine.hpp"
#include "guiengine/widgets/icon_button_widget.hpp"
#include "guiengine/widgets/label_widget.hpp"
#include "guiengine/widgets/ribbon_widget.hpp"
#include "guiengine/widgets/text_box_widget.hpp"
#include "online/xml_request.hpp"
#include "states_screens/state_manager.hpp"
#include "utils/translation.hpp"
Expand Down
7 changes: 5 additions & 2 deletions src/states_screens/dialogs/recovery_dialog.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@
#ifndef HEADER_RECOVERY_DIALOG_HPP
#define HEADER_RECOVERY_DIALOG_HPP


#include "guiengine/modaldialog.hpp"
#include "guiengine/widgets.hpp"

namespace GUIEngine
{
class IconButtonWidget; class LabelWidget; class RibbonWidget;
class TextBoxWidget;
}
namespace Online
{
class XMLRequest;
Expand Down
3 changes: 2 additions & 1 deletion src/states_screens/dialogs/registration_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
#include "states_screens/dialogs/registration_dialog.hpp"

#include "guiengine/engine.hpp"
#include "guiengine/widgets.hpp"
#include "guiengine/widgets/label_widget.hpp"
#include "guiengine/widgets/ribbon_widget.hpp"
#include "states_screens/state_manager.hpp"
#include "states_screens/online/register_screen.hpp"
#include "utils/translation.hpp"
Expand Down
5 changes: 5 additions & 0 deletions src/states_screens/dialogs/vote_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
#include "audio/sfx_manager.hpp"
#include "config/player_manager.hpp"
#include "guiengine/engine.hpp"
#include "guiengine/widgets/icon_button_widget.hpp"
#include "guiengine/widgets/label_widget.hpp"
#include "guiengine/widgets/rating_bar_widget.hpp"
#include "guiengine/widgets/ribbon_widget.hpp"
#include "io/xml_node.hpp"
#include "online/xml_request.hpp"
#include "states_screens/state_manager.hpp"
#include "utils/string_utils.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/states_screens/dialogs/vote_dialog.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@


#include "guiengine/modaldialog.hpp"
#include "guiengine/widgets.hpp"

#include <irrString.h>

namespace GUIEngine { class IconButtonWidget; class LabelWidget; class RatingBarWidget; class RibbonWidget; }
namespace Online
{
class XMLRequest;
Expand Down
1 change: 1 addition & 0 deletions src/states_screens/edit_track_screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "guiengine/widgets/button_widget.hpp"
#include "guiengine/widgets/check_box_widget.hpp"
#include "guiengine/widgets/dynamic_ribbon_widget.hpp"
#include "guiengine/widgets/icon_button_widget.hpp"
#include "guiengine/widgets/label_widget.hpp"
#include "guiengine/widgets/ribbon_widget.hpp"
#include "guiengine/widgets/spinner_widget.hpp"
Expand Down
3 changes: 1 addition & 2 deletions src/states_screens/edit_track_screen.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@
#define HEADER_EDIT_TRACK_SCREEN_HPP

#include "guiengine/screen.hpp"
#include "guiengine/widgets.hpp"

namespace GUIEngine { class Widget; }
namespace GUIEngine { class IconButtonWidget; class Widget; }

namespace irr { namespace gui { class STKModifiedSpriteBank; } }

Expand Down
6 changes: 5 additions & 1 deletion src/states_screens/ghost_replay_selection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@

#include "config/player_manager.hpp"
#include "config/user_config.hpp"
#include "graphics/irr_driver.hpp"
#include "graphics/material.hpp"
#include "guiengine/CGUISpriteBank.hpp"
#include "guiengine/widgets/check_box_widget.hpp"
#include "guiengine/widgets/label_widget.hpp"
#include "guiengine/widgets/ribbon_widget.hpp"
#include "io/file_manager.hpp"
#include "karts/kart_properties.hpp"
#include "karts/kart_properties_manager.hpp"
#include "states_screens/dialogs/ghost_replay_info_dialog.hpp"
Expand Down Expand Up @@ -122,7 +127,6 @@ void GhostReplaySelection::loadedFromFile()
m_compare_toggle_widget->setVisible(false);
getWidget<LabelWidget>("compare-toggle-text")->setVisible(false);

m_mode_tabs = getWidget<GUIEngine::RibbonWidget>("race_mode");
m_active_mode = RaceManager::MINOR_MODE_TIME_TRIAL;
m_active_mode_is_linear = true;

Expand Down
5 changes: 2 additions & 3 deletions src/states_screens/ghost_replay_selection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
#define HEADER_GHOST_REPLAY_SELECTION_HPP

#include "guiengine/screen.hpp"
#include "guiengine/widgets.hpp"
#include "guiengine/widgets/list_widget.hpp"
#include "race/race_manager.hpp"
#include "states_screens/dialogs/message_dialog.hpp"

namespace GUIEngine { class Widget; }
namespace GUIEngine { class CheckBoxWidget; class Widget; }

/**
* \brief GhostReplaySelection
Expand All @@ -48,7 +48,6 @@ class GhostReplaySelection : public GUIEngine::Screen,
GUIEngine::CheckBoxWidget* m_replay_version_toggle_widget;
GUIEngine::CheckBoxWidget* m_best_times_toggle_widget;
GUIEngine::CheckBoxWidget* m_compare_toggle_widget;
GUIEngine::RibbonWidget* m_mode_tabs;
RaceManager::Difficulty m_cur_difficulty;
std::string m_file_to_be_deleted;
std::vector<unsigned int> m_best_times_index;
Expand Down
3 changes: 3 additions & 0 deletions src/states_screens/high_score_selection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@

#include "config/player_manager.hpp"
#include "config/user_config.hpp"
#include "graphics/irr_driver.hpp"
#include "graphics/material.hpp"
#include "guiengine/CGUISpriteBank.hpp"
#include "guiengine/widgets/ribbon_widget.hpp"
#include "io/file_manager.hpp"
#include "karts/kart_properties.hpp"
#include "karts/kart_properties_manager.hpp"
#include "race/grand_prix_data.hpp"
Expand Down
4 changes: 2 additions & 2 deletions src/states_screens/high_score_selection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
#define HEADER_HIGH_SCORE_SELECTION_HPP

#include "guiengine/screen.hpp"
#include "guiengine/widgets.hpp"
#include "guiengine/widgets/list_widget.hpp"
#include "race/race_manager.hpp"
#include "states_screens/dialogs/message_dialog.hpp"

namespace GUIEngine { class Widget; }
namespace GUIEngine { class ListWidget; class RibbonWidget; class Widget; }

/**
* \brief HighScoreSelection
Expand Down
1 change: 1 addition & 0 deletions src/states_screens/main_menu_screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "graphics/irr_driver.hpp"
#include "guiengine/dialog_queue.hpp"
#include "guiengine/scalable_font.hpp"
#include "guiengine/widgets/button_widget.hpp"
#include "guiengine/widgets/label_widget.hpp"
#include "guiengine/widgets/list_widget.hpp"
#include "guiengine/widgets/ribbon_widget.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/states_screens/online/tracks_screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "guiengine/widgets/check_box_widget.hpp"
#include "guiengine/widgets/dynamic_ribbon_widget.hpp"
#include "guiengine/widgets/icon_button_widget.hpp"
#include "guiengine/widgets/label_widget.hpp"
#include "guiengine/widgets/list_widget.hpp"
#include "guiengine/widgets/progress_bar_widget.hpp"
#include "guiengine/widgets/spinner_widget.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/states_screens/options/user_screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "config/user_config.hpp"
#include "graphics/central_settings.hpp"
#include "guiengine/screen_keyboard.hpp"
#include "guiengine/widgets/button_widget.hpp"
#include "guiengine/widgets/check_box_widget.hpp"
#include "guiengine/widgets/dynamic_ribbon_widget.hpp"
#include "guiengine/widgets/label_widget.hpp"
Expand Down
Loading

0 comments on commit 52edb85

Please sign in to comment.