From 43b0ccca3e8db081378d0924de257b4185b90464 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 10 Feb 2021 12:15:14 +0100 Subject: 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 --- stats/statsselection.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'stats/statsselection.h') 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 + +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 dives, SelectionModifier modifier); + #endif -- cgit v1.2.3-70-g09d2