Mercurial > hg > svgui
diff 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 |
line wrap: on
line diff
--- a/layer/TimeInstantLayer.h Thu Jan 26 16:15:40 2006 +0000 +++ b/layer/TimeInstantLayer.h Thu Jan 26 18:01:38 2006 +0000 @@ -39,6 +39,10 @@ virtual void drawDrag(QMouseEvent *); virtual void drawEnd(QMouseEvent *); + virtual void editStart(QMouseEvent *); + virtual void editDrag(QMouseEvent *); + virtual void editEnd(QMouseEvent *); + virtual const Model *getModel() const { return m_model; } void setModel(SparseOneDimensionalModel *model); @@ -66,6 +70,7 @@ SparseOneDimensionalModel::PointList getLocalPoints(int) const; SparseOneDimensionalModel *m_model; + bool m_editing; SparseOneDimensionalModel::Point m_editingPoint; QColor m_colour; };