Mercurial > hg > svgui
comparison layer/FlexiNoteLayer.h @ 1427:f792a5001d80 single-point
Update to use external set of commands
author | Chris Cannam |
---|---|
date | Fri, 15 Mar 2019 11:09:17 +0000 |
parents | e1a08da75427 |
children | 11a150e65ee1 |
comparison
equal
deleted
inserted
replaced
1426:e1a08da75427 | 1427:f792a5001d80 |
---|---|
189 int m_dragStartY; | 189 int m_dragStartY; |
190 Event m_originalPoint; | 190 Event m_originalPoint; |
191 Event m_editingPoint; | 191 Event m_editingPoint; |
192 sv_frame_t m_greatestLeftNeighbourFrame; | 192 sv_frame_t m_greatestLeftNeighbourFrame; |
193 sv_frame_t m_smallestRightNeighbourFrame; | 193 sv_frame_t m_smallestRightNeighbourFrame; |
194 NoteModel::EditCommand *m_editingCommand; | 194 ChangeEventsCommand *m_editingCommand; |
195 VerticalScale m_verticalScale; | 195 VerticalScale m_verticalScale; |
196 EditMode m_editMode; | 196 EditMode m_editMode; |
197 | 197 |
198 typedef std::set<Event> NoteSet; | 198 typedef std::set<Event> NoteSet; |
199 NoteSet m_pendingNoteOns; | 199 NoteSet m_pendingNoteOns; |
201 mutable double m_scaleMinimum; | 201 mutable double m_scaleMinimum; |
202 mutable double m_scaleMaximum; | 202 mutable double m_scaleMaximum; |
203 | 203 |
204 bool shouldAutoAlign() const; | 204 bool shouldAutoAlign() const; |
205 | 205 |
206 void finish(NoteModel::EditCommand *command) { | 206 void finish(ChangeEventsCommand *command) { |
207 Command *c = command->finish(); | 207 Command *c = command->finish(); |
208 if (c) CommandHistory::getInstance()->addCommand(c, false); | 208 if (c) CommandHistory::getInstance()->addCommand(c, false); |
209 } | 209 } |
210 }; | 210 }; |
211 | 211 |