comparison layer/NoteLayer.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 2ee77c9974d7
children 696e569ff21b
comparison
equal deleted inserted replaced
1426:e1a08da75427 1427:f792a5001d80
152 int m_dragPointY; 152 int m_dragPointY;
153 int m_dragStartX; 153 int m_dragStartX;
154 int m_dragStartY; 154 int m_dragStartY;
155 Event m_originalPoint; 155 Event m_originalPoint;
156 Event m_editingPoint; 156 Event m_editingPoint;
157 NoteModel::EditCommand *m_editingCommand; 157 ChangeEventsCommand *m_editingCommand;
158 bool m_editIsOpen; 158 bool m_editIsOpen;
159 VerticalScale m_verticalScale; 159 VerticalScale m_verticalScale;
160 160
161 typedef std::set<Event> NoteSet; 161 typedef std::set<Event> NoteSet;
162 NoteSet m_pendingNoteOns; 162 NoteSet m_pendingNoteOns;
164 mutable double m_scaleMinimum; 164 mutable double m_scaleMinimum;
165 mutable double m_scaleMaximum; 165 mutable double m_scaleMaximum;
166 166
167 bool shouldAutoAlign() const; 167 bool shouldAutoAlign() const;
168 168
169 void finish(NoteModel::EditCommand *command) { 169 void finish(ChangeEventsCommand *command) {
170 Command *c = command->finish(); 170 Command *c = command->finish();
171 if (c) CommandHistory::getInstance()->addCommand(c, false); 171 if (c) CommandHistory::getInstance()->addCommand(c, false);
172 } 172 }
173 }; 173 };
174 174