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.

80 lines
2.2 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: TabLinearizationDlg.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of TabLinearizationDlg.h
  13. //----------------------------------------------------------------------------
  14. #pragma once
  15. #include "CalibrationRange.h" // Added by ClassView
  16. #include "graphwnd.h"
  17. #include "..\..\LgLib\Device\LgDeviceLGS.h"
  18. class CCalibrationDlg;
  19. class CTabLinearizationDlg : public CDialog
  20. {
  21. DECLARE_DYNAMIC(CTabLinearizationDlg)
  22. public:
  23. CTabLinearizationDlg(CWnd* pParent = NULL); // standard constructor
  24. virtual ~CTabLinearizationDlg();
  25. public:
  26. void SetCalibrationDlg( CCalibrationDlg *pCalibrationDlg );
  27. void SetCalibrationTable( BOOL bSetCommand, CLgDeviceLGS::LGS_CALIBRATION_TABLE& cTable );
  28. public:
  29. //{{AFX_DATA(CTabLinearizationDlg)
  30. enum { IDD = IDD_TAB_LINEARIZATION_DLG };
  31. CButton m_ButtonUpload;
  32. CButton m_ButtonSlaveDelete;
  33. CButton m_ButtonMasterDelete;
  34. CButton m_ButtonDownload;
  35. CButton m_ButtonAdd;
  36. CListCtrl m_ListSlave;
  37. CListCtrl m_ListMaster;
  38. CButton m_CheckSlave;
  39. CButton m_CheckMaster;
  40. //}}AFX_DATA
  41. protected:
  42. //{{AFX_VIRTUAL(CTabLinearizationDlg)
  43. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  44. //}}AFX_VIRTUAL
  45. //{{AFX_MSG(CTabLinearizationDlg)
  46. virtual BOOL OnInitDialog();
  47. afx_msg void OnCheckMaster();
  48. afx_msg void OnCheckSlave();
  49. afx_msg void OnButtonMasterDelete();
  50. afx_msg void OnButtonSlaveDelete();
  51. afx_msg void OnButtonDownload();
  52. afx_msg void OnButtonUpload();
  53. afx_msg void OnButtonAdd();
  54. afx_msg void OnButtonLoad();
  55. afx_msg void OnButtonSave();
  56. //}}AFX_MSG
  57. DECLARE_MESSAGE_MAP()
  58. private:
  59. BOOL Add( INT nDevice, double dReal, double dA2D );
  60. CCalibrationRangeDlg m_CalibrationRangeDlg;
  61. void UpdateGraph();
  62. CCalibrationDlg *m_pCalibrationDlg;
  63. public:
  64. void EnableControls( BOOL bEnable );
  65. CGraphWnd m_GraphWnd;
  66. public:
  67. INT m_nPendingReceived;
  68. BOOL m_bPending;
  69. };