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.
20 #include "HorizontalResizableStandAloneDialog.h"
24 class CSubmoduleResolveConflictDlg
: public CHorizontalResizableStandAloneDialog
26 DECLARE_DYNAMIC(CSubmoduleResolveConflictDlg
)
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
);
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();
58 CString m_sTheirsTitle
;
60 CString m_sBaseSubject
;
63 CString m_sMineSubject
;
65 CString m_sTheirsHash
;
66 CString m_sTheirsSubject
;
68 CGitDiff::ChangeType m_nChangeTypeMine
;
69 CGitDiff::ChangeType m_nChangeTypeTheirs
;
70 bool m_bRevertTheirMy
;