Fix EOL
[TortoiseGit.git] / src / TortoiseMerge / RegexFiltersDlg.h
bloba3f07e07da66f56df158a8a2eb6daf1bb2c8558f
1 // TortoiseMerge - a Diff/Patch program
3 // Copyright (C) 2013, 2020 - TortoiseSVN
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software Foundation,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #pragma once
20 #include "afxcmn.h"
21 #include "../../ext/SimpleIni/SimpleIni.h"
22 #include "StandAloneDlg.h"
24 // CRegexFiltersDlg dialog
26 class CRegexFiltersDlg : public CStandAloneDialog
28 DECLARE_DYNAMIC(CRegexFiltersDlg)
30 public:
31 CRegexFiltersDlg(CWnd* pParent = nullptr); // standard constructor
32 virtual ~CRegexFiltersDlg();
34 // Dialog Data
35 enum { IDD = IDD_REGEXFILTERS };
37 void SetIniFile(CSimpleIni * pIni) { m_pIni = pIni; }
38 protected:
39 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
40 virtual BOOL OnInitDialog() override;
41 afx_msg void OnBnClickedAdd();
42 afx_msg void OnBnClickedEdit();
43 afx_msg void OnBnClickedRemove();
44 afx_msg void OnNMDblclkRegexlist(NMHDR *pNMHDR, LRESULT *pResult);
45 afx_msg void OnLvnItemchangedRegexlist(NMHDR *pNMHDR, LRESULT *pResult);
47 DECLARE_MESSAGE_MAP()
49 void SetupListControl();
50 private:
51 CListCtrl m_RegexList;
52 CSimpleIni * m_pIni;