Apply backgroundcolors.patch
[TortoiseGit.git] / src / TortoiseMerge / TortoiseMerge.h
blob15baff12fb79c2b6ccbc5d5d29e9dbda9739accc
1 // TortoiseGitMerge - a Diff/Patch program
3 // Copyright (C) 2021, 2023 - TortoiseGit
4 // Copyright (C) 2006-2008, 2010-2012 - TortoiseSVN
6 // This program is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU General Public License
8 // as published by the Free Software Foundation; either version 2
9 // of the License, or (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software Foundation,
18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #pragma once
22 #ifndef __AFXWIN_H__
23 #error include 'stdafx.h' before including this file for PCH
24 #endif
26 #include "resource.h" // main symbols
28 /**
29 * \ingroup TortoiseMerge
30 * The application class of TortoiseMerge.
32 class CTortoiseMergeApp : public CWinAppEx
34 public:
35 CTortoiseMergeApp();
36 ~CTortoiseMergeApp();
39 // Overrides
40 public:
41 BOOL InitInstance() override;
42 int ExitInstance() override;
43 void OnClosingMainFrame(CFrameImpl* pFrameImpl) override;
45 protected:
46 BOOL LoadWindowPlacement(CRect& rectNormalPosition, int& nFflags, int& nShowCmd) override;
47 afx_msg void OnAppAbout();
48 DECLARE_MESSAGE_MAP()
49 private:
50 bool HasClipboardPatch();
51 static bool TrySavePatchFromClipboard(std::wstring& resultFile);
52 bool m_hasConflicts = false;
55 extern CTortoiseMergeApp theApp;
56 extern CString g_sGroupingUUID;