summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.h
blob: fc9575cfa9ea26f4d34719afcd9910dc21c5c7a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef DIVEPLANNER_H
#define DIVEPLANNER_H

#include <QGraphicsView>
#include <QGraphicsPathItem>

class DivePlanner : public QGraphicsView {
	Q_OBJECT
public:
	static DivePlanner *instance();
protected:
    virtual void mouseDoubleClickEvent(QMouseEvent* event);
    void clear_generated_deco();
	void create_deco_stop();

private:
    DivePlanner(QWidget* parent = 0);
	QList<QGraphicsLineItem*> lines;
	QList<QGraphicsEllipseItem*> handles;
};
#endif