aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/profilewidget2.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2014-01-16 18:39:13 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-17 06:18:25 +0700
commit58aeb6ce4014899e040a3ef8f4483f18fb44b432 (patch)
tree9e81e0fded3a1038ffa089e7b1bd49429d529df6 /qt-ui/profile/profilewidget2.h
parent254beef5d4c0ead123556ffbc5e37dd2cc81366e (diff)
downloadsubsurface-58aeb6ce4014899e040a3ef8f4483f18fb44b432.tar.gz
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>
Diffstat (limited to 'qt-ui/profile/profilewidget2.h')
-rw-r--r--qt-ui/profile/profilewidget2.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/profile/profilewidget2.h b/qt-ui/profile/profilewidget2.h
index 7d0e7189e..e3289f911 100644
--- a/qt-ui/profile/profilewidget2.h
+++ b/qt-ui/profile/profilewidget2.h
@@ -15,6 +15,7 @@
// */
#include "graphicsview-common.h"
+class TemperatureAxis;
class DiveEventItem;
struct DivePlotDataModel;
struct DivePixmapItem;
@@ -26,6 +27,7 @@ struct TimeAxis;
struct dive;
struct QStateMachine;
struct DiveCartesianPlane;
+struct DiveTemperatureItem;
struct plot_info;
class ProfileWidget2 : public QGraphicsView {
@@ -66,11 +68,13 @@ private:
struct plot_info *plotInfo;
DepthAxis *profileYAxis ;
DiveCartesianAxis *gasYAxis;
+ TemperatureAxis *temperatureAxis;
TimeAxis *timeAxis;
DiveRectItem *depthController;
DiveRectItem *timeController;
DiveProfileItem *diveProfileItem;
DiveCartesianPlane *cartesianPlane;
+ DiveTemperatureItem *temperatureItem;
QList<DiveEventItem*> eventItems;
};