comparison include/gui/dialog/information.h @ 51:75c804f713b2

window: add about window, *: use tr() when applicable (useful for i18n)
author Paper <mrpapersonic@gmail.com>
date Mon, 25 Sep 2023 20:29:26 -0400
parents d8eb763e6661
children 3d2decf093bb
comparison
equal deleted inserted replaced
50:10868c3fb2be 51:75c804f713b2
1 #ifndef __gui__dialog__information_h 1 #ifndef __gui__dialog__information_h
2 #define __gui__dialog__information_h 2 #define __gui__dialog__information_h
3 #include <QDialog> 3 #include <QDialog>
4 #include <functional> 4 #include <functional>
5 namespace Anime { 5 #include "core/date.h"
6 class Anime; 6 #include "core/anime.h"
7 }
8 7
9 class InformationDialog : public QDialog { 8 class InformationDialog : public QDialog {
10 Q_OBJECT 9 Q_OBJECT
11 10
12 public: 11 public:
13 InformationDialog(const Anime::Anime& anime, std::function<void()> accept, QWidget* parent = nullptr); 12 InformationDialog(const Anime::Anime& anime, std::function<void()> accept, QWidget* parent = nullptr);
14 13
15 private: 14 private:
16 int id; 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;
17 void SaveData(); 24 void SaveData();
18 }; 25 };
19 #endif // __gui__dialog__information_h 26 #endif // __gui__dialog__information_h