1 // TortoiseMerge - a Diff/Patch program
\r
3 // Copyright (C) 2006-2007 - TortoiseSVN
\r
5 // This program is free software; you can redistribute it and/or
\r
6 // modify it under the terms of the GNU General Public License
\r
7 // as published by the Free Software Foundation; either version 2
\r
8 // of the License, or (at your option) any later version.
\r
10 // This program is distributed in the hope that it will be useful,
\r
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
13 // GNU General Public License for more details.
\r
15 // You should have received a copy of the GNU General Public License
\r
16 // along with this program; if not, write to the Free Software Foundation,
\r
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
\r
21 #include "HistoryCombo.h"
\r
24 * \ingroup TortoiseMerge
\r
25 * Find dialog used in TortoiseMerge.
\r
27 class CFindDlg : public CDialog
\r
29 DECLARE_DYNAMIC(CFindDlg)
\r
32 CFindDlg(CWnd* pParent = NULL); // standard constructor
\r
33 virtual ~CFindDlg();
\r
34 void Create(CWnd * pParent = NULL) {CDialog::Create(IDD, pParent);ShowWindow(SW_SHOW);UpdateWindow();}
\r
35 bool IsTerminating() {return m_bTerminating;}
\r
36 bool FindNext() {return m_bFindNext;}
\r
37 bool MatchCase() {return !!m_bMatchCase;}
\r
38 bool LimitToDiffs() {return !!m_bLimitToDiffs;}
\r
39 bool WholeWord() {return !!m_bWholeWord;}
\r
40 CString GetFindString() {return m_FindCombo.GetString();}
\r
42 enum { IDD = IDD_FIND };
\r
45 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
\r
47 DECLARE_MESSAGE_MAP()
\r
48 virtual void OnCancel();
\r
49 virtual void PostNcDestroy();
\r
50 virtual void OnOK();
\r
51 virtual BOOL OnInitDialog();
\r
52 afx_msg void OnCbnEditchangeFindcombo();
\r
55 bool m_bTerminating;
\r
58 BOOL m_bLimitToDiffs;
\r
60 CHistoryCombo m_FindCombo;
\r