You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
170 lines
4.8 KiB
170 lines
4.8 KiB
#ifndef __QT5_MAIN_WINDOW_HEADER__
|
|
#define __QT5_MAIN_WINDOW_HEADER__
|
|
|
|
#include <WinSock2.h>
|
|
#include <stdint.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/TimeShowWidget.h"
|
|
#include "../../../lib/hardware/stick/joystick.h"
|
|
#include "../../../lib/components/object/objectCameraPTZ.h"
|
|
#include "../../../lib/gui/controls/editCameraDialog.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_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_pButtonCmdSourceSettings;
|
|
QPushButton *m_pButtonCmdVideoAnaliticsSettings;
|
|
QPushButton *m_pButtonCmdAppSettings;
|
|
QPushButton *m_pButtonCmdExit;
|
|
|
|
|
|
VideoWidget *m_pMainVideoWidget;
|
|
objectCameraPTZ *m_pVideoSource;
|
|
guiEditCameraDialog *m_pVideoSettings;
|
|
//clientPort *m_pMasterSocket;
|
|
//clientPort *m_pSlaveSocket;
|
|
//objectLGS *m_pMasterDevice;
|
|
//objectLGS *m_pSlaveDevice;
|
|
|
|
//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();
|
|
|
|
|
|
QPixmap *notepixmap;
|
|
|
|
/*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();
|
|
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 handleVideoSettings(void);
|
|
void handleClose(void);
|
|
};
|
|
|
|
#endif
|