CCollimatorDlg.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #pragma once
  2. #include "Collimator.BasicMoulds.hpp"
  3. namespace nsCOLL = DIOS::Dev::Detail::Collimator;
  4. // CCollimatorDlg 对话框
  5. //namespace DIOS::Dev::Detail::Collimator
  6. //{
  7. class CCollimatorDlg : public CDiosBasicDlg
  8. {
  9. DECLARE_DYNAMIC(CCollimatorDlg)
  10. public:
  11. CCollimatorDlg(CWnd* pParent = nullptr); // 标准构造函数
  12. ~CCollimatorDlg();
  13. void SetMagMap() override; //设置消息对照表
  14. void InitPageElements(bool act) override;
  15. void ShowPageElements(bool init = FALSE, bool exit = FALSE, bool cfg = FALSE,
  16. bool general = FALSE);
  17. // 对话框数据
  18. #ifdef AFX_DESIGN_TIME
  19. enum { IDD = IDD_DIALOG3 };
  20. #endif
  21. protected:
  22. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  23. bool AppInitial(bool act); //初始化模块
  24. bool GetInitData(); //获取设备初始值
  25. // 生成的消息映射函数
  26. virtual BOOL OnInitDialog();
  27. //类属性
  28. _DeviceMape::iterator m_CurrentDev;
  29. //Collimator
  30. int m_nXsize { 0 };
  31. int m_nYsize { 0 };
  32. int m_nSID{ 0 };
  33. int m_nAngle{ 0 };
  34. int m_nFilter{ 0 };
  35. bool m_bLight{ false };
  36. bool m_bAI{ false };
  37. int m_nMode{ 0 };
  38. public:
  39. //遮光器显示
  40. CEdit m_Edit_XSize;
  41. CEdit m_Edit_YSize;
  42. CEdit m_Edit_SID;
  43. CEdit m_Edit_Angle;
  44. CEdit m_Edit_Filter;
  45. CEdit m_Edit_Mode;
  46. //统一修改接口
  47. void SetSize(int Xvalue, int Yvalue);
  48. //按钮
  49. afx_msg void OnBnClickedButton3();//选择配置
  50. afx_msg void OnBnClickedButton1();//初始化
  51. afx_msg void OnBnClickedButton2();//退出
  52. afx_msg void OnBnClickedCancel();
  53. afx_msg void OnBnClickedButton4();//XSize
  54. afx_msg void OnBnClickedButton5();//YSize
  55. afx_msg void OnBnClickedButton6();//SID
  56. afx_msg void OnBnClickedButton7();//Angle
  57. afx_msg void OnBnClickedButton8();//Filter
  58. afx_msg void OnBnClickedButton9();//Mode
  59. afx_msg void OnBnClickedButton10();//Light?
  60. afx_msg void OnBnClickedButton11();//AI Video
  61. //文本框
  62. afx_msg void OnEnKillfocusEdit1();//XSize_Value
  63. afx_msg void OnEnKillfocusEdit2();//YSize_Value
  64. afx_msg void OnEnKillfocusEdit3();//SID_Value
  65. afx_msg void OnEnKillfocusEdit4();//Angle_Value
  66. afx_msg void OnEnKillfocusEdit5();//Filter_Value
  67. afx_msg void OnEnKillfocusEdit6();//Mode_Value
  68. DECLARE_MESSAGE_MAP()
  69. //特殊处理
  70. void CreateCareRaySmartSys();
  71. };
  72. //}