2020-04-06 23:48:08 +08:00
|
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
|
#include <QProcess>
|
|
|
|
|
#include <QDebug>
|
2020-04-07 18:16:00 +08:00
|
|
|
|
#include <QMessageBox>
|
2020-04-06 23:48:08 +08:00
|
|
|
|
#include "pm3process.h"
|
|
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
namespace Ui { class MainWindow; }
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
MainWindow(QWidget *parent = nullptr);
|
|
|
|
|
~MainWindow();
|
|
|
|
|
|
2020-04-07 18:16:00 +08:00
|
|
|
|
public slots:
|
|
|
|
|
void refresh();
|
2020-04-06 23:48:08 +08:00
|
|
|
|
private slots:
|
2020-04-07 18:16:00 +08:00
|
|
|
|
void on_connectButton_clicked();
|
2020-04-06 23:48:08 +08:00
|
|
|
|
|
2020-04-07 18:16:00 +08:00
|
|
|
|
void on_sendButton_clicked();
|
2020-04-06 23:48:08 +08:00
|
|
|
|
|
2020-04-07 18:16:00 +08:00
|
|
|
|
void on_disconnectButton_clicked();
|
2020-04-06 23:48:08 +08:00
|
|
|
|
|
2020-04-07 18:16:00 +08:00
|
|
|
|
void on_clearButton_clicked();
|
|
|
|
|
|
|
|
|
|
void sendMSG();
|
2020-04-06 23:48:08 +08:00
|
|
|
|
private:
|
|
|
|
|
Ui::MainWindow *ui;
|
|
|
|
|
PM3Process* pm3;
|
|
|
|
|
};
|
|
|
|
|
#endif // MAINWINDOW_H
|