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

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __QT5_MAIN_WINDOW_HEADER__
  2. #define __QT5_MAIN_WINDOW_HEADER__
  3. #include <WinSock2.h>
  4. #include "../../components/base/basicSettingsProvider.h"
  5. #include "../../gui/guiClass.h"
  6. #include "../../data/media/video/videoAVLIBSource.h"
  7. #include "../../gui/controls/VideoWidget.h"
  8. #include "../../gui/controls/VideoSourceChooser.h"
  9. #include "../../gui/controls/TimeShowWidget.h"
  10. #include "../../gui/controls/MastBaumWidget.h"
  11. class mainWinow : public QMainWindow{
  12. private:
  13. config_setting_t *m_pSettings;
  14. /* Main Widget */
  15. QWidget *m_pMainWidget;
  16. /* Layouts */
  17. QMainWindowLayout *m_pMainLayout;
  18. QVBoxLayout *m_pVerticalLayout;
  19. QVBoxLayout *m_pVerticalMapLayout;
  20. QVBoxLayout *m_pVerticalSideLayout;
  21. QHBoxLayout *m_pHorizontalLayout;
  22. QHBoxLayout *m_pScrolbarLayout;
  23. QVBoxLayout *m_pVVVLayout;
  24. QVBoxLayout *m_pVCVLayout;
  25. QPushButton *m_pButtonCmdVideoRecord;
  26. QSpacerItem *m_pVSpacer1;
  27. QSpacerItem *m_pVSpacer2;
  28. QSpacerItem *m_pVSpacer3;
  29. /* Widgets */
  30. TimeShowWidget *m_pTitleWidget;
  31. MastbaumWidget *m_pMapWidget;
  32. QFrame *m_pTitleFrame;
  33. QStatusBar *m_pStatusBar;
  34. QSpacerItem *verticalSpacer;
  35. QSpacerItem *verticalSideSpacer;
  36. QSpacerItem *horisontalSpacer;
  37. QSpacerItem *scrolbarSpacer;
  38. QPushButton *m_pButtonCmdClear;
  39. QPushButton *m_pButtonCmdReset;
  40. QPushButton *m_pButtonCmdSilence;
  41. QPushButton *m_pButtonCmdReport;
  42. QPushButton *m_pButtonCmdExit;
  43. QPushButton *m_pButtonCmdSettings;
  44. QScrollArea *m_pScrollArea;
  45. VideoSourceChooser *m_pScrollAreaWidgetContents;
  46. QScrollArea *m_pDevScrollArea;
  47. QPushButton *m_pAddVideoSource;
  48. VideoWidget *m_pMainVideoWidget;
  49. //Control Panels
  50. QTabWidget *m_pTabWidget;
  51. QWidget *m_pPage1;
  52. QWidget *m_pPage2;
  53. QWidget *m_pPage3;
  54. QWidget *m_pPage4;
  55. QWidget *m_pPage5;
  56. QHBoxLayout *m_pPage1Layout;
  57. QHBoxLayout *m_pPage2Layout;
  58. QVBoxLayout *m_pPage3Layout;
  59. QVBoxLayout *m_pPage4Layout;
  60. QVBoxLayout *m_pPage5Layout;
  61. QPushButton *m_pButton1;
  62. QPushButton *m_pButton2;
  63. QPushButton *m_pButton3;
  64. QPushButton *m_pButton4;
  65. QPushButton *m_pButton5;//Add Mask
  66. QPushButton *m_pButton6;//Delete Mask
  67. QPushButton *m_pButton7;//Activate Masks
  68. QPushButton *m_pButton8;//Deactivate Masks
  69. QHBoxLayout *mpLayout;
  70. QSpacerItem *mpSpacer;
  71. QProgressBar *m_pProgressBar;
  72. QHBoxLayout *m_pHorizontalLayout1;
  73. QHBoxLayout *m_pHorizontalLayout2;
  74. QHBoxLayout *m_pHorizontalLayout3;
  75. QRadioButton *m_pRadioButton1;
  76. QRadioButton *m_pRadioButton2;
  77. QGroupBox *m_pRadioGroup;
  78. QGroupBox *m_pSampleGroup;
  79. QComboBox *m_pLRFCombo;
  80. QLabel *m_pStMiRalabel;
  81. QLabel *m_pStMaRalabel;
  82. QLabel *m_pStMiSalabel;
  83. QLabel *m_pStMaSalabel;
  84. QLabel *m_pStMiRaVal;
  85. QLabel *m_pStMaRaVal;
  86. QLabel *m_pStMiSaVal;
  87. QLabel *m_pStMaSaVal;
  88. QLabel *m_pOpLabel;
  89. bool m_bUserRecordsVideo;
  90. private slots:
  91. void handleSilencePress();
  92. void handleButtonPress();
  93. void handleButton2Press();
  94. void handleMaximumsPress();
  95. void handleMinimumsPress();
  96. void handleGenerateWS();
  97. void handleSave2DPicture( void );
  98. void handleSave3DPicture(void);
  99. void handleAddMask();
  100. void handleDeleteMask();
  101. void handleUpdateMask();
  102. void handleSetStatusMask();
  103. void handleVideoRecorder();
  104. void handleReports();
  105. QPixmap *notepixmap;
  106. public:
  107. static mainWinow* getInstance();
  108. virtual ~mainWinow();
  109. protected:
  110. mainWinow();
  111. void changeEvent(QEvent *event);
  112. private:
  113. static mainWinow* _instance;
  114. mainWinow(const mainWinow& src);
  115. mainWinow& operator=(const mainWinow& src);
  116. public slots:
  117. void callbackSettings(void);
  118. void callbackClear(void);
  119. };
  120. #endif