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

Method ProfileConfigTab

Settings/ProfileConfigTab.cpp:791–827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

789}
790
791ProfileConfigTab::ProfileConfigTab(QWidget *parent) : ConfigTab(parent, "Source"),
792 profile(SUSCAN_SOURCE_TYPE_FILE, SUSCAN_SOURCE_FORMAT_AUTO)
793{
794 this->ui = new Ui::ProfileConfigTab;
795 this->ui->setupUi(this);
796
797 // Set local analyzer as default
798 this->ui->analyzerTypeCombo->setCurrentIndex(0);
799
800 this->tweaks = new DeviceTweaks(this);
801 this->tweaks->setModal(true);
802
803 // Setup remote device
804 this->remoteDevice = Suscan::Source::Device(
805 "Remote device",
806 "localhost",
807 28001,
808 "anonymous",
809 "");
810
811 // Setup sample rate size
812 this->ui->trueRateLabel->setFixedWidth(
813 SuWidgetsHelpers::getWidgetTextWidth(
814 this->ui->trueRateLabel,
815 "XXX.XXX Xsps"));
816
817 // Set limits
818 this->ui->lnbSpinBox->setMaximum(300e9);
819 this->ui->lnbSpinBox->setMinimum(-300e9);
820
821 // Populate locations
822 this->populateCombos();
823 this->ui->sampleRateSpinBox->setUnits("sps");
824 this->connectAll();
825 this->refreshUi();
826
827}
828
829QString
830ProfileConfigTab::getBaseName(const QString &path)

Callers

nothing calls this directly

Calls 5

populateCombosMethod · 0.95
connectAllMethod · 0.95
refreshUiMethod · 0.95
DeviceClass · 0.85
setUnitsMethod · 0.80

Tested by

no test coverage detected