subsurface/qt-ui
Linus Torvalds 3aaf8b1f5a Make gas use statistics be coherent and more complete
The gas use logic in the dive statistics page is confused.

The SAC case had a special case for "unknown", but only for
the first gas. Other gases had the normal empty case.

Also, the logic was really odd - if you had gases that weren't used (or
pressures not known) intermixed with gases you *did* have pressure for,
the statistics got really confused.

The list of gases showed all gases that we know about during the dive,
but then the gas use and SAC-rate lists wouldn't necessarily match,
because the loops that computed those stopped after the first gas that
didn't have any pressure change.

To make things worse, the first cylinder was special-cased again, so it
all lined up for the single-cylinder case.

This makes all the cylinders act the same way, leaving unknown gas use
(and thus SAC) just empty for that gas.

It also fixes the SAC calculation case where we don't have real samples,
and the profile is a fake profile - possibly with gas changes in between
the fake points. We now make the SAC calculations match what we show -
which is admittedly not at all necessarily what the dive was, but at
least we're consistent.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-08-06 09:14:34 -07:00
..
css
marble
profile Don't zoom the profile when the left button is pressed 2014-08-06 06:21:24 -07:00
about.cpp
about.h Headers cleanup. 2014-06-26 15:47:02 -07:00
about.ui
completionmodels.cpp
completionmodels.h
divecomputermanagementdialog.cpp
divecomputermanagementdialog.h
divecomputermanagementdialog.ui
divelistview.cpp Do not recreate all the dive just because a picture was added. 2014-08-04 10:38:00 -07:00
divelistview.h Fix crash when trying to add a dive or plan when a filter is active. 2014-06-26 15:49:19 -07:00
divelogexportdialog.cpp HTML: export yearly statistics to JSON files. 2014-08-04 10:03:12 -07:00
divelogexportdialog.h HTML: export yearly statistics to JSON files. 2014-08-04 10:03:12 -07:00
divelogexportdialog.ui
divelogimportdialog.cpp
divelogimportdialog.h
divelogimportdialog.ui
divepicturewidget.cpp Picture handling: cleaning up the mess 2014-08-05 12:37:14 -07:00
divepicturewidget.h Picture handling: cleaning up the mess 2014-08-05 12:37:14 -07:00
diveplanner.cpp Don't recalculate plan automatically with low GFHigh 2014-08-05 08:06:17 -07:00
diveplanner.h Don't recalculate plan automatically with low GFHigh 2014-08-05 08:06:17 -07:00
diveplanner.ui
downloadfromdivecomputer.cpp
downloadfromdivecomputer.h
downloadfromdivecomputer.ui
globe.cpp Correctly remove the Close button from most message widgets 2014-08-04 22:45:17 -07:00
globe.h
graphicsview-common.cpp
graphicsview-common.h
groupedlineedit.cpp C++ Correctness and code cleanup. 2014-07-29 09:38:10 -07:00
groupedlineedit.h
kmessagewidget.cpp Correctly remove the Close button from most message widgets 2014-08-04 22:45:17 -07:00
kmessagewidget.h
maintab.cpp Make gas use statistics be coherent and more complete 2014-08-06 09:14:34 -07:00
maintab.h Maintab: fix trip location / notes editing 2014-07-30 08:52:11 -07:00
maintab.ui Fix time zone conversions 2014-07-29 13:01:46 -07:00
mainwindow.cpp Disable the Toolbox when in edit mode. 2014-08-04 09:48:35 -07:00
mainwindow.h Disable the Toolbox when in edit mode. 2014-08-04 09:48:35 -07:00
mainwindow.ui
modeldelegates.cpp
modeldelegates.h
models.cpp Don't show a SAC of 0.0l/min (or cuft/min) 2014-08-06 07:39:19 -07:00
models.h
plannerSettings.ui Fix unresizable DiveList 2014-08-04 09:49:51 -07:00
preferences.cpp
preferences.h
preferences.ui Don't make the preferences dialog so huge 2014-08-06 07:51:12 -07:00
printdialog.cpp Printing: only give up if no size is available 2014-08-05 10:01:38 -07:00
printdialog.h Printing: only give up if no size is available 2014-08-05 10:01:38 -07:00
printlayout.cpp Print: rename the variable 'isHeading' to 'newHeading' 2014-08-05 12:49:35 -07:00
printlayout.h PrintLayout: disable the QPainter scaling 2014-07-24 21:06:19 -07:00
printoptions.cpp Printing: add 1 dive per page option 2014-07-24 11:33:28 -07:00
printoptions.h Printing: add 1 dive per page option 2014-07-24 11:33:28 -07:00
printoptions.ui Fix the layout on the Print Dialog 2014-08-04 09:50:55 -07:00
renumber.ui
searchbar.ui
shiftimagetimes.ui
shifttimes.ui
simplewidgets.cpp
simplewidgets.h
starwidget.cpp
starwidget.h
subsurfacewebservices.cpp Web: use subsurface_fopen() for non-ASCII paths on Win32 2014-08-05 07:42:51 -07:00
subsurfacewebservices.h Give Subsurface a distinct User Agent string 2014-07-31 11:20:11 -07:00
tableview.cpp Misc UI capitalisation consitencies and other text changes 2014-07-11 10:44:09 -07:00
tableview.h
tableview.ui Remove more unused windowTitle properties 2013-11-29 11:02:15 -08:00
tagwidget.cpp
tagwidget.h
updatemanager.cpp Give Subsurface a distinct User Agent string 2014-07-31 11:20:11 -07:00
updatemanager.h
usermanual.cpp
usermanual.h
usersurvey.cpp Give Subsurface a distinct User Agent string 2014-07-31 11:20:11 -07:00
usersurvey.h Give Subsurface a distinct User Agent string 2014-07-31 11:20:11 -07:00
usersurvey.ui
webservices.ui webservice capitalisation consitency 2014-07-11 07:05:38 -07:00