Mercurial > minori
comparison include/gui/widgets/anime_info.h @ 291:9a88e1725fd2
*: refactor lots of stuff
I forgot to put this into different commits, oops!
anyway, it doesn't really matter *that* much since this is an
unfinished hobby project anyway. once it starts getting stable
commit history will be more important, but for now it's not
that big of a deal
| author | Paper <paper@paper.us.eu.org> | 
|---|---|
| date | Sun, 12 May 2024 16:31:07 -0400 | 
| parents | 3ec7804abf17 | 
| children | b1f625b0227c | 
   comparison
  equal
  deleted
  inserted
  replaced
| 290:9347e2eaf6e5 | 291:9a88e1725fd2 | 
|---|---|
| 1 #ifndef MINORI_GUI_WIDGETS_ANIME_INFO_H_ | 1 #ifndef MINORI_GUI_WIDGETS_ANIME_INFO_H_ | 
| 2 #define MINORI_GUI_WIDGETS_ANIME_INFO_H_ | 2 #define MINORI_GUI_WIDGETS_ANIME_INFO_H_ | 
| 3 | 3 | 
| 4 #include <QWidget> | 4 #include <QWidget> | 
| 5 | 5 #include "gui/widgets/text.h" | 
| 6 namespace TextWidgets { | |
| 7 class OneLineSection; | |
| 8 class LabelledSection; | |
| 9 class SelectableSection; | |
| 10 } // namespace TextWidgets | |
| 11 | 6 | 
| 12 namespace Anime { | 7 namespace Anime { | 
| 13 class Anime; | 8 class Anime; | 
| 14 } | 9 } | 
| 15 | 10 | 
| 20 AnimeInfoWidget(QWidget* parent = nullptr); | 15 AnimeInfoWidget(QWidget* parent = nullptr); | 
| 21 AnimeInfoWidget(const Anime::Anime& anime, QWidget* parent = nullptr); | 16 AnimeInfoWidget(const Anime::Anime& anime, QWidget* parent = nullptr); | 
| 22 void SetAnime(const Anime::Anime& anime); | 17 void SetAnime(const Anime::Anime& anime); | 
| 23 | 18 | 
| 24 private: | 19 private: | 
| 25 std::shared_ptr<TextWidgets::OneLineSection> _title = nullptr; | 20 TextWidgets::OneLineSection _title; | 
| 26 std::shared_ptr<TextWidgets::LabelledSection> _details = nullptr; | 21 TextWidgets::LabelledSection _details; | 
| 27 std::shared_ptr<TextWidgets::SelectableSection> _synopsis = nullptr; | 22 TextWidgets::SelectableSection _synopsis; | 
| 28 }; | 23 }; | 
| 29 | 24 | 
| 30 #endif // MINORI_GUI_WIDGETS_ANIME_INFO_H_ | 25 #endif // MINORI_GUI_WIDGETS_ANIME_INFO_H_ | 
