OSDN Git Service

fix some build error
[tortoisegit/TortoiseGitJp.git] / src / TortoiseMerge / FindDlg.h
1 // TortoiseMerge - a Diff/Patch program\r
2 \r
3 // Copyright (C) 2006-2007 - TortoiseSVN\r
4 \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
9 \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
14 \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
18 //\r
19 #pragma once\r
20 #include "afxcmn.h"\r
21 #include "HistoryCombo.h"\r
22 \r
23 /**\r
24  * \ingroup TortoiseMerge\r
25  * Find dialog used in TortoiseMerge.\r
26  */\r
27 class CFindDlg : public CDialog\r
28 {\r
29         DECLARE_DYNAMIC(CFindDlg)\r
30 \r
31 public:\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
41 // Dialog Data\r
42         enum { IDD = IDD_FIND };\r
43 \r
44 protected:\r
45         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support\r
46 \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
53 private:\r
54         UINT                    m_FindMsg;\r
55         bool                    m_bTerminating;\r
56         bool                    m_bFindNext;\r
57         BOOL                    m_bMatchCase;\r
58         BOOL                    m_bLimitToDiffs;\r
59         BOOL                    m_bWholeWord;\r
60         CHistoryCombo   m_FindCombo;\r
61 };\r