Mercurial > hg > svgui
comparison layer/NoteLayer.cpp @ 79:19bf27e4fb29
* Replace crash with warning when a transform could not be automatically
re-run
* More sensible default paths for Vamp plugin lookup (at least on Linux and
OS/X)
* A start to making the y coords for time value layers etc align
* Set sensible y coords for text labels in time instant and value layers
author | Chris Cannam |
---|---|
date | Thu, 13 Apr 2006 18:29:10 +0000 |
parents | 45ba0b381c5d |
children | 01f27a282c90 |
comparison
equal
deleted
inserted
replaced
78:967193b6c7aa | 79:19bf27e4fb29 |
---|---|
177 bool | 177 bool |
178 NoteLayer::isLayerScrollable(const View *v) const | 178 NoteLayer::isLayerScrollable(const View *v) const |
179 { | 179 { |
180 QPoint discard; | 180 QPoint discard; |
181 return !v->shouldIlluminateLocalFeatures(this, discard); | 181 return !v->shouldIlluminateLocalFeatures(this, discard); |
182 } | |
183 | |
184 bool | |
185 NoteLayer::getValueExtents(float &min, float &max, QString &unit) const | |
186 { | |
187 if (!m_model) return false; | |
188 min = m_model->getValueMinimum(); | |
189 max = m_model->getValueMaximum(); | |
190 unit = m_model->getScaleUnits(); | |
191 return true; | |
182 } | 192 } |
183 | 193 |
184 NoteModel::PointList | 194 NoteModel::PointList |
185 NoteLayer::getLocalPoints(View *v, int x) const | 195 NoteLayer::getLocalPoints(View *v, int x) const |
186 { | 196 { |