Ruler and toolbar for the profile

Maximilian Güntner maximilian.guentner at
Thu Sep 26 11:40:22 UTC 2013


these commits add a ruler and a toolbar to profilegraphics.cpp.
The ruler can be used to analyse parts of the dives (e.g. How much gas
did I use from 10m to 30m and what was my average descent speed?)
It is also a good tool for freedivers to spot the parts of the dive where
they can improve in the future.
The toolbar consists of two buttons which can toggle the ruler
and the scale of the profile (to the actual dive time / to 30 min or more).

Here is an example profile (test13.xml):


The following changes since commit e6be14bf104e608f80c9ef1539ea5c51b92793f9:

  Make the Qt ComboBox behave in a Better Way (2013-09-25 12:48:24 -0700)

are available in the git repository at:

  git at toolbar-ruler

for you to fetch changes up to b6739f9ffd60eb453301a93424946e07ad2faafb:

  correct the placement of  pressure markers (2013-09-26 20:17:56 +0200)

Maximilian Güntner (5):
      plot seconds with a fixed width of 2
      implemented zoom action
      Added a ruler which can be dragged along the profile
      Added a toolbar to the profile
      correct the placement of  pressure markers

 dive.h                    |   4 ++
 icons/ruler.svg           |  91 +++++++++++++++++++++++++++++++++
 icons/scale.svg           |  71 ++++++++++++++++++++++++++
 profile.c                 | 134
 profile.h                 |   2 +
 qt-ui/mainwindow.cpp      |   3 +-
 qt-ui/profilegraphics.cpp | 273
 qt-ui/profilegraphics.h   |  56 +++++++++++++++++++++
 subsurface.qrc            |   2 +
 9 files changed, 625 insertions(+), 11 deletions(-)
 create mode 100644 icons/ruler.svg
 create mode 100644 icons/scale.svg

More information about the subsurface mailing list