summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/divecartesianaxis.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/profile/divecartesianaxis.h')
-rw-r--r--qt-ui/profile/divecartesianaxis.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/qt-ui/profile/divecartesianaxis.h b/qt-ui/profile/divecartesianaxis.h
index 507d0349c..e4366eaf4 100644
--- a/qt-ui/profile/divecartesianaxis.h
+++ b/qt-ui/profile/divecartesianaxis.h
@@ -7,6 +7,7 @@
class QPropertyAnimation;
class DiveTextItem;
class DiveLineItem;
+class DivePlotDataModel;
class DiveCartesianAxis : public QObject, public QGraphicsLineItem{
Q_OBJECT
@@ -38,6 +39,7 @@ public slots:
void updateTicks();
signals:
void sizeChanged();
+ void maxChanged();
protected:
virtual QString textForValue(double value);
virtual QColor colorForValue(double value);
@@ -75,6 +77,17 @@ protected:
QString textForValue(double value);
};
+class PartialGasPressureAxis : public DiveCartesianAxis{
+ Q_OBJECT
+public:
+ PartialGasPressureAxis();
+ void setModel(DivePlotDataModel *model);
+public slots:
+ void preferencesChanged();
+private:
+ DivePlotDataModel *model;
+};
+
// This is a try. Maybe the CartesianPlane should have the X and Y
// axis and handle things internally?
class DiveCartesianPlane :public QObject, public QGraphicsRectItem{