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.

71 lines
2.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: RelationDlg.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of RelationDlg.h
  13. //----------------------------------------------------------------------------
  14. #if !defined(AFX_RELATIONDLG_H__7E9D8DEF_2885_476F_A108_0A712D94666D__INCLUDED_)
  15. #define AFX_RELATIONDLG_H__7E9D8DEF_2885_476F_A108_0A712D94666D__INCLUDED_
  16. #include "..\DLIB\SensorArray.h" // Added by ClassView
  17. #if _MSC_VER > 1000
  18. #pragma once
  19. #endif // _MSC_VER > 1000
  20. // RelationDlg.h : header file
  21. //
  22. struct RELATION
  23. {
  24. CSensor *pSensor;
  25. CVideoCamera *pCamera;
  26. };
  27. class CRelationDlg : public CDialog
  28. {
  29. // Construction
  30. public:
  31. void CRelationDlg::SetRelation( RELATION *pRelation ) { m_Relation = *pRelation; }
  32. void CRelationDlg::GetRelation( RELATION *pRelation ) { *pRelation = m_Relation; }
  33. void SetSensorArray( CSensorArray *pSensorArray );
  34. CRelationDlg(CWnd* pParent = NULL); // standard constructor
  35. // Dialog Data
  36. //{{AFX_DATA(CRelationDlg)
  37. enum { IDD = IDD_RELATION_DLG };
  38. CListBox m_List;
  39. //}}AFX_DATA
  40. // Overrides
  41. // ClassWizard generated virtual function overrides
  42. //{{AFX_VIRTUAL(CRelationDlg)
  43. protected:
  44. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  45. //}}AFX_VIRTUAL
  46. // Implementation
  47. protected:
  48. // Generated message map functions
  49. //{{AFX_MSG(CRelationDlg)
  50. virtual BOOL OnInitDialog();
  51. virtual void OnOK();
  52. virtual void OnCancel();
  53. //}}AFX_MSG
  54. DECLARE_MESSAGE_MAP()
  55. private:
  56. RELATION m_Relation;
  57. CSensorArray *m_pSensorArray;
  58. };
  59. //{{AFX_INSERT_LOCATION}}
  60. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  61. #endif // !defined(AFX_RELATIONDLG_H__7E9D8DEF_2885_476F_A108_0A712D94666D__INCLUDED_)