subsurface/qt-models
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
..
cleanertablemodel.cpp Cleanup: return directly from data() methods 2019-06-19 13:11:10 -07:00
cleanertablemodel.h CylindersModel: fold CHANGED() macro into setData() 2020-04-07 00:13:35 +02:00
CMakeLists.txt build-system: make map support its own thing 2022-04-18 07:24:38 +02:00
completionmodels.cpp core: turn C dive-table into an owning table 2024-08-13 19:28:30 +02:00
completionmodels.h core: replace dive master by dive guide 2022-02-15 09:35:43 -08:00
cylindermodel.cpp Planner: Improve Gas Handling in CCR Mode. 2024-08-26 12:36:31 +12:00
cylindermodel.h Equipment: Include Unused Tanks in Merge if Preference is Enabled. 2023-07-25 11:19:03 +12:00
divecomputerextradatamodel.cpp core: convert dive computer extra data to C++ 2024-08-13 19:28:30 +02:00
divecomputerextradatamodel.h core: convert dive computer extra data to C++ 2024-08-13 19:28:30 +02:00
diveimportedmodel.cpp core: turn C dive-table into an owning table 2024-08-13 19:28:30 +02:00
diveimportedmodel.h core: move process_import_dives() and related functions to divelog 2024-08-13 19:28:30 +02:00
divelocationmodel.cpp core: move divesite_has_gps_information() to struct dive_site 2024-08-13 19:28:30 +02:00
divelocationmodel.h core: replace divesite_table_t by a vector of std::unique_ptr<>s 2024-08-13 19:28:30 +02:00
divepicturemodel.cpp preferences: use std::string in struct preferences 2024-08-13 19:28:30 +02:00
divepicturemodel.h core: turn picture-table into std::vector<> 2024-08-13 19:28:30 +02:00
diveplannermodel.cpp Planner: Improve Gas Handling in CCR Mode. 2024-08-26 12:36:31 +12:00
diveplannermodel.h Planner: Improve Gas Handling in CCR Mode. 2024-08-26 12:36:31 +12:00
divesiteimportmodel.cpp core: include divesite table directly in divelog 2024-08-13 19:28:30 +02:00
divesiteimportmodel.h import: initialize DiveSiteImportModel in constructor 2024-08-13 19:28:30 +02:00
divesummarymodel.cpp core: turn C dive-table into an owning table 2024-08-13 19:28:30 +02:00
divesummarymodel.h mobile/summary: add section headers 2020-02-08 10:29:36 -08:00
divetripmodel.cpp core: move get_dive_location()/_country() to struct dive 2024-08-13 19:28:30 +02:00
divetripmodel.h cleanup: remove unused roles in DiveTripModelBase 2024-06-05 09:16:32 +12:00
filterconstraintmodel.cpp filter: add filter constraint model 2020-09-29 16:13:03 -07:00
filterconstraintmodel.h filter: add filter constraint model 2020-09-29 16:13:03 -07:00
filtermodels.cpp selection: rename selectionChanged() to divesSelected() 2023-04-16 20:23:59 +02:00
filtermodels.h selection: move current dc logic to profile widget 2023-04-16 20:23:59 +02:00
filterpresetmodel.cpp core: remove filterconstraint C boilerplate code 2024-08-13 19:28:30 +02:00
filterpresetmodel.h filter: connect DiveListNotifier signals to filter preset model 2020-09-29 16:13:03 -07:00
maplocationmodel.cpp core: move divesite_has_gps_information() to struct dive_site 2024-08-13 19:28:30 +02:00
maplocationmodel.h map: use value semantics for MapLocation 2024-08-13 19:28:30 +02:00
messagehandlermodel.cpp core: replace SSRF_INFO macro by report_info() 2024-03-12 10:31:07 -04:00
messagehandlermodel.h Cleanup: reinstate override modifiers 2018-09-29 15:23:25 -07:00
mobilelistmodel.cpp core: replace dive master by dive guide 2022-02-15 09:35:43 -08:00
mobilelistmodel.h core: replace dive master by dive guide 2022-02-15 09:35:43 -08:00
models.cpp Planner: Improve Gas Handling in CCR Mode. 2024-08-26 12:36:31 +12:00
models.h Planner: Improve Gas Handling in CCR Mode. 2024-08-26 12:36:31 +12:00
tankinfomodel.cpp core: use C++ structures for tanksystem info 2024-08-13 19:28:30 +02:00
tankinfomodel.h desktop: unglobalize ComboBox-models 2024-04-16 08:56:49 +12:00
treemodel.cpp Cleanup: make DiveTripModel a global object 2018-09-01 07:48:43 -07:00
treemodel.h Cleanup: reinstate override modifiers 2018-09-29 15:23:25 -07:00
weightmodel.cpp code cleanup: use std::move() to potentially void copies 2024-08-18 16:26:31 +02:00
weightmodel.h cleanup: replace to "dive.h" includes by more specific includes 2020-05-15 14:19:21 -07:00
weightsysteminfomodel.cpp desktop: reinstate WSInfoModel constructor 2024-08-23 09:03:24 +02:00
weightsysteminfomodel.h desktop: reinstate WSInfoModel constructor 2024-08-23 09:03:24 +02:00
yearlystatisticsmodel.cpp core: C++-ify statistics.c 2024-08-13 19:28:30 +02:00
yearlystatisticsmodel.h Show average max depth in yearly statistics 2018-12-17 12:18:26 +01:00