comparison 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
comparison
equal deleted inserted replaced
549:e6122e4999a3 550:d666f5f8b154
123 float getValueForY(View *v, int y) const; 123 float getValueForY(View *v, int y) const;
124 QColor getColourForValue(View *v, float value) const; 124 QColor getColourForValue(View *v, float value) const;
125 125
126 virtual int getDefaultColourHint(bool dark, bool &impose); 126 virtual int getDefaultColourHint(bool dark, bool &impose);
127 127
128 RegionModel::PointList getLocalPoints(View *v, int) const; 128 RegionModel::PointList getLocalPoints(View *v, int x) const;
129
130 bool getPointToDrag(View *v, int x, int y, RegionModel::Point &) const;
129 131
130 RegionModel *m_model; 132 RegionModel *m_model;
131 bool m_editing; 133 bool m_editing;
134 int m_dragYOrigin;
135 int m_dragYRebase;
132 RegionModel::Point m_originalPoint; 136 RegionModel::Point m_originalPoint;
133 RegionModel::Point m_editingPoint; 137 RegionModel::Point m_editingPoint;
134 RegionModel::EditCommand *m_editingCommand; 138 RegionModel::EditCommand *m_editingCommand;
135 VerticalScale m_verticalScale; 139 VerticalScale m_verticalScale;
136 int m_colourMap; 140 int m_colourMap;