Mercurial > minori
comparison include/gui/dialog/information.h @ 305:91ac90a34003
core/time: remove Duration class, use regular functions instead
this class was pretty useless anyway
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Sun, 19 May 2024 15:56:20 -0400 |
parents | 3ec7804abf17 |
children |
comparison
equal
deleted
inserted
replaced
304:2115488eb302 | 305:91ac90a34003 |
---|---|
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 = {}, enum Pages page = Pages::PAGE_MAIN_INFO, | 18 InformationDialog(Anime::Anime* anime, std::function<void(Anime::Anime*)> accept = {}, enum Pages page = Pages::PAGE_MAIN_INFO, |
19 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; |