mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
5c098eea29
commit
d85b321784
9 changed files with 68 additions and 8 deletions
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
class StatsAxis;
|
||||
class StatsView;
|
||||
struct dive;
|
||||
|
||||
class StatsSeries {
|
||||
public:
|
||||
|
|
@ -17,6 +18,7 @@ public:
|
|||
virtual bool hover(QPointF pos) = 0; // Called on mouse movement. Return true if an item of this series is highlighted.
|
||||
virtual void unhighlight() = 0; // Unhighlight any highlighted item.
|
||||
virtual void selectItemsUnderMouse(const QPointF &pos) = 0;
|
||||
virtual void divesSelected(const QVector<dive *> &dives);
|
||||
|
||||
protected:
|
||||
StatsView &view;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue