summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/profilewidget2.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-05-21 21:18:10 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-22 14:28:54 +0900
commit27afb338062784bb4b1de16c5a468f5208f3891b (patch)
treea05b2dbb2f2714604f1c23f5221f6bc01e83bf36 /qt-ui/profile/profilewidget2.h
parentfe1df6b1cc171a6b9a08de20a1eacf4b02c89191 (diff)
downloadsubsurface-27afb338062784bb4b1de16c5a468f5208f3891b.tar.gz
Move two necessary functions for the Planner behavior to the Profile code.
Those two functions are important and necessary for the Planner, they create and remove the little balls that act as handlers so the profile can be edited with the mouse. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/profilewidget2.h')
-rw-r--r--qt-ui/profile/profilewidget2.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/qt-ui/profile/profilewidget2.h b/qt-ui/profile/profilewidget2.h
index 1ba6e5723..46c1ee0b6 100644
--- a/qt-ui/profile/profilewidget2.h
+++ b/qt-ui/profile/profilewidget2.h
@@ -40,6 +40,9 @@ class DiveCalculatedTissue;
class PartialPressureGasItem;
class PartialGasPressureAxis;
class AbstractProfilePolygonItem;
+class DiveHandler;
+class QGraphicsSimpleTextItem;
+class QModelIndex;
class ProfileWidget2 : public QGraphicsView {
Q_OBJECT
@@ -85,6 +88,8 @@ slots: // Necessary to call from QAction's signals.
void removeEvent();
void editName();
void makeFirstDC();
+ void pointInserted(const QModelIndex &parent, int start, int end);
+ void pointsRemoved(const QModelIndex &, int start, int end);
protected:
virtual void resizeEvent(QResizeEvent *event);
@@ -100,7 +105,6 @@ private: /*methods*/
void setupItemSizes();
void addItemsToScene();
void setupItemOnScene();
-
private:
DivePlotDataModel *dataModel;
int zoomLevel;
@@ -135,6 +139,10 @@ private:
RulerItem2 *rulerItem;
bool isGrayscale;
bool printMode;
+
+ //specifics for ADD and PLAN
+ QList<DiveHandler *> handles;
+ QList<QGraphicsSimpleTextItem *> gases;
};
#endif // PROFILEWIDGET2_H