diff src/include/statistics.h @ 7:07a9095eaeed

Update Refactored some code, moved some around
author Paper <mrpapersonic@gmail.com>
date Thu, 24 Aug 2023 23:11:38 -0400
parents 23d0d9319a00
children b1f73678ef61
line wrap: on
line diff
--- a/src/include/statistics.h	Wed Aug 16 00:49:17 2023 -0400
+++ b/src/include/statistics.h	Thu Aug 24 23:11:38 2023 -0400
@@ -1,30 +1,23 @@
 #ifndef __statistics_h
 #define __statistics_h
-class Statistics;
-
-class StatisticsTimer : public wxTimer {
-	public:
-		StatisticsTimer(Statistics* caller);
-		virtual void Notify();
+#include <QWidget>
+#include <QFrame>
+#include <QPlainTextEdit>
+#include "anime_list.h"
 
-	private:
-		Statistics* statistics;
-};
-
-class Statistics {
+class StatisticsWidget : public QFrame {
 	public:
-		Statistics(page_t* page, wxPanel* frame);
+		StatisticsWidget(AnimeListWidget* listwidget, QWidget* parent = nullptr);
 		void UpdateStatistics();
 
 	private:
 		std::string MinutesToDateString(int minutes);
 
-		wxPanel* panel;
-		AnimeListPage* anime_list;
-		wxStaticText* anime_list_data;
+		AnimeListWidget* anime_list;
+		QPlainTextEdit* anime_list_data;
 
-		wxStaticText* score_distribution_title;
-		wxStaticText* score_distribution_labels;
+		//QPlainTextEdit* score_distribution_title;
+		//QPlainTextEdit* score_distribution_labels;
 		//wxStaticText* score_distribution_graph; // how am I gonna do this
 
 		/* we don't HAVE a local database (yet ;)) */
@@ -32,9 +25,6 @@
 		//wxStaticText* local_database_labels;
 		//wxStaticText* local_database_data;
 
-		wxStaticText* application_title;
-		wxStaticText* application_labels;
-		wxStaticText* application_data;
-		StatisticsTimer* timer;
+		QPlainTextEdit* application_data;
 };
 #endif // __statistics_h
\ No newline at end of file