1 // TortoiseMerge - a Diff/Patch program
\r
3 // Copyright (C) 2006 - Stefan Kueng
\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
20 #include "FileDropEdit.h"
\r
25 class COpenDlg : public CDialog
\r
27 DECLARE_DYNAMIC(COpenDlg)
\r
30 COpenDlg(CWnd* pParent = NULL); // standard constructor
\r
31 virtual ~COpenDlg();
\r
34 enum { IDD = IDD_OPENDLG };
\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
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
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
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
66 afx_msg void OnChangeCbChain(HWND hWndRemove, HWND hWndAfter);
\r
67 afx_msg void OnDrawClipboard();
\r
68 afx_msg void OnDestroy();
\r
70 virtual BOOL OnInitDialog();
\r
71 virtual void OnOK();
\r
73 BOOL m_bFromClipboard;
\r
77 afx_msg void OnBnClickedPatchfromclipboard();
\r