Mercurial > minori
annotate include/gui/pages/statistics.h @ 348:6b0768158dcd
text: redesign almost every widget
i.e. Paragraph is now a QLabel, etc etc, some things will probably
break, idc
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Tue, 25 Jun 2024 11:19:54 -0400 |
parents | 3ec7804abf17 |
children |
rev | line source |
---|---|
261
3ec7804abf17
include: make header guards more sane
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
1 #ifndef MINORI_GUI_PAGES_STATISTICS_H_ |
3ec7804abf17
include: make header guards more sane
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
2 #define MINORI_GUI_PAGES_STATISTICS_H_ |
85 | 3 |
9 | 4 #include <QFrame> |
5 #include <QWidget> | |
96
bd68e4393e6f
statistics: forward declare Graph
Paper <mrpapersonic@gmail.com>
parents:
95
diff
changeset
|
6 |
348
6b0768158dcd
text: redesign almost every widget
Paper <paper@paper.us.eu.org>
parents:
261
diff
changeset
|
7 #include "gui/widgets/graph.h" |
6b0768158dcd
text: redesign almost every widget
Paper <paper@paper.us.eu.org>
parents:
261
diff
changeset
|
8 #include "gui/widgets/text.h" |
64 | 9 |
95
8043152ef9d4
include: set classes as final where appropriate
Paper <mrpapersonic@gmail.com>
parents:
93
diff
changeset
|
10 class StatisticsPage final : public QFrame { |
258 | 11 Q_OBJECT |
9 | 12 |
258 | 13 public: |
14 StatisticsPage(QWidget* parent = nullptr); | |
15 void UpdateStatistics(); | |
9 | 16 |
258 | 17 protected: |
18 void showEvent(QShowEvent*) override; | |
9 | 19 |
258 | 20 private: |
348
6b0768158dcd
text: redesign almost every widget
Paper <paper@paper.us.eu.org>
parents:
261
diff
changeset
|
21 TextWidgets::LabelledSection _anime_list; |
6b0768158dcd
text: redesign almost every widget
Paper <paper@paper.us.eu.org>
parents:
261
diff
changeset
|
22 TextWidgets::LabelledSection _application; |
6b0768158dcd
text: redesign almost every widget
Paper <paper@paper.us.eu.org>
parents:
261
diff
changeset
|
23 |
6b0768158dcd
text: redesign almost every widget
Paper <paper@paper.us.eu.org>
parents:
261
diff
changeset
|
24 Graph<int> _score_distribution_graph; |
9 | 25 }; |
85 | 26 |
261
3ec7804abf17
include: make header guards more sane
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
27 #endif // MINORI_GUI_PAGES_STATISTICS_H_ |