Mercurial > minori
annotate include/gui/dialog/information.h @ 75:d3e9310598b1
*: refactor some stuff
text: "TextParagraph"s are now called sections, because that's the
actual word for it :P
text: new classes: Line and OneLineSection, solves many problems with
paragraphs that are only one line long (ex. going out of bounds)
http: reworked http stuff to allow threaded get requests, also moved it
to its own file to (hopefully) remove clutter
eventually I'll make a threaded post request method and use that in
the "basic" function
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Wed, 04 Oct 2023 01:42:30 -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 |
