Old fashion design for PC-104
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.

265 lines
7.8 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 12/11/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: ChicagoDlg.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of ChicagoDlg.h
  13. //----------------------------------------------------------------------------
  14. // ChicagoDlg.h : header file
  15. //
  16. #if !defined(AFX_CHICAGODLG_H__9B1BD4E7_71EC_11D4_A1EF_0010B55CB330__INCLUDED_)
  17. #define AFX_CHICAGODLG_H__9B1BD4E7_71EC_11D4_A1EF_0010B55CB330__INCLUDED_
  18. #include "Report.h" // Added by ClassView
  19. #if _MSC_VER > 1000
  20. #pragma once
  21. #endif // _MSC_VER > 1000
  22. #include "EventWnd.h"
  23. #include "AutorizationDlg.h" // Added by ClassView
  24. //#include "ClockWnd.h" // Added by ClassView
  25. #include "..\DLIB\EventQueue.h" // Added by ClassView
  26. //#include "..\DLIB\Alarm.h" // Added by ClassView
  27. #include "..\..\LgLib\LgAlarm.h" // Added by ClassView
  28. #include "ResetDlg.h"
  29. #include "LogoWnd.h"
  30. #include "PropertySPRUDlg.h"
  31. //#include "TroubleWnd.h"
  32. //#include "EventPrinter.h"
  33. #include "StatisticDlg.h" // Added by ClassView
  34. #include "ToolBarDlg.h" // Added by ClassView
  35. //#include "ReportDlg.h" // Added by ClassView
  36. #include "SoundDlg.h"
  37. //#include "TroubleDlg.h" // Added by ClassView
  38. #include "..\DLIB\VideoWnd.h" // Added by ClassView
  39. #include "GuardDlg.h" // Added by ClassView
  40. #include "PatrolDlg.h" // Added by ClassView
  41. #include "TaskSwitch.h" // Added by ClassView
  42. //#include "CameraDlg.h" // Added by ClassView
  43. #include "..\DLIB\VideoCamera.h" // Added by ClassView
  44. #include "..\DLIB\VideoCapture.h" // Added by ClassView
  45. #include "VideoFrameWnd.h"
  46. #include "WholeAreaWnd.h" // Added by ClassView
  47. #include "ZoomAreaWnd.h" // Added by ClassView
  48. #include "TroubleListWnd.h" // Added by ClassView
  49. #include "VideoBase.h"
  50. #include "VideoListWnd.h"
  51. #include "PanelWnd.h"
  52. //#include "..\DLIB\GenericArchive.h" // Added by ClassView
  53. #include "..\DLIB\Settings.h" // Added by ClassView
  54. #include "ResetLgsDlg.h" // Added by ClassView
  55. // new implementation
  56. #include "..\..\LgLib\UIMap\LgUIMapWholeWnd.h"
  57. #include "..\..\LgLib\UIMap\LgUIMapZoomWnd.h"
  58. #include "AlarmExternal.h" // Added by ClassView
  59. #include "MaskSchedule.h"
  60. /////////////////////////////////////////////////////////////////////////////
  61. // CChicagoDlg dialog
  62. class CChicagoDlg : public CDialog
  63. {
  64. // Construction
  65. public:
  66. void Capture( EVENT& event );
  67. CChicagoDlg(CWnd* pParent = NULL); // standard constructor
  68. // Dialog Data
  69. //{{AFX_DATA(CChicagoDlg)
  70. enum { IDD = IDD_CHICAGO_DIALOG };
  71. // NOTE: the ClassWizard will add data members here
  72. //}}AFX_DATA
  73. // ClassWizard generated virtual function overrides
  74. //{{AFX_VIRTUAL(CChicagoDlg)
  75. public:
  76. virtual BOOL PreTranslateMessage(MSG* pMsg);
  77. virtual int DoModal();
  78. protected:
  79. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  80. //}}AFX_VIRTUAL
  81. // Implementation
  82. protected:
  83. void InterfaceEnableFly( BOOL bEnable );
  84. HICON m_hIcon;
  85. // Generated message map functions
  86. //{{AFX_MSG(CChicagoDlg)
  87. virtual BOOL OnInitDialog();
  88. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  89. afx_msg void OnPaint();
  90. afx_msg HCURSOR OnQueryDragIcon();
  91. afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);
  92. afx_msg void OnNcLButtonDblClk(UINT nHitTest, CPoint point);
  93. virtual void OnCancel();
  94. afx_msg void OnViewMain();
  95. afx_msg void OnViewAlarm();
  96. afx_msg void OnInitMenu(CMenu* pMenu);
  97. afx_msg void OnTimer(UINT nIDEvent);
  98. afx_msg void OnSystemReset();
  99. afx_msg void OnSystemRepair();
  100. afx_msg void OnSystemEnable();
  101. afx_msg void OnSupportReport();
  102. afx_msg void OnSupportStatistic();
  103. afx_msg void OnViewOptions();
  104. afx_msg void OnSupportSound();
  105. afx_msg void OnSupportDatetime();
  106. afx_msg void OnSupportMute();
  107. afx_msg void OnSupportGuard();
  108. afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
  109. afx_msg void OnHelpAbout();
  110. afx_msg void OnSupportInterfaceFly();
  111. afx_msg void OnSupportInterfaceFix();
  112. afx_msg void OnSupportLgsReset();
  113. afx_msg void OnSupportInterfaceDefault();
  114. afx_msg void OnSupportVideoSettings();
  115. afx_msg void OnSupportSettings();
  116. afx_msg void OnSupportReportSettings();
  117. afx_msg void OnSupportPhonecalllist();
  118. afx_msg void OnViewEvents();
  119. afx_msg void OnViewMagnifiedmap();
  120. afx_msg void OnViewMap();
  121. afx_msg void OnViewPtzcontrol();
  122. afx_msg void OnViewSensorproperties();
  123. afx_msg void OnViewTroubles();
  124. afx_msg void OnViewVideo();
  125. afx_msg void OnViewVideolist();
  126. afx_msg void OnViewToolbar();
  127. afx_msg void OnSupportLgsHzSchedule();
  128. //}}AFX_MSG
  129. afx_msg LRESULT OnWMPowerBroadcast( WPARAM wParam, LPARAM lParam );
  130. DECLARE_MESSAGE_MAP()
  131. private:
  132. LRESULT OnWMSensorShow( WPARAM wParam, LPARAM lParam );
  133. LRESULT OnWMSensorUpdate( WPARAM wParam, LPARAM lParam );
  134. LRESULT OnWMEnableZone( WPARAM wParam, LPARAM lParam );
  135. LRESULT OnWMEnableSensor( WPARAM wParam, LPARAM lParam );
  136. LRESULT OnWMEnableDTRBit( WPARAM wParam, LPARAM lParam );
  137. private:
  138. virtual void OnOK() {}
  139. LRESULT OnWMAutorization( WPARAM wParam, LPARAM lParam );
  140. LRESULT OnWMShowTrouble(WPARAM wParam, LPARAM lParam);
  141. private:
  142. BOOL Autorization();
  143. HACCEL m_hAccelerators;
  144. BOOL m_bStarted;
  145. BOOL m_bSoundEnabled;
  146. int m_nRunningMode;
  147. // double m_ScaleFactor;
  148. private:
  149. // CGenericArchive *m_pArchiveEvent;
  150. // CGenericArchive *m_pArchiveImage;
  151. private:
  152. BOOL Reposition( INT nViewMode );
  153. BOOL LoadControlSettings();
  154. BOOL LoadControlDefaultSettings();
  155. BOOL SaveControlSettings();
  156. void StoreEvent( EVENT &event );
  157. // LRESULT OnWMPrintFile(WPARAM wParam, LPARAM lParam);
  158. private:
  159. CAlarmExternal m_AlarmExternal;
  160. private:
  161. void CheckCopyright();
  162. CResetLgsDlg m_ResetLgsDlg;
  163. CSettings m_Settings;
  164. CVideoCapture *m_pVideoCapture;
  165. CTaskSwitch m_TaskSwitch;
  166. CPatrolDlg *m_pPatrolDlg;
  167. CGuardDlg *m_pGuardDlg;
  168. // CTroubleDlg *m_pTroubleDlg;
  169. // CReportDlg *m_pReportDlg;
  170. CToolBarCtrl *m_pToolBarCtrl;
  171. CMenu *m_pMainMenu;
  172. CToolBarDlg *m_pToolBarDlg;
  173. /* struct PRINT
  174. {
  175. BOOL bPresent;
  176. BOOL bDlg;
  177. }m_Print;
  178. */
  179. CStatisticDlg *m_pStatisticDlg;
  180. // CEventPrinter *m_pEventPrinter;
  181. CFont *m_pFont;
  182. CPropertySensorFrameWnd *m_pPropertySensorDlg;
  183. CResetDlg m_ResetDlg;
  184. CLgAlarm *m_pAlarm;
  185. BOOL m_bTimerOdd;
  186. CEventQueue *m_pEventQueue;
  187. enum { VIEW_NONE, VIEW_MAIN, VIEW_DETAIL, VIEW_BACKUP };
  188. INT m_nViewMode;
  189. CAutorizationDlg *m_pAutorizationDlg;
  190. CSensor *m_pSensorCurrent;
  191. CEventWnd *m_pEventWnd;
  192. CSensorArray *m_pSensorArray;
  193. CSoundDlg *m_pSoundDlg;
  194. BOOL m_bWaitDisconnect;
  195. BOOL m_bWaitConnect;
  196. CVideoBase *m_pVideoBase;
  197. CVideoCaptureWnd *m_pVideoWnd;
  198. CVideoFrameWnd *m_pVideoFrameWnd;
  199. CVideoListWnd *m_pVideoListWnd;
  200. CWholeAreaWnd *m_pWholeAreaWnd;
  201. // CZoomAreaWnd *m_pZoomAreaWnd;
  202. CLgUIMapZoomWnd *m_pZoomAreaWnd;
  203. CTroubleListWnd *m_pTroubleListWnd;
  204. CCameraNavigateDlg *m_pCameraNavigateDlg;
  205. enum
  206. {
  207. CONTROL_SENSOR_PROPERTY = 0,
  208. CONTROL_WHOLE_MAP = 1,
  209. CONTROL_ZOOM_MAP = 2,
  210. CONTROL_EVENT_LIST = 3,
  211. CONTROL_TROUBLE_LIST = 4,
  212. CONTROL_VIDEO_MAIN = 5,
  213. CONTROL_VIDEO_NAVIGATE = 6,
  214. CONTROL_VIDEO_LIST = 7,
  215. CONTROL_TOOLBAR = 8,
  216. CONTROL_COUNT = 9
  217. };
  218. CPanelWnd *m_pControlPanel[ CONTROL_COUNT ];
  219. class CControlState : public CLgDRect
  220. {
  221. public:
  222. BOOL bVisible;
  223. }m_pControlRect[ CONTROL_COUNT ];
  224. BOOL m_bDebugMode;
  225. BOOL m_bDemoMode;
  226. private:
  227. CMaskSchedule *m_pMaskSchedule;
  228. public:
  229. void SwitchMask( INT nLgsId, INT nMask, BOOL bOn );
  230. private:
  231. CReport *m_pReport;
  232. };
  233. //{{AFX_INSERT_LOCATION}}
  234. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  235. #endif // !defined(AFX_CHICAGODLG_H__9B1BD4E7_71EC_11D4_A1EF_0010B55CB330__INCLUDED_)