Mercurial > hg > svgui
comparison layer/NoteLayer.cpp @ 1426:e1a08da75427 single-point
Update following FlexiNoteModel removal, using new NoteModel API where flexi was previously used
author | Chris Cannam |
---|---|
date | Thu, 14 Mar 2019 15:32:58 +0000 |
parents | f9e3126d223c |
children | f792a5001d80 |
comparison
equal
deleted
inserted
replaced
1425:f9e3126d223c | 1426:e1a08da75427 |
---|---|
1106 new NoteModel::EditCommand(m_model, tr("Drag Selection")); | 1106 new NoteModel::EditCommand(m_model, tr("Drag Selection")); |
1107 | 1107 |
1108 EventVector points = | 1108 EventVector points = |
1109 m_model->getEventsStartingWithin(s.getStartFrame(), s.getDuration()); | 1109 m_model->getEventsStartingWithin(s.getStartFrame(), s.getDuration()); |
1110 | 1110 |
1111 SVCERR << "Have " << points.size() << " points to drag" << endl; | |
1112 | |
1113 for (Event p: points) { | 1111 for (Event p: points) { |
1114 SVCERR << "asking to remove " << p.toXmlString() << endl; | |
1115 command->remove(p); | 1112 command->remove(p); |
1116 Event moved = p.withFrame(p.getFrame() + | 1113 Event moved = p.withFrame(p.getFrame() + |
1117 newStartFrame - s.getStartFrame()); | 1114 newStartFrame - s.getStartFrame()); |
1118 SVCERR << "asking to add " << moved.toXmlString() << endl; | |
1119 command->add(moved); | 1115 command->add(moved); |
1120 } | 1116 } |
1121 | 1117 |
1122 finish(command); | 1118 finish(command); |
1123 } | 1119 } |