Mercurial > hg > svgui
comparison layer/Colour3DPlotLayer.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 | e540aa5d89cd |
children | 563bab925c9b |
comparison
equal
deleted
inserted
replaced
1546:ec837d223bd9 | 1547:e6362cf5ff1d |
---|---|
62 QString getFeatureDescription(LayerGeometryProvider *v, | 62 QString getFeatureDescription(LayerGeometryProvider *v, |
63 QPoint &) const override; | 63 QPoint &) const override; |
64 | 64 |
65 bool snapToFeatureFrame(LayerGeometryProvider *v, sv_frame_t &frame, | 65 bool snapToFeatureFrame(LayerGeometryProvider *v, sv_frame_t &frame, |
66 int &resolution, | 66 int &resolution, |
67 SnapType snap) const override; | 67 SnapType snap, int ycoord) const override; |
68 | 68 |
69 void setLayerDormant(const LayerGeometryProvider *v, | 69 void setLayerDormant(const LayerGeometryProvider *v, |
70 bool dormant) override; | 70 bool dormant) override; |
71 | 71 |
72 bool isLayerScrollable(const LayerGeometryProvider *v) const override; | 72 bool isLayerScrollable(const LayerGeometryProvider *v) const override; |