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/BaseStatPage.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/statistics/BaseStatPage.h (limited to 'src/statistics/BaseStatPage.h') diff --git a/src/statistics/BaseStatPage.h b/src/statistics/BaseStatPage.h new file mode 100644 index 0000000..7ef91bd --- /dev/null +++ b/src/statistics/BaseStatPage.h @@ -0,0 +1,31 @@ +#ifndef STATISTICS_PAGE_H +#define STATISTICS_PAGE_H + +#include + +class StatisticsParams; + +class BaseStatPage: public QWidget +{ + Q_OBJECT +public: + BaseStatPage(const StatisticsParams* statParams); + virtual void updateDataSet() = 0; + virtual QString getTitle() const = 0; + virtual bool usesTimePeriod() const = 0; + +protected: + void init(); + virtual QWidget* createChart() = 0; + +private: + void createUi(); + QLabel* createTitleLabel(); + QWidget* createTotalReviewsLabel(); + +protected: + const StatisticsParams* statParams; + QLabel* totalReviewsLabel; +}; + +#endif -- cgit