| 388 | } |
| 389 | |
| 390 | void |
| 391 | FrequencyCorrectionDialog::refreshUiState(void) |
| 392 | { |
| 393 | this->ui->detailsStackedWidget->setCurrentIndex( |
| 394 | this->ui->correctionTypeCombo->currentIndex()); |
| 395 | |
| 396 | if (this->ui->satCombo->count() == 0) { |
| 397 | bool tleSig, satSig; |
| 398 | tleSig = this->ui->tleRadio->signalsBlocked(); |
| 399 | satSig = this->ui->satRadio->signalsBlocked(); |
| 400 | |
| 401 | this->ui->tleRadio->blockSignals(true); |
| 402 | this->ui->satRadio->blockSignals(true); |
| 403 | |
| 404 | this->ui->tleRadio->setChecked(true); |
| 405 | |
| 406 | this->ui->tleRadio->blockSignals(tleSig); |
| 407 | this->ui->satRadio->blockSignals(satSig); |
| 408 | |
| 409 | this->ui->satRadio->setEnabled(false); |
| 410 | } else { |
| 411 | this->ui->satRadio->setEnabled(false); |
| 412 | } |
| 413 | |
| 414 | this->ui->satCombo->setEnabled(this->ui->satRadio->isChecked()); |
| 415 | this->ui->tleEdit->setEnabled(this->ui->tleRadio->isChecked()); |
| 416 | } |
| 417 | |
| 418 | void |
| 419 | FrequencyCorrectionDialog::refreshOrbit(void) |
no test coverage detected