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.

143 lines
2.1 KiB

  1. /*++
  2. Copyright (c) 1994-1998 Microsoft Corporation
  3. Module Name :
  4. fltdlg.h
  5. Abstract:
  6. WWW Filters Property Dialog Definitions
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Project:
  10. Internet Services Manager
  11. Revision History:
  12. --*/
  13. #ifndef __FLTDLG_H__
  14. #define __FLTDLG_H__
  15. enum
  16. {
  17. FLTR_DISABLED,
  18. FLTR_LOADED,
  19. FLTR_UNLOADED,
  20. FLTR_DIRTY,
  21. /**/
  22. FLTR_UNKNOWN
  23. };
  24. enum
  25. {
  26. FLTR_PR_INVALID,
  27. FLTR_PR_LOW,
  28. FLTR_PR_MEDIUM,
  29. FLTR_PR_HIGH,
  30. };
  31. //
  32. // Num priority levels
  33. //
  34. #define FLT_PR_NUM (FLTR_PR_HIGH + 1)
  35. //
  36. // CFilterDlg dialog
  37. //
  38. class CFilterDlg : public CDialog
  39. /*++
  40. Class Description:
  41. Filter property dialog
  42. Public Interface:
  43. CFilterDlg : Constructor
  44. GetFilter : Get the filter object being edited
  45. --*/
  46. {
  47. //
  48. // Construction
  49. //
  50. public:
  51. CFilterDlg(
  52. IN CIISFilter &flt,
  53. IN CIISFilterList *& pFilters,
  54. IN BOOL fLocal,
  55. IN CWnd * pParent = NULL
  56. );
  57. //
  58. // Dialog Data
  59. //
  60. protected:
  61. //{{AFX_DATA(CFilterDlg)
  62. enum { IDD = IDD_FILTER };
  63. CString m_strExecutable;
  64. CString m_strFilterName;
  65. CString m_strPriority;
  66. CEdit m_edit_FilterName;
  67. CEdit m_edit_Executable;
  68. CStatic m_static_Priority;
  69. CStatic m_static_PriorityPrompt;
  70. CButton m_button_Browse;
  71. CButton m_button_Ok;
  72. //}}AFX_DATA
  73. //
  74. // Overrides
  75. //
  76. protected:
  77. // ClassWizard generated virtual function overrides
  78. //{{AFX_VIRTUAL(CFilterDlg)
  79. protected:
  80. virtual void DoDataExchange(CDataExchange * pDX);
  81. //}}AFX_VIRTUAL
  82. //
  83. // Access
  84. //
  85. public:
  86. CIISFilter & GetFilter() { return m_flt; }
  87. //
  88. // Implementation
  89. //
  90. protected:
  91. // Generated message map functions
  92. //{{AFX_MSG(CFilterDlg)
  93. afx_msg void OnButtonBrowse();
  94. afx_msg void OnExecutableChanged();
  95. virtual void OnOK();
  96. virtual BOOL OnInitDialog();
  97. //}}AFX_MSG
  98. afx_msg void OnItemChanged();
  99. DECLARE_MESSAGE_MAP()
  100. void SetControlStates();
  101. BOOL FilterNameExists(LPCTSTR lpName);
  102. private:
  103. BOOL m_fLocal;
  104. BOOL m_fEditMode;
  105. CIISFilter m_flt;
  106. CIISFilterList *& m_pFilters;
  107. };
  108. #endif // __FLTDLG_H__