diff layer/TimeRulerLayer.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
line wrap: on
line diff
--- a/layer/TimeRulerLayer.h	Thu Oct 17 10:26:21 2019 +0100
+++ b/layer/TimeRulerLayer.h	Thu Oct 17 11:12:54 2019 +0100
@@ -41,7 +41,8 @@
     void setLabelHeight(LabelHeight h) { m_labelHeight = h; }
     LabelHeight getLabelHeight() const { return m_labelHeight; }
 
-    bool snapToFeatureFrame(LayerGeometryProvider *, sv_frame_t &, int &, SnapType) const override;
+    bool snapToFeatureFrame(LayerGeometryProvider *, sv_frame_t &, int &,
+                            SnapType, int) const override;
 
     ColourSignificance getLayerColourSignificance() const override {
         return ColourIrrelevant;