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.

131 lines
3.3 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: TabControlDlg.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of TabControlDlg.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __TAB__CONTROL__DLG__H__INCLUDED__
  15. #define __TAB__CONTROL__DLG__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #include "LocatorWnd.h"
  20. #include "CameraPositionWnd.h"
  21. #include "LgButton.h"
  22. #include <afxcmn.h>
  23. #include "ProgramSkin.h"
  24. //#include "ImageViewWnd.h"
  25. #include "VideoWnd.h"
  26. class CMainDlg;
  27. class CTabControlDlg : public CDialog
  28. {
  29. // Construction
  30. public:
  31. CTabControlDlg(CWnd* pParent = NULL); // standard constructor
  32. public:
  33. void OnVideo( CLgImageDIB *pDIB, BYTE bSequence );
  34. BYTE GetVideoQuality() { return m_Slider.GetPos(); }
  35. void SetVideoQuality( BYTE bQuality ) { m_Slider.SetPos( bQuality ); }
  36. CLocatorWnd *GetLocatorWnd() { return &m_Locator; }
  37. public:
  38. //{{AFX_DATA(CTabControlDlg)
  39. enum { IDD = IDD_CONTROL_DLG };
  40. CButton m_ButtonReport;
  41. CLgButton m_ButtonPhoto;
  42. CLgButton m_CheckIrisNight;
  43. CLgButton m_CheckIrisDay;
  44. CButton m_CheckMute;
  45. CLgButton m_CheckHidden4;
  46. CLgButton m_CheckHidden3;
  47. CLgButton m_CheckHidden2;
  48. CLgButton m_CheckHidden1;
  49. CButton m_ButtonClear;
  50. CButton m_ButtonReset;
  51. CSliderCtrl m_Slider;
  52. CStatic m_StaticVideo;
  53. CStatic m_StaticLocator;
  54. CLgButton m_ButtonDown;
  55. CLgButton m_ButtonUp;
  56. CLgButton m_ButtonLeft;
  57. CLgButton m_ButtonRight;
  58. CLgButton m_ButtonWide;
  59. CLgButton m_ButtonTele;
  60. int m_RadioSensitivity;
  61. //}}AFX_DATA
  62. //{{AFX_VIRTUAL(CTabControlDlg)
  63. public:
  64. virtual BOOL PreTranslateMessage(MSG* pMsg);
  65. protected:
  66. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  67. //}}AFX_VIRTUAL
  68. protected:
  69. //{{AFX_MSG(CTabControlDlg)
  70. virtual BOOL OnInitDialog();
  71. afx_msg void OnPaint();
  72. afx_msg void OnButtonClear();
  73. afx_msg void OnButtonReset();
  74. afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
  75. afx_msg void OnRadioSensitivity();
  76. afx_msg void OnCheckHidden();
  77. afx_msg void OnCheckMute();
  78. afx_msg void OnCheckIrisDay();
  79. afx_msg void OnCheckIrisNight();
  80. afx_msg void OnSize(UINT nType, int cx, int cy);
  81. afx_msg void OnButtonPhoto();
  82. afx_msg void OnButtonReport();
  83. //}}AFX_MSG
  84. afx_msg LRESULT OnLgButtonSetState( WPARAM, LPARAM );
  85. afx_msg LRESULT OnVideoReady( WPARAM, LPARAM );
  86. afx_msg LRESULT OnLgCameraPositionChanged( WPARAM, LPARAM );
  87. DECLARE_MESSAGE_MAP()
  88. private:
  89. void OnDraw( CDC *pDC );
  90. public:
  91. BOOL SetIris( BOOL bDay );
  92. void OnConnect( BOOL bConnected );
  93. void SetMainDlg( CMainDlg *pDlg ) { m_pMainDlg = pDlg; }
  94. private:
  95. CMainDlg *m_pMainDlg;
  96. public:
  97. void SetSkin( CProgramSkin *pProgramSkin );
  98. void UpdateControlPosition();
  99. private:
  100. CLocatorWnd m_Locator;
  101. // CLgMemoryDC m_VideoDC;
  102. CCameraPositionWnd m_CameraPositionWnd;
  103. CRect m_CameraPositionWndRect;
  104. // CLgImageDIB m_VideoDIB;
  105. private:
  106. CProgramSkin *m_pSkin;
  107. private:
  108. CVideoWnd m_VideoWnd;
  109. };
  110. //{{AFX_INSERT_LOCATION}}
  111. #endif