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

Method onToggleSourceType

Settings/ProfileConfigTab.cpp:860–875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

858}
859
860void
861ProfileConfigTab::onToggleSourceType(bool)
862{
863 if (!this->refreshing) {
864 this->configChanged(true);
865 if (this->ui->sdrRadio->isChecked()) {
866 this->profile.setType(SUSCAN_SOURCE_TYPE_SDR);
867 } else {
868 this->profile.setType(SUSCAN_SOURCE_TYPE_FILE);
869 this->guessParamsFromFileName();
870 }
871
872 this->refreshUiState();
873 this->refreshFrequencyLimits();
874 }
875}
876
877void
878ProfileConfigTab::onDeviceChanged(int index)

Callers

nothing calls this directly

Calls 5

configChangedMethod · 0.95
refreshUiStateMethod · 0.95
setTypeMethod · 0.80

Tested by

no test coverage detected