From 8f043138ba34946b477e615a6506067b8cb93c77 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 16 Nov 2019 15:04:36 +0100 Subject: GPS fixes: collect fixes first, apply later Make the application of the GPS fixes in two runs: first collect dives and fixes, then apply the fixes. This will simplify turning the application of GPS fixes into an undo-command. Signed-off-by: Berthold Stoeger --- core/gpslocation.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/gpslocation.h') diff --git a/core/gpslocation.h b/core/gpslocation.h index 0a333947b..88fdb813c 100644 --- a/core/gpslocation.h +++ b/core/gpslocation.h @@ -20,6 +20,12 @@ struct gpsTracker { int idx; }; +struct DiveAndLocation { + struct dive *d; + location_t location; + QString name; +}; + class GpsLocation : public QObject { Q_OBJECT public: -- cgit v1.2.3-70-g09d2