OSDN Git Service

TortoiseGitBlame Add Next and Previous Function when choose one commit
[tortoisegit/TortoiseGitJp.git] / src / TortoiseGitBlame / TortoiseGitBlameView.h
index 5a89063..01a8667 100644 (file)
@@ -86,6 +86,23 @@ protected:
        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
+       afx_msg void OnViewNext();\r
+       afx_msg void OnViewPrev();\r
+       \r
+       int FindNextLine(CString commithash, bool bUpOrDown=false);\r
+       int FindFirstLine(CString commithash, int line)\r
+       {\r
+               while(line>=0)\r
+               {\r
+                       if( m_CommitHash[line] != commithash )\r
+                       {\r
+                               return line++;\r
+                       }\r
+                       line--;\r
+               }\r
+               return line;\r
+       }\r
+\r
        DECLARE_MESSAGE_MAP()\r
 \r
     static UINT m_FindDialogMessage;\r