comparison layer/RegionLayer.h @ 1486:ac0a8addabcf

Merge from branch by-id
author Chris Cannam
date Wed, 17 Jul 2019 14:25:16 +0100
parents 696e569ff21b
children e6362cf5ff1d
comparison
equal deleted inserted replaced
1468:de41a11cabc2 1486:ac0a8addabcf
74 74
75 void copy(LayerGeometryProvider *v, Selection s, Clipboard &to) override; 75 void copy(LayerGeometryProvider *v, Selection s, Clipboard &to) override;
76 bool paste(LayerGeometryProvider *v, const Clipboard &from, sv_frame_t frameOffset, 76 bool paste(LayerGeometryProvider *v, const Clipboard &from, sv_frame_t frameOffset,
77 bool interactive) override; 77 bool interactive) override;
78 78
79 const Model *getModel() const override { return m_model; } 79 ModelId getModel() const override { return m_model; }
80 void setModel(RegionModel *model); 80 void setModel(ModelId model); // a RegionModel
81 81
82 PropertyList getProperties() const override; 82 PropertyList getProperties() const override;
83 QString getPropertyLabel(const PropertyName &) const override; 83 QString getPropertyLabel(const PropertyName &) const override;
84 PropertyType getPropertyType(const PropertyName &) const override; 84 PropertyType getPropertyType(const PropertyName &) const override;
85 QString getPropertyGroupName(const PropertyName &) const override; 85 QString getPropertyGroupName(const PropertyName &) const override;
112 112
113 bool isLayerScrollable(const LayerGeometryProvider *v) const override; 113 bool isLayerScrollable(const LayerGeometryProvider *v) const override;
114 114
115 bool isLayerEditable() const override { return true; } 115 bool isLayerEditable() const override { return true; }
116 116
117 int getCompletion(LayerGeometryProvider *) const override { return m_model->getCompletion(); } 117 int getCompletion(LayerGeometryProvider *) const override;
118 118
119 bool getValueExtents(double &min, double &max, 119 bool getValueExtents(double &min, double &max,
120 bool &log, QString &unit) const override; 120 bool &log, QString &unit) const override;
121 121
122 bool getDisplayExtents(double &min, double &max) const override; 122 bool getDisplayExtents(double &min, double &max) const override;
143 143
144 EventVector getLocalPoints(LayerGeometryProvider *v, int x) const; 144 EventVector getLocalPoints(LayerGeometryProvider *v, int x) const;
145 145
146 bool getPointToDrag(LayerGeometryProvider *v, int x, int y, Event &) const; 146 bool getPointToDrag(LayerGeometryProvider *v, int x, int y, Event &) const;
147 147
148 RegionModel *m_model; 148 ModelId m_model;
149 bool m_editing; 149 bool m_editing;
150 int m_dragPointX; 150 int m_dragPointX;
151 int m_dragPointY; 151 int m_dragPointY;
152 int m_dragStartX; 152 int m_dragStartX;
153 int m_dragStartY; 153 int m_dragStartY;