subsurface/stats
Berthold Stoeger 9f455b1457 selection: move current dive and divecomputer to selection.cpp
This tries to encapsulate the management of the current dive and
divecomputer in the selection code. The current dive is alreay
set by setSelection(). Add a new parameter to also set the
current divecomputer. If -1 is passed, then the current
computer number is remained. This will allow us to audit the code.
Because for now, the whole "current dive computer" thing seems
to be ill-defined.

This fixes a bug: the dive-computer number wasn't validated
when making a new dive the current dive. The new code has some
drawbacks though: when selecting a whole trip, the validation
will be called for all dives in the trip and thus the dive computer
number will depend on the dive with the lowest amount of dive
computers in the trip. This will need to be fixed.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2023-04-16 20:23:59 +02:00
..
barseries.cpp statistics: make fonts themeable 2022-03-16 15:26:54 -07:00
barseries.h statistics: collect colors in a StatsTheme class 2022-03-16 15:26:54 -07:00
boxseries.cpp statistics: collect colors in a StatsTheme class 2022-03-16 15:26:54 -07:00
boxseries.h statistics: collect colors in a StatsTheme class 2022-03-16 15:26:54 -07:00
chartitem.cpp statistics: don't use DrawTriangleFan and DrawLineLoop modes 2022-11-19 15:07:07 -08:00
chartitem.h statistics: properly initialized selected scatter items 2022-10-19 14:35:15 -07:00
chartlistmodel.cpp statistics: add count property to chart list 2021-01-13 11:39:36 -08:00
chartlistmodel.h cleanup: remove 'const constexpr' pairs 2021-12-17 10:36:13 -08:00
CMakeLists.txt statistics: make selection keyboard modifiers more general 2021-02-13 13:02:54 -08:00
histogrammarker.cpp statistics: convert HistogramMarkers to QSGNodes 2021-01-20 08:47:18 +01:00
histogrammarker.h statistics: convert HistogramMarkers to QSGNodes 2021-01-20 08:47:18 +01:00
informationbox.cpp statistics: make fonts themeable 2022-03-16 15:26:54 -07:00
informationbox.h statistics: make fonts themeable 2022-03-16 15:26:54 -07:00
legend.cpp statistics: make fonts themeable 2022-03-16 15:26:54 -07:00
legend.h statistics: make fonts themeable 2022-03-16 15:26:54 -07:00
pieseries.cpp statistics: make fonts themeable 2022-03-16 15:26:54 -07:00
pieseries.h statistics: collect colors in a StatsTheme class 2022-03-16 15:26:54 -07:00
quartilemarker.cpp statistics: collect colors in a StatsTheme class 2022-03-16 15:26:54 -07:00
quartilemarker.h statistics: convert QuartileMarkers to QSGNodes 2021-01-20 08:47:18 +01:00
regressionitem.cpp statistics: collect colors in a StatsTheme class 2022-03-16 15:26:54 -07:00
regressionitem.h statistics: collect colors in a StatsTheme class 2022-03-16 15:26:54 -07:00
scatterseries.cpp selection: move current dive and divecomputer to selection.cpp 2023-04-16 20:23:59 +02:00
scatterseries.h statistics: make selection keyboard modifiers more general 2021-02-13 13:02:54 -08:00
statsaxis.cpp statistics: fix zero-range on value axis 2022-11-19 15:06:22 -08:00
statsaxis.h statistics: make fonts themeable 2022-03-16 15:26:54 -07:00
statscolors.cpp statistics: make fonts themeable 2022-03-16 15:26:54 -07:00
statscolors.h statistics: make fonts themeable 2022-03-16 15:26:54 -07:00
statsgrid.cpp statistics: collect colors in a StatsTheme class 2022-03-16 15:26:54 -07:00
statsgrid.h statistics: collect colors in a StatsTheme class 2022-03-16 15:26:54 -07:00
statshelper.cpp statistics: highlight selected boxes in box plot 2021-02-13 13:02:54 -08:00
statshelper.h Qt6: fully define dive structure 2022-03-12 08:28:32 -08:00
statsicons.qrc mobile/statistics: make icons available in mobile app 2021-01-19 12:35:29 -08:00
statsselection.cpp selection: move current dive and divecomputer to selection.cpp 2023-04-16 20:23:59 +02:00
statsselection.h statistics: support ctrl-selection for all series 2021-02-13 13:02:54 -08:00
statsseries.cpp statistics: collect colors in a StatsTheme class 2022-03-16 15:26:54 -07:00
statsseries.h statistics: collect colors in a StatsTheme class 2022-03-16 15:26:54 -07:00
statsstate.cpp statistics: add a sort mode for categorical bar charts 2022-01-04 11:14:24 -08:00
statsstate.h statistics: add a sort mode for categorical bar charts 2022-01-04 11:14:24 -08:00
statstranslations.h statistics: add statistic variables 2021-01-01 21:10:10 +01:00
statsvariables.cpp core: introduce divelog structure 2023-04-14 21:20:23 +02:00
statsvariables.h statistics: save dive list with quartiles 2021-02-13 13:02:54 -08:00
statsview.cpp cleanup: compile fix for latest Xcode 2022-04-27 22:03:37 -07:00
statsview.h statistics: make fonts themeable 2022-03-16 15:26:54 -07:00
zvalues.h statistics: implement rectangle selection in scatter plot 2021-02-13 13:02:54 -08:00