2014-01-16 17:02:32 +00:00
|
|
|
#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);
|
2014-02-15 23:05:47 +00:00
|
|
|
public slots:
|
|
|
|
void recalculatePos(bool instant = false);
|
2014-01-16 17:02:32 +00:00
|
|
|
private:
|
|
|
|
void setupToolTipString();
|
2014-01-16 18:21:23 +00:00
|
|
|
void setupPixmap();
|
2014-01-16 17:02:32 +00:00
|
|
|
DiveCartesianAxis *vAxis;
|
|
|
|
DiveCartesianAxis *hAxis;
|
|
|
|
DivePlotDataModel *dataModel;
|
|
|
|
struct event* internalEvent;
|
|
|
|
};
|
|
|
|
|
2014-02-11 18:14:46 +00:00
|
|
|
#endif // DIVEEVENTITEM_H
|