2
|
1 #ifndef __statistics_h
|
|
2 #define __statistics_h
|
7
|
3 #include <QWidget>
|
|
4 #include <QFrame>
|
|
5 #include <QPlainTextEdit>
|
|
6 #include "anime_list.h"
|
2
|
7
|
7
|
8 class StatisticsWidget : public QFrame {
|
2
|
9 public:
|
7
|
10 StatisticsWidget(AnimeListWidget* listwidget, QWidget* parent = nullptr);
|
2
|
11 void UpdateStatistics();
|
|
12
|
|
13 private:
|
|
14 std::string MinutesToDateString(int minutes);
|
8
|
15 std::string SecondsToDateString(int seconds);
|
2
|
16
|
7
|
17 AnimeListWidget* anime_list;
|
|
18 QPlainTextEdit* anime_list_data;
|
2
|
19
|
7
|
20 //QPlainTextEdit* score_distribution_title;
|
|
21 //QPlainTextEdit* score_distribution_labels;
|
2
|
22 //wxStaticText* score_distribution_graph; // how am I gonna do this
|
|
23
|
|
24 /* we don't HAVE a local database (yet ;)) */
|
|
25 //wxStaticText* local_database_title;
|
|
26 //wxStaticText* local_database_labels;
|
|
27 //wxStaticText* local_database_data;
|
|
28
|
7
|
29 QPlainTextEdit* application_data;
|
2
|
30 };
|
1
|
31 #endif // __statistics_h |