Fixed issue #1507: Submodule Diff Dialog should show dirty state only on working...
[TortoiseGit.git] / src / TortoiseMerge / FindDlg.h
blobbe9825b579fe036cebc1846b4fcd97a64e3693fc
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.
19 #pragma once
20 #include "afxcmn.h"
21 #include "HistoryCombo.h"
23 /**
24 * \ingroup TortoiseMerge
25 * Find dialog used in TortoiseMerge.
27 class CFindDlg : public CDialog
29 DECLARE_DYNAMIC(CFindDlg)
31 public:
32 CFindDlg(CWnd* pParent = NULL); // standard constructor
33 virtual ~CFindDlg();
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();}
41 // Dialog Data
42 enum { IDD = IDD_FIND };
44 protected:
45 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
47 DECLARE_MESSAGE_MAP()
48 virtual void OnCancel();
49 virtual void PostNcDestroy();
50 virtual void OnOK();
51 virtual BOOL OnInitDialog();
52 afx_msg void OnCbnEditchangeFindcombo();
53 private:
54 UINT m_FindMsg;
55 bool m_bTerminating;
56 bool m_bFindNext;
57 BOOL m_bMatchCase;
58 BOOL m_bLimitToDiffs;
59 BOOL m_bWholeWord;
60 CHistoryCombo m_FindCombo;