diff layer/RegionLayer.h @ 550:d666f5f8b154

* Make a better job of picking the proper point to drag, edit, delete etc in note and region layers * Some work to do with region dragging, but this still needs more thought
author Chris Cannam
date Mon, 28 Sep 2009 12:29:12 +0000
parents 5930f2b0b1d2
children c2ba2796cbee
line wrap: on
line diff
--- a/layer/RegionLayer.h	Fri Sep 25 12:02:22 2009 +0000
+++ b/layer/RegionLayer.h	Mon Sep 28 12:29:12 2009 +0000
@@ -125,10 +125,14 @@
 
     virtual int getDefaultColourHint(bool dark, bool &impose);
 
-    RegionModel::PointList getLocalPoints(View *v, int) const;
+    RegionModel::PointList getLocalPoints(View *v, int x) const;
+
+    bool getPointToDrag(View *v, int x, int y, RegionModel::Point &) const;
 
     RegionModel *m_model;
     bool m_editing;
+    int m_dragYOrigin;
+    int m_dragYRebase;
     RegionModel::Point m_originalPoint;
     RegionModel::Point m_editingPoint;
     RegionModel::EditCommand *m_editingCommand;