- Grafische Ausgabe kann nun als Video aufgezeichnet werden
- Verbindung über TCP/IP
This commit is contained in:
@@ -4,16 +4,31 @@
|
||||
#include <QLineEdit>
|
||||
#include <QDialogButtonBox>
|
||||
#include <QFormLayout>
|
||||
#include <QTabWidget>
|
||||
#include <QSpinBox>
|
||||
#include <QSerialPort>
|
||||
#include <QSerialPortInfo>
|
||||
|
||||
struct SerialConfig {
|
||||
// Which transport to use: a real/virtual serial port, or a plain TCP
|
||||
// connection (e.g. for emulators/firmware that stream their debug
|
||||
// UART over the network, such as FS-UAE piped through socat).
|
||||
enum class ConnectionType { Serial, Network };
|
||||
ConnectionType connectionType = ConnectionType::Serial;
|
||||
|
||||
// Serial-specific
|
||||
QString portName;
|
||||
qint32 baudRate = 115200;
|
||||
QSerialPort::DataBits dataBits = QSerialPort::Data8;
|
||||
QSerialPort::Parity parity = QSerialPort::NoParity;
|
||||
QSerialPort::StopBits stopBits = QSerialPort::OneStop;
|
||||
QSerialPort::FlowControl flowControl = QSerialPort::NoFlowControl;
|
||||
|
||||
// Network-specific
|
||||
QString networkHost;
|
||||
quint16 networkPort = 0;
|
||||
|
||||
// Common
|
||||
QString logFilePath;
|
||||
};
|
||||
|
||||
@@ -32,11 +47,17 @@ private slots:
|
||||
private:
|
||||
void addPtyPorts();
|
||||
|
||||
QTabWidget *m_modeTabs = nullptr;
|
||||
|
||||
QComboBox *m_portCombo = nullptr;
|
||||
QComboBox *m_baudCombo = nullptr;
|
||||
QComboBox *m_dataBitsCombo = nullptr;
|
||||
QComboBox *m_parityCombo = nullptr;
|
||||
QComboBox *m_stopBitsCombo = nullptr;
|
||||
QComboBox *m_flowCombo = nullptr;
|
||||
|
||||
QLineEdit *m_hostEdit = nullptr;
|
||||
QSpinBox *m_portSpin = nullptr;
|
||||
|
||||
QLineEdit *m_logPathEdit = nullptr;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user