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.

142 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1994-1999 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. //{{AFX_VIRTUAL(CFilterDlg)
  78. protected:
  79. virtual void DoDataExchange(CDataExchange * pDX);
  80. //}}AFX_VIRTUAL
  81. //
  82. // Access
  83. //
  84. public:
  85. CIISFilter & GetFilter() { return m_flt; }
  86. //
  87. // Implementation
  88. //
  89. protected:
  90. //{{AFX_MSG(CFilterDlg)
  91. afx_msg void OnButtonBrowse();
  92. afx_msg void OnExecutableChanged();
  93. virtual void OnOK();
  94. virtual BOOL OnInitDialog();
  95. //}}AFX_MSG
  96. afx_msg void OnItemChanged();
  97. DECLARE_MESSAGE_MAP()
  98. void SetControlStates();
  99. BOOL FilterNameExists(LPCTSTR lpName);
  100. private:
  101. BOOL m_fLocal;
  102. BOOL m_fEditMode;
  103. CIISFilter m_flt;
  104. CIISFilterList *& m_pFilters;
  105. };
  106. #endif // __FLTDLG_H__