subsurface/desktop-widgets/tab-widgets
Berthold Stoeger c7e1c40b0e Dive site: sort by distance to current dive
When presenting the list of dive sites on the dive-info tab, sort
the dive sites by distance to the current dive. The idea is that
when the user wants to select a dive site, close dive sites should
be prioritized.

The location of the dive is determined with the dive_get_gps_location()
function introduced in the previous commit. This actual GPS data get
precedence over the currently set dive site for that dive.

On change of dive, the current location is updated in the
DiveLocationFilterProxyModel so that a potentially expensive search
for GPS data is not repeated for every comparison.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2019-05-11 12:35:11 -07:00
..
maintab.cpp Dive site: sort by distance to current dive 2019-05-11 12:35:11 -07:00
maintab.h Map: reload on selection change directly 2019-05-11 12:06:19 -07:00
maintab.ui Cleanup: Move dive-equipment tab into own translation units 2019-04-15 10:30:04 +12:00
TabBase.cpp
TabBase.h
TabDiveEquipment.cpp Cleanup: Move dive-equipment tab into own translation units 2019-04-15 10:30:04 +12:00
TabDiveEquipment.h Cleanup: Move dive-equipment tab into own translation units 2019-04-15 10:30:04 +12:00
TabDiveEquipment.ui Cleanup: Move dive-equipment tab into own translation units 2019-04-15 10:30:04 +12:00
TabDiveExtraInfo.cpp
TabDiveExtraInfo.h
TabDiveExtraInfo.ui Cleanup: Move dive-equipment tab into own translation units 2019-04-15 10:30:04 +12:00
TabDiveInformation.cpp Cleanup: remove redundant string clearing 2019-04-29 12:58:49 -07:00
TabDiveInformation.h Desktop: automatically update dive information tab 2019-04-29 12:58:49 -07:00
TabDiveInformation.ui
TabDivePhotos.cpp Write dive data as video subtitles 2019-04-16 20:38:19 +02:00
TabDivePhotos.h Write dive data as video subtitles 2019-04-16 20:38:19 +02:00
TabDivePhotos.ui
TabDiveSite.cpp Filter: add reference counting for dive-site mode 2019-05-11 12:06:19 -07:00
TabDiveSite.h Filter: add reference counting for dive-site mode 2019-05-11 12:06:19 -07:00
TabDiveSite.ui Dive sites: add fulltext filter 2019-04-12 18:19:07 +03:00
TabDiveStatistics.cpp optimize selectedDivesGasUsed() 2019-04-12 12:59:17 +03:00
TabDiveStatistics.h
TabDiveStatistics.ui