LibreVNA/Software/PC_Application/LibreVNA-GUI/Calibration/manualcalibrationdialog.cpp
Jan Käberich 10ba138104
Some checks failed
Build / PC_Application_Ubuntu (push) Has been cancelled
Build / PC_Application_RPi5 (push) Has been cancelled
Build / PC_Application_Windows (push) Has been cancelled
Build / PC_Application_OSX (push) Has been cancelled
Build / PC_Application_OSX_13 (push) Has been cancelled
Build / Embedded_Firmware (push) Has been cancelled
HIL_Tests / Get_Repository (push) Has been cancelled
Unit_Tests / Tests (push) Has been cancelled
HIL_Tests / PC_Application_RPi5 (push) Has been cancelled
HIL_Tests / Embedded_Firmware (push) Has been cancelled
HIL_Tests / HIL (push) Has been cancelled
Allow manual calibration of incomplete trace sets
2025-08-10 17:48:18 +02:00

24 lines
801 B
C++

#include "manualcalibrationdialog.h"
#include "ui_manualcalibrationdialog.h"
#include "Traces/sparamtraceselector.h"
ManualCalibrationDialog::ManualCalibrationDialog(const TraceModel &model, Calibration *cal) :
ui(new Ui::ManualCalibrationDialog)
{
ui->setupUi(this);
auto traceSelector = new SparamTraceSelector(model, cal->getCaltype().usedPorts, true);
ui->verticalLayout->insertWidget(1, traceSelector, 1.0);
ui->buttonBox->setEnabled(false);
connect(traceSelector, &SparamTraceSelector::selectionValid, ui->buttonBox, &QDialogButtonBox::setEnabled);
connect(ui->buttonBox, &QDialogButtonBox::accepted, [=]() {
cal->correctTraces(traceSelector->getTraces());
accept();
});
}
ManualCalibrationDialog::~ManualCalibrationDialog()
{
delete ui;
}