Fixed issue #4126: Capitalize the first letter in the Push dialog
[TortoiseGit.git] / src / TortoiseProc / TortoiseProc.h
blobb16b6b9179da83e870951161bad918252c50dfe4
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2008-2013, 2016-2018, 2020, 2023 - TortoiseGit
4 // Copyright (C) 2003-2008 - 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
27 #include "resource.h" // main symbols
29 #include "../TortoiseShell/resource.h"
30 #include "LoglistCommonResource.h"
32 /**
33 * \ingroup TortoiseProc
34 * Main class of the TortoiseGitProc.exe\n
35 * It is the entry point when calling the TortoiseGitProc.exe and
36 * handles the command line. Depending on the command line
37 * other 'modules' are called, usually dialog boxes which
38 * themselves then execute a specific function.\n\n
39 * Many commands are executed using the CGitProgressList which
40 * just displays the common notify callbacks of the libgit2 commands.
44 class CTortoiseProcApp : public CWinAppEx
46 public:
47 CTortoiseProcApp();
48 ~CTortoiseProcApp();
50 // Overrides
51 public:
52 BOOL InitInstance() override;
53 int ExitInstance() override;
55 void CheckUpgrade();
56 void CheckForNewerVersion();
57 void InitializeJumpList(const CString& appid);
58 void DoInitializeJumpList(const CString& appid);
60 ULONG_PTR m_gdiplusToken = 0;
62 HWND GetExplorerHWND() const { return ::IsWindow(hWndExplorer) ? hWndExplorer : nullptr; }
64 // Implementation
65 private:
66 DECLARE_MESSAGE_MAP()
67 bool retSuccess = false;
68 HWND hWndExplorer = nullptr;
71 extern CTortoiseProcApp theApp;
72 extern CString g_sGroupingUUID;
73 extern CString sOrigCWD;
74 HWND GetExplorerHWND();