Mercurial > hg > svgui
comparison layer/FlexiNoteLayer.h @ 745:d50f91fe374e tonioni
Fix (to some extent) the "gross assumption about layer order" and thus #840 Note split adaptation broken
author | Chris Cannam |
---|---|
date | Tue, 25 Mar 2014 13:06:27 +0000 |
parents | ceb9a2992d96 |
children | 8d5df70b5ed7 |
comparison
equal
deleted
inserted
replaced
741:56ba2b03508e | 745:d50f91fe374e |
---|---|
26 #include <QObject> | 26 #include <QObject> |
27 #include <QColor> | 27 #include <QColor> |
28 | 28 |
29 class View; | 29 class View; |
30 class QPainter; | 30 class QPainter; |
31 | 31 class SparseTimeValueModel; |
32 | 32 |
33 class FlexiNoteLayer : public SingleColourLayer, | 33 class FlexiNoteLayer : public SingleColourLayer, |
34 public VerticalScaleLayer | 34 public VerticalScaleLayer |
35 { | 35 { |
36 Q_OBJECT | 36 Q_OBJECT |
167 FlexiNoteModel::PointList getLocalPoints(View *v, int) const; | 167 FlexiNoteModel::PointList getLocalPoints(View *v, int) const; |
168 | 168 |
169 bool getPointToDrag(View *v, int x, int y, FlexiNoteModel::Point &) const; | 169 bool getPointToDrag(View *v, int x, int y, FlexiNoteModel::Point &) const; |
170 bool getNoteToEdit(View *v, int x, int y, FlexiNoteModel::Point &) const; | 170 bool getNoteToEdit(View *v, int x, int y, FlexiNoteModel::Point &) const; |
171 void getRelativeMousePosition(View *v, FlexiNoteModel::Point ¬e, int x, int y, bool &closeToLeft, bool &closeToRight, bool &closeToTop, bool &closeToBottom) const; | 171 void getRelativeMousePosition(View *v, FlexiNoteModel::Point ¬e, int x, int y, bool &closeToLeft, bool &closeToRight, bool &closeToTop, bool &closeToBottom) const; |
172 SparseTimeValueModel *getAssociatedPitchModel(View *v) const; | |
172 void updateNoteValue(View *v, FlexiNoteModel::Point ¬e) const; | 173 void updateNoteValue(View *v, FlexiNoteModel::Point ¬e) const; |
173 | 174 |
174 FlexiNoteModel *m_model; | 175 FlexiNoteModel *m_model; |
175 bool m_editing; | 176 bool m_editing; |
176 bool m_intelligentActions; | 177 bool m_intelligentActions; |