From d24f813f3f2a05c112e803e4256b53535895fc98 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Wed, 14 Jul 2021 11:49:10 +1200 Subject: Initial mirror commit --- src/statistics/ProgressPage.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/statistics/ProgressPage.h (limited to 'src/statistics/ProgressPage.h') diff --git a/src/statistics/ProgressPage.h b/src/statistics/ProgressPage.h new file mode 100644 index 0000000..9adb4cc --- /dev/null +++ b/src/statistics/ProgressPage.h @@ -0,0 +1,33 @@ +#ifndef PROGRESS_PAGE_H +#define PROGRESS_PAGE_H + +#include +#include "BaseStatPage.h" +#include "../charts/DataPoint.h" + +class PieChart; + +class ProgressPage: public BaseStatPage +{ + Q_OBJECT +public: + ProgressPage(const StatisticsParams* statParams); + void updateDataSet(); + QString getTitle() const { return tr("Study progress"); } + bool usesTimePeriod() const {return false;} + +protected: + QWidget* createChart(); + +private: + void updateCardsNumbers(); + QList getDataSet() const; + +private: + PieChart* chart; + int allCardsNum; + int newCardsNum; + int toBeRepeated; +}; + +#endif -- cgit