Fixed issue #1571: Warn author not set when editing notes
[TortoiseGit.git] / src / TortoiseProc / SubmoduleDiffDlg.h
blob79d21ac38da46095d5727dae8da49d58c8cd0b07
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2012 - 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"
23 class CSubmoduleDiffDlg : public CHorizontalResizableStandAloneDialog
25 DECLARE_DYNAMIC(CSubmoduleDiffDlg)
27 public:
28 CSubmoduleDiffDlg(CWnd* pParent = NULL);
29 virtual ~CSubmoduleDiffDlg();
31 enum { IDD = IDD_DIFFSUBMODULE };
33 enum ChangeType
35 Unknown,
36 NewSubmodule,
37 DeleteSubmodule,
38 FastForward,
39 Rewind,
40 NewerTime,
41 OlderTime,
42 SameTime
45 void SetDiff(CString path, bool toIsWorkingCopy, CString fromHash, CString fromSubject, bool fromOK, CString toHash, CString toSubject, bool toOK, bool dirty, ChangeType changeType);
47 protected:
48 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
49 virtual BOOL OnInitDialog();
50 virtual HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
52 afx_msg void OnBnClickedLog();
53 afx_msg void OnBnClickedLog2();
54 afx_msg void OnBnClickedShowDiff();
55 void ShowLog(CString hash);
57 DECLARE_MESSAGE_MAP()
59 bool m_bToIsWorkingCopy;
60 CString m_sPath;
62 CString m_sFromHash;
63 CString m_sFromSubject;
64 bool m_bFromOK;
65 CString m_sToHash;
66 CString m_sToSubject;
67 bool m_bToOK;
68 bool m_bDirty;
69 ChangeType m_nChangeType;