From 937fdb500b94244b2da0d72776d939e78a56fa33 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 26 May 2020 18:32:52 +0200 Subject: filter: add primitive filter presets Add a rudimentary list of filter presets to the core. The list is sorted by name. Access is provided via a C interface so that the presets can be written to the git and XML logs. Internally, the list is realized by a C++ vector for convenience (euphemism for laziness). Morover, a C++ interface is provided for the UI. Currently names of the presets cannot be edited, since this would mean that the order of the list changes. This may be implemented later if required. Signed-off-by: Berthold Stoeger --- packaging/ios/Subsurface-mobile.pro | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packaging') diff --git a/packaging/ios/Subsurface-mobile.pro b/packaging/ios/Subsurface-mobile.pro index fb915a56b..a34e4ad4b 100644 --- a/packaging/ios/Subsurface-mobile.pro +++ b/packaging/ios/Subsurface-mobile.pro @@ -55,6 +55,7 @@ SOURCES += ../../subsurface-mobile-main.cpp \ ../../core/dive.c \ ../../core/divefilter.cpp \ ../../core/filterconstraint.cpp \ + ../../core/filterpreset.cpp \ ../../core/divelist.c \ ../../core/gas-model.c \ ../../core/gaspressures.c \ @@ -220,6 +221,7 @@ HEADERS += \ ../../core/display.h \ ../../core/divefilter.h \ ../../core/filterconstraint.h \ + ../../core/filterpreset.h \ ../../core/divelist.h \ ../../core/divelogexportlogic.h \ ../../core/divesitehelpers.h \ -- cgit v1.2.3-70-g09d2