diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-05-02 14:34:40 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-05-03 15:02:21 -0700 |
commit | 09b7fcbcf4e26d19529486ddd2a0e672e60dce32 (patch) | |
tree | 06df630ace17077474fdec09a43c3aace1aa6d5d /core/selection.h | |
parent | 649b2f2a9ea581e4fbb97a6fd8cc519af880aaf2 (diff) | |
download | subsurface-09b7fcbcf4e26d19529486ddd2a0e672e60dce32.tar.gz |
selection: add selection flag for trips
In analogy to dives add a selection flag for trips. The reason
being that search for a selected trip can be painfully slow when
we do it through Qt's proxy model.
Make sure to deselect trips when they are removed from the core.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/selection.h')
-rw-r--r-- | core/selection.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/selection.h b/core/selection.h index 8fe5707ce..55055de4a 100644 --- a/core/selection.h +++ b/core/selection.h @@ -21,6 +21,8 @@ extern struct dive *last_selected_dive(void); extern bool consecutive_selected(void); extern void select_newest_visible_dive(); extern void select_single_dive(struct dive *d); // wrapper for setSelection() with a single dive. NULL clears the selection. +extern void select_trip(struct dive_trip *trip); +extern void deselect_trip(struct dive_trip *trip); #if DEBUG_SELECTION_TRACKING extern void dump_selection(void); |