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

Method onDeviceChanged

Components/PanoramicDialog.cpp:882–902  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

880////////////////////////////// Slots //////////////////////////////////////
881
882void
883PanoramicDialog::onDeviceChanged(void)
884{
885 Suscan::Source::Device dev;
886
887 if (this->getSelectedDevice(dev)) {
888 unsigned int rtt = preferredRttMs(dev);
889 this->setRanges(dev);
890 this->refreshGains(dev);
891 if (rtt != 0)
892 this->ui->rttSpin->setValue(static_cast<int>(rtt));
893 if (this->ui->fullRangeCheck->isChecked()) {
894 this->ui->rangeStartSpin->setValue(dev.getMinFreq() + this->getLnbOffset());
895 this->ui->rangeEndSpin->setValue(dev.getMaxFreq() + this->getLnbOffset());
896 }
897 } else {
898 this->clearGains();
899 }
900
901 this->adjustRanges();
902}
903
904void
905PanoramicDialog::onFullRangeChanged(void)

Callers 2

populateDeviceComboMethod · 0.95
applyConfigMethod · 0.95

Calls 9

getSelectedDeviceMethod · 0.95
setRangesMethod · 0.95
refreshGainsMethod · 0.95
getLnbOffsetMethod · 0.95
clearGainsMethod · 0.95
adjustRangesMethod · 0.95
setValueMethod · 0.80
getMinFreqMethod · 0.45
getMaxFreqMethod · 0.45

Tested by

no test coverage detected