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