Search ssh executable on the PATH configured in TortoiseGit
[TortoiseGit.git] / src / TortoiseGitBlame / TortoiseGitBlameDoc.h
blob1ef42da9b106e2139f4c60a4ff2884871bd49b82
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2008-2011,2013 - 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 #ifdef USE_TEMPFILENAME
43 CString m_TempFileName;
44 #endif
45 CString m_Rev;
46 int m_lLine;
48 // Operations
49 BOOL m_IsGitFile;
50 CTGitPath m_GitPath;
52 // Overrides
53 virtual BOOL OnNewDocument();
54 virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
55 virtual BOOL OnOpenDocument(LPCTSTR lpszPathName,CString Rev);
56 virtual void SetPathName(LPCTSTR lpszPathName, BOOL bAddToMRU = TRUE);
58 // Implementation
59 virtual ~CTortoiseGitBlameDoc();
60 #ifdef _DEBUG
61 virtual void AssertValid() const;
62 virtual void Dump(CDumpContext& dc) const;
63 #endif
64 CMainFrame *GetMainFrame()
66 return (CMainFrame*)AfxGetApp()->GetMainWnd();
69 protected:
70 // Generated message map functions
71 DECLARE_MESSAGE_MAP()