mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-04 22:17:31 +00:00
PC Application: partial firmware update dialog
This commit is contained in:
parent
8c8749accd
commit
07ba714f1f
134 changed files with 13954 additions and 7 deletions
46
Software/PC_Application/CustomWidgets/touchstoneimport.h
Normal file
46
Software/PC_Application/CustomWidgets/touchstoneimport.h
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
#ifndef TOUCHSTONEIMPORT_H
|
||||
#define TOUCHSTONEIMPORT_H
|
||||
|
||||
#include <QWidget>
|
||||
#include "touchstone.h"
|
||||
#include <QButtonGroup>
|
||||
|
||||
namespace Ui {
|
||||
class TouchstoneImport;
|
||||
}
|
||||
|
||||
class TouchstoneImport : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit TouchstoneImport(QWidget *parent = nullptr, int ports = 0);
|
||||
~TouchstoneImport();
|
||||
|
||||
bool getStatus();
|
||||
Touchstone getTouchstone();
|
||||
void setPorts(int ports);
|
||||
QString getFilename();
|
||||
void selectPort(int destination, int source);
|
||||
std::vector<int> getPorts();
|
||||
|
||||
signals:
|
||||
void statusChanged(bool status);
|
||||
void filenameChanged(QString name);
|
||||
|
||||
public slots:
|
||||
void setFile(QString filename);
|
||||
|
||||
private slots:
|
||||
void on_browse_clicked();
|
||||
|
||||
private:
|
||||
void evaluateFile();
|
||||
void preventCollisionWithGroup(QButtonGroup *group, int id);
|
||||
Ui::TouchstoneImport *ui;
|
||||
int required_ports;
|
||||
Touchstone touchstone;
|
||||
bool status;
|
||||
};
|
||||
|
||||
#endif // TOUCHSTONEIMPORT_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue