summaryrefslogtreecommitdiffstats
path: root/commands/command.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-11-02 21:19:29 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-05 10:14:25 -0800
commit147a36647ce6148ef2eccbe393faa658d0fe6834 (patch)
tree853ff1272cfdb8859a81a60f886dbf55dbd29bbc /commands/command.h
parent76a5a38f5e8aad339061f534df8130b426079a03 (diff)
downloadsubsurface-147a36647ce6148ef2eccbe393faa658d0fe6834.tar.gz
Undo: make adding of weights an undoable action
Introduce an AddWeight undo command. This is modelled after the numerous dive-edit undo commands. The redo and undo actions are connected to the WeightModel via two new signals, weightAdded and weightRemoved. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'commands/command.h')
-rw-r--r--commands/command.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/command.h b/commands/command.h
index 6446b32fd..85a37534e 100644
--- a/commands/command.h
+++ b/commands/command.h
@@ -81,6 +81,7 @@ 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!
void editProfile(dive *d); // dive computer(s) and cylinder(s) will be reset!
+int addWeight(bool currentDiveOnly);
// 5) Trip editing commands