|
|
|
|
@ -99,7 +99,7 @@ WaterFallView::WaterFallView(SpectrumProvider *spectrum, size_t hist, Direction
|
|
|
|
|
|
|
|
|
|
// Get notified once a new spectrum is available:
|
|
|
|
|
QObject::connect(_spectrum, SIGNAL(spectrumUpdated()), this, SLOT(_onSpectrumUpdated()));
|
|
|
|
|
QObject::connect(_spectrum, SIGNAL(spectrumConfigured()), this, SLOT(update()));
|
|
|
|
|
QObject::connect(_spectrum, SIGNAL(spectrumConfigured()), this, SLOT(_onSpectrumConfigure()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
@ -130,6 +130,19 @@ WaterFallView::_onSpectrumUpdated() {
|
|
|
|
|
this->update();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
WaterFallView::_onSpectrumConfigure() {
|
|
|
|
|
// Update spectrum width
|
|
|
|
|
_N = _spectrum->fftSize();
|
|
|
|
|
// Replace WaterFall pixmap
|
|
|
|
|
_waterfall = QPixmap(_N, _M);
|
|
|
|
|
// Fill waterfall pixmap
|
|
|
|
|
_waterfall.fill(Qt::black);
|
|
|
|
|
|
|
|
|
|
// Trigger update
|
|
|
|
|
this->update();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
WaterFallView::mouseReleaseEvent(QMouseEvent *evt) {
|
|
|
|
|
// If event is accepted -> determine frequency
|
|
|
|
|
|