comparison layer/FlexiNoteLayer.h @ 875:0e674f1bbf08 tonioni

(Very slowly) perform local reanalysis when dragging a note up or down
author Chris Cannam
date Tue, 11 Nov 2014 14:11:07 +0000
parents 40c6c9344ff6
children b62c2785ed83
comparison
equal deleted inserted replaced
874:7a80fa6a6dfc 875:0e674f1bbf08
161 /// VerticalScaleLayer methods 161 /// VerticalScaleLayer methods
162 virtual int getYForValue(View *v, float value) const; 162 virtual int getYForValue(View *v, float value) const;
163 virtual float getValueForY(View *v, int y) const; 163 virtual float getValueForY(View *v, int y) const;
164 virtual QString getScaleUnits() const; 164 virtual QString getScaleUnits() const;
165 165
166 signals:
167 void reAnalyseRegion(int, int, float, float);
168
166 protected: 169 protected:
167 void getScaleExtents(View *, float &min, float &max, bool &log) const; 170 void getScaleExtents(View *, float &min, float &max, bool &log) const;
168 bool shouldConvertMIDIToHz() const; 171 bool shouldConvertMIDIToHz() const;
169 172
170 virtual int getDefaultColourHint(bool dark, bool &impose); 173 virtual int getDefaultColourHint(bool dark, bool &impose);
171 174
172 FlexiNoteModel::PointList getLocalPoints(View *v, int) const; 175 FlexiNoteModel::PointList getLocalPoints(View *v, int) const;
173 176
174 bool getPointToDrag(View *v, int x, int y, FlexiNoteModel::Point &) const; 177 bool getPointToDrag(View *v, int x, int y, FlexiNoteModel::Point &) const;
175 bool getNoteToEdit(View *v, int x, int y, FlexiNoteModel::Point &) const; 178 bool getNoteToEdit(View *v, int x, int y, FlexiNoteModel::Point &) const;
176 void getRelativeMousePosition(View *v, FlexiNoteModel::Point &note, int x, int y, bool &closeToLeft, bool &closeToRight, bool &closeToTop, bool &closeToBottom) const; 179 void getRelativeMousePosition(View *v, FlexiNoteModel::Point &note,
180 int x, int y,
181 bool &closeToLeft, bool &closeToRight,
182 bool &closeToTop, bool &closeToBottom) const;
177 SparseTimeValueModel *getAssociatedPitchModel(View *v) const; 183 SparseTimeValueModel *getAssociatedPitchModel(View *v) const;
178 bool updateNoteValue(View *v, FlexiNoteModel::Point &note) const; 184 bool updateNoteValueFromPitchCurve(View *v,
185 FlexiNoteModel::Point &note) const;
179 void splitNotesAt(View *v, int frame, QMouseEvent *e); 186 void splitNotesAt(View *v, int frame, QMouseEvent *e);
180 187
181 FlexiNoteModel *m_model; 188 FlexiNoteModel *m_model;
182 bool m_editing; 189 bool m_editing;
183 bool m_intelligentActions; 190 bool m_intelligentActions;