view 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 source

#ifndef __statistics_h
#define __statistics_h
#include <QWidget>
#include <QFrame>
#include <QPlainTextEdit>
#include "anime_list.h"

class StatisticsWidget : public QFrame {
	public:
		StatisticsWidget(AnimeListWidget* listwidget, QWidget* parent = nullptr);
		void UpdateStatistics();

	private:
		std::string MinutesToDateString(int minutes);

		AnimeListWidget* anime_list;
		QPlainTextEdit* anime_list_data;

		//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 ;)) */
		//wxStaticText* local_database_title;
		//wxStaticText* local_database_labels;
		//wxStaticText* local_database_data;

		QPlainTextEdit* application_data;
};
#endif // __statistics_h