comparison include/gui/dialog/information.h @ 258:862d0d8619f6

*: HUUUGE changes animia has been renamed to animone, so instead of thinking of a health condition, you think of a beautiful flower :) I've also edited some of the code for animone, but I have no idea if it even works or not because I don't have a mac or windows machine lying around. whoops! ... anyway, all of the changes divergent from Anisthesia are now licensed under BSD. it's possible that I could even rewrite most of the code to where I don't even have to keep the MIT license, but that's thinking too far into the future I've been slacking off on implementing the anime seasons page, mostly out of laziness. I think I'd have to create another db file specifically for the seasons anyway, this code is being pushed *primarily* because the hard drive it's on is failing! yay :)
author Paper <paper@paper.us.eu.org>
date Mon, 01 Apr 2024 02:43:44 -0400
parents 39521c47c7a3
children 3ec7804abf17
comparison
equal deleted inserted replaced
257:699a20c57dc8 258:862d0d8619f6
5 #include "core/date.h" 5 #include "core/date.h"
6 #include <QDialog> 6 #include <QDialog>
7 #include <functional> 7 #include <functional>
8 8
9 class InformationDialog final : public QDialog { 9 class InformationDialog final : public QDialog {
10 Q_OBJECT 10 Q_OBJECT
11 11
12 public: 12 public:
13 enum Pages { 13 enum Pages {
14 PAGE_MAIN_INFO, 14 PAGE_MAIN_INFO,
15 PAGE_MY_LIST 15 PAGE_MY_LIST
16 }; 16 };
17 17
18 InformationDialog(Anime::Anime& anime, std::function<void()> accept = {}, 18 InformationDialog(Anime::Anime& anime, std::function<void()> accept = {}, enum Pages page = Pages::PAGE_MAIN_INFO,
19 enum Pages page = Pages::PAGE_MAIN_INFO, QWidget* parent = nullptr); 19 QWidget* parent = nullptr);
20 20
21 protected: 21 protected:
22 void showEvent(QShowEvent* event) override; 22 void showEvent(QShowEvent* event) override;
23 23
24 private: 24 private:
25 void SaveData(Anime::Anime& anime); 25 void SaveData(Anime::Anime& anime);
26 unsigned int _progress; 26 unsigned int _progress;
27 unsigned int _score; 27 unsigned int _score;
28 bool _rewatching; 28 bool _rewatching;
29 Anime::ListStatus _status; 29 Anime::ListStatus _status;
30 std::string _notes; 30 std::string _notes;
31 Date _started; 31 Date _started;
32 Date _completed; 32 Date _completed;
33 }; 33 };
34 34
35 #endif // __gui__dialog__information_h 35 #endif // __gui__dialog__information_h