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

Method onFormatChanged

Settings/ProfileConfigTab.cpp:922–953  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

920}
921
922void
923ProfileConfigTab::onFormatChanged(int index)
924{
925 if (!this->refreshing) {
926 this->configChanged(true);
927 switch (index) {
928 case 0:
929 this->profile.setFormat(SUSCAN_SOURCE_FORMAT_AUTO);
930 break;
931
932 case 1:
933 this->profile.setFormat(SUSCAN_SOURCE_FORMAT_RAW_FLOAT32);
934 break;
935
936 case 2:
937 this->profile.setFormat(SUSCAN_SOURCE_FORMAT_RAW_UNSIGNED8);
938 break;
939
940 case 3:
941 this->profile.setFormat(SUSCAN_SOURCE_FORMAT_RAW_SIGNED8);
942 break;
943
944 case 4:
945 this->profile.setFormat(SUSCAN_SOURCE_FORMAT_RAW_SIGNED16);
946 break;
947
948 case 5:
949 this->profile.setFormat(SUSCAN_SOURCE_FORMAT_WAV);
950 break;
951 }
952 }
953}
954
955void
956ProfileConfigTab::onAntennaChanged(int)

Callers 1

saveMethod · 0.95

Calls 2

configChangedMethod · 0.95
setFormatMethod · 0.80

Tested by

no test coverage detected