summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/tankitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/profile/tankitem.h')
-rw-r--r--qt-ui/profile/tankitem.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/qt-ui/profile/tankitem.h b/qt-ui/profile/tankitem.h
new file mode 100644
index 000000000..2dc7dfaa2
--- /dev/null
+++ b/qt-ui/profile/tankitem.h
@@ -0,0 +1,34 @@
+#ifndef TANKITEM_H
+#define TANKITEM_H
+
+#include <QGraphicsItem>
+#include <QModelIndex>
+#include "divelineitem.h"
+#include "divecartesianaxis.h"
+#include "dive.h"
+
+class TankItem : public QObject, public QGraphicsRectItem
+{
+ Q_OBJECT
+ Q_INTERFACES(QGraphicsItem)
+
+public:
+ explicit TankItem(QObject *parent = 0);
+ void setHorizontalAxis(DiveCartesianAxis *horizontal);
+ void setData(DivePlotDataModel *model, struct plot_info *plotInfo, struct dive *d);
+
+signals:
+
+public slots:
+ virtual void modelDataChanged(const QModelIndex &topLeft = QModelIndex(), const QModelIndex &bottomRight = QModelIndex());
+
+private:
+ DivePlotDataModel *dataModel;
+ DiveCartesianAxis *hAxis;
+ int hDataColumn;
+ struct dive *dive;
+ struct plot_info *pInfo;
+ QList<QGraphicsRectItem *> rects;
+};
+
+#endif // TANKITEM_H