statistics: show selected dives in scatter plot

As a visual feedback, show the selected dives in the scatter
plot. React to application-wide selection changes. Currently,
the dive list is deactivated while in statistics mode, but
that may change.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-01-31 20:48:12 +01:00 committed by Dirk Hohndel
parent 5c098eea29
commit d85b321784
9 changed files with 68 additions and 8 deletions

View file

@ -36,6 +36,7 @@ private:
struct Item {
ChartItemPtr<ChartScatterItem> item;
dive *d;
bool selected;
double pos, value;
Item(StatsView &view, ScatterSeries *series, dive *d, double pos, double value);
void updatePosition(ScatterSeries *series);
@ -47,6 +48,7 @@ private:
std::vector<int> highlighted;
const StatsVariable &varX;
const StatsVariable &varY;
void divesSelected(const QVector<dive *> &) override;
};
#endif