Added the Temperature Graph.

Added the Temperature Graph with its related classes. A Temperature Axis
is also created so the item is plotted on the right place.
Currently the Temperature Axis is just like the depth axis - top is
zero, wich means that the graph is inverted.

Also, the Temperature axis is being displayed as this helps debugging.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-01-16 18:39:13 -02:00 committed by Dirk Hohndel
parent 254beef5d4
commit 58aeb6ce40
6 changed files with 94 additions and 10 deletions

View file

@ -46,12 +46,18 @@ protected:
class DepthAxis : public DiveCartesianAxis {
protected:
QString textForValue(double value);
QString textForValue(double value);
};
class TimeAxis : public DiveCartesianAxis {
protected:
QString textForValue(double value);
QString textForValue(double value);
};
class TemperatureAxis : public DiveCartesianAxis{
Q_OBJECT
protected:
QString textForValue(double value);
};
// This is a try. Maybe the CartesianPlane should have the X and Y