feat: 项目代码结构调整

pull/5/head
cbwu 7 months ago
parent eeb9e043e3
commit 508c4d5d17

@ -14,59 +14,58 @@ QMAKE_PROJECT_DEPTH = 0
SOURCES += \ SOURCES += \
Src/GDDC/gddcCmdDlg.cpp \ # Src/GDDC/gddcCmdDlg.cpp \
Src/GDDC/gddcSet.cpp \ # Src/GDDC/gddcSet.cpp \
Src/GDDC/gddcStateInfo.cpp \ # Src/GDDC/gddcStateInfo.cpp \
Src/HomePage/homepagesetingwidget.cpp \ # Src/HomePage/homepagesetingwidget.cpp \
cffmpeg_decode.cpp \ # cffmpeg_decode.cpp \
customwebenginepage.cpp \ # customwebenginepage.cpp \
cwebengineview.cpp \ # cwebengineview.cpp \
encodemodelcamera.cpp \ # encodemodelcamera.cpp \
ffmpegvideodlg.cpp \ # ffmpegvideodlg.cpp \
Src/GDDC/gddcdlg.cpp \ # Src/GDDC/gddcdlg.cpp \
global.cpp \ global.cpp \
Src/HomePage/homepagedlg.cpp \ # Src/HomePage/homepagedlg.cpp \
main.cpp \ main.cpp \
mainwindow.cpp \ mainwindow.cpp \
modelcameradlg.cpp \ # modelcameradlg.cpp \
qweb.cpp \ # qweb.cpp \
rescueload.cpp \ # rescueload.cpp \
rescueloadwidget.cpp # rescueloadwidget.cpp
HEADERS += \ HEADERS += \
DCFrameCkCmd.h \ # DCFrameCkCmd.h \
Src/GDDC/gddcCmdDlg.h \ # Src/GDDC/gddcCmdDlg.h \
Src/GDDC/gddcSet.h \ # Src/GDDC/gddcSet.h \
Src/GDDC/gddcStateInfo.h \ # Src/GDDC/gddcStateInfo.h \
Src/GDDC/structDefineMyslef.h \ # Src/GDDC/structDefineMyslef.h \
Src/HomePage/homepagesetingwidget.h \ # Src/HomePage/homepagesetingwidget.h \
cffmpeg_decode.h \ # cffmpeg_decode.h \
customwebenginepage.h \ # customwebenginepage.h \
cwebengineview.h \ # cwebengineview.h \
encodemodelcamera.h \ # encodemodelcamera.h \
ffmpegvideodlg.h \ # ffmpegvideodlg.h \
Src/GDDC/gddcdlg.h \ # Src/GDDC/gddcdlg.h \
global.h \ global.h \
Src/HomePage/homepagedlg.h \ # Src/HomePage/homepagedlg.h \
mainwindow.h \ mainwindow.h \
modelcameradlg.h \ # modelcameradlg.h \
qweb.h \ # qweb.h \
rescueload.h \ # rescueload.h \
rescueloadwidget.h # rescueloadwidget.h
FORMS += \ FORMS += \
Src/GDDC/gddcCmdDlg.ui \ # Src/GDDC/gddcCmdDlg.ui \
Src/GDDC/gddcSet.ui \ # Src/GDDC/gddcSet.ui \
Src/GDDC/gddcStateInfo.ui \ # Src/GDDC/gddcStateInfo.ui \
Src/HomePage/homepagesetingwidget.ui \ # Src/HomePage/homepagesetingwidget.ui \
ffmpegvideodlg.ui \ # ffmpegvideodlg.ui \
Src/GDDC/gddcdlg.ui \ # Src/GDDC/gddcdlg.ui \
Src/HomePage/homepagedlg.ui \ # Src/HomePage/homepagedlg.ui \
mainwindow.ui \ mainwindow.ui \
modelcameradlg.ui \ # modelcameradlg.ui \
qweb.ui \ # qweb.ui \
rescueloadwidget.ui # rescueloadwidget.ui
rescueloadwidget.ui
TRANSLATIONS += \ TRANSLATIONS += \
PayloadAPP_zh_CN.ts PayloadAPP_zh_CN.ts
@ -80,17 +79,23 @@ else: unix:!android: target.path = /opt/$${TARGET}/bin
RESOURCES += \ RESOURCES += \
mainwindow.qrc \ mainwindow.qrc \
map/places_map.qrc # map/places_map.qrc
DISTFILES += \ DISTFILES += \
config.ini \ config.ini \
res/Qss/qss.qss \ res/Qss/qss.qss \
style.qss style.qss
INCLUDEPATH += $$PWD/ffmpeg//include INCLUDEPATH += $$PWD/ffmpeg/include \
$$PWD/Src/Video/
LIBS += -L$$PWD/ffmpeg/lib \ LIBS += -L$$PWD/ffmpeg/lib \
-lavcodec -lavdevice -lavfilter -lavformat -lavutil -lpostproc \ -lavcodec -lavdevice -lavfilter -lavformat -lavutil -lpostproc \
-lswresample -lswscale -lswresample -lswscale
include($$PWD/Src/HomePage/HomePage.pri)
include($$PWD/Src/WebPage/WebPage.pri)
include($$PWD/Src/ModelCamera/ModelCamera.pri)
include($$PWD/Src/RescueLoad/RescueLoad.pri)
include($$PWD/Src/GDDC/GDDC.pri)
include($$PWD/Src/Video/Video.pri)

@ -0,0 +1,20 @@
SOURCES += \
$$PWD/gddcCmdDlg.cpp \
$$PWD/gddcdlg.cpp \
$$PWD/gddcSet.cpp \
$$PWD/gddcStateInfo.cpp \
HEADERS += \
$$PWD/gddcCmdDlg.h \
$$PWD/gddcdlg.h \
$$PWD/gddcSet.h \
$$PWD/gddcStateInfo.h \
$$PWD/structDefineMyslef.h \
$$PWD/DCFrameCkCmd.h \
FORMS += \
$$PWD/gddcCmdDlg.ui \
$$PWD/gddcdlg.ui \
$$PWD/gddcSet.ui \
$$PWD/gddcStateInfo.ui \

@ -11,7 +11,7 @@
#include <fstream> #include <fstream>
#include <iostream> #include <iostream>
#include <string> #include <string>
#include "cffmpeg_decode.h" #include "Src/Video/cffmpeg_decode.h"
#include "Src/GDDC/gddcSet.h" #include "Src/GDDC/gddcSet.h"
#include <vector> #include <vector>
#include <QHeaderView> #include <QHeaderView>

@ -0,0 +1,11 @@
SOURCES += \
$$PWD/homepagesetingwidget.cpp \
$$PWD/homepagedlg.cpp
HEADERS += \
$$PWD/homepagesetingwidget.h \
$$PWD/homepagedlg.h
FORMS += \
$$PWD/homepagesetingwidget.ui \
$$PWD/homepagedlg.ui \

@ -0,0 +1,11 @@
SOURCES += \
$$PWD/encodemodelcamera.cpp \
$$PWD/modelcameradlg.cpp \
HEADERS += \
$$PWD/encodemodelcamera.h \
$$PWD/modelcameradlg.h \
FORMS += \
$$PWD/modelcameradlg.ui \

@ -634,7 +634,7 @@
<customwidget> <customwidget>
<class>ffmpegvideoDlg</class> <class>ffmpegvideoDlg</class>
<extends>QWidget</extends> <extends>QWidget</extends>
<header>ffmpegvideodlg.h</header> <header location="global">ffmpegvideodlg.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
</customwidgets> </customwidgets>

@ -0,0 +1,13 @@
SOURCES += \
$$PWD/rescueload.cpp \
$$PWD/rescueloadwidget.cpp \
HEADERS += \
$$PWD/rescueload.h \
$$PWD/rescueloadwidget.h \
FORMS += \
$$PWD/rescueloadwidget.ui \
RESOURCES += \
$$PWD/map/places_map.qrc

Before

Width:  |  Height:  |  Size: 752 B

After

Width:  |  Height:  |  Size: 752 B

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

@ -0,0 +1,10 @@
SOURCES += \
$$PWD/cffmpeg_decode.cpp \
$$PWD/ffmpegvideodlg.cpp \
HEADERS += \
$$PWD/cffmpeg_decode.h \
$$PWD/ffmpegvideodlg.h \
FORMS += \
$$PWD/ffmpegvideodlg.ui \

@ -0,0 +1,12 @@
SOURCES += \
$$PWD/customwebenginepage.cpp \
$$PWD/cwebengineview.cpp \
$$PWD/qweb.cpp
HEADERS += \
$$PWD/customwebenginepage.h \
$$PWD/cwebengineview.h \
$$PWD/qweb.h
FORMS += \
$$PWD/qweb.ui \

@ -1,7 +1,7 @@
#include "mainwindow.h" #include "mainwindow.h"
#include "ui_mainwindow.h" #include "ui_mainwindow.h"
#include "CWebEngineView.h" #include "Src/WebPage/cwebengineview.h"
#include "CustomWebEnginePage.h" #include "Src/WebPage/CustomWebEnginePage.h"
#include "global.h" #include "global.h"
#include <QToolBar> #include <QToolBar>
#include <QFlags> #include <QFlags>

@ -3,9 +3,9 @@
#include <QMainWindow> #include <QMainWindow>
#include "Src/GDDC/gddcdlg.h" #include "Src/GDDC/gddcdlg.h"
#include "modelcameradlg.h" #include "Src/ModelCamera/modelcameradlg.h"
#include "Src/HomePage/homepagedlg.h" #include "Src/HomePage/homepagedlg.h"
#include "rescueloadwidget.h" #include "Src/RescueLoad/rescueloadwidget.h"
#include <QPushButton> #include <QPushButton>
#include <QLabel> #include <QLabel>
#include <QAction> #include <QAction>

Loading…
Cancel
Save