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>
This commit is contained in:
Berthold Stoeger 2021-02-10 12:15:14 +01:00 committed by Dirk Hohndel
parent 64b82b16a2
commit 43b0ccca3e
6 changed files with 72 additions and 56 deletions

View file

@ -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