Mercurial > hg > svgui
comparison layer/TimeInstantLayer.h @ 18:7c767d41bcee
* Add basic drag editing of time instants.
Plenty of tuning to do for both this and drawing.
author | Chris Cannam |
---|---|
date | Thu, 26 Jan 2006 18:01:38 +0000 |
parents | 0183ebb725ca |
children | 179bf7b5ddea |
comparison
equal
deleted
inserted
replaced
17:0183ebb725ca | 18:7c767d41bcee |
---|---|
37 | 37 |
38 virtual void drawStart(QMouseEvent *); | 38 virtual void drawStart(QMouseEvent *); |
39 virtual void drawDrag(QMouseEvent *); | 39 virtual void drawDrag(QMouseEvent *); |
40 virtual void drawEnd(QMouseEvent *); | 40 virtual void drawEnd(QMouseEvent *); |
41 | 41 |
42 virtual void editStart(QMouseEvent *); | |
43 virtual void editDrag(QMouseEvent *); | |
44 virtual void editEnd(QMouseEvent *); | |
45 | |
42 virtual const Model *getModel() const { return m_model; } | 46 virtual const Model *getModel() const { return m_model; } |
43 void setModel(SparseOneDimensionalModel *model); | 47 void setModel(SparseOneDimensionalModel *model); |
44 | 48 |
45 virtual PropertyList getProperties() const; | 49 virtual PropertyList getProperties() const; |
46 virtual PropertyType getPropertyType(const PropertyName &) const; | 50 virtual PropertyType getPropertyType(const PropertyName &) const; |
64 | 68 |
65 protected: | 69 protected: |
66 SparseOneDimensionalModel::PointList getLocalPoints(int) const; | 70 SparseOneDimensionalModel::PointList getLocalPoints(int) const; |
67 | 71 |
68 SparseOneDimensionalModel *m_model; | 72 SparseOneDimensionalModel *m_model; |
73 bool m_editing; | |
69 SparseOneDimensionalModel::Point m_editingPoint; | 74 SparseOneDimensionalModel::Point m_editingPoint; |
70 QColor m_colour; | 75 QColor m_colour; |
71 }; | 76 }; |
72 | 77 |
73 #endif | 78 #endif |