blob: 9adb4cc0b523b2aa9b765161b2c5c24f745a01b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
|