Call CGit::DeleteRemoteRefs() to delete remote tags
[TortoiseGit.git] / src / TortoiseProc / SubmoduleDiffDlg.h
blobe9f6efa4994c8e6e901c26d8fecac21ce76ca65d
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"
22 #include "MenuButton.h"
24 class CSubmoduleDiffDlg : public CHorizontalResizableStandAloneDialog
26 DECLARE_DYNAMIC(CSubmoduleDiffDlg)
28 public:
29 CSubmoduleDiffDlg(CWnd* pParent = NULL);
30 virtual ~CSubmoduleDiffDlg();
32 enum { IDD = IDD_DIFFSUBMODULE };
34 enum ChangeType
36 Unknown,
37 NewSubmodule,
38 DeleteSubmodule,
39 FastForward,
40 Rewind,
41 NewerTime,
42 OlderTime,
43 SameTime
46 void SetDiff(CString path, bool toIsWorkingCopy, CString fromHash, CString fromSubject, bool fromOK, CString toHash, CString toSubject, bool toOK, bool dirty, ChangeType changeType);
47 bool IsRefresh() { return m_bRefresh; }
49 protected:
50 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
51 virtual BOOL OnInitDialog();
52 virtual HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
53 virtual BOOL PreTranslateMessage(MSG* pMsg);
55 afx_msg void OnBnClickedLog();
56 afx_msg void OnBnClickedLog2();
57 afx_msg void OnBnClickedShowDiff();
58 afx_msg void OnBnClickedButtonUpdate();
59 void ShowLog(CString hash);
60 CMenuButton m_ctrlShowDiffBtn;
62 DECLARE_MESSAGE_MAP()
64 bool m_bToIsWorkingCopy;
65 CString m_sPath;
67 CString m_sFromHash;
68 CString m_sFromSubject;
69 bool m_bFromOK;
70 CString m_sToHash;
71 CString m_sToSubject;
72 bool m_bToOK;
73 bool m_bDirty;
74 ChangeType m_nChangeType;
75 bool m_bRefresh;