Fixed issue #4126: Capitalize the first letter in the Push dialog
[TortoiseGit.git] / src / TortoiseProc / MergeDlg.h
blob550c064cdfa1da8b5e0a31cf39b93d8b270e074a
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2007-2011, 2013-2016, 2023 - 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 #pragma once
21 #include "StandAloneDlg.h"
22 #include "ChooseVersion.h"
23 #include "SciEdit.h"
24 #include "RegHistory.h"
26 // CMergeDlg dialog
28 class CMergeDlg : public CResizableStandAloneDialog,public CChooseVersion , public CSciEditContextMenuInterface
30 DECLARE_DYNAMIC(CMergeDlg)
32 public:
33 CMergeDlg(CWnd* pParent = nullptr); // standard constructor
34 virtual ~CMergeDlg();
36 // Dialog Data
37 enum { IDD = IDD_MERGE };
39 BOOL m_bSquash;
40 BOOL m_bNoFF;
41 BOOL m_bFFonly;
42 BOOL m_bNoCommit;
43 BOOL m_bLog;
44 int m_nLog;
45 CString m_MergeStrategy;
46 CString m_StrategyOption;
47 CString m_StrategyParam;
48 //CString m_Base;
50 protected:
51 void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support
52 BOOL OnInitDialog() override;
54 CSciEdit m_cLogMessage;
55 ProjectProperties m_ProjectProperties;
57 const wchar_t* m_pDefaultText = nullptr;
58 DECLARE_MESSAGE_MAP()
59 CHOOSE_EVENT_RADIO() ;
61 // CSciEditContextMenuInterface
62 void InsertMenuItems(CMenu& mPopup, int& nCmd) override;
63 bool HandleMenuItemClick(int cmd, CSciEdit* pSciEdit) override;
65 public:
66 CString m_strLogMesage;
68 private:
69 CRegHistory m_History;
70 int m_nPopupPasteLastMessage = 0;
71 int m_nPopupRecentMessage = 0;
73 void ReloadHistoryEntries();
74 afx_msg void OnBnClickedOk();
75 void OnCancel() override;
76 afx_msg void OnDestroy();
77 afx_msg void OnBnClickedCheckSquash();
78 afx_msg void OnBnClickedCheckMergeLog();
79 afx_msg void OnCbnSelchangeComboMergestrategy();
80 afx_msg void OnCbnSelchangeComboStrategyoption();
81 afx_msg void OnBnClickedCheckFFonlyOrNoFF();