mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
24 lines
546 B
C
24 lines
546 B
C
|
#ifndef DIVEPERCENTAGEITEM_H
|
||
|
#define DIVEPERCENTAGEITEM_H
|
||
|
|
||
|
#include <QGraphicsPixmapItem>
|
||
|
|
||
|
struct dive;
|
||
|
struct divecomputer;
|
||
|
struct plot_info;
|
||
|
class DivePlotDataModel;
|
||
|
class DiveCartesianAxis;
|
||
|
|
||
|
class DivePercentageItem : public QGraphicsPixmapItem {
|
||
|
public:
|
||
|
DivePercentageItem(const DiveCartesianAxis &hAxis, const DiveCartesianAxis &vAxis, double dpr);
|
||
|
void replot(const dive *d, const divecomputer *dc, const plot_info &pi);
|
||
|
private:
|
||
|
const DiveCartesianAxis &hAxis;
|
||
|
const DiveCartesianAxis &vAxis;
|
||
|
int hDataColumn;
|
||
|
double dpr;
|
||
|
};
|
||
|
|
||
|
#endif
|