applied backgroundcolors.patch
[TortoiseGit.git] / src / TortoiseGitBlame / TortoiseGitBlameDoc.h
blobbab6aa3020a8d0630cca19fad994743bb1d4b08c
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2008-2011 - 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 // TortoiseGitBlameDoc.h : interface of the CTortoiseGitBlameDoc class
24 #pragma once
26 #include "Git.h"
27 #include "TGitPath.h"
29 class CMainFrame ;
31 class CTortoiseGitBlameDoc : public CDocument
33 protected: // create from serialization only
34 CTortoiseGitBlameDoc();
35 DECLARE_DYNCREATE(CTortoiseGitBlameDoc)
36 bool m_bFirstStartup;
38 // Attributes
39 public:
40 BYTE_VECTOR m_BlameData;
41 CString m_CurrentFileName;
42 CString m_TempFileName;
43 CString m_Rev;
45 // Operations
46 BOOL m_IsGitFile;
47 CTGitPath m_GitPath;
49 // Overrides
50 virtual BOOL OnNewDocument();
51 virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
52 virtual BOOL OnOpenDocument(LPCTSTR lpszPathName,CString Rev);
53 virtual void SetPathName(LPCTSTR lpszPathName, BOOL bAddToMRU = TRUE);
55 // Implementation
56 virtual ~CTortoiseGitBlameDoc();
57 #ifdef _DEBUG
58 virtual void AssertValid() const;
59 virtual void Dump(CDumpContext& dc) const;
60 #endif
61 CMainFrame *GetMainFrame()
63 return (CMainFrame*)AfxGetApp()->GetMainWnd();
66 protected:
67 // Generated message map functions
68 DECLARE_MESSAGE_MAP()