Mercurial > minori
comparison include/gui/pages/statistics.h @ 93:d5efb81540b3
statistics: add graph!
also now we have a VERY VERY simple graph widget that probably
sucks and doesn't work half the time :)
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Wed, 01 Nov 2023 13:52:34 -0400 |
| parents | c69230dc2b5d |
| children | 8043152ef9d4 |
comparison
equal
deleted
inserted
replaced
| 92:2c27582a177c | 93:d5efb81540b3 |
|---|---|
| 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 | 3 |
| 4 #include <QFrame> | 4 #include <QFrame> |
| 5 #include <QWidget> | 5 #include <QWidget> |
| 6 #include "gui/widgets/graph.h" | |
| 6 | 7 |
| 7 namespace TextWidgets { | 8 namespace TextWidgets { |
| 8 class Paragraph; | 9 class LabelledSection; |
| 9 } | 10 } |
| 10 | 11 |
| 11 class StatisticsPage : public QFrame { | 12 class StatisticsPage : public QFrame { |
| 12 Q_OBJECT | 13 Q_OBJECT |
| 13 | 14 |
| 20 | 21 |
| 21 private: | 22 private: |
| 22 std::string MinutesToDateString(int minutes); | 23 std::string MinutesToDateString(int minutes); |
| 23 std::string SecondsToDateString(int seconds); | 24 std::string SecondsToDateString(int seconds); |
| 24 | 25 |
| 25 TextWidgets::Paragraph* anime_list_data; | 26 std::shared_ptr<TextWidgets::LabelledSection> _anime_list; |
| 26 | 27 |
| 27 // QPlainTextEdit* score_distribution_title; | 28 std::shared_ptr<Graph<int>> _score_distribution_graph; |
| 28 // QPlainTextEdit* score_distribution_labels; | |
| 29 // wxStaticText* score_distribution_graph; // how am I gonna do this | |
| 30 | 29 |
| 31 /* we don't HAVE a local database (yet ;)) */ | 30 std::shared_ptr<TextWidgets::LabelledSection> _application; |
| 32 // QPlainTextEdit* local_database_data; | |
| 33 | |
| 34 TextWidgets::Paragraph* application_data; | |
| 35 }; | 31 }; |
| 36 | 32 |
| 37 #endif // __gui__pages__statistics_h | 33 #endif // __gui__pages__statistics_h |
