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.

107 lines
3.0 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: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: MainDlg.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of MainDlg.h
  13. //----------------------------------------------------------------------------
  14. // MainDlg.h : header file
  15. //
  16. #if !defined(AFX_MAINDLG_H__548CA4B0_98FF_4D3D_B273_D5EC7E534C22__INCLUDED_)
  17. #define AFX_MAINDLG_H__548CA4B0_98FF_4D3D_B273_D5EC7E534C22__INCLUDED_
  18. #if _MSC_VER > 1000
  19. #pragma once
  20. #endif // _MSC_VER > 1000
  21. #include "..\LgLib\Remote\LgRemoteClientTcpIpSlave.h"
  22. #include "..\LgLib\LgAlarm.h"
  23. #include "DeviceClient.h"
  24. #include "LgButton.h"
  25. #include "TabControlDlg.h"
  26. #include "TabReportDlg.h"
  27. #include "ProgramSkin.h" // Added by ClassView
  28. class CMainDlg : public CDialog
  29. {
  30. // Construction
  31. public:
  32. CMainDlg(CWnd* pParent = NULL); // standard constructor
  33. // Dialog Data
  34. //{{AFX_DATA(CMainDlg)
  35. enum { IDD = IDD_MULTIIPICLIENT_DIALOG };
  36. CStatic m_StaticStatusVoltage;
  37. CButton m_ButtonOk;
  38. CStatic m_StaticStatusTransfer;
  39. CStatic m_StaticStatusLgs;
  40. CStatic m_StaticStatusClient;
  41. //}}AFX_DATA
  42. // ClassWizard generated virtual function overrides
  43. //{{AFX_VIRTUAL(CMainDlg)
  44. public:
  45. virtual BOOL PreTranslateMessage(MSG* pMsg);
  46. protected:
  47. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  48. //}}AFX_VIRTUAL
  49. // Implementation
  50. protected:
  51. HICON m_hIcon;
  52. // Generated message map functions
  53. //{{AFX_MSG(CMainDlg)
  54. virtual BOOL OnInitDialog();
  55. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  56. afx_msg void OnPaint();
  57. afx_msg HCURSOR OnQueryDragIcon();
  58. afx_msg void OnSelchangeTab(NMHDR* pNMHDR, LRESULT* pResult);
  59. afx_msg void OnTimer(UINT nIDEvent);
  60. afx_msg void OnSize(UINT nType, int cx, int cy);
  61. //}}AFX_MSG
  62. afx_msg LRESULT OnLgVideoClientEvent( WPARAM, LPARAM );
  63. afx_msg LRESULT OnLgCameraPositionChanged( WPARAM, LPARAM );
  64. DECLARE_MESSAGE_MAP()
  65. public:
  66. CDeviceClient *GetDeviceClient() { return &m_DeviceClient; }
  67. // CLgAlarm *GetAlarm() { return &m_Alarm; }
  68. public:
  69. void ShowReport( BOOL bReport );
  70. void DoAlarm();
  71. void AlarmMute( BOOL bMute );
  72. void AlarmReset();
  73. void AlarmStop();
  74. private:
  75. void UpdateControlPosition();
  76. CLgRemoteClientTcpIpMultiIPIClient m_VideoClient;
  77. CDeviceClient m_DeviceClient;
  78. CTabControlDlg m_TabControlDlg;
  79. CTabReportDlg m_TabReportDlg;
  80. CLgAlarm m_Alarm;
  81. BOOL m_bFirstAlarm;
  82. BOOL m_bConnected;
  83. BOOL m_bLgsConnected;
  84. INT m_nConnect;
  85. BOOL m_bLgsVoltageOk;
  86. private:
  87. CProgramSkin m_Skin;
  88. BOOL m_bControlsInitiated;
  89. };
  90. //{{AFX_INSERT_LOCATION}}
  91. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  92. #endif // !defined(AFX_MAINDLG_H__548CA4B0_98FF_4D3D_B273_D5EC7E534C22__INCLUDED_)