summaryrefslogtreecommitdiffstats
path: root/stats/statsselection.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-02-10 12:15:14 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-02-13 13:02:54 -0800
commit43b0ccca3e8db081378d0924de257b4185b90464 (patch)
tree1bebf8867bb6515bac6dd7d596c726b6e4729a1d /stats/statsselection.h
parent64b82b16a26bcaa624cc35e775b821e33133bdbb (diff)
downloadsubsurface-43b0ccca3e8db081378d0924de257b4185b90464.tar.gz
statistics: support ctrl-selection for all series
Multiple selection using ctrl was only supported for scatter series. Factor out the corresponding code and use it in all series. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'stats/statsselection.h')
-rw-r--r--stats/statsselection.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/stats/statsselection.h b/stats/statsselection.h
index e3f590466..9e606c533 100644
--- a/stats/statsselection.h
+++ b/stats/statsselection.h
@@ -4,6 +4,10 @@
#ifndef STATS_SELECTION_H
#define STATS_SELECTION_H
+#include <vector>
+
+struct dive;
+
struct SelectionModifier {
unsigned int ctrl : 1;
unsigned int shift : 1;
@@ -12,4 +16,6 @@ struct SelectionModifier {
SelectionModifier() : ctrl(0), shift(0) {}
};
+void processSelection(std::vector<dive *> dives, SelectionModifier modifier);
+
#endif