# HG changeset patch # User Paper # Date 1698555423 14400 # Node ID c69230dc2b5d44743170caf10578bff89c314ea3 # Parent eab9e623eb84cbe6316b567de34ee73b96a6b153 *: cleanup includes diff -r eab9e623eb84 -r c69230dc2b5d include/core/anime_db.h --- a/include/core/anime_db.h Wed Oct 25 14:53:05 2023 -0400 +++ b/include/core/anime_db.h Sun Oct 29 00:57:03 2023 -0400 @@ -1,5 +1,6 @@ #ifndef __core__anime_db_h #define __core__anime_db_h + #include "core/anime.h" #include #include @@ -22,4 +23,6 @@ extern Database db; } // namespace Anime + + #endif // __core__anime_db_h diff -r eab9e623eb84 -r c69230dc2b5d include/core/config.h --- a/include/core/config.h Wed Oct 25 14:53:05 2023 -0400 +++ b/include/core/config.h Sun Oct 29 00:57:03 2023 -0400 @@ -1,5 +1,6 @@ #ifndef __core__config_h #define __core__config_h + #include "core/anime.h" enum class Themes { @@ -41,4 +42,5 @@ #define CONFIG_WNAME WIDEIFY(CONFIG_NAME) #define MAX_LINE_LENGTH 256 + #endif // __core__config_h diff -r eab9e623eb84 -r c69230dc2b5d include/core/date.h --- a/include/core/date.h Wed Oct 25 14:53:05 2023 -0400 +++ b/include/core/date.h Sun Oct 29 00:57:03 2023 -0400 @@ -1,8 +1,10 @@ #ifndef __core__date_h #define __core__date_h + #include "json.h" #include #include + class Date { public: Date(); @@ -33,4 +35,5 @@ std::shared_ptr month; std::shared_ptr day; }; + #endif // __core__date_h diff -r eab9e623eb84 -r c69230dc2b5d include/core/session.h --- a/include/core/session.h Wed Oct 25 14:53:05 2023 -0400 +++ b/include/core/session.h Sun Oct 29 00:57:03 2023 -0400 @@ -1,5 +1,6 @@ #ifndef __core__session_h #define __core__session_h + #include "core/config.h" #include diff -r eab9e623eb84 -r c69230dc2b5d include/core/strings.h --- a/include/core/strings.h Wed Oct 25 14:53:05 2023 -0400 +++ b/include/core/strings.h Sun Oct 29 00:57:03 2023 -0400 @@ -30,5 +30,6 @@ QString ToQString(const std::string& string); QString ToQString(const std::wstring& wstring); -}; // namespace Strings +}; // namespace Strings + #endif // __core__strings_h \ No newline at end of file diff -r eab9e623eb84 -r c69230dc2b5d include/core/time.h --- a/include/core/time.h Wed Oct 25 14:53:05 2023 -0400 +++ b/include/core/time.h Sun Oct 29 00:57:03 2023 -0400 @@ -1,5 +1,6 @@ #ifndef __core__time_h #define __core__time_h + #include #include namespace Time { @@ -19,5 +20,6 @@ int64_t GetSystemTime(); -}; // namespace Time +}; // namespace Time + #endif // __core__time_h \ No newline at end of file diff -r eab9e623eb84 -r c69230dc2b5d include/gui/dialog/about.h --- a/include/gui/dialog/about.h Wed Oct 25 14:53:05 2023 -0400 +++ b/include/gui/dialog/about.h Sun Oct 29 00:57:03 2023 -0400 @@ -1,5 +1,6 @@ #ifndef __gui__dialog__about_h #define __gui__dialog__about_h + #include class AboutWindow : public QDialog { diff -r eab9e623eb84 -r c69230dc2b5d include/gui/dialog/information.h --- a/include/gui/dialog/information.h Wed Oct 25 14:53:05 2023 -0400 +++ b/include/gui/dialog/information.h Sun Oct 29 00:57:03 2023 -0400 @@ -1,5 +1,6 @@ #ifndef __gui__dialog__information_h #define __gui__dialog__information_h + #include "core/anime.h" #include "core/date.h" #include @@ -21,4 +22,5 @@ Date _started; Date _completed; }; + #endif // __gui__dialog__information_h diff -r eab9e623eb84 -r c69230dc2b5d include/gui/dialog/settings.h --- a/include/gui/dialog/settings.h Wed Oct 25 14:53:05 2023 -0400 +++ b/include/gui/dialog/settings.h Sun Oct 29 00:57:03 2023 -0400 @@ -1,5 +1,6 @@ #ifndef __gui__dialog__settings_h #define __gui__dialog__settings_h + #include "core/anime.h" #include #include @@ -61,4 +62,5 @@ SideBar* sidebar; QStackedWidget* stacked; }; + #endif // __gui__dialog__settings_h diff -r eab9e623eb84 -r c69230dc2b5d include/gui/pages/anime_list.h --- a/include/gui/pages/anime_list.h Wed Oct 25 14:53:05 2023 -0400 +++ b/include/gui/pages/anime_list.h Sun Oct 29 00:57:03 2023 -0400 @@ -1,13 +1,16 @@ #ifndef __gui__pages__anime_list_h #define __gui__pages__anime_list_h + #include "core/anime.h" #include #include #include -#include #include #include +class QTreeView; +class QTabBar; + class AnimeListPageDelegate : public QStyledItemDelegate { Q_OBJECT @@ -97,4 +100,5 @@ QRect panelRect; std::array sort_models; }; + #endif // __gui__pages__anime_list_h \ No newline at end of file diff -r eab9e623eb84 -r c69230dc2b5d include/gui/pages/history.h --- a/include/gui/pages/history.h Wed Oct 25 14:53:05 2023 -0400 +++ b/include/gui/pages/history.h Sun Oct 29 00:57:03 2023 -0400 @@ -1,5 +1,6 @@ #ifndef __gui__pages__history_h #define __gui__pages__history_h + #include class HistoryPage : public QWidget { diff -r eab9e623eb84 -r c69230dc2b5d include/gui/pages/now_playing.h --- a/include/gui/pages/now_playing.h Wed Oct 25 14:53:05 2023 -0400 +++ b/include/gui/pages/now_playing.h Sun Oct 29 00:57:03 2023 -0400 @@ -1,9 +1,11 @@ #ifndef __gui__pages__now_playing_h #define __gui__pages__now_playing_h + #include #include class QStackedWidget; + namespace Anime { class Anime; } diff -r eab9e623eb84 -r c69230dc2b5d include/gui/pages/seasons.h --- a/include/gui/pages/seasons.h Wed Oct 25 14:53:05 2023 -0400 +++ b/include/gui/pages/seasons.h Sun Oct 29 00:57:03 2023 -0400 @@ -1,5 +1,6 @@ #ifndef __gui__pages__seasons_h #define __gui__pages__seasons_h + #include class SeasonsPage : public QWidget { diff -r eab9e623eb84 -r c69230dc2b5d include/gui/pages/statistics.h --- a/include/gui/pages/statistics.h Wed Oct 25 14:53:05 2023 -0400 +++ b/include/gui/pages/statistics.h Sun Oct 29 00:57:03 2023 -0400 @@ -1,8 +1,8 @@ #ifndef __gui__pages__statistics_h #define __gui__pages__statistics_h + #include #include -// #include "gui/widgets/text.h" namespace TextWidgets { class Paragraph; @@ -33,4 +33,5 @@ TextWidgets::Paragraph* application_data; }; + #endif // __gui__pages__statistics_h \ No newline at end of file diff -r eab9e623eb84 -r c69230dc2b5d include/gui/pages/torrents.h --- a/include/gui/pages/torrents.h Wed Oct 25 14:53:05 2023 -0400 +++ b/include/gui/pages/torrents.h Sun Oct 29 00:57:03 2023 -0400 @@ -1,5 +1,6 @@ #ifndef __gui__pages__torrents_h #define __gui__pages__torrents_h + #include class TorrentsPage : public QWidget { diff -r eab9e623eb84 -r c69230dc2b5d include/gui/widgets/anime_info.h --- a/include/gui/widgets/anime_info.h Wed Oct 25 14:53:05 2023 -0400 +++ b/include/gui/widgets/anime_info.h Sun Oct 29 00:57:03 2023 -0400 @@ -1,7 +1,13 @@ #ifndef __gui__widgets__anime_info_h #define __gui__widgets__anime_info_h + #include -#include "gui/widgets/text.h" + +namespace TextWidgets { +class OneLineSection; +class LabelledSection; +class SelectableSection; +} namespace Anime { class Anime; diff -r eab9e623eb84 -r c69230dc2b5d include/gui/widgets/clickable_label.h --- a/include/gui/widgets/clickable_label.h Wed Oct 25 14:53:05 2023 -0400 +++ b/include/gui/widgets/clickable_label.h Sun Oct 29 00:57:03 2023 -0400 @@ -3,8 +3,6 @@ #include -class QWidget; - class ClickableLabel : public QLabel { Q_OBJECT diff -r eab9e623eb84 -r c69230dc2b5d include/gui/widgets/optional_date.h --- a/include/gui/widgets/optional_date.h Wed Oct 25 14:53:05 2023 -0400 +++ b/include/gui/widgets/optional_date.h Sun Oct 29 00:57:03 2023 -0400 @@ -1,5 +1,6 @@ #ifndef __gui__widgets__optional_date_h #define __gui__widgets__optional_date_h + #include "core/date.h" #include diff -r eab9e623eb84 -r c69230dc2b5d include/gui/widgets/sidebar.h --- a/include/gui/widgets/sidebar.h Wed Oct 25 14:53:05 2023 -0400 +++ b/include/gui/widgets/sidebar.h Sun Oct 29 00:57:03 2023 -0400 @@ -3,7 +3,8 @@ #include #include -#include + +class QListWidgetItem; class SideBar : public QListWidget { Q_OBJECT