summaryrefslogtreecommitdiffstats
path: root/commands/command.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-10-25 07:53:40 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-25 13:59:04 -0700
commitfaebb539091ca5550bb6b60280d692c50d547bc0 (patch)
tree785284eedbc783bfd0f02318c05cabf48712e8ed /commands/command.h
parent572e2678a0c5e1a9c2a947e4a9a86f35cec125eb (diff)
downloadsubsurface-faebb539091ca5550bb6b60280d692c50d547bc0.tar.gz
undo: add device related undo commands
Add commands for deleting devices and editing device nicknames to include the device-handling in the undo system. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'commands/command.h')
-rw-r--r--commands/command.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/commands/command.h b/commands/command.h
index 26340357e..a18fc5dd6 100644
--- a/commands/command.h
+++ b/commands/command.h
@@ -138,7 +138,12 @@ void setPictureOffset(dive *d, const QString &filename, offset_t offset);
void removePictures(const std::vector<PictureListForDeletion> &pictures);
void addPictures(const std::vector<PictureListForAddition> &pictures);
-// 8) Filter commands
+// 8) Device commands
+
+void removeDevice(int idx);
+void editDeviceNickname(int idx, const QString &nickname);
+
+// 9) Filter commands
void createFilterPreset(const QString &name, const FilterData &data);
void removeFilterPreset(int index);