Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
1469:11a150e65ee1 | 1470:696e569ff21b |
---|---|
62 | 62 |
63 void copy(LayerGeometryProvider *v, Selection s, Clipboard &to) override; | 63 void copy(LayerGeometryProvider *v, Selection s, Clipboard &to) override; |
64 bool paste(LayerGeometryProvider *v, const Clipboard &from, sv_frame_t frameOffset, | 64 bool paste(LayerGeometryProvider *v, const Clipboard &from, sv_frame_t frameOffset, |
65 bool interactive) override; | 65 bool interactive) override; |
66 | 66 |
67 const Model *getModel() const override { return m_model; } | 67 ModelId getModel() const override { return m_model; } |
68 void setModel(SparseOneDimensionalModel *model); | 68 void setModel(ModelId model); // a SparseOneDimensionalModel |
69 | 69 |
70 PropertyList getProperties() const override; | 70 PropertyList getProperties() const override; |
71 QString getPropertyLabel(const PropertyName &) const override; | 71 QString getPropertyLabel(const PropertyName &) const override; |
72 PropertyType getPropertyType(const PropertyName &) const override; | 72 PropertyType getPropertyType(const PropertyName &) const override; |
73 int getPropertyRangeAndValue(const PropertyName &, | 73 int getPropertyRangeAndValue(const PropertyName &, |
86 | 86 |
87 bool isLayerScrollable(const LayerGeometryProvider *v) const override; | 87 bool isLayerScrollable(const LayerGeometryProvider *v) const override; |
88 | 88 |
89 bool isLayerEditable() const override { return true; } | 89 bool isLayerEditable() const override { return true; } |
90 | 90 |
91 int getCompletion(LayerGeometryProvider *) const override { return m_model->getCompletion(); } | 91 int getCompletion(LayerGeometryProvider *) const override; |
92 | 92 |
93 bool needsTextLabelHeight() const override { return m_model->hasTextLabels(); } | 93 bool needsTextLabelHeight() const override; |
94 | 94 |
95 bool getValueExtents(double &, double &, bool &, QString &) const override { | 95 bool getValueExtents(double &, double &, bool &, QString &) const override { |
96 return false; | 96 return false; |
97 } | 97 } |
98 | 98 |
116 | 116 |
117 int getDefaultColourHint(bool dark, bool &impose) override; | 117 int getDefaultColourHint(bool dark, bool &impose) override; |
118 | 118 |
119 bool clipboardAlignmentDiffers(LayerGeometryProvider *v, const Clipboard &) const; | 119 bool clipboardAlignmentDiffers(LayerGeometryProvider *v, const Clipboard &) const; |
120 | 120 |
121 SparseOneDimensionalModel *m_model; | 121 ModelId m_model; |
122 bool m_editing; | 122 bool m_editing; |
123 Event m_editingPoint; | 123 Event m_editingPoint; |
124 ChangeEventsCommand *m_editingCommand; | 124 ChangeEventsCommand *m_editingCommand; |
125 PlotStyle m_plotStyle; | 125 PlotStyle m_plotStyle; |
126 | 126 |