1 // TortoiseMerge - a Diff/Patch program
3 // Copyright (C) 2006-2007 - 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.
21 #include "HistoryCombo.h"
24 * \ingroup TortoiseMerge
25 * Find dialog used in TortoiseMerge.
27 class CFindDlg
: public CDialog
29 DECLARE_DYNAMIC(CFindDlg
)
32 CFindDlg(CWnd
* pParent
= NULL
); // standard constructor
34 void Create(CWnd
* pParent
= NULL
) {CDialog::Create(IDD
, pParent
);ShowWindow(SW_SHOW
);UpdateWindow();}
35 bool IsTerminating() {return m_bTerminating
;}
36 bool FindNext() {return m_bFindNext
;}
37 bool MatchCase() {return !!m_bMatchCase
;}
38 bool LimitToDiffs() {return !!m_bLimitToDiffs
;}
39 bool WholeWord() {return !!m_bWholeWord
;}
40 CString
GetFindString() {return m_FindCombo
.GetString();}
42 enum { IDD
= IDD_FIND
};
45 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
48 virtual void OnCancel();
49 virtual void PostNcDestroy();
51 virtual BOOL
OnInitDialog();
52 afx_msg
void OnCbnEditchangeFindcombo();
60 CHistoryCombo m_FindCombo
;