summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/diveeventitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/profile/diveeventitem.h')
-rw-r--r--qt-ui/profile/diveeventitem.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/qt-ui/profile/diveeventitem.h b/qt-ui/profile/diveeventitem.h
new file mode 100644
index 000000000..896036e8d
--- /dev/null
+++ b/qt-ui/profile/diveeventitem.h
@@ -0,0 +1,29 @@
+#ifndef DIVEEVENTITEM_H
+#define DIVEEVENTITEM_H
+
+#include "divepixmapitem.h"
+
+class DiveCartesianAxis;
+class DivePlotDataModel;
+struct event;
+
+class DiveEventItem : public DivePixmapItem {
+ Q_OBJECT
+public:
+ DiveEventItem(QObject* parent = 0);
+ void setEvent(struct event *ev);
+ void eventVisibilityChanged(const QString& eventName, bool visible);
+ void setVerticalAxis(DiveCartesianAxis *axis);
+ void setHorizontalAxis(DiveCartesianAxis *axis);
+ void setModel(DivePlotDataModel *model);
+ void recalculate();
+private:
+ void setupToolTipString();
+ void setupPixmap();
+ DiveCartesianAxis *vAxis;
+ DiveCartesianAxis *hAxis;
+ DivePlotDataModel *dataModel;
+ struct event* internalEvent;
+};
+
+#endif \ No newline at end of file