Mercurial > hg > svgui
comparison view/Pane.cpp @ 280:3c402c6052f6
* Pull peak-picker out of SpectrumLayer and into FFTModel; use combined
peak-picker and frequency estimator for SpectrogramLayer (makes the
peak frequency spectrogram a bit quicker)
* Add more information to spectrum and spectrogram crosshairs
author | Chris Cannam |
---|---|
date | Wed, 04 Jul 2007 15:29:16 +0000 |
parents | 8acd30ed735c |
children | 4edaff85875d |
comparison
equal
deleted
inserted
replaced
279:47fe0352861e | 280:3c402c6052f6 |
---|---|
1585 | 1585 |
1586 Layer *layer = getSelectedLayer(); | 1586 Layer *layer = getSelectedLayer(); |
1587 if (layer && layer->isLayerEditable()) { | 1587 if (layer && layer->isLayerEditable()) { |
1588 if (layer->editOpen(this, e)) relocate = false; | 1588 if (layer->editOpen(this, e)) relocate = false; |
1589 } | 1589 } |
1590 | |
1591 } else if (mode == ViewManager::MeasureMode) { | |
1592 | |
1593 Layer *layer = getTopLayer(); | |
1594 if (layer) layer->measureDoubleClick(this, e); | |
1595 update(); | |
1590 } | 1596 } |
1591 | 1597 |
1592 if (relocate) { | 1598 if (relocate) { |
1593 | 1599 |
1594 long f = getFrameForX(e->x()); | 1600 long f = getFrameForX(e->x()); |