Mercurial > hg > svgui
diff layer/TimeValueLayer.h @ 1486:ac0a8addabcf
Merge from branch by-id
author | Chris Cannam |
---|---|
date | Wed, 17 Jul 2019 14:25:16 +0100 |
parents | 696e569ff21b |
children | e6362cf5ff1d |
line wrap: on
line diff
--- a/layer/TimeValueLayer.h Thu Jun 13 15:35:01 2019 +0100 +++ b/layer/TimeValueLayer.h Wed Jul 17 14:25:16 2019 +0100 @@ -74,8 +74,8 @@ bool paste(LayerGeometryProvider *v, const Clipboard &from, sv_frame_t frameOffset, bool interactive) override; - const Model *getModel() const override { return m_model; } - void setModel(SparseTimeValueModel *model); + ModelId getModel() const override { return m_model; } + void setModel(ModelId model); // a SparseTimeValueModel PropertyList getProperties() const override; QString getPropertyLabel(const PropertyName &) const override; @@ -124,11 +124,9 @@ bool isLayerEditable() const override { return true; } - int getCompletion(LayerGeometryProvider *) const override { return m_model->getCompletion(); } + int getCompletion(LayerGeometryProvider *) const override; - bool needsTextLabelHeight() const override { - return m_plotStyle == PlotSegmentation && m_model->hasTextLabels(); - } + bool needsTextLabelHeight() const override; bool getValueExtents(double &min, double &max, bool &logarithmic, QString &unit) const override; @@ -178,7 +176,7 @@ int getDefaultColourHint(bool dark, bool &impose) override; - SparseTimeValueModel *m_model; + ModelId m_model; bool m_editing; Event m_originalPoint; Event m_editingPoint;