| 789 | } |
| 790 | |
| 791 | ProfileConfigTab::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 | |
| 829 | QString |
| 830 | ProfileConfigTab::getBaseName(const QString &path) |
nothing calls this directly
no test coverage detected