mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
29 lines
695 B
C
29 lines
695 B
C
|
#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
|