comparison layer/SpectrogramLayer.h @ 1547:e6362cf5ff1d

Pass a y-coord, optionally, to Layer::snapToFeatureFrame. This is necessary for BoxLayer which needs to coordinate its snaps with the box it is highlighting for editing. Then in BoxLayer, merge getPointToDrag and getLocalPoints into a single getLocalPoint and use this throughout.
author Chris Cannam
date Thu, 17 Oct 2019 11:12:54 +0100
parents 4eafe5a1b655
children a0b2f3b4dd2f
comparison
equal deleted inserted replaced
1546:ec837d223bd9 1547:e6362cf5ff1d
76 void paintCrosshairs(LayerGeometryProvider *, QPainter &, QPoint) const override; 76 void paintCrosshairs(LayerGeometryProvider *, QPainter &, QPoint) const override;
77 77
78 QString getFeatureDescription(LayerGeometryProvider *v, QPoint &) const override; 78 QString getFeatureDescription(LayerGeometryProvider *v, QPoint &) const override;
79 79
80 bool snapToFeatureFrame(LayerGeometryProvider *v, sv_frame_t &frame, 80 bool snapToFeatureFrame(LayerGeometryProvider *v, sv_frame_t &frame,
81 int &resolution, 81 int &resolution,
82 SnapType snap) const override; 82 SnapType snap, int ycoord) const override;
83 83
84 void measureDoubleClick(LayerGeometryProvider *, QMouseEvent *) override; 84 void measureDoubleClick(LayerGeometryProvider *, QMouseEvent *) override;
85 85
86 bool hasLightBackground() const override; 86 bool hasLightBackground() const override;
87 87