Mercurial > minori
annotate include/gui/dialog/information.h @ 52:0c4138de2ea7
anime list: we are finally read-write
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Mon, 25 Sep 2023 22:49:42 -0400 |
| parents | 75c804f713b2 |
| children | 3d2decf093bb |
| rev | line source |
|---|---|
| 9 | 1 #ifndef __gui__dialog__information_h |
| 2 #define __gui__dialog__information_h | |
| 3 #include <QDialog> | |
| 4 #include <functional> | |
| 51 | 5 #include "core/date.h" |
| 6 #include "core/anime.h" | |
| 9 | 7 |
| 8 class InformationDialog : public QDialog { | |
| 9 Q_OBJECT | |
| 10 | |
| 11 public: | |
| 46 | 12 InformationDialog(const Anime::Anime& anime, std::function<void()> accept, QWidget* parent = nullptr); |
|
47
d8eb763e6661
information.cpp: add widgets to the list tab, and add an
Paper <mrpapersonic@gmail.com>
parents:
46
diff
changeset
|
13 |
|
d8eb763e6661
information.cpp: add widgets to the list tab, and add an
Paper <mrpapersonic@gmail.com>
parents:
46
diff
changeset
|
14 private: |
| 51 | 15 unsigned int id; |
| 16 unsigned int progress; | |
| 17 unsigned int episodes; | |
| 18 unsigned int score; | |
| 19 bool rewatching; | |
| 20 Anime::ListStatus status; | |
| 21 std::string notes; | |
| 22 Date started; | |
| 23 Date completed; | |
|
47
d8eb763e6661
information.cpp: add widgets to the list tab, and add an
Paper <mrpapersonic@gmail.com>
parents:
46
diff
changeset
|
24 void SaveData(); |
| 9 | 25 }; |
| 46 | 26 #endif // __gui__dialog__information_h |
