diff options
author | 2020-02-23 11:43:50 +0100 | |
---|---|---|
committer | 2020-04-07 00:13:34 +0200 | |
commit | aa7b0cadb2f737e65d490f4ad026f5df09a394f0 (patch) | |
tree | 8dae2a4a9a002e2e3e7d82e420de62e84d0c8020 /commands/command.h | |
parent | 36754d3399dab9155fac50e9451dcd325c7c73c0 (diff) | |
download | subsurface-aa7b0cadb2f737e65d490f4ad026f5df09a394f0.tar.gz |
undo: add cylinder undo commands by copy & paste
Do a simple copy & paste followed by a simple search & replace
to generate cylinder undo commands from weight undo commands.
Obviously, this is still missing the necessary code to keep
the dive-data consistent after cylinder editing.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'commands/command.h')
-rw-r--r-- | commands/command.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/command.h b/commands/command.h index e19d093cb..b8024c03d 100644 --- a/commands/command.h +++ b/commands/command.h @@ -90,6 +90,9 @@ void editProfile(dive *d); // dive computer(s) and cylinder(s) will be reset! int addWeight(bool currentDiveOnly); int removeWeight(int index, bool currentDiveOnly); int editWeight(int index, weightsystem_t ws, bool currentDiveOnly); +int addCylinder(bool currentDiveOnly); +int removeCylinder(int index, bool currentDiveOnly); +int editCylinder(int index, cylinder_t cyl, bool currentDiveOnly); #ifdef SUBSURFACE_MOBILE // Edits a dive and creates a divesite (if createDs != NULL) or edits a divesite (if changeDs != NULL). // Takes ownership of newDive and createDs! |