diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-11-16 21:35:26 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-09 12:41:57 -0700 |
commit | 93bdaa9bb5be80115dc80af569a2c64e0136c5f5 (patch) | |
tree | 816d4a03387d211d65b5003d022b8298e87ec0d2 /commands/command.h | |
parent | 89047b3541618383ab5b39eeadff7dfcb60e1295 (diff) | |
download | subsurface-93bdaa9bb5be80115dc80af569a2c64e0136c5f5.tar.gz |
undo: implement ApplyGPSFixes undo command
This gets a list of dives with GPS fixes and
1) Adds new dive sites if the dive hasn't a dive site set
2) Edits the location of the dive site
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'commands/command.h')
-rw-r--r-- | commands/command.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/commands/command.h b/commands/command.h index 7a8ea81b0..281c1635c 100644 --- a/commands/command.h +++ b/commands/command.h @@ -5,6 +5,9 @@ #include "core/dive.h" #include <QVector> #include <QAction> +#include <vector> + +struct DiveAndLocation; // We put everything in a namespace, so that we can shorten names without polluting the global namespace namespace Command { @@ -41,6 +44,7 @@ void splitDiveComputer(dive *d, int dc_num); void moveDiveComputerToFront(dive *d, int dc_num); void deleteDiveComputer(dive *d, int dc_num); void mergeDives(const QVector <dive *> &dives); +void applyGPSFixes(const std::vector<DiveAndLocation> &fixes); // 3) Dive-site related commands |