summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/tab-widgets/TabDiveStatistics.h
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/tab-widgets/TabDiveStatistics.h')
-rw-r--r--desktop-widgets/tab-widgets/TabDiveStatistics.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/desktop-widgets/tab-widgets/TabDiveStatistics.h b/desktop-widgets/tab-widgets/TabDiveStatistics.h
index 8d764d4ed..d6b1c1522 100644
--- a/desktop-widgets/tab-widgets/TabDiveStatistics.h
+++ b/desktop-widgets/tab-widgets/TabDiveStatistics.h
@@ -25,4 +25,30 @@ private:
Ui::TabDiveStatistics *ui;
};
+// Widget describing, minimum, maximum and average value.
+// Scheduled for removal in due course.
+class QLabel;
+class MinMaxAvgWidget : public QWidget {
+ Q_OBJECT
+ QLabel *avgIco, *avgValue;
+ QLabel *minIco, *minValue;
+ QLabel *maxIco, *maxValue;
+public:
+ MinMaxAvgWidget(QWidget *parent);
+ double minimum() const;
+ double maximum() const;
+ double average() const;
+ void setMinimum(double minimum);
+ void setMaximum(double maximum);
+ void setAverage(double average);
+ void setMinimum(const QString &minimum);
+ void setMaximum(const QString &maximum);
+ void setAverage(const QString &average);
+ void overrideMinToolTipText(const QString &newTip);
+ void overrideAvgToolTipText(const QString &newTip);
+ void overrideMaxToolTipText(const QString &newTip);
+ void setAvgVisibility(bool visible);
+ void clear();
+};
+
#endif