Mercurial > hg > svgui
comparison layer/TextLayer.h @ 36:c28ebb4ba4de
* Improvements to text layer editing, and implement file I/O for it
* Start some fixes to spectrogram frequency computation
author | Chris Cannam |
---|---|
date | Mon, 20 Feb 2006 17:23:40 +0000 |
parents | 10ba9276a315 |
children | 78515b1e29eb |
comparison
equal
deleted
inserted
replaced
35:10ba9276a315 | 36:c28ebb4ba4de |
---|---|
40 | 40 |
41 virtual void editStart(QMouseEvent *); | 41 virtual void editStart(QMouseEvent *); |
42 virtual void editDrag(QMouseEvent *); | 42 virtual void editDrag(QMouseEvent *); |
43 virtual void editEnd(QMouseEvent *); | 43 virtual void editEnd(QMouseEvent *); |
44 | 44 |
45 virtual void editOpen(QMouseEvent *); // on double-click | |
46 | |
45 virtual const Model *getModel() const { return m_model; } | 47 virtual const Model *getModel() const { return m_model; } |
46 void setModel(TextModel *model); | 48 void setModel(TextModel *model); |
47 | 49 |
48 virtual PropertyList getProperties() const; | 50 virtual PropertyList getProperties() const; |
49 virtual PropertyType getPropertyType(const PropertyName &) const; | 51 virtual PropertyType getPropertyType(const PropertyName &) const; |
73 | 75 |
74 TextModel::PointList getLocalPoints(int x, int y) const; | 76 TextModel::PointList getLocalPoints(int x, int y) const; |
75 | 77 |
76 TextModel *m_model; | 78 TextModel *m_model; |
77 bool m_editing; | 79 bool m_editing; |
80 QPoint m_editOrigin; | |
78 TextModel::Point m_originalPoint; | 81 TextModel::Point m_originalPoint; |
79 TextModel::Point m_editingPoint; | 82 TextModel::Point m_editingPoint; |
80 TextModel::EditCommand *m_editingCommand; | 83 TextModel::EditCommand *m_editingCommand; |
81 QColor m_colour; | 84 QColor m_colour; |
82 }; | 85 }; |