OSDN Git Service

Allow NUL and \\.\NUL in paths specified as command line arguments (#2056)
[winmerge-jp/winmerge-jp.git] / Src / SharedFilterDlg.h
1 /** 
2  * @file  SharedFilterDlg.h
3  *
4  * @brief Declaration file for CSharedFilterDlg.
5  *
6  */
7 #pragma once
8
9 #include "TrDialogs.h"
10
11 /////////////////////////////////////////////////////////////////////////////
12 // CSharedFilterDlg dialog
13
14 /**
15  * @brief A dialog for selecting shared/private filter creation.
16  * This dialog allows user to select if the new filter is a shared filter
17  * (placed into WinMerge executable's subfolder) or private filter
18  * (placed into profile folder).
19  */
20 class CSharedFilterDlg : public CTrDialog
21 {
22 // Construction
23 public:
24         enum FilterType : int { SHARED = 0, PRIVATE = 1 };
25         explicit CSharedFilterDlg(FilterType type, CWnd* pParent = nullptr);
26         FilterType GetSelectedFilterType() const { return m_selectedType; }
27
28 // Implementation
29 protected:
30
31 // Dialog Data
32         //{{AFX_DATA(CSharedFilterDlg)
33         enum { IDD = IDD_FILTERS_FILEFILTERS_SHARED };
34         //}}AFX_DATA
35
36 // Overrides
37         // ClassWizard generated virtual function overrides
38         //{{AFX_VIRTUAL(CSharedFilterDlg)
39         protected:
40         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
41         //}}AFX_VIRTUAL
42
43
44         // Generated message map functions
45         //{{AFX_MSG(CSharedFilterDlg)
46         //}}AFX_MSG
47         DECLARE_MESSAGE_MAP()
48
49 // Implementation data
50 private:
51         FilterType m_selectedType;
52 };