Mercurial > minori
comparison include/gui/pages/statistics.h @ 64:fe719c109dbc
*: update
1. add media tracking ability, and it displays info on the `now playing` page
2. the `now playing` page now actually shows something
3. renamed every page class to be more accurate to what it is
4. ...
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Sun, 01 Oct 2023 23:15:43 -0400 |
| parents | 5c0397762b53 |
| children | 3364fadc8a36 |
comparison
equal
deleted
inserted
replaced
| 63:3d2decf093bb | 64:fe719c109dbc |
|---|---|
| 1 #ifndef __gui__pages__statistics_h | 1 #ifndef __gui__pages__statistics_h |
| 2 #define __gui__pages__statistics_h | 2 #define __gui__pages__statistics_h |
| 3 #include "gui/pages/anime_list.h" | |
| 4 #include <QFrame> | 3 #include <QFrame> |
| 5 #include <QPlainTextEdit> | |
| 6 #include <QWidget> | 4 #include <QWidget> |
| 5 //#include "gui/widgets/text.h" | |
| 7 | 6 |
| 8 class StatisticsWidget : public QFrame { | 7 namespace TextWidgets { |
| 8 class Paragraph; | |
| 9 } | |
| 10 | |
| 11 class StatisticsPage : public QFrame { | |
| 9 Q_OBJECT | 12 Q_OBJECT |
| 10 | 13 |
| 11 public: | 14 public: |
| 12 StatisticsWidget(QWidget* parent = nullptr); | 15 StatisticsPage(QWidget* parent = nullptr); |
| 13 void UpdateStatistics(); | 16 void UpdateStatistics(); |
| 14 | 17 |
| 15 protected: | 18 protected: |
| 16 void showEvent(QShowEvent*) override; | 19 void showEvent(QShowEvent*) override; |
| 17 | 20 |
| 18 private: | 21 private: |
| 19 std::string MinutesToDateString(int minutes); | 22 std::string MinutesToDateString(int minutes); |
| 20 std::string SecondsToDateString(int seconds); | 23 std::string SecondsToDateString(int seconds); |
| 21 | 24 |
| 22 QPlainTextEdit* anime_list_data; | 25 TextWidgets::Paragraph* anime_list_data; |
| 23 | 26 |
| 24 // QPlainTextEdit* score_distribution_title; | 27 // QPlainTextEdit* score_distribution_title; |
| 25 // QPlainTextEdit* score_distribution_labels; | 28 // QPlainTextEdit* score_distribution_labels; |
| 26 // wxStaticText* score_distribution_graph; // how am I gonna do this | 29 // wxStaticText* score_distribution_graph; // how am I gonna do this |
| 27 | 30 |
| 28 /* we don't HAVE a local database (yet ;)) */ | 31 /* we don't HAVE a local database (yet ;)) */ |
| 29 // QPlainTextEdit* local_database_data; | 32 // QPlainTextEdit* local_database_data; |
| 30 | 33 |
| 31 QPlainTextEdit* application_data; | 34 TextWidgets::Paragraph* application_data; |
| 32 }; | 35 }; |
| 33 #endif // __gui__pages__statistics_h | 36 #endif // __gui__pages__statistics_h |
