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);
|
|
15
|
7
|
16 AnimeListWidget* anime_list;
|
|
17 QPlainTextEdit* anime_list_data;
|
2
|
18
|
7
|
19 //QPlainTextEdit* score_distribution_title;
|
|
20 //QPlainTextEdit* score_distribution_labels;
|
2
|
21 //wxStaticText* score_distribution_graph; // how am I gonna do this
|
|
22
|
|
23 /* we don't HAVE a local database (yet ;)) */
|
|
24 //wxStaticText* local_database_title;
|
|
25 //wxStaticText* local_database_labels;
|
|
26 //wxStaticText* local_database_data;
|
|
27
|
7
|
28 QPlainTextEdit* application_data;
|
2
|
29 };
|
1
|
30 #endif // __statistics_h |