Mercurial > minori
changeset 85:c69230dc2b5d
*: cleanup includes
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 29 Oct 2023 00:57:03 -0400 |
parents | eab9e623eb84 |
children | c912128af0eb |
files | include/core/anime_db.h include/core/config.h include/core/date.h include/core/session.h include/core/strings.h include/core/time.h include/gui/dialog/about.h include/gui/dialog/information.h include/gui/dialog/settings.h include/gui/pages/anime_list.h include/gui/pages/history.h include/gui/pages/now_playing.h include/gui/pages/seasons.h include/gui/pages/statistics.h include/gui/pages/torrents.h include/gui/widgets/anime_info.h include/gui/widgets/clickable_label.h include/gui/widgets/optional_date.h include/gui/widgets/sidebar.h |
diffstat | 19 files changed, 41 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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 <string> #include <unordered_map> @@ -22,4 +23,6 @@ extern Database db; } // namespace Anime + + #endif // __core__anime_db_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
--- 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 <QDate> #include <cstdint> + class Date { public: Date(); @@ -33,4 +35,5 @@ std::shared_ptr<unsigned int> month; std::shared_ptr<unsigned int> day; }; + #endif // __core__date_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 <QElapsedTimer>
--- 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
--- 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 <cstdint> #include <string> namespace Time { @@ -19,5 +20,6 @@ int64_t GetSystemTime(); -}; // namespace Time +}; // namespace Time + #endif // __core__time_h \ No newline at end of file
--- 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 <QDialog> class AboutWindow : public QDialog {
--- 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 <QDialog> @@ -21,4 +22,5 @@ Date _started; Date _completed; }; + #endif // __gui__dialog__information_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 <QDialog> #include <QWidget> @@ -61,4 +62,5 @@ SideBar* sidebar; QStackedWidget* stacked; }; + #endif // __gui__dialog__settings_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 <QAbstractListModel> #include <QSortFilterProxyModel> #include <QStyledItemDelegate> -#include <QTreeView> #include <QWidget> #include <vector> +class QTreeView; +class QTabBar; + class AnimeListPageDelegate : public QStyledItemDelegate { Q_OBJECT @@ -97,4 +100,5 @@ QRect panelRect; std::array<AnimeListPageSortFilter*, 5> sort_models; }; + #endif // __gui__pages__anime_list_h \ No newline at end of file
--- 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 <QWidget> class HistoryPage : public QWidget {
--- 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 <QFrame> #include <unordered_map> class QStackedWidget; + namespace Anime { class Anime; }
--- 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 <QWidget> class SeasonsPage : public QWidget {
--- 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 <QFrame> #include <QWidget> -// #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
--- 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 <QWidget> class TorrentsPage : public QWidget {
--- 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 <QWidget> -#include "gui/widgets/text.h" + +namespace TextWidgets { +class OneLineSection; +class LabelledSection; +class SelectableSection; +} namespace Anime { class Anime;
--- 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 <QLabel> -class QWidget; - class ClickableLabel : public QLabel { Q_OBJECT
--- 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 <QWidget>
--- 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 <QItemSelectionModel> #include <QListWidget> -#include <QListWidgetItem> + +class QListWidgetItem; class SideBar : public QListWidget { Q_OBJECT