diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-05-27 09:31:26 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-09-29 16:13:03 -0700 |
commit | 2f5223035a9d43b933b0baf64823dab84b5d8cea (patch) | |
tree | 91a75c82f307076079e247f68f19b04ea0ccc529 /core/subsurface-qt | |
parent | 536fc05dd6acd67a459fe6decbd67071ad388df0 (diff) | |
download | subsurface-2f5223035a9d43b933b0baf64823dab84b5d8cea.tar.gz |
filter: add filter preset undo commands
Add undo commands to add / edit / delete filter presets.
These are styled after the other undo commands: On changes,
the UI is informed by DiveListNotifier signals. Editing is
a simple std::swap of values.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/subsurface-qt')
-rw-r--r-- | core/subsurface-qt/divelistnotifier.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/subsurface-qt/divelistnotifier.h b/core/subsurface-qt/divelistnotifier.h index aa82a4bef..eb44d6cde 100644 --- a/core/subsurface-qt/divelistnotifier.h +++ b/core/subsurface-qt/divelistnotifier.h @@ -125,6 +125,11 @@ signals: void picturesRemoved(dive *d, QVector<QString> filenames); void picturesAdded(dive *d, QVector<PictureObj> pics); + // Filter related signals + void filterPresetAdded(int index); + void filterPresetRemoved(int index); + void filterPresetChanged(int index); + // This signal is emited every time a command is executed. // This is used to hide an old multi-dives-edited warning message. // This is necessary, so that the user can't click on the "undo" button and undo |