5 changed files with 324 additions and 232 deletions
-
8Projects/QT-Gui-App/Win32-QT-gui-application_2019.vcxproj
-
18lib/App/3dGUI/main-qt.cpp
-
428lib/App/3dGUI/main_window.h
-
98lib/gui/gui.h
-
4lib/gui/guiClass.cpp
@ -1,216 +1,216 @@ |
|||
#ifndef __QT5_MAIN_WINDOW_HEADER__ |
|||
#define __QT5_MAIN_WINDOW_HEADER__ |
|||
|
|||
#include <WinSock2.h> |
|||
|
|||
#include "../../lib/components/base/basicSettingsProvider.h" |
|||
|
|||
#include "../../lib/gui/guiClass.h" |
|||
#include "../../lib/data/media/video/videoAVLIBSource.h" |
|||
#include "../../lib/gui/controls/VideoWidget.h" |
|||
#include "../../lib/gui/controls/OpenGLWidget.h" |
|||
#include "../../lib/gui/controls/OGLRadarWidget.h" |
|||
#include "../../lib/gui/controls/RangeMapWidget.h" |
|||
#include "../../lib/gui/controls/RadarMapWidget.h" |
|||
#include "../../lib/gui/controls/VideoSourceChooser.h" |
|||
#include "../../lib/gui/controls/DeviceChooser.h" |
|||
#include "../../lib/gui/controls/TimeShowWidget.h" |
|||
#include "../../lib/gui/controls/EventViewWidget.h" |
|||
#include "../../lib/gui/controls/ReportsManagerWindow.h" |
|||
#include "../../lib/gui/controls/mapControl/QMapControl" |
|||
#include "../../lib/gui/controls/mapControl/openaerialmapadapter.h" |
|||
|
|||
#include "../../lib/components/object/objectLGS.h" |
|||
#include "../../lib/components/object/objectEventReport.h" |
|||
//#include "../../lib/gui/controls/SettingsLGS.h" |
|||
#include "../../lib/hardware/stick/joystick.h" |
|||
|
|||
class mainWinow : public QMainWindow{ |
|||
private: |
|||
config_setting_t *m_pSettings; |
|||
/* Main Widget */ |
|||
QWidget *m_pMainWidget; |
|||
/* Layouts */ |
|||
QMainWindowLayout *m_pMainLayout; |
|||
QVBoxLayout *m_pVerticalLayout; |
|||
QVBoxLayout *m_pVerticalMapLayout; |
|||
QVBoxLayout *m_pVerticalSideLayout; |
|||
QHBoxLayout *m_pHorizontalLayout; |
|||
QHBoxLayout *m_pScrolbarLayout; |
|||
QVBoxLayout *m_pVVVLayout; |
|||
QVBoxLayout *m_pVCVLayout; |
|||
QPushButton *m_pButtonCmdVideoRecord; |
|||
QSpacerItem *m_pVSpacer1; |
|||
QSpacerItem *m_pVSpacer2; |
|||
QSpacerItem *m_pVSpacer3; |
|||
|
|||
joysticObject *m_pJoyStick; |
|||
/* Widgets */ |
|||
QFrame *m_pTitleFrame; |
|||
TimeShowWidget *m_pTitleWidget; |
|||
QStatusBar *m_pStatusBar; |
|||
QSpacerItem *verticalSpacer; |
|||
QSpacerItem *verticalSideSpacer; |
|||
QSpacerItem *horisontalSpacer; |
|||
QSpacerItem *scrolbarSpacer; |
|||
QPushButton *m_pButtonCmdClear; |
|||
QPushButton *m_pButtonCmdReset; |
|||
QPushButton *m_pButtonCmdSilence; |
|||
QPushButton *m_pButtonCmdReport; |
|||
QPushButton *m_pButtonCmdExit; |
|||
QPushButton *m_pButtonCmdSettings; |
|||
QScrollArea *m_pScrollArea; |
|||
QScrollArea *m_pDevScrollArea; |
|||
EventViewerList *m_pEventsList; |
|||
//QWidget *m_pScrollAreaWidgetContents; |
|||
DeviceChooser *m_pDevScrollAreaWidgetContents; |
|||
VideoSourceChooser *m_pScrollAreaWidgetContents; |
|||
QPushButton *m_pAddVideoSource; |
|||
|
|||
VideoWidget *m_pMainVideoWidget; |
|||
|
|||
//clientPort *m_pMasterSocket; |
|||
//clientPort *m_pSlaveSocket; |
|||
//objectLGS *m_pMasterDevice; |
|||
//objectLGS *m_pSlaveDevice; |
|||
|
|||
guiReportsManagerWindow *m_pReportManager; |
|||
objectEventReport *m_pReportCreator; |
|||
//Control Panels |
|||
QTabWidget *m_pTabWidget; |
|||
QWidget *m_pPage1; |
|||
QWidget *m_pPage2; |
|||
QWidget *m_pPage3; |
|||
QWidget *m_pPage4; |
|||
QWidget *m_pPage5; |
|||
QHBoxLayout *m_pPage1Layout; |
|||
QHBoxLayout *m_pPage2Layout; |
|||
QVBoxLayout *m_pPage3Layout; |
|||
QVBoxLayout *m_pPage4Layout; |
|||
QVBoxLayout *m_pPage5Layout; |
|||
|
|||
QPushButton *m_pButton1; |
|||
QPushButton *m_pButton2; |
|||
QPushButton *m_pButton3; |
|||
QPushButton *m_pButton4; |
|||
|
|||
QPushButton *m_pButton5;//Add Mask |
|||
QPushButton *m_pButton6;//Delete Mask |
|||
QPushButton *m_pButton7;//Activate Masks |
|||
QPushButton *m_pButton8;//Deactivate Masks |
|||
QHBoxLayout *mpLayout; |
|||
QSpacerItem *mpSpacer; |
|||
QProgressBar *m_pProgressBar; |
|||
|
|||
QHBoxLayout *m_pHorizontalLayout1; |
|||
QHBoxLayout *m_pHorizontalLayout2; |
|||
QHBoxLayout *m_pHorizontalLayout3; |
|||
QRadioButton *m_pRadioButton1; |
|||
QRadioButton *m_pRadioButton2; |
|||
QGroupBox *m_pRadioGroup; |
|||
QGroupBox *m_pSampleGroup; |
|||
QComboBox *m_pLRFCombo; |
|||
|
|||
QLabel *m_pStMiRalabel; |
|||
QLabel *m_pStMaRalabel; |
|||
QLabel *m_pStMiSalabel; |
|||
QLabel *m_pStMaSalabel; |
|||
QLabel *m_pStMiRaVal; |
|||
QLabel *m_pStMaRaVal; |
|||
QLabel *m_pStMiSaVal; |
|||
QLabel *m_pStMaSaVal; |
|||
QLabel *m_pOpLabel; |
|||
|
|||
bool m_bUserRecordsVideo; |
|||
|
|||
#ifndef __QT5_MAIN_WINDOW_HEADER__ |
|||
#define __QT5_MAIN_WINDOW_HEADER__ |
|||
|
|||
#include <WinSock2.h> |
|||
|
|||
#include "../../components/base/basicSettingsProvider.h" |
|||
|
|||
#include "../../gui/guiClass.h" |
|||
#include "../../data/media/video/videoAVLIBSource.h" |
|||
#include "../../gui/controls/VideoWidget.h" |
|||
#include "../../gui/controls/OpenGLWidget.h" |
|||
#include "../../gui/controls/OGLRadarWidget.h" |
|||
#include "../../gui/controls/RangeMapWidget.h" |
|||
#include "../../gui/controls/RadarMapWidget.h" |
|||
#include "../../gui/controls/VideoSourceChooser.h" |
|||
#include "../../gui/controls/DeviceChooser.h" |
|||
#include "../../gui/controls/TimeShowWidget.h" |
|||
#include "../../gui/controls/EventViewWidget.h" |
|||
#include "../../gui/controls/ReportsManagerWindow.h" |
|||
#include "../../gui/controls/mapControl/QMapControl" |
|||
#include "../../gui/controls/mapControl/openaerialmapadapter.h" |
|||
|
|||
#include "../../components/object/objectLGS.h" |
|||
#include "../../components/object/objectEventReport.h" |
|||
//#include "../../gui/controls/SettingsLGS.h" |
|||
#include "../../hardware/stick/joystick.h" |
|||
|
|||
class mainWinow : public QMainWindow{ |
|||
private: |
|||
config_setting_t *m_pSettings; |
|||
/* Main Widget */ |
|||
QWidget *m_pMainWidget; |
|||
/* Layouts */ |
|||
QMainWindowLayout *m_pMainLayout; |
|||
QVBoxLayout *m_pVerticalLayout; |
|||
QVBoxLayout *m_pVerticalMapLayout; |
|||
QVBoxLayout *m_pVerticalSideLayout; |
|||
QHBoxLayout *m_pHorizontalLayout; |
|||
QHBoxLayout *m_pScrolbarLayout; |
|||
QVBoxLayout *m_pVVVLayout; |
|||
QVBoxLayout *m_pVCVLayout; |
|||
QPushButton *m_pButtonCmdVideoRecord; |
|||
QSpacerItem *m_pVSpacer1; |
|||
QSpacerItem *m_pVSpacer2; |
|||
QSpacerItem *m_pVSpacer3; |
|||
|
|||
joysticObject *m_pJoyStick; |
|||
/* Widgets */ |
|||
QFrame *m_pTitleFrame; |
|||
TimeShowWidget *m_pTitleWidget; |
|||
QStatusBar *m_pStatusBar; |
|||
QSpacerItem *verticalSpacer; |
|||
QSpacerItem *verticalSideSpacer; |
|||
QSpacerItem *horisontalSpacer; |
|||
QSpacerItem *scrolbarSpacer; |
|||
QPushButton *m_pButtonCmdClear; |
|||
QPushButton *m_pButtonCmdReset; |
|||
QPushButton *m_pButtonCmdSilence; |
|||
QPushButton *m_pButtonCmdReport; |
|||
QPushButton *m_pButtonCmdExit; |
|||
QPushButton *m_pButtonCmdSettings; |
|||
QScrollArea *m_pScrollArea; |
|||
QScrollArea *m_pDevScrollArea; |
|||
EventViewerList *m_pEventsList; |
|||
//QWidget *m_pScrollAreaWidgetContents; |
|||
DeviceChooser *m_pDevScrollAreaWidgetContents; |
|||
VideoSourceChooser *m_pScrollAreaWidgetContents; |
|||
QPushButton *m_pAddVideoSource; |
|||
|
|||
VideoWidget *m_pMainVideoWidget; |
|||
|
|||
//clientPort *m_pMasterSocket; |
|||
//clientPort *m_pSlaveSocket; |
|||
//objectLGS *m_pMasterDevice; |
|||
//objectLGS *m_pSlaveDevice; |
|||
|
|||
guiReportsManagerWindow *m_pReportManager; |
|||
objectEventReport *m_pReportCreator; |
|||
//Control Panels |
|||
QTabWidget *m_pTabWidget; |
|||
QWidget *m_pPage1; |
|||
QWidget *m_pPage2; |
|||
QWidget *m_pPage3; |
|||
QWidget *m_pPage4; |
|||
QWidget *m_pPage5; |
|||
QHBoxLayout *m_pPage1Layout; |
|||
QHBoxLayout *m_pPage2Layout; |
|||
QVBoxLayout *m_pPage3Layout; |
|||
QVBoxLayout *m_pPage4Layout; |
|||
QVBoxLayout *m_pPage5Layout; |
|||
|
|||
QPushButton *m_pButton1; |
|||
QPushButton *m_pButton2; |
|||
QPushButton *m_pButton3; |
|||
QPushButton *m_pButton4; |
|||
|
|||
QPushButton *m_pButton5;//Add Mask |
|||
QPushButton *m_pButton6;//Delete Mask |
|||
QPushButton *m_pButton7;//Activate Masks |
|||
QPushButton *m_pButton8;//Deactivate Masks |
|||
QHBoxLayout *mpLayout; |
|||
QSpacerItem *mpSpacer; |
|||
QProgressBar *m_pProgressBar; |
|||
|
|||
QHBoxLayout *m_pHorizontalLayout1; |
|||
QHBoxLayout *m_pHorizontalLayout2; |
|||
QHBoxLayout *m_pHorizontalLayout3; |
|||
QRadioButton *m_pRadioButton1; |
|||
QRadioButton *m_pRadioButton2; |
|||
QGroupBox *m_pRadioGroup; |
|||
QGroupBox *m_pSampleGroup; |
|||
QComboBox *m_pLRFCombo; |
|||
|
|||
QLabel *m_pStMiRalabel; |
|||
QLabel *m_pStMaRalabel; |
|||
QLabel *m_pStMiSalabel; |
|||
QLabel *m_pStMaSalabel; |
|||
QLabel *m_pStMiRaVal; |
|||
QLabel *m_pStMaRaVal; |
|||
QLabel *m_pStMiSaVal; |
|||
QLabel *m_pStMaSaVal; |
|||
QLabel *m_pOpLabel; |
|||
|
|||
bool m_bUserRecordsVideo; |
|||
|
|||
private slots: |
|||
void handleSilencePress(); |
|||
void handleButtonPress(); |
|||
void handleButton2Press(); |
|||
void handleMaximumsPress(); |
|||
void handleMinimumsPress(); |
|||
void handleGenerateWS(); |
|||
void handleSave2DPicture( void ); |
|||
void handleSave3DPicture(void); |
|||
void handleAddMask(); |
|||
void handleDeleteMask(); |
|||
void handleUpdateMask(); |
|||
void handleSetStatusMask(); |
|||
void handleVideoRecorder(); |
|||
void handleReports(); |
|||
|
|||
/*Map*/ |
|||
|
|||
MapControl *m_pMapControl; |
|||
MapAdapter *m_pMapAdapter; |
|||
|
|||
/* OpenGL */ |
|||
|
|||
RangeMapWidget *m_pRangeMap; |
|||
RadarMapWidget *m_pRangeRadar; |
|||
GLRadar *m_pGLRadar; |
|||
|
|||
QPixmap *notepixmap; |
|||
|
|||
Layer* sights; |
|||
Layer* museum; |
|||
Layer* pubs; |
|||
Layer* notes; |
|||
Layer* base; |
|||
/*Map*/ |
|||
|
|||
|
|||
/* |
|||
mediaBus *m_pVideoBus1; |
|||
videoAVLIBSource *m_pVideoIpput1; |
|||
VideoThumbWidget *m_pVideoWidget1; |
|||
|
|||
mediaBus *m_pVideoBus2; |
|||
videoAVLIBSource *m_pVideoIpput2; |
|||
VideoThumbWidget *m_pVideoWidget2; |
|||
|
|||
mediaBus *m_pVideoBus3; |
|||
videoAVLIBSource *m_pVideoIpput3; |
|||
VideoThumbWidget *m_pVideoWidget3; |
|||
*/ |
|||
|
|||
//serialPort *mSerial; |
|||
//protocolPTZ_VISCA *mCamera; |
|||
public: |
|||
// Method to fetch singleton instance. |
|||
static mainWinow* getInstance(); |
|||
// Destructor |
|||
virtual ~mainWinow(); |
|||
RangeMapWidget *getRangeMap( void ){ |
|||
return m_pRangeMap; |
|||
}; |
|||
RadarMapWidget *getRadarMap( void ){ |
|||
return m_pRangeRadar; |
|||
}; |
|||
GLRadar *getGLRadar( void ){ |
|||
return m_pGLRadar; |
|||
}; |
|||
protected: |
|||
mainWinow(); |
|||
void changeEvent(QEvent *event); |
|||
private: |
|||
// private static member referencing the single instance of the object |
|||
// TODO: Replace basicLogCollection with the type of object you want to |
|||
// return the single instance of |
|||
static mainWinow* _instance; |
|||
|
|||
// Copy constructor |
|||
// Declared but not defined to prevent auto-generated |
|||
// copy constructor. Refer to "Effective C++" by Meyers |
|||
mainWinow(const mainWinow& src); |
|||
|
|||
// Assignment operator |
|||
// Declared but not defined to prevent auto-generated |
|||
// assignment operator. Refer to "Effective C++" by Meyers |
|||
mainWinow& operator=(const mainWinow& src); |
|||
public slots: |
|||
void callbackSettings(void); |
|||
void callbackClear(void); |
|||
}; |
|||
|
|||
#endif |
|||
void handleButtonPress(); |
|||
void handleButton2Press(); |
|||
void handleMaximumsPress(); |
|||
void handleMinimumsPress(); |
|||
void handleGenerateWS(); |
|||
void handleSave2DPicture( void ); |
|||
void handleSave3DPicture(void); |
|||
void handleAddMask(); |
|||
void handleDeleteMask(); |
|||
void handleUpdateMask(); |
|||
void handleSetStatusMask(); |
|||
void handleVideoRecorder(); |
|||
void handleReports(); |
|||
|
|||
/*Map*/ |
|||
|
|||
MapControl *m_pMapControl; |
|||
MapAdapter *m_pMapAdapter; |
|||
|
|||
/* OpenGL */ |
|||
|
|||
RangeMapWidget *m_pRangeMap; |
|||
RadarMapWidget *m_pRangeRadar; |
|||
GLRadar *m_pGLRadar; |
|||
|
|||
QPixmap *notepixmap; |
|||
|
|||
Layer* sights; |
|||
Layer* museum; |
|||
Layer* pubs; |
|||
Layer* notes; |
|||
Layer* base; |
|||
/*Map*/ |
|||
|
|||
|
|||
/* |
|||
mediaBus *m_pVideoBus1; |
|||
videoAVLIBSource *m_pVideoIpput1; |
|||
VideoThumbWidget *m_pVideoWidget1; |
|||
|
|||
mediaBus *m_pVideoBus2; |
|||
videoAVLIBSource *m_pVideoIpput2; |
|||
VideoThumbWidget *m_pVideoWidget2; |
|||
|
|||
mediaBus *m_pVideoBus3; |
|||
videoAVLIBSource *m_pVideoIpput3; |
|||
VideoThumbWidget *m_pVideoWidget3; |
|||
*/ |
|||
|
|||
//serialPort *mSerial; |
|||
//protocolPTZ_VISCA *mCamera; |
|||
public: |
|||
// Method to fetch singleton instance. |
|||
static mainWinow* getInstance(); |
|||
// Destructor |
|||
virtual ~mainWinow(); |
|||
RangeMapWidget *getRangeMap( void ){ |
|||
return m_pRangeMap; |
|||
}; |
|||
RadarMapWidget *getRadarMap( void ){ |
|||
return m_pRangeRadar; |
|||
}; |
|||
GLRadar *getGLRadar( void ){ |
|||
return m_pGLRadar; |
|||
}; |
|||
protected: |
|||
mainWinow(); |
|||
void changeEvent(QEvent *event); |
|||
private: |
|||
// private static member referencing the single instance of the object |
|||
// TODO: Replace basicLogCollection with the type of object you want to |
|||
// return the single instance of |
|||
static mainWinow* _instance; |
|||
|
|||
// Copy constructor |
|||
// Declared but not defined to prevent auto-generated |
|||
// copy constructor. Refer to "Effective C++" by Meyers |
|||
mainWinow(const mainWinow& src); |
|||
|
|||
// Assignment operator |
|||
// Declared but not defined to prevent auto-generated |
|||
// assignment operator. Refer to "Effective C++" by Meyers |
|||
mainWinow& operator=(const mainWinow& src); |
|||
public slots: |
|||
void callbackSettings(void); |
|||
void callbackClear(void); |
|||
}; |
|||
|
|||
#endif |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue