Mercurial > hg > svgui
diff layer/NoteLayer.h @ 1459:42c87368287c
Merge from branch single-point
author | Chris Cannam |
---|---|
date | Fri, 17 May 2019 10:02:52 +0100 |
parents | f792a5001d80 |
children | 696e569ff21b |
line wrap: on
line diff
--- a/layer/NoteLayer.h Wed Apr 24 11:29:53 2019 +0100 +++ b/layer/NoteLayer.h Fri May 17 10:02:52 2019 +0100 @@ -142,9 +142,9 @@ int getDefaultColourHint(bool dark, bool &impose) override; - NoteModel::PointList getLocalPoints(LayerGeometryProvider *v, int) const; + EventVector getLocalPoints(LayerGeometryProvider *v, int) const; - bool getPointToDrag(LayerGeometryProvider *v, int x, int y, NoteModel::Point &) const; + bool getPointToDrag(LayerGeometryProvider *v, int x, int y, Event &) const; NoteModel *m_model; bool m_editing; @@ -152,13 +152,13 @@ int m_dragPointY; int m_dragStartX; int m_dragStartY; - NoteModel::Point m_originalPoint; - NoteModel::Point m_editingPoint; - NoteModel::EditCommand *m_editingCommand; + Event m_originalPoint; + Event m_editingPoint; + ChangeEventsCommand *m_editingCommand; bool m_editIsOpen; VerticalScale m_verticalScale; - typedef std::set<NoteModel::Point, NoteModel::Point::Comparator> NoteSet; + typedef std::set<Event> NoteSet; NoteSet m_pendingNoteOns; mutable double m_scaleMinimum; @@ -166,7 +166,7 @@ bool shouldAutoAlign() const; - void finish(NoteModel::EditCommand *command) { + void finish(ChangeEventsCommand *command) { Command *c = command->finish(); if (c) CommandHistory::getInstance()->addCommand(c, false); }