mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
8773b4f9f0
commit
b50ae87007
2 changed files with 52 additions and 3 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue