mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
64b82b16a2
commit
43b0ccca3e
6 changed files with 72 additions and 56 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue