OSDN Git Service

Show Ignore Sub Menu
[tortoisegit/TortoiseGitJp.git] / src / TortoiseMerge / OpenDlg.h
1 // TortoiseMerge - a Diff/Patch program\r
2 \r
3 // Copyright (C) 2006 - Stefan Kueng\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 "FileDropEdit.h"\r
21 #include "afxwin.h"\r
22 \r
23 // COpenDlg dialog\r
24 \r
25 class COpenDlg : public CDialog\r
26 {\r
27         DECLARE_DYNAMIC(COpenDlg)\r
28 \r
29 public:\r
30         COpenDlg(CWnd* pParent = NULL);   // standard constructor\r
31         virtual ~COpenDlg();\r
32 \r
33 // Dialog Data\r
34         enum { IDD = IDD_OPENDLG };\r
35 \r
36 protected:\r
37         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support\r
38         BOOL BrowseForFile(CString& filepath, CString title, UINT nFileFilter = IDS_COMMONFILEFILTER);\r
39         void GroupRadio(UINT nID);\r
40         bool CheckAndEnableClipboardChecker();\r
41         BOOL DialogEnableWindow(UINT nID, BOOL bEnable);\r
42         DECLARE_MESSAGE_MAP()\r
43 public:\r
44         CString m_sBaseFile;\r
45         CString m_sTheirFile;\r
46         CString m_sYourFile;\r
47         CString m_sUnifiedDiffFile;\r
48         CString m_sPatchDirectory;\r
49 \r
50 protected:\r
51         CFileDropEdit m_cBaseFileEdit;\r
52         CFileDropEdit m_cTheirFileEdit;\r
53         CFileDropEdit m_cYourFileEdit;\r
54         CFileDropEdit m_cDiffFileEdit;\r
55         CFileDropEdit m_cDirEdit;\r
56 \r
57         afx_msg void OnBnClickedBasefilebrowse();\r
58         afx_msg void OnBnClickedTheirfilebrowse();\r
59         afx_msg void OnBnClickedYourfilebrowse();\r
60         afx_msg void OnBnClickedHelp();\r
61         afx_msg void OnBnClickedDifffilebrowse();\r
62         afx_msg void OnBnClickedDirectorybrowse();\r
63         afx_msg void OnBnClickedMergeradio();\r
64         afx_msg void OnBnClickedApplyradio();\r
65 \r
66         afx_msg void OnChangeCbChain(HWND hWndRemove, HWND hWndAfter);\r
67         afx_msg void OnDrawClipboard();\r
68         afx_msg void OnDestroy();\r
69 \r
70         virtual BOOL OnInitDialog();\r
71         virtual void OnOK();\r
72 \r
73         BOOL    m_bFromClipboard;\r
74         UINT    m_cFormat;\r
75         HWND    m_nextViewer;\r
76 public:\r
77         afx_msg void OnBnClickedPatchfromclipboard();\r
78 };\r