Fixed issue #1507: Submodule Diff Dialog should show dirty state only on working...
[TortoiseGit.git] / src / TortoiseMerge / OpenDlg.h
blobc5cd4b4c4d3f6dafebf55738958ae979857b2651
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.
19 #pragma once
20 #include "FileDropEdit.h"
21 #include "StandAloneDlg.h"
23 // COpenDlg dialog
25 class COpenDlg : public CStandAloneDialog
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 void OnBrowseForFile(CString& filepath, UINT nFileFilter = IDS_COMMONFILEFILTER);
39 void GroupRadio(UINT nID);
40 bool CheckAndEnableClipboardChecker();
41 DECLARE_MESSAGE_MAP()
42 public:
43 CString m_sBaseFile;
44 CString m_sTheirFile;
45 CString m_sYourFile;
46 CString m_sUnifiedDiffFile;
47 CString m_sPatchDirectory;
49 protected:
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();
71 virtual void OnOK();
72 void AutoCompleteOn(int controlId);
74 BOOL m_bFromClipboard;
75 UINT m_cFormat;
76 HWND m_nextViewer;