MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / onRangeChanged

Method onRangeChanged

Default/FFT/FFTWidget.cpp:1197–1220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1195}
1196
1197void
1198FFTWidget::onRangeChanged(float min, float max)
1199{
1200 bool specState = m_spectrum->signalsBlocked();
1201 bool fftState = this->ui->pandRange->signalsBlocked();
1202
1203 m_spectrum->blockSignals(true);
1204 this->ui->pandRange->blockSignals(true);
1205 this->ui->wfRange->blockSignals(true);
1206
1207 m_spectrum->setPandapterRange(min, max);
1208 this->setPandRangeMin(std::floor(min));
1209 this->setPandRangeMax(std::floor(max));
1210
1211 if (this->getRangeLock()) {
1212 m_spectrum->setWfRange(min, max);
1213 this->setWfRangeMin(std::floor(min));
1214 this->setWfRangeMax(std::floor(max));
1215 }
1216
1217 m_spectrum->blockSignals(specState);
1218 this->ui->pandRange->blockSignals(fftState);
1219 this->ui->wfRange->blockSignals(fftState);
1220}
1221
1222void
1223FFTWidget::onZoomChanged(float level)

Callers

nothing calls this directly

Calls 7

setPandRangeMinMethod · 0.95
setPandRangeMaxMethod · 0.95
getRangeLockMethod · 0.95
setWfRangeMinMethod · 0.95
setWfRangeMaxMethod · 0.95
setPandapterRangeMethod · 0.80
setWfRangeMethod · 0.45

Tested by

no test coverage detected