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