Mercurial > minori
comparison include/gui/pages/now_playing.h @ 236:4d461ef7d424
HUGE UPDATE: convert build system to autotools
why? because cmake sucks :)
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Fri, 19 Jan 2024 00:24:02 -0500 |
| parents | d43d68408d3c |
| children | 862d0d8619f6 |
comparison
equal
deleted
inserted
replaced
| 235:593108b3d555 | 236:4d461ef7d424 |
|---|---|
| 1 #ifndef __gui__pages__now_playing_h | 1 #ifndef __gui__pages__now_playing_h |
| 2 #define __gui__pages__now_playing_h | 2 #define __gui__pages__now_playing_h |
| 3 | 3 |
| 4 #include "gui/widgets/anime_info.h" | |
| 5 #include "gui/widgets/poster.h" | |
| 6 #include "gui/widgets/text.h" | |
| 7 | |
| 4 #include <QFrame> | 8 #include <QFrame> |
| 5 #include <unordered_map> | 9 #include <unordered_map> |
| 10 #include <memory> | |
| 6 | 11 |
| 7 class QStackedWidget; | 12 class QStackedWidget; |
| 8 | 13 |
| 9 namespace Anime { | 14 namespace Anime { |
| 10 class Anime; | 15 class Anime; |
| 11 } | 16 } |
| 12 | 17 |
| 13 namespace anitomy { | 18 namespace anitomy { |
| 14 class Elements; | 19 class Elements; |
| 20 } | |
| 21 | |
| 22 namespace NowPlayingPages { | |
| 23 | |
| 24 class Default : public QWidget { | |
| 25 Q_OBJECT | |
| 26 | |
| 27 public: | |
| 28 Default(QWidget* parent = nullptr); | |
| 29 }; | |
| 30 | |
| 31 class Playing : public QWidget { | |
| 32 Q_OBJECT | |
| 33 | |
| 34 public: | |
| 35 Playing(QWidget* parent = nullptr); | |
| 36 void SetPlayingAnime(const Anime::Anime& anime, const anitomy::Elements& info); | |
| 37 int GetPlayingAnime(); | |
| 38 | |
| 39 private: | |
| 40 int _id = 0; | |
| 41 int _episode = 0; | |
| 42 std::unique_ptr<QWidget> _main = nullptr; | |
| 43 std::unique_ptr<TextWidgets::Title> _title = nullptr; | |
| 44 std::unique_ptr<AnimeInfoWidget> _info = nullptr; | |
| 45 std::unique_ptr<QWidget> _sidebar = nullptr; | |
| 46 std::unique_ptr<Poster> _poster = nullptr; | |
| 47 }; | |
| 48 | |
| 15 } | 49 } |
| 16 | 50 |
| 17 class NowPlayingPage final : public QFrame { | 51 class NowPlayingPage final : public QFrame { |
| 18 Q_OBJECT | 52 Q_OBJECT |
| 19 | 53 |
