diff layer/TimeInstantLayer.h @ 17:0183ebb725ca

* Add ability to create empty layers for editing * Add first basic editing capability (adding points to a time instant layer) * Add various keyboard and mouse shortcuts for navigation &c * Add ability to resize a selection by dragging its edges * Add maximum zoom level
author Chris Cannam
date Thu, 26 Jan 2006 16:15:40 +0000
parents 01849cd277e6
children 7c767d41bcee
line wrap: on
line diff
--- a/layer/TimeInstantLayer.h	Thu Jan 26 11:56:09 2006 +0000
+++ b/layer/TimeInstantLayer.h	Thu Jan 26 16:15:40 2006 +0000
@@ -35,6 +35,10 @@
 				       size_t &resolution,
 				       bool snapRight = true) const;
 
+    virtual void drawStart(QMouseEvent *);
+    virtual void drawDrag(QMouseEvent *);
+    virtual void drawEnd(QMouseEvent *);
+
     virtual const Model *getModel() const { return m_model; }
     void setModel(SparseOneDimensionalModel *model);
 
@@ -49,8 +53,6 @@
     void setBaseColour(QColor);
     QColor getBaseColour() const { return m_colour; }
 
-    virtual QString getPropertyContainerIconName() const { return "instants"; }
-
     virtual bool isLayerScrollable() const;
 
     virtual int getCompletion() const { return m_model->getCompletion(); }
@@ -64,6 +66,7 @@
     SparseOneDimensionalModel::PointList getLocalPoints(int) const;
 
     SparseOneDimensionalModel *m_model;
+    SparseOneDimensionalModel::Point m_editingPoint;
     QColor m_colour;
 };