mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 19:41:30 +00:00
43b0ccca3e
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>
21 lines
521 B
C++
21 lines
521 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
// Functions and data structures handling dive selections.
|
|
|
|
#ifndef STATS_SELECTION_H
|
|
#define STATS_SELECTION_H
|
|
|
|
#include <vector>
|
|
|
|
struct dive;
|
|
|
|
struct SelectionModifier {
|
|
unsigned int ctrl : 1;
|
|
unsigned int shift : 1;
|
|
// Note: default member initializers for bit-fields becomes available with C++20.
|
|
// Therefore, for now an inline constructor.
|
|
SelectionModifier() : ctrl(0), shift(0) {}
|
|
};
|
|
|
|
void processSelection(std::vector<dive *> dives, SelectionModifier modifier);
|
|
|
|
#endif
|