9
|
1 #ifndef __gui__pages__statistics_h
|
|
2 #define __gui__pages__statistics_h
|
85
|
3
|
9
|
4 #include <QFrame>
|
|
5 #include <QWidget>
|
|
6
|
64
|
7 namespace TextWidgets {
|
76
|
8 class Paragraph;
|
64
|
9 }
|
|
10
|
|
11 class StatisticsPage : public QFrame {
|
9
|
12 Q_OBJECT
|
|
13
|
|
14 public:
|
64
|
15 StatisticsPage(QWidget* parent = nullptr);
|
9
|
16 void UpdateStatistics();
|
|
17
|
|
18 protected:
|
|
19 void showEvent(QShowEvent*) override;
|
|
20
|
|
21 private:
|
|
22 std::string MinutesToDateString(int minutes);
|
|
23 std::string SecondsToDateString(int seconds);
|
|
24
|
64
|
25 TextWidgets::Paragraph* anime_list_data;
|
9
|
26
|
|
27 // QPlainTextEdit* score_distribution_title;
|
|
28 // QPlainTextEdit* score_distribution_labels;
|
|
29 // wxStaticText* score_distribution_graph; // how am I gonna do this
|
|
30
|
|
31 /* we don't HAVE a local database (yet ;)) */
|
|
32 // QPlainTextEdit* local_database_data;
|
|
33
|
64
|
34 TextWidgets::Paragraph* application_data;
|
9
|
35 };
|
85
|
36
|
9
|
37 #endif // __gui__pages__statistics_h |