LibreVNA/Software/PC_Application/Traces/tracetouchstoneexport.h
2021-10-21 08:31:31 -03:00

41 lines
861 B
C++

#ifndef TRACETOUCHSTONEEXPORT_H
#define TRACETOUCHSTONEEXPORT_H
#include "tracemodel.h"
#include <QDialog>
#include <QComboBox>
#include <QSignalMapper>
namespace Ui {
class TraceTouchstoneExport;
}
class TraceTouchstoneExport : public QDialog
{
Q_OBJECT
public:
explicit TraceTouchstoneExport(TraceModel &model, QWidget *parent = nullptr);
~TraceTouchstoneExport();
bool setTrace(int portFrom, int portTo, Trace *t);
bool setPortNum(int ports);
private slots:
void on_buttonBox_accepted();
void on_sbPorts_valueChanged(int ports);
void selectionChanged(QComboBox *w);
private:
Ui::TraceTouchstoneExport *ui;
TraceModel &model;
std::vector<std::vector<QComboBox*>> cTraces;
unsigned int ports;
unsigned int points;
double lowerFreq, upperFreq;
bool freqsSet;
};
#endif // TRACEEXPORTDIALOG_H