subsurface/qt-ui
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
..
css Fix TableWidget ( equipment ones ) on dark scheme. 2013-12-12 03:26:39 +01:00
marble Resync included header with upstream 2014-01-15 15:49:50 +07:00
profile Avoid overprinting of cylinder presssure labels for CCR dives 2015-01-24 09:48:12 +12:00
statistics Implement the modelDataChanged to repopulate the widget on Statistics 2014-08-25 14:00:38 -07:00
about.cpp Always show the full git version in the about screen 2015-01-01 11:58:04 -08:00
about.h Headers cleanup. 2014-06-26 15:47:02 -07:00
about.ui SubsurfaceAbout class cleanup. 2014-02-08 08:00:27 -08:00
completionmodels.cpp More lists organized alphabetically. 2014-12-12 10:40:42 -08:00
completionmodels.h Put include guard to every header 2014-02-11 12:37:01 -08:00
configuredivecomputerdialog.cpp Add a QProgressDialog to auto-ostc3-firmware 2015-01-21 17:04:52 +12:00
configuredivecomputerdialog.h Whitespace cleanup 2014-12-28 21:02:28 -08:00
configuredivecomputerdialog.ui Use a progressbar in the configure dc dialog 2015-01-21 17:03:18 +12:00
divecomponentselection.ui Selective copy: forgot tags in the UI 2014-08-16 18:35:44 -06:00
divecomputermanagementdialog.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
divecomputermanagementdialog.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
divecomputermanagementdialog.ui divecomputermanagementdilog capitalisation consitency 2014-07-10 16:26:20 -07:00
divelistview.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
divelistview.h Move the Facebook send profile button 2014-12-29 09:05:08 -08:00
divelogexportdialog.cpp Clean up the header files 2015-01-17 23:00:43 +13:00
divelogexportdialog.h Add export for depths of images taken 2014-10-10 08:03:45 -04:00
divelogexportdialog.ui Enable and disable unit selection 2014-12-31 12:12:59 -08:00
divelogimportdialog.cpp Known import fix for XP5 2015-01-24 07:09:29 +12:00
divelogimportdialog.h CSV import: make predefined imports work again 2015-01-07 17:02:42 -08:00
divelogimportdialog.ui CVS import UI: better message if some columns were matched 2015-01-07 12:41:06 -08:00
divepicturewidget.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
divepicturewidget.h Picture handling: cleaning up the mess 2014-08-05 12:37:14 -07:00
diveplanner.cpp Only update the "add dive profile / plan dive" 20x/s 2015-01-19 16:22:08 +12:00
diveplanner.h Only update the "add dive profile / plan dive" 20x/s 2015-01-19 16:22:08 +12:00
diveplanner.ui Support different salinity in planner 2014-11-12 14:42:15 -08:00
diveshareexportdialog.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
diveshareexportdialog.h Export to DiveShare 2014-10-14 20:33:46 +02:00
diveshareexportdialog.ui Two small fixes regarding translation texts 2014-11-10 13:10:50 -08:00
downloadfromdivecomputer.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
downloadfromdivecomputer.h Dive d/l selection UI: clear table when retrying 2015-01-11 07:46:21 -08:00
downloadfromdivecomputer.ui Attempt a better layout for the download dialog 2015-01-13 21:58:28 +13:00
filtermodels.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
filtermodels.h Remove unused DivesFilteredOut variable 2014-11-16 18:39:29 +00:00
filterwidget.ui Add better icons for the filter dialog 2014-12-31 23:53:28 -08:00
globe.cpp Hide the old flag when editing a location on the map 2015-01-19 17:39:31 +12:00
globe.h Don't just change the location when double clicking on the globe 2015-01-19 17:38:17 +12:00
graphicsview-common.cpp CCR option: display o2 sensor data 2015-01-21 17:00:18 +12:00
graphicsview-common.h CCR option: display o2 sensor data 2015-01-21 17:00:18 +12:00
groupedlineedit.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
groupedlineedit.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
kmessagewidget.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
kmessagewidget.h 727 fixed 2014-11-17 06:02:21 +00:00
listfilter.ui Revert "Remove unused strings from ui files" 2014-12-24 10:06:41 -08:00
maintab.cpp While editing the coordinates we need to compare to the displayed_dive 2015-01-19 21:03:42 +12:00
maintab.h Always updated the coordinates from the displayed_dive 2015-01-19 17:17:01 +12:00
maintab.ui Refactor dctype -> divemode 2015-01-10 17:27:25 -08:00
mainwindow.cpp Don't just change the location when double clicking on the globe 2015-01-19 17:38:17 +12:00
mainwindow.h Added the option of opening User Survey form explicitly 2014-12-17 21:38:04 -08:00
mainwindow.ui Fix incorrect name for layout 2015-01-04 07:42:28 -08:00
metrics.cpp Unify icon metrics 2014-10-18 15:16:15 -07:00
metrics.h Unify icon metrics 2014-10-18 15:16:15 -07:00
modeldelegates.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
modeldelegates.h Turn of replotting while the cylinder type combo box is active 2014-12-17 21:33:55 -08:00
models.cpp Minor PSCR fixes 2015-01-17 08:17:29 +13:00
models.h Add the ability to modify the cylinder use in the UI 2014-11-17 14:03:37 +00:00
plannerSettings.ui Rebreather type selector UI 2015-01-10 17:27:24 -08:00
preferences.cpp CCR option: display o2 sensor data 2015-01-21 17:00:18 +12:00
preferences.h Ignore QWebView in Android 2015-01-14 07:49:24 +13:00
preferences.ui CCR option: display o2 sensor data 2015-01-21 17:00:18 +12:00
printdialog.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
printdialog.h Print: add the support to store margins and printer options 2014-11-13 15:05:11 -08:00
printlayout.cpp Fix build: add missing #includes 2015-01-18 21:26:53 +12:00
printlayout.h Print: add the support to store margins and printer options 2014-11-13 15:05:11 -08:00
printoptions.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
printoptions.h Print: add the support to store margins and printer options 2014-11-13 15:05:11 -08:00
printoptions.ui Fix the layout on the Print Dialog 2014-08-04 09:50:55 -07:00
renumber.ui Make some dialogs modal to MainWindow 2014-03-12 10:14:17 -07:00
searchbar.ui Add a horizontal spacer to make the searchbar layout better 2014-07-11 17:00:23 -07:00
setpoint.ui A widget to add a set-point change 2014-12-01 14:19:03 -08:00
shiftimagetimes.ui shifimmagetimes capitalisation consitency and title 2014-07-11 07:05:10 -07:00
shifttimes.ui shiftimes capitalisation consitency and title 2014-07-11 07:05:17 -07:00
simplewidgets.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
simplewidgets.h Changed Facebook stuff to socialnetworks.h/cpp 2014-12-24 15:54:28 -08:00
socialnetworks.cpp Various capitalization fixes 2015-01-05 09:06:35 -08:00
socialnetworks.h Facebook integration: Album name is required 2014-12-29 11:59:21 -08:00
socialnetworksdialog.ui Facebook integration: improve dialog layout 2014-12-29 11:58:38 -08:00
starwidget.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
starwidget.h Unify icon metrics 2014-10-18 15:16:15 -07:00
subsurfacewebservices.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
subsurfacewebservices.h Give Subsurface a distinct User Agent string 2014-07-31 11:20:11 -07:00
tableview.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
tableview.h Fix plus icon position based on the theme 2014-10-18 15:18:38 -07:00
tableview.ui Revert "Remove unused strings from ui files" 2014-12-24 10:06:41 -08:00
tagwidget.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
tagwidget.h 727 fixed 2014-11-17 06:02:21 +00:00
updatemanager.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
updatemanager.h Automatic update check with an opt out 2015-01-01 20:49:24 -08:00
usermanual.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
usermanual.h Use a layout to lay down the search and the help 2014-07-11 16:59:14 -07:00
usersurvey.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
usersurvey.h Better User Agent for Subsurface 2014-08-08 11:13:05 -07:00
usersurvey.ui Make text in user survey follow our capitalization conventions 2015-01-04 07:42:08 -08:00
webservices.ui webservice capitalisation consitency 2014-07-11 07:05:38 -07:00