Keep the font size of 8 for the explorer property page
[TortoiseGit.git] / src / TortoiseProc / SubmoduleResolveConflictDlg.h
blobb0a560119077edc031aebab63f58524a2baa8f1a
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2012, 2014, 2017 - TortoiseGit
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 "HorizontalResizableStandAloneDialog.h"
21 #include "resource.h"
22 #include "GitDiff.h"
24 class CSubmoduleResolveConflictDlg : public CHorizontalResizableStandAloneDialog
26 DECLARE_DYNAMIC(CSubmoduleResolveConflictDlg)
28 public:
29 CSubmoduleResolveConflictDlg(CWnd* pParent = nullptr);
30 virtual ~CSubmoduleResolveConflictDlg();
32 enum { IDD = IDD_RESOLVESUBMODULECONFLICT };
34 void SetDiff(const CString& path, bool revertTheirMy, const CString& baseTitle, const CString& mineTitle, const CString& theirsTitle, const CString& baseHash, const CString& baseSubject, bool baseOK, const CString& mineHash, const CString& mineSubject, bool mineOK, CGitDiff::ChangeType mineChangeType, const CString& theirsHash, const CString& theirsSubject, bool theirsOK, CGitDiff::ChangeType theirsChangeType);
36 bool m_bResolved;
38 protected:
39 virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support
40 virtual BOOL OnInitDialog() override;
41 afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
43 void Resolve(const CString& path, bool useMine);
45 afx_msg void OnBnClickedLog();
46 afx_msg void OnBnClickedLog2();
47 afx_msg void OnBnClickedLog3();
48 void ShowLog(CString hash);
49 afx_msg void OnBnClickedButtonUpdate2();
50 afx_msg void OnBnClickedButtonUpdate3();
52 DECLARE_MESSAGE_MAP()
54 CString m_sPath;
56 CString m_sBaseTitle;
57 CString m_sMineTitle;
58 CString m_sTheirsTitle;
59 CString m_sBaseHash;
60 CString m_sBaseSubject;
61 bool m_bBaseOK;
62 CString m_sMineHash;
63 CString m_sMineSubject;
64 bool m_bMineOK;
65 CString m_sTheirsHash;
66 CString m_sTheirsSubject;
67 bool m_bTheirsOK;
68 CGitDiff::ChangeType m_nChangeTypeMine;
69 CGitDiff::ChangeType m_nChangeTypeTheirs;
70 bool m_bRevertTheirMy;