subsurface/core
Berthold Stoeger ee553e059d Filter: move actual filtering loop to core/divefilter.cpp
The DiveFilter class defined the showDive() function to test
whether a dive should be filtered or not. This was used in
DiveTripModel to loop over all dives or all dives affected by
an editing action.

This restricts us in how we do filtering: We can't use indexes
that give us directly the result. To make the filtering more
flexible, move the actual loops that do the filtering to
the DiveFilter class.

The undo-commands likewise called directly the showDive()
function to check whether newly added dives are shown.
Use the new interface here as well.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2020-02-22 15:18:31 -08:00
..
settings Cleanup: remove erroneous comments 2020-02-08 14:00:44 -08:00
subsurface-qt Cleanup: lower-case filenames in core/subsurface-qt/ 2020-02-04 02:16:46 +01:00
android.cpp
applicationstate.cpp
applicationstate.h Turn application state into enum 2019-05-12 12:33:55 -07:00
btdiscovery.cpp Add Cressi BLE name filtering for bluetooth discovery 2020-02-16 12:52:56 -08:00
btdiscovery.h
checkcloudconnection.cpp
checkcloudconnection.h
cloudstorage.cpp
cloudstorage.h get rid of some foreach and Q_FOREACH constructs 2019-04-12 12:59:17 +03:00
CMakeLists.txt Cleanup: lower-case filenames in core/subsurface-qt/ 2020-02-04 02:16:46 +01:00
cochran.c code cleanup: introduce empty_cylinder constant 2020-01-10 02:37:03 +09:00
cochran.h
color.cpp
color.h
compressibility.r
configuredivecomputer.cpp
configuredivecomputer.h
configuredivecomputerthreads.cpp
configuredivecomputerthreads.h
connectionlistmodel.cpp Mobile: reinstate roleNames function in ConnectionListModel 2019-04-16 23:43:14 +12:00
connectionlistmodel.h
datatrak.c code cleanup: introduce empty_cylinder constant 2020-01-10 02:37:03 +09:00
datatrak.h
deco.c
deco.h
device.c
device.h
devicedetails.cpp
devicedetails.h
display.h
dive.c code cleanup: use gasmix_air for zero initialized gas 2020-01-10 02:37:03 +09:00
dive.h Cleanup: remove const bool parameters and return types 2020-02-09 12:13:18 -08:00
divecomputer.cpp
divecomputer.h
divefilter.cpp Filter: move actual filtering loop to core/divefilter.cpp 2020-02-22 15:18:31 -08:00
divefilter.h Filter: move actual filtering loop to core/divefilter.cpp 2020-02-22 15:18:31 -08:00
divelist.c code cleanup: add empty table structures 2020-01-10 02:37:03 +09:00
divelist.h
divelogexportlogic.cpp Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
divelogexportlogic.h
divemode.h
divesite-helper.cpp
divesite.c
divesite.h code cleanup: add empty table structures 2020-01-10 02:37:03 +09:00
divesitehelpers.cpp
divesitehelpers.h
downloadfromdcthread.cpp
downloadfromdcthread.h
equipment.c code cleanup: introduce empty_cylinder constant 2020-01-10 02:37:03 +09:00
equipment.h code cleanup: introduce empty_cylinder constant 2020-01-10 02:37:03 +09:00
errorhelper.c
errorhelper.h
exif.cpp
exif.h
file.c
file.h
format.cpp
format.h
gas-model.c
gas.c
gas.h
gaspressures.c Cylinders: access cylinders with get_cylinder() 2019-11-09 19:19:04 +01:00
gaspressures.h
gettext.h
gettextfromc.cpp
gettextfromc.h
git-access.c
git-access.h
gpslocation.cpp mobile/gps: make sure updated GPS data are saved 2020-02-13 14:01:57 -08:00
gpslocation.h
imagedownloader.cpp code cleanup: consistently initialize zero duration_t 2020-01-10 02:37:03 +09:00
imagedownloader.h
import-cobalt.c
import-csv.c Correcting typos of the word celsius 2020-02-09 12:45:55 -08:00
import-csv.h
import-divinglog.c
import-shearwater.c
import-suunto.c
ios.cpp Cleanup: move file-related function declarations to file.h 2019-08-08 16:26:31 -07:00
libdivecomputer.c code cleanup: introduce empty_cylinder constant 2020-01-10 02:37:03 +09:00
libdivecomputer.h
liquivision.c code cleanup: introduce empty_cylinder constant 2020-01-10 02:37:03 +09:00
load-git.c load-git: fix up any corrupted modechange event names 2020-02-15 10:12:35 +01:00
macos.c
membuffer.c
membuffer.h
metadata.cpp code cleanup: replace created() with birthTime() for Qt >= 5.10 2020-01-10 02:37:03 +09:00
metadata.h
metrics.cpp
metrics.h
ostctools.c Cleanup: clean up resource handling in ostctools.c 2019-10-26 19:17:53 -07:00
parse-gpx.cpp Parse GPX dive coordinates: Qt XML framework 2020-01-25 23:25:33 +02:00
parse-gpx.h core: move GPX parsing into core 2020-01-24 09:51:02 -08:00
parse-xml.c code cleanup: introduce empty_cylinder constant 2020-01-10 02:37:03 +09:00
parse.c Cleanup: introduce empty_weightsystem constant 2019-12-05 10:14:25 -08:00
parse.h
planner.c code cleanup: introduce empty_cylinder constant 2020-01-10 02:37:03 +09:00
planner.h
plannernotes.c
pref.h mobile-widgets: add pure interface for passing values to QML 2020-01-18 17:31:58 -08:00
profile.c
profile.h
qt-ble.cpp Update to new libdivecomputer version 2020-01-27 09:51:31 -08:00
qt-ble.h Update to new libdivecomputer version 2020-01-27 09:51:31 -08:00
qt-gui.h core,tests: change qml register function 2018-09-11 17:22:58 -07:00
qt-init.cpp code cleanup: QLatin1Literal is deprecated in Qt 5.14 2020-01-26 16:49:42 -08:00
qthelper.cpp mobile/summary: implement firstDiveDate and lastDiveDate 2020-02-08 10:29:36 -08:00
qthelper.h mobile/summary: implement firstDiveDate and lastDiveDate 2020-02-08 10:29:36 -08:00
qtserialbluetooth.cpp core/qtserialbluetooth.cpp: use QEventLoop for polling 2020-01-27 09:51:31 -08:00
save-git.c core: read and write the user-specified salinity 2020-01-06 07:00:34 +09:00
save-html.c Cleanup: remove const bool parameters and return types 2020-02-09 12:13:18 -08:00
save-html.h Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
save-profiledata.c Cleanup: remove const bool parameters and return types 2020-02-09 12:13:18 -08:00
save-profiledata.h
save-xml.c Cleanup: remove const bool parameters and return types 2020-02-09 12:13:18 -08:00
selection.cpp Cleanup: lower-case filenames in core/subsurface-qt/ 2020-02-04 02:16:46 +01:00
selection.h
serial_ftdi.c
sha1.c
sha1.h
ssrf.h core: remove LOG_STP from mobile 2019-12-13 07:04:00 -05:00
statistics.c
statistics.h
strndup.h
strtod.c Core: introduce new subsurface-string header 2018-05-14 10:13:39 -07:00
structured_list.h
subsurface-string.h
subsurfacestartup.c
subsurfacestartup.h
subsurfacesysinfo.cpp
subsurfacesysinfo.h
table.h
tag.c Don't expose 'detach_buffer()' to membuffer users 2019-10-27 12:42:54 -07:00
tag.h
taxonomy.c
taxonomy.h
time.c
trip.c
trip.h code cleanup: add empty table structures 2020-01-10 02:37:03 +09:00
uemis-downloader.c
uemis.c
uemis.h Dive site: use pointer instead of uuid in uemis_helper 2018-10-29 00:09:31 +00:00
units.c
units.h mobile-widgets: add pure interface for passing values to QML 2020-01-18 17:31:58 -08:00
unix.c
uploadDiveLogsDE.cpp core: fix incorrect changes in divelogs.de export 2020-02-17 10:50:51 -08:00
uploadDiveLogsDE.h Cleanup: remove const bool parameters and return types 2020-02-09 12:13:18 -08:00
uploadDiveShare.cpp
uploadDiveShare.h
version.c
version.h
videoframeextractor.cpp
videoframeextractor.h
webservice.h
windows.c
windowtitleupdate.cpp
windowtitleupdate.h
worldmap-options.h
worldmap-save.c Cleanup: remove const bool parameters and return types 2020-02-09 12:13:18 -08:00
worldmap-save.h Cleanup: remove const bool parameters and return types 2020-02-09 12:13:18 -08:00
xmp_parser.cpp
xmp_parser.h