1 Star 0 Fork 1

冷月宫主/VirtualDtu

forked from yuyaowen/VirtualDtu 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mainwindow.h 1.78 KB
一键复制 编辑 原始数据 按行查看 历史
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QByteArray>
#include "serial.h"
#include "netsocket.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
public slots:
void serialReadDone();
void socketCountUpdate();
void socketReadDone();
private slots:
void on_serialSelectComboBox_currentTextChanged(const QString &arg1);
void on_openSerialPortRadioButton_toggled(bool checked);
void on_baudRateComboBox_currentTextChanged(const QString &arg1);
void on_dataBitComboBox_currentTextChanged(const QString &arg1);
void on_checkBitComboBox_currentIndexChanged(int index);
void on_stopBitComboBox_currentIndexChanged(int index);
void on_hexDisplayRadioButton_toggled(bool checked);
void on_hexSendRadioButton_toggled(bool checked);
void on_clearRecvPushButton_clicked();
void on_clearSendPushButton_clicked();
void on_sendPushButton_clicked();
void on_recvTextBrowser_textChanged();
void on_hexDisplayRadioButtonNet_toggled(bool checked);
void on_recvTextBrowserNet_textChanged();
void on_clearRecvPushButtonNet_clicked();
void on_hexSendRadioButtonNet_toggled(bool checked);
void on_clearSendPushButtonNet_clicked();
void on_sendPushButtonNet_clicked();
void on_connectRadioButton_toggled(bool checked);
void on_protocolSelectComboBox_currentIndexChanged(int index);
private:
Ui::MainWindow *ui;
Serial *comPort;
void updateComPortUI();
NetSocket *sock;
QByteArray charToHex(QByteArray chr);
QByteArray senderToHex(QByteArray chr);
QByteArray displayCharToHex(QByteArray chr);
QByteArray displayHexToChar(QByteArray chr);
};
#endif // MAINWINDOW_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/E_wsq/virtual-dtu.git
[email protected]:E_wsq/virtual-dtu.git
E_wsq
virtual-dtu
VirtualDtu
master

搜索帮助