Catch the CMemoryExceptions when loading files in TortoiseMerge
[TortoiseGit.git] / src / TortoiseGitBlame / TortoiseGitBlame.h
blob93ac1c11ce10c966cd893cdd4840ac864cdedf87
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2008-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.
21 // TortoiseGitBlame.h : main header file for the TortoiseGitBlame application
23 #pragma once
25 #ifndef __AFXWIN_H__
26 #error "include 'stdafx.h' before including this file for PCH"
27 #endif
29 #include "resource.h" // main symbols
32 // CTortoiseGitBlameApp:
33 // See TortoiseGitBlame.cpp for the implementation of this class
36 class CTortoiseGitBlameApp : public CWinAppEx
38 public:
39 CTortoiseGitBlameApp();
40 ULONG_PTR m_gdiplusToken;
42 // Overrides
43 public:
44 virtual BOOL InitInstance();
46 // Implementation
47 UINT m_nAppLook;
48 BOOL m_bHiColorIcons;
50 virtual void PreLoadState();
51 virtual void LoadCustomState();
52 virtual void SaveCustomState();
54 CString m_Rev;
55 afx_msg void OnAppAbout();
56 afx_msg void OnFileSettings();
57 DECLARE_MESSAGE_MAP()
58 virtual int ExitInstance();
61 extern CTortoiseGitBlameApp theApp;
62 extern CString sOrigCWD;
64 #ifdef _WIN64
65 #define APP_X64_STRING "x64"
66 #else
67 #define APP_X64_STRING ""
68 #endif