diff 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
line wrap: on
line diff
--- a/include/gui/pages/now_playing.h	Tue Jan 16 15:22:29 2024 -0500
+++ b/include/gui/pages/now_playing.h	Fri Jan 19 00:24:02 2024 -0500
@@ -1,8 +1,13 @@
 #ifndef __gui__pages__now_playing_h
 #define __gui__pages__now_playing_h
 
+#include "gui/widgets/anime_info.h"
+#include "gui/widgets/poster.h"
+#include "gui/widgets/text.h"
+
 #include <QFrame>
 #include <unordered_map>
+#include <memory>
 
 class QStackedWidget;
 
@@ -14,6 +19,35 @@
 class Elements;
 }
 
+namespace NowPlayingPages {
+
+class Default : public QWidget {
+		Q_OBJECT
+
+	public:
+		Default(QWidget* parent = nullptr);
+};
+
+class Playing : public QWidget {
+		Q_OBJECT
+
+	public:
+		Playing(QWidget* parent = nullptr);
+		void SetPlayingAnime(const Anime::Anime& anime, const anitomy::Elements& info);
+		int GetPlayingAnime();
+
+	private:
+		int _id = 0;
+		int _episode = 0;
+		std::unique_ptr<QWidget> _main = nullptr;
+		std::unique_ptr<TextWidgets::Title> _title = nullptr;
+		std::unique_ptr<AnimeInfoWidget> _info = nullptr;
+		std::unique_ptr<QWidget> _sidebar = nullptr;
+		std::unique_ptr<Poster> _poster = nullptr;
+};
+
+}
+
 class NowPlayingPage final : public QFrame {
 		Q_OBJECT