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

Method save

Settings/ProfileConfigTab.cpp:473–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471}
472
473void
474ProfileConfigTab::save()
475{
476 bool modified = this->modified;
477 bool needsRestart = this->needsRestart;
478
479 this->profile.setType(
480 this->ui->sdrRadio->isChecked()
481 ? SUSCAN_SOURCE_TYPE_SDR
482 : SUSCAN_SOURCE_TYPE_FILE);
483
484 if (!this->hasTweaks)
485 this->onDeviceChanged(this->ui->deviceCombo->currentIndex());
486
487 this->onFormatChanged(this->ui->formatCombo->currentIndex());
488 this->onBandwidthChanged(this->ui->bandwidthSpinBox->value());
489 this->onCheckButtonsToggled(false);
490 this->onSpinsChanged();
491
492 if (!this->hasTweaks)
493 this->onAnalyzerTypeChanged(this->ui->analyzerTypeCombo->currentIndex());
494
495 this->modified = modified;
496 this->needsRestart = needsRestart;
497}
498
499void
500ProfileConfigTab::setUnchanged(void)

Callers

nothing calls this directly

Calls 8

onDeviceChangedMethod · 0.95
onFormatChangedMethod · 0.95
onBandwidthChangedMethod · 0.95
onCheckButtonsToggledMethod · 0.95
onSpinsChangedMethod · 0.95
onAnalyzerTypeChangedMethod · 0.95
setTypeMethod · 0.80
valueMethod · 0.80

Tested by

no test coverage detected