Source code of Windows XP (NT5)
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.

91 lines
2.5 KiB

  1. #if !defined(AFX_THEXPRESSIONPAGE_H__5256615E_C9D1_11D2_BD8D_0000F87A3912__INCLUDED_)
  2. #define AFX_THEXPRESSIONPAGE_H__5256615E_C9D1_11D2_BD8D_0000F87A3912__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // THExpressionPage.h : header file
  7. //
  8. #include "HMPropertyPage.h"
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CTHExpressionPage dialog
  11. class CTHExpressionPage : public CHMPropertyPage
  12. {
  13. DECLARE_DYNCREATE(CTHExpressionPage)
  14. enum PropertyType { None, Numeric, String, Boolean };
  15. // Construction
  16. public:
  17. CTHExpressionPage();
  18. ~CTHExpressionPage();
  19. // Dialog Data
  20. public:
  21. //{{AFX_DATA(CTHExpressionPage)
  22. enum { IDD = IDD_THRESHOLD_EXPRESSION };
  23. CComboBox m_FunctionType;
  24. CComboBox m_RuleType;
  25. CComboBox m_Measure;
  26. CComboBox m_Comparison;
  27. CString m_sMeasure;
  28. CString m_sRuleType;
  29. CString m_sCompareTo;
  30. CString m_sDataElement;
  31. CString m_sDuration;
  32. int m_iComparison;
  33. int m_iDurationType;
  34. int m_iFunctionType;
  35. int m_iCompareTo;
  36. CString m_sNumericCompareTo;
  37. CString m_sTime;
  38. //}}AFX_DATA
  39. CDWordArray m_dwaPropertyTypes;
  40. PropertyType m_CurrentType;
  41. int m_iIntervalMultiple;
  42. // Overrides
  43. // ClassWizard generate virtual function overrides
  44. //{{AFX_VIRTUAL(CTHExpressionPage)
  45. public:
  46. virtual void OnOK();
  47. virtual BOOL OnApply();
  48. protected:
  49. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  50. //}}AFX_VIRTUAL
  51. // Implementation
  52. protected:
  53. BOOL AddToMeasureCombo(CString &sType, CString &sName);
  54. // Generated message map functions
  55. //{{AFX_MSG(CTHExpressionPage)
  56. virtual BOOL OnInitDialog();
  57. afx_msg void OnEditchangeComboComparison();
  58. afx_msg void OnEditchangeComboMeasure();
  59. afx_msg void OnEditchangeComboRuleType();
  60. afx_msg void OnChangeEditCompareTo();
  61. afx_msg void OnChangeEditDataElement();
  62. afx_msg void OnChangeEditDuration();
  63. afx_msg void OnSelendokComboComparison();
  64. afx_msg void OnSelendokComboMeasure();
  65. afx_msg void OnSelendokComboRuleType();
  66. afx_msg void OnEditchangeComboFunction();
  67. afx_msg void OnSelendokComboFunction();
  68. afx_msg void OnRadioDuration();
  69. afx_msg void OnRadioDurationAny();
  70. afx_msg void OnChangeEditCompareNumeric();
  71. afx_msg void OnSelendokComboCompareBoolean();
  72. afx_msg void OnDestroy();
  73. //}}AFX_MSG
  74. DECLARE_MESSAGE_MAP()
  75. };
  76. //{{AFX_INSERT_LOCATION}}
  77. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  78. #endif // !defined(AFX_THEXPRESSIONPAGE_H__5256615E_C9D1_11D2_BD8D_0000F87A3912__INCLUDED_)