diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-10-25 07:53:40 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-10-25 13:59:04 -0700 |
commit | faebb539091ca5550bb6b60280d692c50d547bc0 (patch) | |
tree | 785284eedbc783bfd0f02318c05cabf48712e8ed /commands/command.h | |
parent | 572e2678a0c5e1a9c2a947e4a9a86f35cec125eb (diff) | |
download | subsurface-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.h | 7 |
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); |