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>
This commit is contained in:
Maximilian Güntner 2013-09-25 02:39:21 +02:00
parent 248f1b86d1
commit 88172571ca
5 changed files with 209 additions and 1 deletions

View file

@ -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;