subsurface/stats
Berthold Stoeger 9c253ee6c5 core: introduce divelog structure
The parser API was very annoying, as a number of tables
to-be-filled were passed in as pointers. The goal of this
commit is to collect all these tables in a single struct.
This should make it (more or less) clear what is actually
written into the divelog files.

Moreover, it should now be rather easy to search for
instances, where the global logfile is accessed (and it
turns out that there are many!).

The divelog struct does not contain the tables as substructs,
but only collects pointers. The idea is that the "divelog.h"
file can be included without all the other files describing
the numerous tables.

To make it easier to use from C++ parts of the code, the
struct implements a constructor and a destructor. Sadly,
we can't use smart pointers, since the pointers are accessed
from C code. Therfore the constructor and destructor are
quite complex.

The whole commit is large, but was mostly an automatic
conversion.

One oddity of note: the divelog structure also contains
the "autogroup" flag, since that is saved in the divelog.
This actually fixes a bug: Before, when importing dives
from a different log, the autogroup flag was overwritten.
This was probably not intended and does not happen anymore.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2023-04-14 21:20:23 +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 statistics: properly initialized selected scatter items 2022-10-19 14:35:15 -07: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 statistics: support ctrl-selection for all series 2021-02-13 13:02:54 -08: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
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