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

Method onBandPlanChanged

Components/PanoramicDialog.cpp:1125–1141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1123}
1124
1125void
1126PanoramicDialog::onBandPlanChanged(int)
1127{
1128 int val = this->ui->allocationCombo->currentData().value<int>();
1129
1130 if (this->currentFAT.size() > 0)
1131 this->ui->waterfall->removeFAT(this->currentFAT);
1132
1133 if (val >= 0) {
1134 this->ui->waterfall->setFATsVisible(true);
1135 this->ui->waterfall->pushFAT(this->FATs[static_cast<unsigned>(val)]);
1136 this->currentFAT = this->FATs[static_cast<unsigned>(val)]->getName();
1137 } else {
1138 this->ui->waterfall->setFATsVisible(false);
1139 this->currentFAT = "";
1140 }
1141}
1142
1143void
1144PanoramicDialog::onGainChanged(QString name, float val)

Callers

nothing calls this directly

Calls 4

removeFATMethod · 0.80
pushFATMethod · 0.80
sizeMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected