Mercurial > minori
comparison include/gui/pages/statistics.h @ 9:5c0397762b53
INCOMPLETE: megacommit :)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 10 Sep 2023 03:59:16 -0400 |
parents | |
children | fe719c109dbc |
comparison
equal
deleted
inserted
replaced
8:b1f73678ef61 | 9:5c0397762b53 |
---|---|
1 #ifndef __gui__pages__statistics_h | |
2 #define __gui__pages__statistics_h | |
3 #include "gui/pages/anime_list.h" | |
4 #include <QFrame> | |
5 #include <QPlainTextEdit> | |
6 #include <QWidget> | |
7 | |
8 class StatisticsWidget : public QFrame { | |
9 Q_OBJECT | |
10 | |
11 public: | |
12 StatisticsWidget(QWidget* parent = nullptr); | |
13 void UpdateStatistics(); | |
14 | |
15 protected: | |
16 void showEvent(QShowEvent*) override; | |
17 | |
18 private: | |
19 std::string MinutesToDateString(int minutes); | |
20 std::string SecondsToDateString(int seconds); | |
21 | |
22 QPlainTextEdit* anime_list_data; | |
23 | |
24 // QPlainTextEdit* score_distribution_title; | |
25 // QPlainTextEdit* score_distribution_labels; | |
26 // wxStaticText* score_distribution_graph; // how am I gonna do this | |
27 | |
28 /* we don't HAVE a local database (yet ;)) */ | |
29 // QPlainTextEdit* local_database_data; | |
30 | |
31 QPlainTextEdit* application_data; | |
32 }; | |
33 #endif // __gui__pages__statistics_h |