Mercurial > minori
annotate include/gui/dialog/information.h @ 70:64e5f427c6a2
services/anilist: remove unordered_map usage for enum classes
for some reason in C++11 unordered_maps don't work on enumerations.
so instead we'll just use a switch statement :P
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Tue, 03 Oct 2023 04:45:05 -0400 |
| parents | 3d2decf093bb |
| children | d02fdf1d6708 |
| rev | line source |
|---|---|
| 9 | 1 #ifndef __gui__dialog__information_h |
| 2 #define __gui__dialog__information_h | |
| 63 | 3 #include "core/anime.h" |
| 4 #include "core/date.h" | |
| 9 | 5 #include <QDialog> |
| 6 #include <functional> | |
| 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 score; | |
| 18 bool rewatching; | |
| 19 Anime::ListStatus status; | |
| 20 std::string notes; | |
| 21 Date started; | |
| 22 Date completed; | |
|
47
d8eb763e6661
information.cpp: add widgets to the list tab, and add an
Paper <mrpapersonic@gmail.com>
parents:
46
diff
changeset
|
23 void SaveData(); |
| 9 | 24 }; |
| 46 | 25 #endif // __gui__dialog__information_h |
