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.
135 lines
3.8 KiB
135 lines
3.8 KiB
#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/VideoSourceChooser.h"
|
|
#include "../../gui/controls/TimeShowWidget.h"
|
|
#include "../../gui/controls/MastBaumWidget.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;
|
|
|
|
/* Widgets */
|
|
TimeShowWidget *m_pTitleWidget;
|
|
MastbaumWidget *m_pMapWidget;
|
|
QFrame *m_pTitleFrame;
|
|
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;
|
|
VideoSourceChooser *m_pScrollAreaWidgetContents;
|
|
QScrollArea *m_pDevScrollArea;
|
|
QPushButton *m_pAddVideoSource;
|
|
VideoWidget *m_pMainVideoWidget;
|
|
|
|
//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;
|
|
|
|
public:
|
|
static mainWinow* getInstance();
|
|
virtual ~mainWinow();
|
|
protected:
|
|
mainWinow();
|
|
void changeEvent(QEvent *event);
|
|
private:
|
|
static mainWinow* _instance;
|
|
mainWinow(const mainWinow& src);
|
|
mainWinow& operator=(const mainWinow& src);
|
|
public slots:
|
|
void callbackSettings(void);
|
|
void callbackClear(void);
|
|
};
|
|
|
|
#endif
|