| 880 | ////////////////////////////// Slots ////////////////////////////////////// |
| 881 | |
| 882 | void |
| 883 | PanoramicDialog::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 | |
| 904 | void |
| 905 | PanoramicDialog::onFullRangeChanged(void) |
no test coverage detected