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.

98 lines
2.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: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: AutorizationDlg.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of AutorizationDlg.h
  13. //----------------------------------------------------------------------------
  14. #if !defined(AFX_AUTORIZATIONDLG_H__588DEA04_7F25_11D4_A1F0_0010B55CB330__INCLUDED_)
  15. #define AFX_AUTORIZATIONDLG_H__588DEA04_7F25_11D4_A1F0_0010B55CB330__INCLUDED_
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif // _MSC_VER > 1000
  19. // AutorizationDlg.h : header file
  20. //
  21. #include "..\DLIB\SensorArray.h"
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CAutorizationDlg dialog
  24. class CAutorizationDlg : public CDialog
  25. {
  26. // Construction
  27. public:
  28. void Enable( BOOL bEnable );
  29. CString& GetErrorString();
  30. int DoModal( BOOL bSuper, BOOL bNewGuard, BOOL bOldGuard );
  31. void SetSensorArray( CSensorArray *pSensorArray );
  32. friend void AsyncDoModal( CWnd *pParent );
  33. CAutorizationDlg(CWnd* pParent = NULL); // standard constructor
  34. // Dialog Data
  35. //{{AFX_DATA(CAutorizationDlg)
  36. enum { IDD = IDD_AUTORIZATION_DLG };
  37. CStatic m_StaticSuperPassword;
  38. CStatic m_StaticSuperName;
  39. CButton m_ButtonOk;
  40. CButton m_ButtonCancel;
  41. CButton m_StaticSuper;
  42. CStatic m_StaticGuardOld;
  43. CStatic m_StaticGuardNew;
  44. CButton m_StaticGuard;
  45. CButton m_ButtonSuperPresent;
  46. CEdit m_EditSuperPassword;
  47. CEdit m_EditSuperName;
  48. CEdit m_EditGuardOld;
  49. CEdit m_EditGuardNew;
  50. CString m_GuardNew;
  51. CString m_GuardOld;
  52. CString m_SuperName;
  53. BOOL m_bSuperPresent;
  54. CString m_SuperPassword;
  55. //}}AFX_DATA
  56. // Overrides
  57. // ClassWizard generated virtual function overrides
  58. //{{AFX_VIRTUAL(CAutorizationDlg)
  59. public:
  60. virtual int DoModal();
  61. protected:
  62. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  63. //}}AFX_VIRTUAL
  64. // Implementation
  65. protected:
  66. // Generated message map functions
  67. //{{AFX_MSG(CAutorizationDlg)
  68. afx_msg void OnTimer(UINT nIDEvent);
  69. virtual BOOL OnInitDialog();
  70. afx_msg void OnCheckSuperPresent();
  71. virtual void OnOK();
  72. //}}AFX_MSG
  73. DECLARE_MESSAGE_MAP()
  74. private:
  75. void Reposition();
  76. void CheckInputState();
  77. DWORD m_dwStartTime;
  78. CSensorArray *m_pSensorArray;
  79. BOOL m_bSuper;
  80. BOOL m_bGuardNew;
  81. BOOL m_bGuardOld;
  82. CString m_CurrentGuard;
  83. CString m_CurrentSuper;
  84. CString m_ErrorString;
  85. BOOL m_bEnable;
  86. };
  87. //{{AFX_INSERT_LOCATION}}
  88. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  89. #endif // !defined(AFX_AUTORIZATIONDLG_H__588DEA04_7F25_11D4_A1F0_0010B55CB330__INCLUDED_)