mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-21 06:13:41 +00:00
Handle traces created from CSV files in trace edit dialog
This commit is contained in:
parent
fa4e954f73
commit
3038dc0f75
7 changed files with 462 additions and 37 deletions
45
Software/PC_Application/CustomWidgets/csvimport.h
Normal file
45
Software/PC_Application/CustomWidgets/csvimport.h
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
#ifndef CSVIMPORT_H
|
||||
#define CSVIMPORT_H
|
||||
|
||||
#include <QWidget>
|
||||
#include "csv.h"
|
||||
#include "Traces/trace.h"
|
||||
|
||||
namespace Ui {
|
||||
class csvimport;
|
||||
}
|
||||
|
||||
class CSVImport : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit CSVImport(QWidget *parent = nullptr);
|
||||
~CSVImport();
|
||||
|
||||
bool getStatus();
|
||||
CSV getCSV();
|
||||
QString getFilename();
|
||||
|
||||
bool fillTrace(Trace &t);
|
||||
|
||||
signals:
|
||||
void statusChanged(bool status);
|
||||
void filenameChanged(QString name);
|
||||
|
||||
public slots:
|
||||
void setFile(QString filename);
|
||||
void selectTrace(unsigned int index);
|
||||
|
||||
private slots:
|
||||
void on_browse_clicked();
|
||||
|
||||
private:
|
||||
void evaluateFile();
|
||||
Ui::csvimport *ui;
|
||||
int required_ports;
|
||||
CSV csv;
|
||||
bool status;
|
||||
};
|
||||
|
||||
#endif // CSVIMPORT_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue