diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2014-01-15 12:00:23 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-16 10:12:30 +0700 |
commit | b50ae8700746f172350611b088e9f0d761768680 (patch) | |
tree | 8c284fb076ed7217b41e0bc57647e0beaa975ae9 /qt-ui/profile/profilewidget2.h | |
parent | 8773b4f9f0dd335e9326f9e45359332dd9f717de (diff) | |
download | subsurface-b50ae8700746f172350611b088e9f0d761768680.tar.gz |
Initializing the new Profile Class.
Beginning of the code for the constructor, just constructing
some of the items and preparing for the State Machine to come.
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.h | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/qt-ui/profile/profilewidget2.h b/qt-ui/profile/profilewidget2.h index b7eb4d45c..43d2e2b3d 100644 --- a/qt-ui/profile/profilewidget2.h +++ b/qt-ui/profile/profilewidget2.h @@ -2,7 +2,6 @@ #define PROFILEWIDGET2_H #include <QGraphicsView> -#include <QStateMachine> // /* The idea of this widget is to display and edit the profile. // * It has: @@ -15,8 +14,15 @@ // * It needs to be dynamic, things should *flow* on it, not just appear / disappear. // */ #include "graphicsview-common.h" - +struct DivePlotDataModel; +struct DivePixmapItem; +struct DiveRectItem; +struct DepthAxis; +struct DiveCartesianAxis; +struct DiveProfileItem; +struct TimeAxis; struct dive; +struct QStateMachine; class ProfileWidget2 : public QGraphicsView { Q_OBJECT @@ -44,6 +50,18 @@ signals: void startShowGasState(); void startShowTissueState(); void startHideTissueState(); +private: + DivePlotDataModel *dataModel; + State currentState; + QStateMachine *stateMachine; + + DivePixmapItem *background ; + DepthAxis *profileYAxis ; + DiveCartesianAxis *gasYAxis; + TimeAxis *timeAxis; + DiveRectItem *depthController; + DiveRectItem *timeController; + DiveProfileItem *diveProfileItem; }; #endif
\ No newline at end of file |