Mercurial > hg > svgui
diff layer/SpectrogramLayer.cpp @ 261:11021509c4eb
* some more work on measurement tool, and refactor Pane::paintEvent
author | Chris Cannam |
---|---|
date | Thu, 14 Jun 2007 16:28:27 +0000 |
parents | 1b1e6947c124 |
children | 7e9e533f1863 |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp Thu Jun 14 15:20:49 2007 +0000 +++ b/layer/SpectrogramLayer.cpp Thu Jun 14 16:28:27 2007 +0000 @@ -2469,6 +2469,15 @@ } bool +SpectrogramLayer::getYScaleValue(View *v, int y, + float &value, QString &unit) const +{ + value = getFrequencyForY(v, y); + unit = "Hz"; + return true; +} + +bool SpectrogramLayer::snapToFeatureFrame(View *, int &frame, size_t &resolution, SnapType snap) const