diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2021-07-14 11:49:10 +1200 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2021-07-14 11:49:10 +1200 |
commit | d24f813f3f2a05c112e803e4256b53535895fc98 (patch) | |
tree | 601e6ae9a1cd44bcfdcf91739a5ca36aedd827c9 /src/statistics/ProgressPage.h |
Diffstat (limited to 'src/statistics/ProgressPage.h')
-rw-r--r-- | src/statistics/ProgressPage.h | 33 |
1 files changed, 33 insertions, 0 deletions
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 <QtWidgets>
+#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<DataPoint> getDataSet() const;
+
+private:
+ PieChart* chart;
+ int allCardsNum;
+ int newCardsNum;
+ int toBeRepeated;
+};
+
+#endif
|