summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/command.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-02-24 21:22:33 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-12 18:19:07 +0300
commitd7d408a99e7459ec1a5fc2d9953e72924054b834 (patch)
tree2f283ef63c4e5c0352b648374f99043530b4520c /desktop-widgets/command.h
parent9fd87fa08081116ba12812ddea0a43be61019cbb (diff)
downloadsubsurface-d7d408a99e7459ec1a5fc2d9953e72924054b834.tar.gz
Undo: implement undo of dive trip editing
This is copying the dive editing code. It uses an OO design with virtual functions for getting and setting the values. It doesn't use templates though, as both fields of strig type. This feels a bit over-engineered, but it is 1) consistent with the dive edit code and 2) the number / types of dive trip fields might increase. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/command.h')
-rw-r--r--desktop-widgets/command.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop-widgets/command.h b/desktop-widgets/command.h
index 6cfd7fc4e..627e5360d 100644
--- a/desktop-widgets/command.h
+++ b/desktop-widgets/command.h
@@ -68,6 +68,10 @@ void editBuddies(const QStringList &newList, bool currentDiveOnly);
void editDiveMaster(const QStringList &newList, bool currentDiveOnly);
void pasteDives(const dive *d, dive_components what);
+// 4) Trip editing commands
+void editTripLocation(dive_trip *trip, const QString &s);
+void editTripNotes(dive_trip *trip, const QString &s);
+
} // namespace Command
#endif // COMMAND_H