增加主页设置三维建模通信设置及状态监测
parent
f67967ff71
commit
1aa55856c5
@ -1,52 +1,69 @@
|
||||
#ifndef STRUCTDEFINEMYSLEF_H
|
||||
#define STRUCTDEFINEMYSLEF_H
|
||||
|
||||
|
||||
#include <QString>
|
||||
#include <QHostAddress>
|
||||
#include <QString>
|
||||
|
||||
struct MyPairNetwork
|
||||
{
|
||||
struct MyPairNetwork {
|
||||
public:
|
||||
MyPairNetwork(){};
|
||||
MyPairNetwork(QString a,int b,QString c,int d){
|
||||
localIP = a;
|
||||
localPort = b;
|
||||
remoteIP = c;
|
||||
remotePort = d;
|
||||
localAddr.setAddress(localIP);
|
||||
remoteAddr.setAddress(remoteIP);
|
||||
}
|
||||
MyPairNetwork() {};
|
||||
MyPairNetwork(QString a, int b, QString c, int d) {
|
||||
localIP = a;
|
||||
localPort = b;
|
||||
remoteIP = c;
|
||||
remotePort = d;
|
||||
localAddr.setAddress(localIP);
|
||||
remoteAddr.setAddress(remoteIP);
|
||||
}
|
||||
|
||||
private:
|
||||
QString localIP;
|
||||
quint16 localPort;
|
||||
QHostAddress localAddr;
|
||||
QString remoteIP;
|
||||
quint16 remotePort;
|
||||
QHostAddress remoteAddr;
|
||||
QString localIP;
|
||||
quint16 localPort;
|
||||
QHostAddress localAddr;
|
||||
QString remoteIP;
|
||||
quint16 remotePort;
|
||||
QHostAddress remoteAddr;
|
||||
|
||||
public:
|
||||
void setLocalIP(QString ip){
|
||||
localIP = ip;
|
||||
localAddr.setAddress(localIP);
|
||||
}
|
||||
void setLocalPort(quint16 port){
|
||||
localPort = port;
|
||||
}
|
||||
void setRemoteIP(QString ip){
|
||||
remoteIP = ip;
|
||||
remoteAddr.setAddress(remoteIP);
|
||||
}
|
||||
void setRemotePort(quint16 port){
|
||||
remotePort = port;
|
||||
}
|
||||
QString getLocalIP(){return localIP;}
|
||||
quint16 getLocalPort(){return localPort;}
|
||||
QHostAddress getLocalAddr(){return localAddr;}
|
||||
QString getRemoteIP(){return remoteIP;}
|
||||
quint16 getRemotePort(){return remotePort;}
|
||||
QHostAddress getRemoteAddr(){return remoteAddr;}
|
||||
void setLocalIP(QString ip) {
|
||||
localIP = ip;
|
||||
localAddr.setAddress(localIP);
|
||||
}
|
||||
void setLocalPort(quint16 port) { localPort = port; }
|
||||
void setRemoteIP(QString ip) {
|
||||
remoteIP = ip;
|
||||
remoteAddr.setAddress(remoteIP);
|
||||
}
|
||||
void setRemotePort(quint16 port) { remotePort = port; }
|
||||
QString getLocalIP() { return localIP; }
|
||||
quint16 getLocalPort() { return localPort; }
|
||||
QHostAddress getLocalAddr() { return localAddr; }
|
||||
QString getRemoteIP() { return remoteIP; }
|
||||
quint16 getRemotePort() { return remotePort; }
|
||||
QHostAddress getRemoteAddr() { return remoteAddr; }
|
||||
};
|
||||
// 串口
|
||||
struct serialStruct {
|
||||
QString serialId;
|
||||
int baudrate;
|
||||
};
|
||||
// 网口
|
||||
struct netStruct {
|
||||
QString localIp;
|
||||
QString remoteIp;
|
||||
int localPort;
|
||||
int remotePort;
|
||||
};
|
||||
// 设置结构体
|
||||
struct settingStruct {
|
||||
public:
|
||||
settingStruct() {};
|
||||
// settingStruct(QString str1, QString str2, int d) { url = str1; }
|
||||
|
||||
public:
|
||||
QString url; // 网址
|
||||
serialStruct serial; // 串口
|
||||
netStruct net; // 网口
|
||||
};
|
||||
|
||||
#endif // STRUCTDEFINEMYSLEF_H
|
||||
|
@ -1,65 +1,68 @@
|
||||
#ifndef MODELCAMERADLG_H
|
||||
#define MODELCAMERADLG_H
|
||||
|
||||
#include <QDialog>
|
||||
#include "Src/GDDC/structDefineMyslef.h"
|
||||
#include "encodemodelcamera.h"
|
||||
#include <QByteArray>
|
||||
#include <QDialog>
|
||||
#include <QThread>
|
||||
#include "encodemodelcamera.h"
|
||||
#include <qendian.h>
|
||||
|
||||
namespace Ui {
|
||||
class ModelCameraDlg;
|
||||
}
|
||||
|
||||
class ModelCameraDlg : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
class ModelCameraDlg : public QDialog {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ModelCameraDlg(QWidget *parent = nullptr);
|
||||
~ModelCameraDlg();
|
||||
explicit ModelCameraDlg(QWidget *parent = nullptr);
|
||||
~ModelCameraDlg();
|
||||
void setNetParam(netStruct);
|
||||
|
||||
signals:
|
||||
void on_sendCmdData_signal(QByteArray cmdDataArray);
|
||||
void on_sendCmdData_signal(QByteArray cmdDataArray);
|
||||
private slots:
|
||||
void on_startPhotoBtn_clicked();
|
||||
void on_startPhotoBtn_clicked();
|
||||
|
||||
void on_stopPhotoBtn_clicked();
|
||||
void on_stopPhotoBtn_clicked();
|
||||
|
||||
void on_ONBtn_clicked();
|
||||
void on_ONBtn_clicked();
|
||||
|
||||
void on_OFFBtn_clicked();
|
||||
void on_OFFBtn_clicked();
|
||||
|
||||
void on_pushButton_5_clicked();
|
||||
void on_pushButton_5_clicked();
|
||||
|
||||
void on_SSComboBox_activated(int index);
|
||||
void on_SSComboBox_activated(int index);
|
||||
|
||||
void on_ISOComboBox_activated(int index);
|
||||
void on_ISOComboBox_activated(int index);
|
||||
|
||||
void on_AWBComboBox_activated(int index);
|
||||
void on_AWBComboBox_activated(int index);
|
||||
|
||||
void on_cameraModelComboBox_activated(int index);
|
||||
void on_cameraModelComboBox_activated(int index);
|
||||
|
||||
void on_ColorModelComboBox_activated(int index);
|
||||
void on_ColorModelComboBox_activated(int index);
|
||||
|
||||
void on_receiveUDP(QByteArray cmdDataArray);
|
||||
|
||||
void on_receiveUDP(QByteArray cmdDataArray);
|
||||
private:
|
||||
void InitialComboBox();
|
||||
// 状态查询指令
|
||||
// 查询开关机
|
||||
void quireOnorOff();
|
||||
void quirePictranStatus();
|
||||
void quireShutterSpeed();
|
||||
void quireISO();
|
||||
void quireAWB();
|
||||
void quireCameraMode();
|
||||
void quireColorMode();
|
||||
void quireTempe();
|
||||
void quirePicNumAll();
|
||||
void InitialComboBox();
|
||||
// 状态查询指令
|
||||
// 查询开关机
|
||||
void quireOnorOff();
|
||||
void quirePictranStatus();
|
||||
void quireShutterSpeed();
|
||||
void quireISO();
|
||||
void quireAWB();
|
||||
void quireCameraMode();
|
||||
void quireColorMode();
|
||||
void quireTempe();
|
||||
void quirePicNumAll();
|
||||
|
||||
private:
|
||||
Ui::ModelCameraDlg *ui;
|
||||
QThread* cameraCMDThread;
|
||||
QByteArray cmdDataArray;
|
||||
EncodeModelCamera* encodeModelCamera;
|
||||
Ui::ModelCameraDlg *ui;
|
||||
QThread *cameraCMDThread;
|
||||
QByteArray cmdDataArray;
|
||||
EncodeModelCamera *encodeModelCamera;
|
||||
};
|
||||
|
||||
#endif // MODELCAMERADLG_H
|
||||
|
@ -1,74 +1,74 @@
|
||||
#ifndef MAINWINDOW_H
|
||||
#define MAINWINDOW_H
|
||||
|
||||
#include <QMainWindow>
|
||||
#include "SDFPDlg.h"
|
||||
#include "Src/GDDC/gddcdlg.h"
|
||||
#include "Src/ModelCamera/modelcameradlg.h"
|
||||
#include "Src/HomePage/homepagedlg.h"
|
||||
#include "Src/ModelCamera/modelcameradlg.h"
|
||||
#include "Src/RescueLoad/rescueloadwidget.h"
|
||||
#include "SDFPDlg.h"
|
||||
#include <QPushButton>
|
||||
#include <QLabel>
|
||||
#include <QAction>
|
||||
#include <QGridLayout>
|
||||
#include <QLabel>
|
||||
#include <QLineEdit>
|
||||
#include <QTextEdit>
|
||||
#include <QMainWindow>
|
||||
#include <QMenu>
|
||||
#include <QMenuBar>
|
||||
#include <QGridLayout>
|
||||
#include <QWebEngineView>
|
||||
#include <QProcess>
|
||||
#include <QPushButton>
|
||||
#include <QTextEdit>
|
||||
#include <QWebEngineView>
|
||||
QT_BEGIN_NAMESPACE
|
||||
namespace Ui {
|
||||
class MainWindow;
|
||||
}
|
||||
QT_END_NAMESPACE
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
class MainWindow : public QMainWindow {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
MainWindow(QWidget *parent = nullptr);
|
||||
~MainWindow();
|
||||
MainWindow(QWidget *parent = nullptr);
|
||||
~MainWindow();
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
Ui::MainWindow *ui;
|
||||
|
||||
void initFile();
|
||||
|
||||
void initFile();
|
||||
public:
|
||||
void initWindow();
|
||||
void initButton();
|
||||
void initMenuBar();
|
||||
void initToolBar();
|
||||
void initSignalSlot();
|
||||
void initWindow();
|
||||
void initButton();
|
||||
void initMenuBar();
|
||||
void initToolBar();
|
||||
void initSignalSlot();
|
||||
private slots:
|
||||
void toolButton_clicked();
|
||||
void toolButton_2_clicked();
|
||||
void toolButton_3_clicked();
|
||||
void toolButton_4_clicked();
|
||||
void toolButton_5_clicked();
|
||||
void toolButton_6_clicked();
|
||||
void toolButton_7_clicked();
|
||||
void toolButton_8_clicked();
|
||||
void toolButton_9_clicked();
|
||||
void toolButton_clicked();
|
||||
void toolButton_2_clicked();
|
||||
void toolButton_3_clicked();
|
||||
void toolButton_4_clicked();
|
||||
void toolButton_5_clicked();
|
||||
void toolButton_6_clicked();
|
||||
void toolButton_7_clicked();
|
||||
void toolButton_8_clicked();
|
||||
void toolButton_9_clicked();
|
||||
|
||||
public:
|
||||
GDDCdlg *m_GDDCdlg;
|
||||
HomePageDlg *m_HomePagedlg;
|
||||
RescueLoadWidget *m_rescueLoadWidget;
|
||||
SDFPDlg *m_SDFPDlg;
|
||||
//QWeb *m_qWeb;
|
||||
QWebEngineView *mWeb;
|
||||
ModelCameraDlg* m_ModelCameraDlg;
|
||||
QWebEngineView *lLinkWeb;//L链
|
||||
QWebEngineView *adHocNetworkWeb;//自组网
|
||||
QWebEngineView *satelliteCommWeb;//卫通
|
||||
GDDCdlg *m_GDDCdlg;
|
||||
HomePageDlg *m_HomePagedlg;
|
||||
RescueLoadWidget *m_rescueLoadWidget;
|
||||
SDFPDlg *m_SDFPDlg;
|
||||
// QWeb *m_qWeb;
|
||||
QWebEngineView *mWeb;
|
||||
ModelCameraDlg *m_ModelCameraDlg;
|
||||
QWebEngineView *lLinkWeb; // L链
|
||||
QWebEngineView *adHocNetworkWeb; // 自组网
|
||||
QWebEngineView *satelliteCommWeb; // 卫通
|
||||
private:
|
||||
QProcess *process;
|
||||
QString exeDirPathName = "";
|
||||
std::unordered_map<QString,QString> m_urlMap;
|
||||
QProcess *process;
|
||||
QString exeDirPathName = "";
|
||||
std::unordered_map<QString, settingStruct> m_allSetMap;
|
||||
|
||||
public:
|
||||
void changeBtnColor(int num);
|
||||
void changeBtnColor(int num);
|
||||
};
|
||||
#endif // MAINWINDOW_H
|
||||
|
Loading…
Reference in New Issue