64
|
1 #ifndef __gui__widgets__anime_info_h
|
|
2 #define __gui__widgets__anime_info_h
|
|
3 #include <QWidget>
|
|
4
|
|
5 namespace Anime {
|
76
|
6 class Anime;
|
64
|
7 }
|
|
8
|
|
9 class AnimeInfoWidget : public QWidget {
|
|
10 Q_OBJECT
|
|
11
|
|
12 public:
|
80
|
13 AnimeInfoWidget(QWidget* parent = nullptr);
|
64
|
14 AnimeInfoWidget(const Anime::Anime& anime, QWidget* parent = nullptr);
|
80
|
15 SetAnime(const Anime::Anime& anime);
|
|
16
|
|
17 private:
|
|
18 std::shared_ptr<TextWidgets::OneLineSection> _title = nullptr;
|
|
19 std::shared_ptr<TextWidgets::LabelledSection> _details = nullptr;
|
|
20 std::shared_ptr<TextWidgets::SelectableSection> _synopsis = nullptr;
|
64
|
21 };
|
|
22
|
|
23 #endif // __gui__widgets__anime_info_h
|