Ruler and toolbar for the profile

Lubomir I. Ivanov neolit123 at gmail.com
Fri Sep 27 05:08:29 UTC 2013


cont'd.
- also, it may be best to move the ruler graphics (lines + text) on
top of all other elements (z order).

lubomir
--

On 27 September 2013 15:05, Lubomir I. Ivanov <neolit123 at gmail.com> wrote:
> On 26 September 2013 21:40, Maximilian Güntner
> <maximilian.guentner at gmail.com> wrote:
>> Hi,
>>
>> 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): http://i.imgur.com/H5lQzPx.png
>>
>
> hello,
>
> i gave this a quick try and i like the idea from the UX perspective.
> a ruler on any graph can be useful.
>
> here are some observations and suggestions:
> - if the ruler is enabled then perhaps the toolTip (info panel) should
> not be. the problem here is that the first control point of the ruler
> lies under the tooltip and cannot be accessed. i think the ruler
> toggle should switch the toolTip on/off.
>
> - the ruler text perhaps should scale proportionally instead of
> attempting to fit the text into the provided rectangle (using
> drawText()). then if an area is way too small the user can use the
> scroll wheel to zoom in and read the ruler text. the alternative to
> that is to not put text inside the ruler, but outside of it, for
> example at the bottom of the profile left from the toolbar. i was
> going to suggest to place the ruler text in the toolTip, but there is
> a problem with this solution (1.). without text readability the ruler
> is not useful for small distances.
>
> - there is a printMode flag which should be respected, as it controls
> the visibility of some profile elements when printing. the toolbar and
> ruler should not be visible for printMode == true.
>
> lubomir
> --


More information about the subsurface mailing list