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.
22 #include "HistoryCombo.h"
26 * \ingroup TortoiseMerge
27 * Find dialog used in TortoiseMerge.
29 class CFindDlg
: public CDialog
31 DECLARE_DYNAMIC(CFindDlg
)
34 CFindDlg(CWnd
* pParent
= NULL
); // standard constructor
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
); } }
45 enum { IDD
= IDD_FIND
};
48 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
51 virtual void OnCancel();
52 virtual void PostNcDestroy();
54 virtual BOOL
OnInitDialog();
55 afx_msg
void OnCbnEditchangeFindcombo();
63 CHistoryCombo m_FindCombo
;
65 CRegDWORD m_regMatchCase
;
66 CRegDWORD m_regLimitToDiffs
;
67 CRegDWORD m_regWholeWord
;