view src/include/statistics.h @ 8:b1f73678ef61

update text paragraphs are now their own objects, as they should be
author Paper <mrpapersonic@gmail.com>
date Sat, 26 Aug 2023 03:39:34 -0400
parents 07a9095eaeed
children
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);
		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