Use project properties for reading bugtraq settings
[TortoiseGit.git] / src / TortoiseMerge / FindDlg.h
blob86ad26d7ee48bd30b9ced9caad571619ae177c22
1 // TortoiseGitMerge - a Diff/Patch program
3 // Copyright (C) 2006-2007, 2010,2013 - 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 "resource.h"
21 #include "afxcmn.h"
22 #include "HistoryCombo.h"
23 #include "registry.h"
25 /**
26 * \ingroup TortoiseMerge
27 * Find dialog used in TortoiseMerge.
29 class CFindDlg : public CDialog
31 DECLARE_DYNAMIC(CFindDlg)
33 public:
34 CFindDlg(CWnd* pParent = NULL); // standard constructor
35 virtual ~CFindDlg();
36 void Create(CWnd * pParent = NULL) {CDialog::Create(IDD, pParent);ShowWindow(SW_SHOW);UpdateWindow();}
37 bool IsTerminating() {return m_bTerminating;}
38 bool FindNext() {return m_bFindNext;}
39 bool MatchCase() {return !!m_bMatchCase;}
40 bool LimitToDiffs() {return !!m_bLimitToDiffs;}
41 bool WholeWord() {return !!m_bWholeWord;}
42 CString GetFindString() {return m_FindCombo.GetString();}
43 void SetFindString(const CString& str) { if (!str.IsEmpty()) { m_FindCombo.SetWindowText(str); } }
44 // Dialog Data
45 enum { IDD = IDD_FIND };
47 protected:
48 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
50 DECLARE_MESSAGE_MAP()
51 virtual void OnCancel();
52 virtual void PostNcDestroy();
53 virtual void OnOK();
54 virtual BOOL OnInitDialog();
55 afx_msg void OnCbnEditchangeFindcombo();
56 private:
57 UINT m_FindMsg;
58 bool m_bTerminating;
59 bool m_bFindNext;
60 BOOL m_bMatchCase;
61 BOOL m_bLimitToDiffs;
62 BOOL m_bWholeWord;
63 CHistoryCombo m_FindCombo;
64 CWnd * m_pParent;
65 CRegDWORD m_regMatchCase;
66 CRegDWORD m_regLimitToDiffs;
67 CRegDWORD m_regWholeWord;