Mercurial > minori
annotate include/gui/pages/now_playing.h @ 101:c537996cf67b
*: multitude of config changes
1. theme is now configurable from the settings menu
(but you have to restart for it to apply)
2. config is now stored in an INI file, with no method of
conversion from json (this repo is private-ish anyway)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Fri, 03 Nov 2023 14:06:02 -0400 |
parents | 8043152ef9d4 |
children | d43d68408d3c |
rev | line source |
---|---|
9 | 1 #ifndef __gui__pages__now_playing_h |
2 #define __gui__pages__now_playing_h | |
85 | 3 |
64 | 4 #include <QFrame> |
80 | 5 #include <unordered_map> |
2 | 6 |
64 | 7 class QStackedWidget; |
85 | 8 |
83 | 9 namespace Anime { |
10 class Anime; | |
11 } | |
64 | 12 |
95
8043152ef9d4
include: set classes as final where appropriate
Paper <mrpapersonic@gmail.com>
parents:
85
diff
changeset
|
13 class NowPlayingPage final : public QFrame { |
9 | 14 Q_OBJECT |
7 | 15 |
2 | 16 public: |
64 | 17 NowPlayingPage(QWidget* parent = nullptr); |
18 void SetDefault(); | |
83 | 19 void SetPlaying(const Anime::Anime& anime, const std::unordered_map<std::string, std::string>& episodes); |
69 | 20 int GetPlayingId(); |
64 | 21 |
22 private: | |
23 QStackedWidget* stack; | |
2 | 24 }; |
25 | |
9 | 26 #endif // __gui__pages__now_playing_h |