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