Mercurial > minori
annotate include/gui/widgets/anime_button.h @ 364:99c961c91809
core: refactor out byte stream into its own file
easy dubs
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Tue, 16 Jul 2024 21:15:59 -0400 |
parents | 6b0768158dcd |
children | f81bed4e04ac |
rev | line source |
---|---|
261
3ec7804abf17
include: make header guards more sane
Paper <paper@paper.us.eu.org>
parents:
254
diff
changeset
|
1 #ifndef MINORI_GUI_WIDGETS_ANIME_BUTTON_H_ |
3ec7804abf17
include: make header guards more sane
Paper <paper@paper.us.eu.org>
parents:
254
diff
changeset
|
2 #define MINORI_GUI_WIDGETS_ANIME_BUTTON_H_ |
253 | 3 |
4 #include <QFrame> | |
273
f31305b9f60a
*: various code safety changes
Paper <paper@paper.us.eu.org>
parents:
261
diff
changeset
|
5 #include <QWidget> |
f31305b9f60a
*: various code safety changes
Paper <paper@paper.us.eu.org>
parents:
261
diff
changeset
|
6 #include <QLabel> |
253 | 7 |
273
f31305b9f60a
*: various code safety changes
Paper <paper@paper.us.eu.org>
parents:
261
diff
changeset
|
8 #include "gui/widgets/poster.h" |
f31305b9f60a
*: various code safety changes
Paper <paper@paper.us.eu.org>
parents:
261
diff
changeset
|
9 #include "gui/widgets/elided_label.h" |
f31305b9f60a
*: various code safety changes
Paper <paper@paper.us.eu.org>
parents:
261
diff
changeset
|
10 #include "gui/widgets/text.h" |
253 | 11 |
12 namespace Anime { | |
13 class Anime; | |
14 } | |
15 | |
16 class AnimeButton : public QFrame { | |
348
6b0768158dcd
text: redesign almost every widget
Paper <paper@paper.us.eu.org>
parents:
273
diff
changeset
|
17 Q_OBJECT |
6b0768158dcd
text: redesign almost every widget
Paper <paper@paper.us.eu.org>
parents:
273
diff
changeset
|
18 |
253 | 19 public: |
20 AnimeButton(QWidget* parent = nullptr); | |
21 AnimeButton(const Anime::Anime& anime, QWidget* parent = nullptr); | |
22 void SetAnime(const Anime::Anime& anime); | |
23 | |
24 protected: | |
273
f31305b9f60a
*: various code safety changes
Paper <paper@paper.us.eu.org>
parents:
261
diff
changeset
|
25 Poster _poster; |
f31305b9f60a
*: various code safety changes
Paper <paper@paper.us.eu.org>
parents:
261
diff
changeset
|
26 QLabel _title; |
f31305b9f60a
*: various code safety changes
Paper <paper@paper.us.eu.org>
parents:
261
diff
changeset
|
27 TextWidgets::LabelledParagraph _info; |
348
6b0768158dcd
text: redesign almost every widget
Paper <paper@paper.us.eu.org>
parents:
273
diff
changeset
|
28 TextWidgets::Paragraph _synopsis; |
253 | 29 }; |
30 | |
273
f31305b9f60a
*: various code safety changes
Paper <paper@paper.us.eu.org>
parents:
261
diff
changeset
|
31 #endif // MINORI_GUI_WIDGETS_ANIME_BUTTON_H_ |