Mercurial > hg > svgui
diff layer/FlexiNoteLayer.h @ 756:9cfcb2924ee3 tony_integration
Merge from branch tonioni
author | Chris Cannam |
---|---|
date | Wed, 02 Apr 2014 08:51:33 +0100 |
parents | 09e2677e34e7 |
children | 3a52b458fcd5 1d526ba11a24 |
line wrap: on
line diff
--- a/layer/FlexiNoteLayer.h Wed Apr 02 08:50:18 2014 +0100 +++ b/layer/FlexiNoteLayer.h Wed Apr 02 08:51:33 2014 +0100 @@ -28,7 +28,7 @@ class View; class QPainter; - +class SparseTimeValueModel; class FlexiNoteLayer : public SingleColourLayer, public VerticalScaleLayer @@ -78,6 +78,10 @@ virtual bool paste(View *v, const Clipboard &from, int frameOffset, bool interactive); + void splitNotesAt(View *v, int frame); + void snapSelectedNotesToPitchTrack(View *v, Selection s); + void mergeNotes(View *v, Selection s, bool inclusive); + virtual const Model *getModel() const { return m_model; } void setModel(FlexiNoteModel *model); @@ -169,7 +173,9 @@ bool getPointToDrag(View *v, int x, int y, FlexiNoteModel::Point &) const; bool getNoteToEdit(View *v, int x, int y, FlexiNoteModel::Point &) const; void getRelativeMousePosition(View *v, FlexiNoteModel::Point ¬e, int x, int y, bool &closeToLeft, bool &closeToRight, bool &closeToTop, bool &closeToBottom) const; - void updateNoteValue(View *v, FlexiNoteModel::Point ¬e) const; + SparseTimeValueModel *getAssociatedPitchModel(View *v) const; + bool updateNoteValue(View *v, FlexiNoteModel::Point ¬e) const; + void splitNotesAt(View *v, int frame, QMouseEvent *e); FlexiNoteModel *m_model; bool m_editing;