summaryrefslogtreecommitdiffstats
path: root/qt-ui/profilegraphics.h
diff options
context:
space:
mode:
authorGravatar Maximilian Güntner <maximilian.guentner@gmail.com>2013-09-25 02:39:21 +0200
committerGravatar Maximilian Güntner <maximilian.guentner@gmail.com>2013-09-27 18:45:04 +0200
commit88172571ca3105fcccf6f7a23a0c60fb0f078e0e (patch)
treebca7ea4c372b05cef6cfe79b8cdad951aeb5c5dd /qt-ui/profilegraphics.h
parent248f1b86d15b63fe5774667f8408e2abbd5f9504 (diff)
downloadsubsurface-88172571ca3105fcccf6f7a23a0c60fb0f078e0e.tar.gz
Added a toolbar to the profile
The toolbar adds two buttons to the profile. The user can now toggle the scaling (zoomed to dive/round up to 30 mins) and adding /removing ruler to/from the profile using this toolbar. Signed-off-by: Maximilian Güntner <maximilian.guentner@gmail.com>
Diffstat (limited to 'qt-ui/profilegraphics.h')
-rw-r--r--qt-ui/profilegraphics.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-ui/profilegraphics.h b/qt-ui/profilegraphics.h
index deb729023..7cbc53e15 100644
--- a/qt-ui/profilegraphics.h
+++ b/qt-ui/profilegraphics.h
@@ -149,6 +149,8 @@ protected:
public slots:
void refresh();
void edit_dive_time(const QString& time);
+ void on_rulerAction();
+ void on_scaleAction();
private:
void plot_depth_profile();
@@ -171,6 +173,9 @@ private:
void plot_pp_text();
void plot_depth_scale();
+
+ void addControlItems();
+
void create_ruler();
void add_ruler();
void remove_ruler();
@@ -197,6 +202,7 @@ private:
QGraphicsItem* depthMarkers;
QGraphicsItem* diveComputer;
RulerItem *rulerItem;
+ QGraphicsProxyWidget *toolBarProxy;
// For 'Plan' mode.:
GraphicsTextEditor *depthEditor;