subsurface/commands
Michael Keller 2d8e343221 Planner: Improve Gas Handling in CCR Mode.
This has become a bit of a catch-all overhaul of a large portion of the
planner - I started out wanting to improve the CCR mode, but then as I
started pulling all the other threads that needed addressing started to
come with it.

Improve how the gas selection is handled when planning dives in CCR
mode, by making the type (OC / CCR) of segments dependent on the gas use
type that was set for the selected gas.
Add a preference to allow the user to chose to use OC gases as diluent,
in a similar fashion to the original implementation.
Hide gases that cannot be used in the currently selected dive mode in
all drop downs.
Include usage type in gas names if this is needed.
Hide columns and disable elements in the 'Dive planner points' table if
they can they can not be edited in the curently selected dive mode.
Visually identify gases and usage types that are not appropriate for the
currently selected dive mode.
Move the 'Dive mode' selection to the top of the planner view, to
accommodate the fact that this is a property of the dive and not a
planner setting.
Show a warning instead of the dive plan if the plan contains gases that
are not usable in the selected dive mode.
Fix the data entry for the setpoint in the 'Dive planner points' table.
Fix problems with enabling / disabling planner settings when switching
between dive modes.
Refactor some names to make them more appropriate for their current
usage.

One point that is still open is to hide gas usage graphs in the planner
profile if the gas isn't used for OC, as there is no way to meaningfully
interpolate such usage.

Signed-off-by: Michael Keller <github@ike.ch>
2024-08-26 12:36:31 +12:00
..
CMakeLists.txt undo: add device related undo commands 2020-10-25 13:59:04 -07:00
command.cpp code cleanup: use std::move() to potentially void copies 2024-08-18 16:26:31 +02:00
command.h fix copy/paste of dive-site 2024-08-17 23:34:16 +12:00
command_base.cpp core: turn C dive-table into an owning table 2024-08-13 19:28:30 +02:00
command_base.h core: turn dive-trip location and notes into std::string 2024-08-13 19:28:30 +02:00
command_device.cpp core: remove device C access code 2024-08-13 19:28:30 +02:00
command_device.h undo/device: adjust device management infrastructure 2021-08-18 13:22:02 -07:00
command_divelist.cpp core: move number_of_divecomputers to struct dive 2024-08-13 19:28:30 +02:00
command_divelist.h undo: pass dive as unique_ptr to addDive() 2024-08-13 19:28:30 +02:00
command_divesite.cpp core: include divesite table directly in divelog 2024-08-13 19:28:30 +02:00
command_divesite.h core: replace divesite_table_t by a vector of std::unique_ptr<>s 2024-08-13 19:28:30 +02:00
command_edit.cpp Planner: Improve Gas Handling in CCR Mode. 2024-08-26 12:36:31 +12:00
command_edit.h fix copy/paste of dive-site 2024-08-17 23:34:16 +12:00
command_edit_trip.cpp core: turn dive-trip location and notes into std::string 2024-08-13 19:28:30 +02:00
command_edit_trip.h core: turn dive-trip location and notes into std::string 2024-08-13 19:28:30 +02:00
command_event.cpp undo: exit early if no event in RemoveEvent() 2024-08-18 16:26:31 +02:00
command_event.h core: turn event-list of divecomputer into std::vector<> 2024-08-13 19:28:30 +02:00
command_filter.cpp core: remove filterconstraint C boilerplate code 2024-08-13 19:28:30 +02:00
command_filter.h core: port filterpreset.cpp to std::string 2024-03-10 11:01:42 +13:00
command_pictures.cpp core: move divesite_has_gps_information() to struct dive_site 2024-08-13 19:28:30 +02:00
command_pictures.h core: convert taxonomy.c to C++ 2024-08-13 19:28:30 +02:00