////////////////////////////// Slots /////////////////////////////////////
| 680 | |
| 681 | /////////////////////////////////// Slots ///////////////////////////////////// |
| 682 | void |
| 683 | InspToolWidget::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 | |
| 707 | void |
| 708 | InspToolWidget::onBandwidthChanged(double bw) |
nothing calls this directly
no test coverage detected