mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
statistics: implement shift-selection of ranges
For all the series but the scatter series (which supports lasso selection), implement a range-selection using shift. The code is fairly similar for all series and one might think about factoring it out. But why bother? Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
43b0ccca3e
commit
2943b1cbde
6 changed files with 80 additions and 6 deletions
|
@ -82,7 +82,9 @@ private:
|
|||
Index();
|
||||
Index(int bar, int subitem);
|
||||
bool operator==(const Index &i2) const;
|
||||
bool operator<=(const Index &i2) const;
|
||||
};
|
||||
void inc(Index &index);
|
||||
|
||||
// Get item under mouse pointer, or -1 if none
|
||||
Index getItemUnderMouse(const QPointF &f) const;
|
||||
|
@ -135,6 +137,7 @@ private:
|
|||
const StatsVariable *valueVariable; // null: this is count based
|
||||
std::vector<QString> valueBinNames;
|
||||
Index highlighted;
|
||||
Index lastClicked;
|
||||
struct SubItemDesc {
|
||||
double v;
|
||||
std::vector<dive *> dives;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue