Mercurial > hg > svgui
comparison layer/NoteLayer.h @ 1470:696e569ff21b by-id
Further layer updates for ById
author | Chris Cannam |
---|---|
date | Fri, 28 Jun 2019 17:37:22 +0100 |
parents | f792a5001d80 |
children | e6362cf5ff1d |
comparison
equal
deleted
inserted
replaced
1469:11a150e65ee1 | 1470:696e569ff21b |
---|---|
66 | 66 |
67 void copy(LayerGeometryProvider *v, Selection s, Clipboard &to) override; | 67 void copy(LayerGeometryProvider *v, Selection s, Clipboard &to) override; |
68 bool paste(LayerGeometryProvider *v, const Clipboard &from, sv_frame_t frameOffset, | 68 bool paste(LayerGeometryProvider *v, const Clipboard &from, sv_frame_t frameOffset, |
69 bool interactive) override; | 69 bool interactive) override; |
70 | 70 |
71 const Model *getModel() const override { return m_model; } | 71 ModelId getModel() const override { return m_model; } |
72 void setModel(NoteModel *model); | 72 void setModel(ModelId model); // a NoteModel |
73 | 73 |
74 PropertyList getProperties() const override; | 74 PropertyList getProperties() const override; |
75 QString getPropertyLabel(const PropertyName &) const override; | 75 QString getPropertyLabel(const PropertyName &) const override; |
76 PropertyType getPropertyType(const PropertyName &) const override; | 76 PropertyType getPropertyType(const PropertyName &) const override; |
77 QString getPropertyGroupName(const PropertyName &) const override; | 77 QString getPropertyGroupName(const PropertyName &) const override; |
93 | 93 |
94 bool isLayerScrollable(const LayerGeometryProvider *v) const override; | 94 bool isLayerScrollable(const LayerGeometryProvider *v) const override; |
95 | 95 |
96 bool isLayerEditable() const override { return true; } | 96 bool isLayerEditable() const override { return true; } |
97 | 97 |
98 int getCompletion(LayerGeometryProvider *) const override { return m_model->getCompletion(); } | 98 int getCompletion(LayerGeometryProvider *) const override; |
99 | 99 |
100 bool getValueExtents(double &min, double &max, | 100 bool getValueExtents(double &min, double &max, |
101 bool &log, QString &unit) const override; | 101 bool &log, QString &unit) const override; |
102 | 102 |
103 bool getDisplayExtents(double &min, double &max) const override; | 103 bool getDisplayExtents(double &min, double &max) const override; |
144 | 144 |
145 EventVector getLocalPoints(LayerGeometryProvider *v, int) const; | 145 EventVector getLocalPoints(LayerGeometryProvider *v, int) const; |
146 | 146 |
147 bool getPointToDrag(LayerGeometryProvider *v, int x, int y, Event &) const; | 147 bool getPointToDrag(LayerGeometryProvider *v, int x, int y, Event &) const; |
148 | 148 |
149 NoteModel *m_model; | 149 ModelId m_model; |
150 bool m_editing; | 150 bool m_editing; |
151 int m_dragPointX; | 151 int m_dragPointX; |
152 int m_dragPointY; | 152 int m_dragPointY; |
153 int m_dragStartX; | 153 int m_dragStartX; |
154 int m_dragStartY; | 154 int m_dragStartY; |