comparison 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
comparison
equal deleted inserted replaced
260:6d113226bb4c 261:11021509c4eb
2467 2467
2468 return true; 2468 return true;
2469 } 2469 }
2470 2470
2471 bool 2471 bool
2472 SpectrogramLayer::getYScaleValue(View *v, int y,
2473 float &value, QString &unit) const
2474 {
2475 value = getFrequencyForY(v, y);
2476 unit = "Hz";
2477 return true;
2478 }
2479
2480 bool
2472 SpectrogramLayer::snapToFeatureFrame(View *, int &frame, 2481 SpectrogramLayer::snapToFeatureFrame(View *, int &frame,
2473 size_t &resolution, 2482 size_t &resolution,
2474 SnapType snap) const 2483 SnapType snap) const
2475 { 2484 {
2476 resolution = getWindowIncrement(); 2485 resolution = getWindowIncrement();