subsurface/desktop-widgets/tab-widgets
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
..
maintab.cpp core: move get_dive_dc() to struct dive 2024-08-13 19:28:30 +02:00
maintab.h selection: remove current_dive and dc_number access from tabwidgets 2023-04-16 20:23:59 +02:00
TabBase.cpp desktop: store pointer to parent in tab-widgets 2023-04-16 20:23:59 +02:00
TabBase.h desktop: store pointer to parent in tab-widgets 2023-04-16 20:23:59 +02:00
TabDiveEquipment.cpp Planner: Improve Gas Handling in CCR Mode. 2024-08-26 12:36:31 +12:00
TabDiveEquipment.h tab-widgets: make delegates subobject 2023-04-16 20:23:59 +02:00
TabDiveEquipment.ui desktop: generalize the colorization of the tab widget 2020-11-03 23:08:39 -08:00
TabDiveExtraInfo.cpp core: move get_dive_dc() to struct dive 2024-08-13 19:28:30 +02:00
TabDiveExtraInfo.h desktop: store pointer to parent in tab-widgets 2023-04-16 20:23:59 +02:00
TabDiveExtraInfo.ui Cleanup: Move dive-equipment tab into own translation units 2019-04-15 10:30:04 +12:00
TabDiveInformation.cpp core: move gasname() to struct gasmix 2024-08-13 19:28:30 +02:00
TabDiveInformation.h Fix salinity combo/icon when DC doesnt have salinity info 2023-07-09 20:36:46 +12:00
TabDiveInformation.ui desktop: generalize the colorization of the tab widget 2020-11-03 23:08:39 -08:00
TabDiveNotes.cpp preferences: use std::string in struct preferences 2024-08-13 19:28:30 +02:00
TabDiveNotes.h desktop: store pointer to parent in tab-widgets 2023-04-16 20:23:59 +02:00
TabDiveNotes.ui cleanup: break out the dive-notes tab 2022-03-12 18:33:32 +01:00
TabDivePhotos.cpp desktop: use std::string to format subtitles 2024-08-13 19:28:30 +02:00
TabDivePhotos.h desktop: store pointer to parent in tab-widgets 2023-04-16 20:23:59 +02:00
TabDivePhotos.ui Implement different zoom levels for dive photos tab 2017-12-18 12:07:10 -08:00
TabDiveStatistics.cpp core: turn divecomputer list into std::vector<> 2024-08-13 19:28:30 +02:00
TabDiveStatistics.h desktop: store pointer to parent in tab-widgets 2023-04-16 20:23:59 +02:00
TabDiveStatistics.ui Reorganise the current statistics tab 2020-11-04 11:34:26 -08:00