aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/profilewidget2.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2014-02-07 15:32:39 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-08 07:18:12 -0800
commit86bc3bd58fd36057660024dcfe4bb1eaad2a4b0c (patch)
treea348338b9da27a9e6a73cdc2b02d03e106ce9700 /qt-ui/profile/profilewidget2.h
parent9756be59aa8255dd9db21fab7a2147227ef844b5 (diff)
downloadsubsurface-86bc3bd58fd36057660024dcfe4bb1eaad2a4b0c.tar.gz
Start to make things sane again...
Change the 'namespace ItemPos' declared on the commit before this one to a struct that will have all the 'on canvas' and 'off canvas' positions and representations of all items, so we know where to change. Also remove the remaining stuff from planer that was going to exist on this profile. 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.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/qt-ui/profile/profilewidget2.h b/qt-ui/profile/profilewidget2.h
index 088e33f8c..b837376d3 100644
--- a/qt-ui/profile/profilewidget2.h
+++ b/qt-ui/profile/profilewidget2.h
@@ -44,12 +44,6 @@ struct AbstractProfilePolygonItem;
class ProfileWidget2 : public QGraphicsView {
Q_OBJECT
- void fixBackgroundPos();
- void scrollViewTo(const QPoint& pos);
- void setupSceneAndFlags();
- void setupItemSizes();
- void addItemsToScene();
- void setupItemOnScene();
public:
enum State{ EMPTY, PROFILE, EDIT, ADD, PLAN, INVALID };
enum Items{BACKGROUND, PROFILE_Y_AXIS, GAS_Y_AXIS, TIME_AXIS, DEPTH_CONTROLLER, TIME_CONTROLLER, COLUMNS};
@@ -69,6 +63,13 @@ protected:
signals:
void startProfileState();
void startEmptyState();
+private: /*methods*/
+ void fixBackgroundPos();
+ void scrollViewTo(const QPoint& pos);
+ void setupSceneAndFlags();
+ void setupItemSizes();
+ void addItemsToScene();
+ void setupItemOnScene();
private:
DivePlotDataModel *dataModel;
State currentState;
@@ -83,8 +84,6 @@ private:
PartialGasPressureAxis *gasYAxis;
TemperatureAxis *temperatureAxis;
TimeAxis *timeAxis;
- DiveRectItem *depthController;
- DiveRectItem *timeController;
DiveProfileItem *diveProfileItem;
DiveCartesianPlane *cartesianPlane;
DiveTemperatureItem *temperatureItem;