diff 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
line wrap: on
line diff
--- a/layer/TextLayer.h	Mon Feb 20 13:33:36 2006 +0000
+++ b/layer/TextLayer.h	Mon Feb 20 17:23:40 2006 +0000
@@ -42,6 +42,8 @@
     virtual void editDrag(QMouseEvent *);
     virtual void editEnd(QMouseEvent *);
 
+    virtual void editOpen(QMouseEvent *); // on double-click
+
     virtual const Model *getModel() const { return m_model; }
     void setModel(TextModel *model);
 
@@ -75,6 +77,7 @@
 
     TextModel *m_model;
     bool m_editing;
+    QPoint m_editOrigin;
     TextModel::Point m_originalPoint;
     TextModel::Point m_editingPoint;
     TextModel::EditCommand *m_editingCommand;