subsurface/qt-ui/profile
willem ferguson 724a07b7e0 Avoid overprinting of cylinder presssure labels for CCR dives
This patch takes the cylinder pressures of CCR dives and prints them
in a non-overlapping way.

Remaining issue: When the dive profile is made taller by dragging the
window or the appropriate slider far down the screen, the labels move
further apart; similarly, when the profle is made flat/shallow by dragging
the window edge or appropriate slider up, the labels get close to each
other and start to overlap.

There are quite a few lines of additional code going into the patch. This
is primarily because separate provisions for when po2 > p(diluent) or vice
versa. In addition, I could not determine the size of the text characters
which would allow much more precise placement of text. This is because the
.scale member of the text is private and not available in the methods
involved in printing the labels. However, the height of the vertical scale
of the cylinder pressure graph can be determined [e.g. vAxis->maximum()].
This helped a lot to get the positioning of the text more or less correct.

While the results of the patch is not perfect, It contributes
significantly to make the profiles of Poseidon dives more readable.

Signed-off-by: willem ferguson <willemferguson@zoology.up.ac.za>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-01-24 09:48:12 +12:00
..
animationfunctions.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
animationfunctions.h Add a new 'show' Animation, and use it on the close button. 2014-07-30 14:15:09 -07:00
divecartesianaxis.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
divecartesianaxis.h Make the Axis set the changed flag when a new line is set 2014-07-29 15:33:00 -07:00
diveeventitem.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
diveeventitem.h Fix memleak on Pixmap cache 2014-11-14 13:45:54 -08:00
divelineitem.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
divelineitem.h Code cleanup: removed bogus animation functions 2014-07-11 17:01:12 -07:00
divepixmapitem.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
divepixmapitem.h Fix memleak of QGraphicsRectItem 2015-01-17 10:41:07 +13:00
diveplotdatamodel.cpp CCR option: display o2 sensor data 2015-01-21 17:00:18 +12:00
diveplotdatamodel.h CCR option: display o2 sensor data 2015-01-21 17:00:18 +12:00
diveprofileitem.cpp Avoid overprinting of cylinder presssure labels for CCR dives 2015-01-24 09:48:12 +12:00
diveprofileitem.h Avoid overprinting of cylinder presssure labels for CCR dives 2015-01-24 09:48:12 +12:00
diverectitem.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
diverectitem.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
divetextitem.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
divetextitem.h Fix the colors - brush wasn't being set anymore. 2015-01-17 08:54:00 +13:00
divetooltipitem.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
divetooltipitem.h Reduce the refresh rate of the toolTipItem to 25fps. 2015-01-17 08:07:14 +13:00
profilewidget2.cpp Correcly look at all relevant dive computer structures 2015-01-24 07:07:02 +12:00
profilewidget2.h CCR option: display o2 sensor data 2015-01-21 17:00:18 +12:00
ruleritem.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
ruleritem.h Simplify ruler update code. 2014-06-01 15:42:32 -07:00
tankitem.cpp Fix extreme sluggish profile over time 2015-01-19 16:25:13 +12:00
tankitem.h Give oxygen a proper colour in the tankbar 2015-01-05 13:30:47 -08:00