1 // TortoiseMerge - a Diff/Patch program
3 // Copyright (C) 2006, 2009-2010 - 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.
20 #include "FileDropEdit.h"
21 #include "StandAloneDlg.h"
25 class COpenDlg
: public CStandAloneDialog
27 DECLARE_DYNAMIC(COpenDlg
)
30 COpenDlg(CWnd
* pParent
= NULL
); // standard constructor
34 enum { IDD
= IDD_OPENDLG
};
37 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
38 void OnBrowseForFile(CString
& filepath
, UINT nFileFilter
= IDS_COMMONFILEFILTER
);
39 void GroupRadio(UINT nID
);
40 bool CheckAndEnableClipboardChecker();
46 CString m_sUnifiedDiffFile
;
47 CString m_sPatchDirectory
;
50 CFileDropEdit m_cBaseFileEdit
;
51 CFileDropEdit m_cTheirFileEdit
;
52 CFileDropEdit m_cYourFileEdit
;
53 CFileDropEdit m_cDiffFileEdit
;
54 CFileDropEdit m_cDirEdit
;
56 afx_msg
void OnBnClickedBasefilebrowse();
57 afx_msg
void OnBnClickedTheirfilebrowse();
58 afx_msg
void OnBnClickedYourfilebrowse();
59 afx_msg
void OnBnClickedHelp();
60 afx_msg
void OnBnClickedDifffilebrowse();
61 afx_msg
void OnBnClickedDirectorybrowse();
62 afx_msg
void OnBnClickedMergeradio();
63 afx_msg
void OnBnClickedApplyradio();
65 afx_msg
void OnChangeCbChain(HWND hWndRemove
, HWND hWndAfter
);
66 afx_msg
void OnDrawClipboard();
67 afx_msg
void OnDestroy();
68 afx_msg
void OnBnClickedPatchfromclipboard();
70 virtual BOOL
OnInitDialog();
72 void AutoCompleteOn(int controlId
);
74 BOOL m_bFromClipboard
;