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

Method onOpenInspector

Default/Inspection/InspToolWidget.cpp:682–705  ·  view source on GitHub ↗

////////////////////////////// Slots /////////////////////////////////////

Source from the content-addressed store, hash-verified

680
681/////////////////////////////////// Slots /////////////////////////////////////
682void
683InspToolWidget::onOpenInspector(void)
684{
685 Suscan::Channel ch;
686 ch.bw = this->getBandwidth();
687 ch.ft = 0;
688 ch.fc = SCAST(SUFREQ, this->mediator()->getMainSpectrum()->getLoFreq());
689 ch.fLow = - .5 * ch.bw;
690 ch.fHigh = + .5 * ch.bw;
691
692 if (this->ui->inspectorCombo->currentIndex() == -1)
693 return;
694
695 this->panelConfig->inspFactory =
696 this->ui->inspectorCombo->currentData().value<QString>().toStdString();
697
698 this->panelConfig->inspectorClass = this->getInspectorClass();
699
700 this->mediator()->openInspectorTab(
701 this->panelConfig->inspFactory.c_str(),
702 this->panelConfig->inspectorClass.c_str(),
703 ch,
704 this->ui->preciseCheck->isChecked());
705}
706
707void
708InspToolWidget::onBandwidthChanged(double bw)

Callers

nothing calls this directly

Calls 6

getBandwidthMethod · 0.95
getInspectorClassMethod · 0.95
getLoFreqMethod · 0.80
getMainSpectrumMethod · 0.80
mediatorMethod · 0.80
openInspectorTabMethod · 0.80

Tested by

no test coverage detected