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

Method refreshUiState

Components/FrequencyCorrectionDialog.cpp:390–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388}
389
390void
391FrequencyCorrectionDialog::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
418void
419FrequencyCorrectionDialog::refreshOrbit(void)

Callers 5

setCorrectionEnabledMethod · 0.95
onToggleOrbitTypeMethod · 0.95

Calls 1

setEnabledMethod · 0.45

Tested by

no test coverage detected