9
|
1 #ifndef __gui__pages__statistics_h
|
|
2 #define __gui__pages__statistics_h
|
85
|
3
|
9
|
4 #include <QFrame>
|
|
5 #include <QWidget>
|
93
|
6 #include "gui/widgets/graph.h"
|
9
|
7
|
64
|
8 namespace TextWidgets {
|
93
|
9 class LabelledSection;
|
64
|
10 }
|
|
11
|
|
12 class StatisticsPage : public QFrame {
|
9
|
13 Q_OBJECT
|
|
14
|
|
15 public:
|
64
|
16 StatisticsPage(QWidget* parent = nullptr);
|
9
|
17 void UpdateStatistics();
|
|
18
|
|
19 protected:
|
|
20 void showEvent(QShowEvent*) override;
|
|
21
|
|
22 private:
|
|
23 std::string MinutesToDateString(int minutes);
|
|
24 std::string SecondsToDateString(int seconds);
|
|
25
|
93
|
26 std::shared_ptr<TextWidgets::LabelledSection> _anime_list;
|
9
|
27
|
93
|
28 std::shared_ptr<Graph<int>> _score_distribution_graph;
|
9
|
29
|
93
|
30 std::shared_ptr<TextWidgets::LabelledSection> _application;
|
9
|
31 };
|
85
|
32
|
9
|
33 #endif // __gui__pages__statistics_h |