Mercurial > minori
annotate include/gui/pages/now_playing.h @ 118:39521c47c7a3
*: another huge megacommit, SORRY
The torrents page works a lot better now
Added the edit option to the anime list right click menu
Vectorized currently playing files
Available player and extensions are now loaded at runtime
from files in (dotpath)/players.json and (dotpath)/extensions.json
These paths are not permanent and will likely be moved to
(dotpath)/recognition
...
...
...
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 07 Nov 2023 23:40:54 -0500 |
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 |