diff 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
line wrap: on
line diff
--- a/include/gui/pages/statistics.h	Wed Nov 01 00:00:56 2023 -0400
+++ b/include/gui/pages/statistics.h	Wed Nov 01 13:52:34 2023 -0400
@@ -3,9 +3,10 @@
 
 #include <QFrame>
 #include <QWidget>
+#include "gui/widgets/graph.h"
 
 namespace TextWidgets {
-class Paragraph;
+class LabelledSection;
 }
 
 class StatisticsPage : public QFrame {
@@ -22,16 +23,11 @@
 		std::string MinutesToDateString(int minutes);
 		std::string SecondsToDateString(int seconds);
 
-		TextWidgets::Paragraph* anime_list_data;
+		std::shared_ptr<TextWidgets::LabelledSection> _anime_list;
 
-		// QPlainTextEdit* score_distribution_title;
-		// QPlainTextEdit* score_distribution_labels;
-		// wxStaticText* score_distribution_graph; // how am I gonna do this
+		std::shared_ptr<Graph<int>> _score_distribution_graph;
 
-		/* we don't HAVE a local database (yet ;)) */
-		// QPlainTextEdit* local_database_data;
-
-		TextWidgets::Paragraph* application_data;
+		std::shared_ptr<TextWidgets::LabelledSection> _application;
 };
 
 #endif // __gui__pages__statistics_h
\ No newline at end of file