Mercurial > minori
annotate include/gui/pages/statistics.h @ 260:dd211ff68b36
pages/seasons: add initial functionality
the menu doesn't work yet, but it's a good start
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 03 Apr 2024 19:48:38 -0400 |
parents | 862d0d8619f6 |
children | 3ec7804abf17 |
rev | line source |
---|---|
9 | 1 #ifndef __gui__pages__statistics_h |
2 #define __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 |
bd68e4393e6f
statistics: forward declare Graph
Paper <mrpapersonic@gmail.com>
parents:
95
diff
changeset
|
7 template<typename T> |
bd68e4393e6f
statistics: forward declare Graph
Paper <mrpapersonic@gmail.com>
parents:
95
diff
changeset
|
8 class Graph; |
9 | 9 |
64 | 10 namespace TextWidgets { |
93 | 11 class LabelledSection; |
64 | 12 } |
13 | |
95
8043152ef9d4
include: set classes as final where appropriate
Paper <mrpapersonic@gmail.com>
parents:
93
diff
changeset
|
14 class StatisticsPage final : public QFrame { |
258 | 15 Q_OBJECT |
9 | 16 |
258 | 17 public: |
18 StatisticsPage(QWidget* parent = nullptr); | |
19 void UpdateStatistics(); | |
9 | 20 |
258 | 21 protected: |
22 void showEvent(QShowEvent*) override; | |
9 | 23 |
258 | 24 private: |
25 std::shared_ptr<TextWidgets::LabelledSection> _anime_list; | |
26 std::shared_ptr<Graph<int>> _score_distribution_graph; | |
27 std::shared_ptr<TextWidgets::LabelledSection> _application; | |
9 | 28 }; |
85 | 29 |
9 | 30 #endif // __gui__pages__statistics_h |