diff include/gui/pages/now_playing.h @ 64:fe719c109dbc

*: update 1. add media tracking ability, and it displays info on the `now playing` page 2. the `now playing` page now actually shows something 3. renamed every page class to be more accurate to what it is 4. ...
author Paper <mrpapersonic@gmail.com>
date Sun, 01 Oct 2023 23:15:43 -0400
parents 5c0397762b53
children 27a19dd6cba1
line wrap: on
line diff
--- a/include/gui/pages/now_playing.h	Sun Oct 01 06:39:47 2023 -0400
+++ b/include/gui/pages/now_playing.h	Sun Oct 01 23:15:43 2023 -0400
@@ -1,12 +1,19 @@
 #ifndef __gui__pages__now_playing_h
 #define __gui__pages__now_playing_h
-#include <QWidget>
+#include <QFrame>
 
-class NowPlayingWidget : public QWidget {
+class QStackedWidget;
+
+class NowPlayingPage : public QFrame {
 		Q_OBJECT
 
 	public:
-		NowPlayingWidget(QWidget* parent = nullptr);
+		NowPlayingPage(QWidget* parent = nullptr);
+		void SetDefault();
+		void SetPlaying(int id);
+
+	private:
+		QStackedWidget* stack;
 };
 
 #endif // __gui__pages__now_playing_h