Mercurial > hg > svgui
comparison layer/FlexiNoteLayer.h @ 945:bb80983c9e61 osx-retina
Merge from default branch
author | Chris Cannam |
---|---|
date | Mon, 20 Apr 2015 09:18:55 +0100 |
parents | 94e4952a6774 26da827e8fb5 |
children | a18e78b9c78b |
comparison
equal
deleted
inserted
replaced
920:e39d5d2734ed | 945:bb80983c9e61 |
---|---|
161 /// VerticalScaleLayer methods | 161 /// VerticalScaleLayer methods |
162 virtual int getYForValue(LayerGeometryProvider *v, double value) const; | 162 virtual int getYForValue(LayerGeometryProvider *v, double value) const; |
163 virtual double getValueForY(LayerGeometryProvider *v, int y) const; | 163 virtual double getValueForY(LayerGeometryProvider *v, int y) const; |
164 virtual QString getScaleUnits() const; | 164 virtual QString getScaleUnits() const; |
165 | 165 |
166 signals: | |
167 void reAnalyseRegion(sv_frame_t, sv_frame_t, float, float); | |
168 void materialiseReAnalysis(); | |
169 | |
166 protected: | 170 protected: |
167 void getScaleExtents(LayerGeometryProvider *, double &min, double &max, bool &log) const; | 171 void getScaleExtents(LayerGeometryProvider *, double &min, double &max, bool &log) const; |
168 bool shouldConvertMIDIToHz() const; | 172 bool shouldConvertMIDIToHz() const; |
169 | 173 |
170 virtual int getDefaultColourHint(bool dark, bool &impose); | 174 virtual int getDefaultColourHint(bool dark, bool &impose); |
173 | 177 |
174 bool getPointToDrag(LayerGeometryProvider *v, int x, int y, FlexiNoteModel::Point &) const; | 178 bool getPointToDrag(LayerGeometryProvider *v, int x, int y, FlexiNoteModel::Point &) const; |
175 bool getNoteToEdit(LayerGeometryProvider *v, int x, int y, FlexiNoteModel::Point &) const; | 179 bool getNoteToEdit(LayerGeometryProvider *v, int x, int y, FlexiNoteModel::Point &) const; |
176 void getRelativeMousePosition(LayerGeometryProvider *v, FlexiNoteModel::Point ¬e, int x, int y, bool &closeToLeft, bool &closeToRight, bool &closeToTop, bool &closeToBottom) const; | 180 void getRelativeMousePosition(LayerGeometryProvider *v, FlexiNoteModel::Point ¬e, int x, int y, bool &closeToLeft, bool &closeToRight, bool &closeToTop, bool &closeToBottom) const; |
177 SparseTimeValueModel *getAssociatedPitchModel(LayerGeometryProvider *v) const; | 181 SparseTimeValueModel *getAssociatedPitchModel(LayerGeometryProvider *v) const; |
178 bool updateNoteValue(LayerGeometryProvider *v, FlexiNoteModel::Point ¬e) const; | 182 bool updateNoteValueFromPitchCurve(LayerGeometryProvider *v, FlexiNoteModel::Point ¬e) const; |
179 void splitNotesAt(LayerGeometryProvider *v, sv_frame_t frame, QMouseEvent *e); | 183 void splitNotesAt(LayerGeometryProvider *v, sv_frame_t frame, QMouseEvent *e); |
180 | 184 |
181 FlexiNoteModel *m_model; | 185 FlexiNoteModel *m_model; |
182 bool m_editing; | 186 bool m_editing; |
183 bool m_intelligentActions; | 187 bool m_intelligentActions; |