comparison 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
comparison
equal deleted inserted replaced
1546:ec837d223bd9 1547:e6362cf5ff1d
39 39
40 enum LabelHeight { LabelTop, LabelMiddle, LabelBottom }; 40 enum LabelHeight { LabelTop, LabelMiddle, LabelBottom };
41 void setLabelHeight(LabelHeight h) { m_labelHeight = h; } 41 void setLabelHeight(LabelHeight h) { m_labelHeight = h; }
42 LabelHeight getLabelHeight() const { return m_labelHeight; } 42 LabelHeight getLabelHeight() const { return m_labelHeight; }
43 43
44 bool snapToFeatureFrame(LayerGeometryProvider *, sv_frame_t &, int &, SnapType) const override; 44 bool snapToFeatureFrame(LayerGeometryProvider *, sv_frame_t &, int &,
45 SnapType, int) const override;
45 46
46 ColourSignificance getLayerColourSignificance() const override { 47 ColourSignificance getLayerColourSignificance() const override {
47 return ColourIrrelevant; 48 return ColourIrrelevant;
48 } 49 }
49 50