Mercurial > hg > svgui
diff layer/TimeInstantLayer.h @ 1470:696e569ff21b by-id
Further layer updates for ById
author | Chris Cannam |
---|---|
date | Fri, 28 Jun 2019 17:37:22 +0100 |
parents | 9abddbd57667 |
children | e6362cf5ff1d |
line wrap: on
line diff
--- a/layer/TimeInstantLayer.h Thu Jun 27 13:16:25 2019 +0100 +++ b/layer/TimeInstantLayer.h Fri Jun 28 17:37:22 2019 +0100 @@ -64,8 +64,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(SparseOneDimensionalModel *model); + ModelId getModel() const override { return m_model; } + void setModel(ModelId model); // a SparseOneDimensionalModel PropertyList getProperties() const override; QString getPropertyLabel(const PropertyName &) const override; @@ -88,9 +88,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_model->hasTextLabels(); } + bool needsTextLabelHeight() const override; bool getValueExtents(double &, double &, bool &, QString &) const override { return false; @@ -118,7 +118,7 @@ bool clipboardAlignmentDiffers(LayerGeometryProvider *v, const Clipboard &) const; - SparseOneDimensionalModel *m_model; + ModelId m_model; bool m_editing; Event m_editingPoint; ChangeEventsCommand *m_editingCommand;