Mercurial > hg > svgui
diff layer/Layer.h @ 1324:13d9b422f7fe zoom
Merge from default branch
author | Chris Cannam |
---|---|
date | Mon, 17 Sep 2018 13:51:31 +0100 |
parents | 1d7921b1852f |
children | 1eb560b363e7 |
line wrap: on
line diff
--- a/layer/Layer.h Mon Dec 12 15:18:52 2016 +0000 +++ b/layer/Layer.h Mon Sep 17 13:51:31 2018 +0100 @@ -51,7 +51,7 @@ */ class Layer : public PropertyContainer, - public XmlExportable + public XmlExportable { Q_OBJECT @@ -61,7 +61,7 @@ virtual const Model *getModel() const = 0; Model *getModel() { - return const_cast<Model *>(const_cast<const Layer *>(this)->getModel()); + return const_cast<Model *>(const_cast<const Layer *>(this)->getModel()); } /** @@ -106,13 +106,13 @@ virtual void setSynchronousPainting(bool /* synchronous */) { } enum VerticalPosition { - PositionTop, PositionMiddle, PositionBottom + PositionTop, PositionMiddle, PositionBottom }; virtual VerticalPosition getPreferredTimeRulerPosition() const { - return PositionMiddle; + return PositionMiddle; } virtual VerticalPosition getPreferredFrameCountPosition() const { - return PositionBottom; + return PositionBottom; } virtual bool hasLightBackground() const { return true; @@ -122,7 +122,7 @@ virtual QString getPropertyContainerName() const { if (m_presentationName != "") return m_presentationName; - else return objectName(); + else return objectName(); } virtual void setPresentationName(QString name); @@ -149,7 +149,7 @@ QPoint now) const; virtual QString getFeatureDescription(LayerGeometryProvider *, QPoint &) const { - return ""; + return ""; } virtual QString getLabelPreceding(sv_frame_t /* frame */) const { @@ -157,10 +157,10 @@ } enum SnapType { - SnapLeft, - SnapRight, - SnapNearest, - SnapNeighbouring + SnapLeft, + SnapRight, + SnapNearest, + SnapNeighbouring }; /** @@ -183,11 +183,11 @@ * the resolution of the model in this layer in sample frames. */ virtual bool snapToFeatureFrame(LayerGeometryProvider * /* v */, - sv_frame_t & /* frame */, - int &resolution, - SnapType /* snap */) const { - resolution = 1; - return false; + sv_frame_t & /* frame */, + int &resolution, + SnapType /* snap */) const { + resolution = 1; + return false; } /** @@ -210,8 +210,8 @@ sv_frame_t & /* source frame */, int &resolution, SnapType /* snap */) const { - resolution = 1; - return false; + resolution = 1; + return false; } // Draw, erase, and edit modes: @@ -626,6 +626,8 @@ void paintMeasurementRect(LayerGeometryProvider *v, QPainter &paint, const MeasureRect &r, bool focus) const; + bool valueExtentsMatchMine(LayerGeometryProvider *v) const; + QString m_presentationName; private: