2020-12-12 03:28:40 +08:00
|
|
|
#ifndef TRACETOUCHSTONEEXPORT_H
|
|
|
|
#define TRACETOUCHSTONEEXPORT_H
|
2020-08-31 04:03:41 +08:00
|
|
|
|
2021-10-21 19:00:34 +08:00
|
|
|
#include "tracemodel.h"
|
|
|
|
|
2020-08-31 04:03:41 +08:00
|
|
|
#include <QDialog>
|
|
|
|
#include <QComboBox>
|
|
|
|
#include <QSignalMapper>
|
|
|
|
|
|
|
|
namespace Ui {
|
2020-12-12 03:28:40 +08:00
|
|
|
class TraceTouchstoneExport;
|
2020-08-31 04:03:41 +08:00
|
|
|
}
|
|
|
|
|
2020-12-12 03:28:40 +08:00
|
|
|
class TraceTouchstoneExport : public QDialog
|
2020-08-31 04:03:41 +08:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2020-12-12 03:28:40 +08:00
|
|
|
explicit TraceTouchstoneExport(TraceModel &model, QWidget *parent = nullptr);
|
|
|
|
~TraceTouchstoneExport();
|
2020-08-31 04:03:41 +08:00
|
|
|
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:
|
2020-12-12 03:28:40 +08:00
|
|
|
Ui::TraceTouchstoneExport *ui;
|
2020-08-31 04:03:41 +08:00
|
|
|
TraceModel &model;
|
|
|
|
std::vector<std::vector<QComboBox*>> cTraces;
|
|
|
|
|
2021-02-23 04:50:28 +08:00
|
|
|
unsigned int ports;
|
2020-08-31 04:03:41 +08:00
|
|
|
unsigned int points;
|
|
|
|
double lowerFreq, upperFreq;
|
|
|
|
bool freqsSet;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TRACEEXPORTDIALOG_H
|