mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 03:21:29 +00:00
5e494ce761
to display the deco parameters at the surface, in particular tissue saturation and heat map. Suggeted-by: Matthias Heinrichs <info@heinrichsweikamp.com> Signed-off-by: Robert C. Helling <helling@atdotde.de>
37 lines
964 B
C++
37 lines
964 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef DIVEEVENTITEM_H
|
|
#define DIVEEVENTITEM_H
|
|
|
|
#include "divepixmapitem.h"
|
|
|
|
class DiveCartesianAxis;
|
|
class DivePlotDataModel;
|
|
struct event;
|
|
|
|
class DiveEventItem : public DivePixmapItem {
|
|
Q_OBJECT
|
|
public:
|
|
DiveEventItem(QGraphicsItem *parent = 0);
|
|
~DiveEventItem();
|
|
void setEvent(struct event *ev, struct gasmix lastgasmix);
|
|
struct event *getEvent();
|
|
void eventVisibilityChanged(const QString &eventName, bool visible);
|
|
void setVerticalAxis(DiveCartesianAxis *axis);
|
|
void setHorizontalAxis(DiveCartesianAxis *axis);
|
|
void setModel(DivePlotDataModel *model);
|
|
bool shouldBeHidden();
|
|
public
|
|
slots:
|
|
void recalculatePos(bool instant = false);
|
|
|
|
private:
|
|
void setupToolTipString(struct gasmix lastgasmix);
|
|
void setupPixmap(struct gasmix lastgasmix);
|
|
int depthAtTime(int time);
|
|
DiveCartesianAxis *vAxis;
|
|
DiveCartesianAxis *hAxis;
|
|
DivePlotDataModel *dataModel;
|
|
struct event *internalEvent;
|
|
};
|
|
|
|
#endif // DIVEEVENTITEM_H
|