Add qmodmaster and move udp app to applications
This commit is contained in:
47
Applications/qModMaster/forms/tools.h
Normal file
47
Applications/qModMaster/forms/tools.h
Normal file
@@ -0,0 +1,47 @@
|
||||
#ifndef TOOLS_H
|
||||
#define TOOLS_H
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <QProcess>
|
||||
#include <QTcpSocket>
|
||||
#include <qcombobox.h>
|
||||
|
||||
#include "src/modbusadapter.h"
|
||||
#include "src/modbuscommsettings.h"
|
||||
|
||||
namespace Ui {
|
||||
class Tools;
|
||||
}
|
||||
|
||||
class Tools : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit Tools(QWidget *parent = 0, ModbusAdapter *adapter = 0, ModbusCommSettings *settings = 0);
|
||||
~Tools();
|
||||
|
||||
private:
|
||||
Ui::Tools *ui;
|
||||
QComboBox *cmbModbusMode;
|
||||
QComboBox *cmbCmd;
|
||||
ModbusAdapter *m_modbusAdapter;
|
||||
ModbusCommSettings *m_modbusCommSettings;
|
||||
QProcess m_pingProc;
|
||||
QTcpSocket m_portProc;
|
||||
QString ipConv(QString ip);
|
||||
void pingProc();
|
||||
void portProc();
|
||||
void diagnosticsProc();
|
||||
void modbusDiagnostics();
|
||||
|
||||
private slots:
|
||||
void exit();
|
||||
void changedModbusMode(int currIndex);
|
||||
void execCmd();
|
||||
void clear();
|
||||
void pingData();
|
||||
|
||||
};
|
||||
|
||||
#endif // TOOLS_H
|
||||
Reference in New Issue
Block a user