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

Method refreshFrequencyLimits

Settings/ProfileConfigTab.cpp:232–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232void
233ProfileConfigTab::refreshFrequencyLimits(void)
234{
235 SUFREQ lnbFreq = this->ui->lnbSpinBox->value();
236 SUFREQ devMinFreq = PROFILE_CONFIG_TAB_MIN_DEVICE_FREQ;
237 SUFREQ devMaxFreq = PROFILE_CONFIG_TAB_MAX_DEVICE_FREQ;
238
239 if (this->profile.getType() == SUSCAN_SOURCE_TYPE_FILE) {
240 devMinFreq = SIGDIGGER_MIN_RADIO_FREQ;
241 devMaxFreq = SIGDIGGER_MAX_RADIO_FREQ;
242 } else {
243 const Suscan::Source::Device *dev = &(this->profile.getDevice());
244
245 if (dev != nullptr) {
246 devMinFreq = dev->getMinFreq();
247 devMaxFreq = dev->getMaxFreq();
248 }
249 }
250 // DEVFREQ = FREQ - LNB
251
252 this->ui->frequencySpinBox->setMinimum(devMinFreq + lnbFreq);
253 this->ui->frequencySpinBox->setMaximum(devMaxFreq + lnbFreq);
254}
255
256QString
257ProfileConfigTab::getSampRateString(qreal trueRate)

Callers 3

refreshProfileUiMethod · 0.95
onToggleSourceTypeMethod · 0.95
onSpinsChangedMethod · 0.95

Calls 4

valueMethod · 0.80
getTypeMethod · 0.45
getMinFreqMethod · 0.45
getMaxFreqMethod · 0.45

Tested by

no test coverage detected