2013-06-20 15:33:26 +00:00
|
|
|
#ifndef DIVEPLANNER_H
|
|
|
|
#define DIVEPLANNER_H
|
|
|
|
|
|
|
|
#include <QGraphicsView>
|
|
|
|
#include <QGraphicsPathItem>
|
|
|
|
|
|
|
|
class DivePlanner : public QGraphicsView {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
static DivePlanner *instance();
|
2013-06-20 15:37:41 +00:00
|
|
|
protected:
|
|
|
|
virtual void mouseDoubleClickEvent(QMouseEvent* event);
|
2013-06-20 16:28:04 +00:00
|
|
|
virtual void showEvent(QShowEvent* event);
|
|
|
|
virtual void resizeEvent(QResizeEvent* event);
|
2013-06-20 16:53:12 +00:00
|
|
|
virtual void mouseMoveEvent(QMouseEvent* event);
|
2013-06-20 16:20:41 +00:00
|
|
|
void clear_generated_deco();
|
|
|
|
void create_deco_stop();
|
2013-06-20 15:33:26 +00:00
|
|
|
private:
|
|
|
|
DivePlanner(QWidget* parent = 0);
|
2013-06-20 16:20:41 +00:00
|
|
|
QList<QGraphicsLineItem*> lines;
|
|
|
|
QList<QGraphicsEllipseItem*> handles;
|
2013-06-20 16:53:12 +00:00
|
|
|
QGraphicsLineItem *verticalLine;
|
|
|
|
QGraphicsLineItem *horizontalLine;
|
2013-06-20 15:33:26 +00:00
|
|
|
};
|
|
|
|
#endif
|