comparison layer/FlexiNoteLayer.h @ 747:bc049f1f080e tonioni

Add Merge Notes
author Chris Cannam
date Thu, 27 Mar 2014 16:30:26 +0000
parents 8d5df70b5ed7
children 03423269a9d0
comparison
equal deleted inserted replaced
746:8d5df70b5ed7 747:bc049f1f080e
78 virtual bool paste(View *v, const Clipboard &from, int frameOffset, 78 virtual bool paste(View *v, const Clipboard &from, int frameOffset,
79 bool interactive); 79 bool interactive);
80 80
81 void splitNotesAt(View *v, int frame); 81 void splitNotesAt(View *v, int frame);
82 void snapSelectedNotesToPitchTrack(View *v, Selection s); 82 void snapSelectedNotesToPitchTrack(View *v, Selection s);
83 void mergeNotes(View *v, Selection s);
83 84
84 virtual const Model *getModel() const { return m_model; } 85 virtual const Model *getModel() const { return m_model; }
85 void setModel(FlexiNoteModel *model); 86 void setModel(FlexiNoteModel *model);
86 87
87 virtual PropertyList getProperties() const; 88 virtual PropertyList getProperties() const;
171 172
172 bool getPointToDrag(View *v, int x, int y, FlexiNoteModel::Point &) const; 173 bool getPointToDrag(View *v, int x, int y, FlexiNoteModel::Point &) const;
173 bool getNoteToEdit(View *v, int x, int y, FlexiNoteModel::Point &) const; 174 bool getNoteToEdit(View *v, int x, int y, FlexiNoteModel::Point &) const;
174 void getRelativeMousePosition(View *v, FlexiNoteModel::Point &note, int x, int y, bool &closeToLeft, bool &closeToRight, bool &closeToTop, bool &closeToBottom) const; 175 void getRelativeMousePosition(View *v, FlexiNoteModel::Point &note, int x, int y, bool &closeToLeft, bool &closeToRight, bool &closeToTop, bool &closeToBottom) const;
175 SparseTimeValueModel *getAssociatedPitchModel(View *v) const; 176 SparseTimeValueModel *getAssociatedPitchModel(View *v) const;
176 void updateNoteValue(View *v, FlexiNoteModel::Point &note) const; 177 bool updateNoteValue(View *v, FlexiNoteModel::Point &note) const;
177 178
178 FlexiNoteModel *m_model; 179 FlexiNoteModel *m_model;
179 bool m_editing; 180 bool m_editing;
180 bool m_intelligentActions; 181 bool m_intelligentActions;
181 int m_dragPointX; 182 int m_dragPointX;