subsurface/qt-ui
Robert Helling 9ddef367b5 Improvement for various bits of the planner
Rewrite of the actual planner logic. Now ascend to the next potential stop
depth. There the state is cached and we try to ascend to the next stop
depth. If we hit the ceiling while doing that we go back to the cached
state and wait there for a minute. Then we try again. Then loop.

Converted all depth related variables from unsigned int to int. During
planning, in a time step the current depth can temporarily be negative and
comparisons of a negative int with an unsigned it have not the result I
expected ( (int) -2 < (unsigned int) 3 turns out to be false). And we
don’t really need the 32nd bit that unsigned buys us for depths.

Deco stops are now shown in the same table as manually entered stops in
boldface (I removed the second table to save screen estate).

The gas shown in the table is still misleading as it means the gas used on
the segment leading up to that event.

The update of the profile only works partially upon changes in the list of
available gases.

Treatment of various gases is basically there but needs some more love.

The ascent velocity is now provided by a function that takes the current
depth as argument. Currently it always returns 10m/min but that will later
be variable (and hopefully user configurable).

The profile is not redrawn while deco is computed (avoiding an infinite
recursion).

The table got a new column for the duration of a segment while the old
“duration” column was renamed “Runtime” to reflect what it actually shows.
Currently, only the run time but not the duration are editable.

All deco gases are used from the depth where their pO2 is 1.4bar. This
should become more flexible.

Calculation of the pressure drop in cylinders without configured volumes
is suppressed. This solves a problem with the planner crashing when saving
a dive where not all cylinders had been manually given a volume.

[Short rant break: Treating 0/0 as air bites back at so many places. E.g.
Cylinder data is initialized with memsetting the whole structures to 0.
Then later suddenly this totally unconfigured cylinder is being treated as
it would contain air. Maybe at some point this was a feature. But it lead
to a naughty bug which took me over an hour to resolve. We should
seriously reconsider this choice and better move to 209/0 being air if
changing this everywhere is not too much trouble]

Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-04-17 07:29:44 -07: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 Renaming the prefs struct members to be consistent with the QSettings. 2014-04-16 13:09:55 -07:00
about.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
about.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
about.ui SubsurfaceAbout class cleanup. 2014-02-08 08:00:27 -08:00
completionmodels.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
completionmodels.h Put include guard to every header 2014-02-11 12:37:01 -08:00
divecomputermanagementdialog.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
divecomputermanagementdialog.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
divecomputermanagementdialog.ui Make some dialogs modal to MainWindow 2014-03-12 10:14:17 -07:00
divelistview.cpp Make divelist header corrections Mac specific 2014-04-02 12:44:49 -07:00
divelistview.h Enable posibility to add dives to trip below 2014-03-20 09:40:28 -07:00
divelogimportdialog.cpp Convert other users of showError() to the new world order 2014-03-14 12:36:06 -07:00
divelogimportdialog.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
divelogimportdialog.ui Tune CVS import dialog 2014-02-27 11:44:59 -08:00
diveplanner.cpp Improvement for various bits of the planner 2014-04-17 07:29:44 -07:00
diveplanner.h Improvement for various bits of the planner 2014-04-17 07:29:44 -07:00
diveplanner.ui Improvement for various bits of the planner 2014-04-17 07:29:44 -07:00
downloadfromdivecomputer.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
downloadfromdivecomputer.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
downloadfromdivecomputer.ui Enable libdivecomputer log or dump from the UI 2013-12-24 16:26:00 -08:00
exif.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
exif.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
globe.cpp Introduce NO_MARBLE define, make GlobeGPS a dummy 2014-03-27 10:40:06 -07:00
globe.h Introduce NO_MARBLE define, make GlobeGPS a dummy 2014-03-27 10:40:06 -07:00
graphicsview-common.cpp Make red ceiling work 2014-04-14 22:52:22 -07:00
graphicsview-common.h Make red ceiling work 2014-04-14 22:52:22 -07:00
groupedlineedit.cpp Whitespace cleanup 2014-03-03 13:29:22 -08:00
groupedlineedit.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
kmessagewidget.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
kmessagewidget.h Another small tweak to whitespace tool 2014-03-05 13:02:23 -08:00
maintab.cpp Mark Air/Water temp field red for wrong input. 2014-04-14 05:16:31 -07:00
maintab.h Mark Air/Water temp field red for wrong input. 2014-04-14 05:16:31 -07:00
maintab.ui Expand tags approach to divemaster field 2014-01-19 13:57:40 -08:00
mainwindow.cpp Renaming the prefs struct members to be consistent with the QSettings. 2014-04-16 13:09:55 -07:00
mainwindow.h Feature to show or hide heart rate graph 2014-04-10 09:21:43 -07:00
mainwindow.ui Use Luisa's new icons 2014-04-16 12:10:41 -07:00
modeldelegates.cpp Better handling of keyboard on the inline edition on equipment 2014-03-20 09:49:33 -07:00
modeldelegates.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
models.cpp Improvement for various bits of the planner 2014-04-17 07:29:44 -07:00
models.h Enable parts of planner based on define 2014-03-23 17:24:40 -07:00
preferences.cpp Renaming the prefs struct members to be consistent with the QSettings. 2014-04-16 13:09:55 -07:00
preferences.h Remove some unneeded explicit paths in includes 2014-04-11 07:21:21 -07:00
preferences.ui Add option to save userid in data files 2014-04-14 09:40:30 -07:00
printdialog.cpp UI adjustments in Print Dialog Window 2014-04-16 12:17:49 -07:00
printdialog.h Remove printing when building for Android 2014-03-27 10:42:07 -07:00
printlayout.cpp Print: enable printing with the new profile 2014-03-27 10:58:22 -07:00
printlayout.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
printoptions.cpp Print: adjustments to PrintDialog 2013-11-30 18:56:25 +02:00
printoptions.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
printoptions.ui UI adjustments in Print Dialog Window 2014-04-16 12:17:49 -07:00
renumber.ui Make some dialogs modal to MainWindow 2014-03-12 10:14:17 -07:00
shiftimagetimes.ui Make some dialogs modal to MainWindow 2014-03-12 10:14:17 -07:00
shifttimes.ui Add current time and adjusted time to gui when adjusting dive's timestamp 2014-03-21 21:26:09 -07:00
simplewidgets.cpp Add current time and adjusted time to gui when adjusting dive's timestamp 2014-03-21 21:26:09 -07:00
simplewidgets.h simplewidgets: Include stdint for cross compatability 2014-03-25 11:19:56 -07:00
starwidget.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
starwidget.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
subsurfacewebservices.cpp Add option to save userid in data files 2014-04-14 09:40:30 -07:00
subsurfacewebservices.h Add option to save userid in data files 2014-04-14 09:40:30 -07:00
tableview.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
tableview.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
tableview.ui Remove more unused windowTitle properties 2013-11-29 11:02:15 -08:00
tagwidget.cpp Divemaster and Buddy fields auto-completion are not saved 2014-03-23 17:20:03 -07:00
tagwidget.h Do not copy strings when you don't need it. 2014-03-20 09:47:57 -07:00
updatemanager.cpp Update manager: report Linux separately 2014-04-02 12:55:33 -07:00
updatemanager.h Add "Check for updates" Feature 2014-04-02 12:47:41 -07:00
usermanual.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
usermanual.h Remove usermanual when building for Android 2014-03-27 10:41:52 -07:00
usermanual.ui Close search panel by button click 2014-02-10 07:12:35 -08:00
webservices.ui Add option to save userid in data files 2014-04-14 09:40:30 -07:00