Mercurial > hg > svgui
comparison layer/TextLayer.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 |
---|---|
60 bool paste(LayerGeometryProvider *v, const Clipboard &from, sv_frame_t frameOffset, | 60 bool paste(LayerGeometryProvider *v, const Clipboard &from, sv_frame_t frameOffset, |
61 bool interactive) override; | 61 bool interactive) override; |
62 | 62 |
63 bool editOpen(LayerGeometryProvider *, QMouseEvent *) override; // on double-click | 63 bool editOpen(LayerGeometryProvider *, QMouseEvent *) override; // on double-click |
64 | 64 |
65 const Model *getModel() const override { return m_model; } | 65 ModelId getModel() const override { return m_model; } |
66 void setModel(TextModel *model); | 66 void setModel(ModelId model); // a TextModel |
67 | 67 |
68 PropertyList getProperties() const override; | 68 PropertyList getProperties() const override; |
69 QString getPropertyLabel(const PropertyName &) const override; | 69 QString getPropertyLabel(const PropertyName &) const override; |
70 PropertyType getPropertyType(const PropertyName &) const override; | 70 PropertyType getPropertyType(const PropertyName &) const override; |
71 int getPropertyRangeAndValue(const PropertyName &, | 71 int getPropertyRangeAndValue(const PropertyName &, |
76 | 76 |
77 bool isLayerScrollable(const LayerGeometryProvider *v) const override; | 77 bool isLayerScrollable(const LayerGeometryProvider *v) const override; |
78 | 78 |
79 bool isLayerEditable() const override { return true; } | 79 bool isLayerEditable() const override { return true; } |
80 | 80 |
81 int getCompletion(LayerGeometryProvider *) const override { return m_model->getCompletion(); } | 81 int getCompletion(LayerGeometryProvider *) const override; |
82 | 82 |
83 bool getValueExtents(double &min, double &max, | 83 bool getValueExtents(double &min, double &max, |
84 bool &logarithmic, QString &unit) const override; | 84 bool &logarithmic, QString &unit) const override; |
85 | 85 |
86 int getVerticalScaleWidth(LayerGeometryProvider *, bool, QPainter &) const override { return 0; } | 86 int getVerticalScaleWidth(LayerGeometryProvider *, bool, QPainter &) const override { return 0; } |
98 | 98 |
99 EventVector getLocalPoints(LayerGeometryProvider *v, int x, int y) const; | 99 EventVector getLocalPoints(LayerGeometryProvider *v, int x, int y) const; |
100 | 100 |
101 bool getPointToDrag(LayerGeometryProvider *v, int x, int y, Event &) const; | 101 bool getPointToDrag(LayerGeometryProvider *v, int x, int y, Event &) const; |
102 | 102 |
103 TextModel *m_model; | 103 ModelId m_model; |
104 bool m_editing; | 104 bool m_editing; |
105 QPoint m_editOrigin; | 105 QPoint m_editOrigin; |
106 Event m_originalPoint; | 106 Event m_originalPoint; |
107 Event m_editingPoint; | 107 Event m_editingPoint; |
108 ChangeEventsCommand *m_editingCommand; | 108 ChangeEventsCommand *m_editingCommand; |