Fixed Issue #138: "Format patch" in "Show log" dialog doesn't work
[TortoiseGit.git] / src / TortoiseProc / TortoiseProc.h
blobf6c2b7c3daa86fee969373aed22c767f0285c81f
1 // TortoiseSVN - a Windows shell extension for easy version control
3 // Copyright (C) 2003-2008 - TortoiseSVN
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
21 #ifndef __AFXWIN_H__
22 #error include 'stdafx.h' before including this file for PCH
23 #endif
26 #include "resource.h" // main symbols
29 #include "..\\TortoiseShell\\resource.h"
30 //#include "UnicodeUtils.h"
32 class CTSVNPath;
33 class CTSVNPathList;
35 /**
36 * \ingroup TortoiseProc
37 * Main class of the TortoiseProc.exe\n
38 * It is the entry point when calling the TortoiseProc.exe and
39 * handles the command line. Depending on the command line
40 * other 'modules' are called, usually dialog boxes which
41 * themselves then execute a specific function.\n\n
42 * Many commands are executed using the CSVNProgressDlg which
43 * just displays the common notify callbacks of the Subversion commands.
47 class CTortoiseProcApp : public CWinAppEx
49 public:
50 CTortoiseProcApp();
51 ~CTortoiseProcApp();
53 // Overrides
54 public:
55 virtual BOOL InitInstance();
56 virtual int ExitInstance();
58 BOOL CheckMsysGitDir();
60 void CheckUpgrade();
61 void EnableCrashHandler();
63 ULONG_PTR m_gdiplusToken;
64 // Implementation
66 private:
69 DECLARE_MESSAGE_MAP()
70 private:
71 bool retSuccess;
74 extern CTortoiseProcApp theApp;
75 extern HWND hWndExplorer;
76 extern CString sOrigCWD;