annotate include/gui/dialog/information.h @ 83:d02fdf1d6708

*: huuuge update 1. make the now playing page function correctly 2. de-constructorfy many of our custom widgets, allowing them to be changed on-the-fly from the Now Playing page 3. ... :)
author Paper <mrpapersonic@gmail.com>
date Tue, 24 Oct 2023 22:01:02 -0400
parents 3d2decf093bb
children c69230dc2b5d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
5c0397762b53 INCOMPLETE: megacommit :)
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
1 #ifndef __gui__dialog__information_h
5c0397762b53 INCOMPLETE: megacommit :)
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
2 #define __gui__dialog__information_h
63
3d2decf093bb *: fix many clang warnings
Paper <mrpapersonic@gmail.com>
parents: 51
diff changeset
3 #include "core/anime.h"
3d2decf093bb *: fix many clang warnings
Paper <mrpapersonic@gmail.com>
parents: 51
diff changeset
4 #include "core/date.h"
9
5c0397762b53 INCOMPLETE: megacommit :)
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
5 #include <QDialog>
5c0397762b53 INCOMPLETE: megacommit :)
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
6 #include <functional>
5c0397762b53 INCOMPLETE: megacommit :)
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
7
5c0397762b53 INCOMPLETE: megacommit :)
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
8 class InformationDialog : public QDialog {
5c0397762b53 INCOMPLETE: megacommit :)
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
9 Q_OBJECT
5c0397762b53 INCOMPLETE: megacommit :)
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
10
5c0397762b53 INCOMPLETE: megacommit :)
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
11 public:
83
d02fdf1d6708 *: huuuge update
Paper <mrpapersonic@gmail.com>
parents: 63
diff changeset
12 InformationDialog(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:
83
d02fdf1d6708 *: huuuge update
Paper <mrpapersonic@gmail.com>
parents: 63
diff changeset
15 void SaveData(Anime::Anime& anime);
d02fdf1d6708 *: huuuge update
Paper <mrpapersonic@gmail.com>
parents: 63
diff changeset
16 unsigned int _progress;
d02fdf1d6708 *: huuuge update
Paper <mrpapersonic@gmail.com>
parents: 63
diff changeset
17 unsigned int _score;
d02fdf1d6708 *: huuuge update
Paper <mrpapersonic@gmail.com>
parents: 63
diff changeset
18 bool _rewatching;
d02fdf1d6708 *: huuuge update
Paper <mrpapersonic@gmail.com>
parents: 63
diff changeset
19 Anime::ListStatus _status;
d02fdf1d6708 *: huuuge update
Paper <mrpapersonic@gmail.com>
parents: 63
diff changeset
20 std::string _notes;
d02fdf1d6708 *: huuuge update
Paper <mrpapersonic@gmail.com>
parents: 63
diff changeset
21 Date _started;
d02fdf1d6708 *: huuuge update
Paper <mrpapersonic@gmail.com>
parents: 63
diff changeset
22 Date _completed;
9
5c0397762b53 INCOMPLETE: megacommit :)
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
23 };
46
d0adc4aedfc8 *: update...
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
24 #endif // __gui__dialog__information_h