mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
89047b3541
commit
93bdaa9bb5
4 changed files with 81 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue