comparison layer/NoteLayer.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 696e569ff21b
children e79731086b0f
comparison
equal deleted inserted replaced
1546:ec837d223bd9 1547:e6362cf5ff1d
41 void paintVerticalScale(LayerGeometryProvider *v, bool, QPainter &paint, QRect rect) const override; 41 void paintVerticalScale(LayerGeometryProvider *v, bool, QPainter &paint, QRect rect) const override;
42 42
43 QString getFeatureDescription(LayerGeometryProvider *v, QPoint &) const override; 43 QString getFeatureDescription(LayerGeometryProvider *v, QPoint &) const override;
44 44
45 bool snapToFeatureFrame(LayerGeometryProvider *v, sv_frame_t &frame, 45 bool snapToFeatureFrame(LayerGeometryProvider *v, sv_frame_t &frame,
46 int &resolution, 46 int &resolution,
47 SnapType snap) const override; 47 SnapType snap, int ycoord) const override;
48 48
49 void drawStart(LayerGeometryProvider *v, QMouseEvent *) override; 49 void drawStart(LayerGeometryProvider *v, QMouseEvent *) override;
50 void drawDrag(LayerGeometryProvider *v, QMouseEvent *) override; 50 void drawDrag(LayerGeometryProvider *v, QMouseEvent *) override;
51 void drawEnd(LayerGeometryProvider *v, QMouseEvent *) override; 51 void drawEnd(LayerGeometryProvider *v, QMouseEvent *) override;
52 52