view include/gui/pages/statistics.h @ 260:dd211ff68b36

pages/seasons: add initial functionality the menu doesn't work yet, but it's a good start
author Paper <paper@paper.us.eu.org>
date Wed, 03 Apr 2024 19:48:38 -0400
parents 862d0d8619f6
children 3ec7804abf17
line wrap: on
line source

#ifndef __gui__pages__statistics_h
#define __gui__pages__statistics_h

#include <QFrame>
#include <QWidget>

template<typename T>
class Graph;

namespace TextWidgets {
class LabelledSection;
}

class StatisticsPage final : public QFrame {
	Q_OBJECT

public:
	StatisticsPage(QWidget* parent = nullptr);
	void UpdateStatistics();

protected:
	void showEvent(QShowEvent*) override;

private:
	std::shared_ptr<TextWidgets::LabelledSection> _anime_list;
	std::shared_ptr<Graph<int>> _score_distribution_graph;
	std::shared_ptr<TextWidgets::LabelledSection> _application;
};

#endif // __gui__pages__statistics_h