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.

75 lines
2.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: EnableDlg.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of EnableDlg.h
  13. //----------------------------------------------------------------------------
  14. #if !defined(AFX_EnableDLG_H__058341C1_8989_11D4_A1F0_0010B55CB330__INCLUDED_)
  15. #define AFX_EnableDLG_H__058341C1_8989_11D4_A1F0_0010B55CB330__INCLUDED_
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif // _MSC_VER > 1000
  19. // EnableDlg.h : header file
  20. //
  21. #include "..\DLIB\SensorArray.h"
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CEnableDlg dialog
  24. class CEnableDlg : public CDialog
  25. {
  26. // Construction
  27. public:
  28. CEnableDlg(CWnd* pParent = NULL); // standard constructor
  29. void SetParam( CSensorArray *pSensorArray );
  30. void SetParam( CSensorArray *pSensorArray, CZone *pZone );
  31. void SetParam( CSensorArray *pSensorArray, CSensor *pSensor );
  32. void SetParam( CSensorArray *pSensorArray, CSensor *pSensor, int nBit );
  33. // Dialog Data
  34. //{{AFX_DATA(CEnableDlg)
  35. enum { IDD = IDD_ENABLE_DLG };
  36. // NOTE: the ClassWizard will add data members here
  37. //}}AFX_DATA
  38. // Overrides
  39. // ClassWizard generated virtual function overrides
  40. //{{AFX_VIRTUAL(CEnableDlg)
  41. protected:
  42. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  43. //}}AFX_VIRTUAL
  44. // Implementation
  45. protected:
  46. // Generated message map functions
  47. //{{AFX_MSG(CEnableDlg)
  48. virtual BOOL OnInitDialog();
  49. afx_msg void OnSelchangeEnableComboZone();
  50. afx_msg void OnSelchangeEnableComboSensor();
  51. afx_msg void OnEnable();
  52. afx_msg void OnDisable();
  53. afx_msg void OnSelchangeEnableComboDtrbit();
  54. //}}AFX_MSG
  55. DECLARE_MESSAGE_MAP()
  56. private:
  57. enum { COMMON, ZONE, SENSOR, DTRBIT };
  58. CSensorArray *m_pSensorArray;
  59. int m_nZone;
  60. int m_nSensor;
  61. int m_nBit;
  62. int m_nMode;
  63. };
  64. //{{AFX_INSERT_LOCATION}}
  65. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  66. #endif // !defined(AFX_EnableDLG_H__058341C1_8989_11D4_A1F0_0010B55CB330__INCLUDED_)