Undo: implement ReplanDive command

Implement an undo command that overwrites the dive-computers and
cylinders of the current dive with a given dive. This will be used
when replanning a dive.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-10-06 20:54:25 +02:00 committed by Dirk Hohndel
parent 6a6b992a77
commit 7b730602c6
4 changed files with 96 additions and 1 deletions

View file

@ -75,6 +75,7 @@ int editTags(const QStringList &newList, bool currentDiveOnly);
int editBuddies(const QStringList &newList, bool currentDiveOnly);
int editDiveMaster(const QStringList &newList, bool currentDiveOnly);
void pasteDives(const dive *d, dive_components what);
void replanDive(dive *d); // dive computer(s) and cylinder(s) will be reset!
// 5) Trip editing commands