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

Method onAnalyzerTypeChanged

Settings/ProfileConfigTab.cpp:965–990  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

963}
964
965void
966ProfileConfigTab::onAnalyzerTypeChanged(int index)
967{
968 if (!this->refreshing) {
969 if (!this->shouldDisregardTweaks()) {
970 this->refreshUi();
971 return;
972 }
973
974 switch (index) {
975 case 0:
976 this->profile.setInterface(SUSCAN_SOURCE_LOCAL_INTERFACE);
977 this->onDeviceChanged(this->savedLocalDeviceIndex);
978 break;
979
980 case 1:
981 this->savedLocalDeviceIndex = this->ui->deviceCombo->currentIndex();
982 this->profile.setInterface(SUSCAN_SOURCE_REMOTE_INTERFACE);
983 this->onChangeConnectionType();
984 this->onRemoteParamsChanged();
985 break;
986 }
987
988 this->refreshUiState();
989 }
990}
991
992void
993ProfileConfigTab::onRemoteParamsChanged(void)

Callers 1

saveMethod · 0.95

Calls 7

shouldDisregardTweaksMethod · 0.95
refreshUiMethod · 0.95
onDeviceChangedMethod · 0.95
onRemoteParamsChangedMethod · 0.95
refreshUiStateMethod · 0.95
setInterfaceMethod · 0.80

Tested by

no test coverage detected