#include "SciEdit.h"\r
\r
#include "GitBlameLogList.h"\r
+#include "Balloon.h"\r
\r
const COLORREF black = RGB(0,0,0);\r
const COLORREF white = RGB(0xff,0xff,0xff);\r
const COLORREF lightBlue = RGB(0xA6, 0xCA, 0xF0);\r
const int blockSize = 128 * 1024;\r
\r
-#define BLAMESPACE 20\r
+#define BLAMESPACE 5\r
#define HEADER_HEIGHT 18\r
-#define LOCATOR_WIDTH 20\r
+#define LOCATOR_WIDTH 10\r
\r
#define MAX_LOG_LENGTH 2000\r
\r
\r
// Generated message map functions\r
protected:\r
+ BOOL PreTranslateMessage(MSG* pMsg);\r
+ afx_msg void OnEditFind();\r
+ afx_msg void OnEditGoto();\r
afx_msg void OnFilePrintPreview();\r
afx_msg void OnRButtonUp(UINT nFlags, CPoint point);\r
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);\r
afx_msg int OnCreate(LPCREATESTRUCT lpcs);\r
afx_msg void OnSize(UINT nType, int cx, int cy);\r
-\r
+ afx_msg void OnSciPainted(NMHDR*, LRESULT*);\r
+ afx_msg void OnLButtonDown(UINT nFlags,CPoint point);\r
+ afx_msg void OnRButtonDown(UINT nFlags,CPoint point){OnLButtonDown(nFlags,point);CView::OnRButtonDown(nFlags,point);};\r
+ afx_msg void OnSciGetBkColor(NMHDR*, LRESULT*);\r
+ afx_msg void OnMouseHover(UINT nFlags, CPoint point);\r
+ afx_msg void OnMouseMove(UINT nFlags, CPoint point);\r
+ afx_msg LRESULT OnFindDialogMessage(WPARAM wParam, LPARAM lParam);\r
DECLARE_MESSAGE_MAP()\r
\r
+ static UINT m_FindDialogMessage;\r
public:\r
\r
void UpdateInfo();\r
+ void FocusOn(GitRev *pRev);\r
\r
CSciEdit m_TextView;\r
+ CBalloon m_ToolTip;\r
\r
HINSTANCE hInstance;\r
HINSTANCE hResource;\r
BOOL bIgnoreSpaces;\r
BOOL bIgnoreAllSpaces;\r
\r
+ BOOL m_bShowAuthor;\r
+ BOOL m_bShowDate;\r
+\r
+\r
LRESULT SendEditor(UINT Msg, WPARAM wParam=0, LPARAM lParam=0);\r
\r
void GetRange(int start, int end, char *text);\r
void BlamePreviousRevision();\r
void DiffPreviousRevision();\r
void ShowLog();\r
- bool DoSearch(LPSTR what, DWORD flags);\r
+ bool DoSearch(CString what, DWORD flags);\r
bool GotoLine(long line);\r
bool ScrollToLine(long line);\r
void GotoLineDlg();\r
void SetSelectedLine(LONG line) { m_SelectedLine=line;};\r
\r
LONG m_mouserev;\r
- CString m_MouseHash;\r
+ LONG m_MouseLine;\r
LONG m_selectedrev;\r
LONG m_selectedorigrev;\r
CString m_SelectedHash;\r
CRegStdWORD m_regOldLinesColor;\r
CRegStdWORD m_regNewLinesColor;\r
\r
+ CGitBlameLogList * GetLogList();\r
+\r
+ CFindReplaceDialog *m_pFindDialog;\r
+\r
};\r
\r
#ifndef _DEBUG // debug version in TortoiseGitBlameView.cpp\r