#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);
		std::string SecondsToDateString(int seconds);

		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