OSDN Git Service

Patch view stick to commit dialog okay
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / CommitDlg.h
index 1e9baed..ed9c886 100644 (file)
@@ -31,6 +31,7 @@
 #include "..\IBugTraqProvider\IBugTraqProvider_h.h"\r
 #include "Git.h"\r
 #include "HyperLink.h"\r
+#include "PatchViewDlg.h"\r
 \r
 #include <regex>\r
 using namespace std;\r
@@ -55,6 +56,13 @@ public:
        virtual void            InsertMenuItems(CMenu& mPopup, int& nCmd);\r
        virtual bool            HandleMenuItemClick(int cmd, CSciEdit * pSciEdit);\r
 \r
+       void ShowViewPatchText(bool b=true)\r
+       {\r
+               if(b)\r
+                       this->m_ctrlShowPatch.SetWindowText(_T("View Patch>>"));\r
+               else\r
+                       this->m_ctrlShowPatch.SetWindowText(_T("Hide Patch<<"));\r
+       }\r
 private:\r
        static UINT StatusThreadEntry(LPVOID pVoid);\r
        UINT StatusThread();\r
@@ -143,6 +151,7 @@ private:
        CRect                           m_LogMsgOrigRect;\r
        CPathWatcher            m_pathwatcher;\r
        CHyperLink                      m_ctrlShowPatch;\r
+       CPatchViewDlg           m_patchViewdlg;\r
 \r
        CBugTraqAssociation m_bugtraq_association;\r
        HACCEL                          m_hAccel;\r
@@ -155,4 +164,7 @@ public:
        afx_msg void OnStnClickedBugidlabel();\r
        afx_msg void OnScnUpdateUI(NMHDR *pNMHDR, LRESULT *pResult);\r
        afx_msg void OnStnClickedViewPatch();\r
+       afx_msg void OnMove(int x, int y);\r
+       afx_msg void OnMoving(UINT fwSide, LPRECT pRect);\r
+       afx_msg void OnSizing(UINT fwSide, LPRECT pRect);\r
 };\r