OSDN Git Service

BrowseRef: Use CMessageBox to display confirm message.
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / BrowseRefsDlg.h
index 231779a..87050e6 100644 (file)
@@ -21,6 +21,10 @@ public:
                        return m_csRefName;\r
                return m_pParent->GetRefName()+"/"+m_csRefName;\r
        }\r
+       bool                    IsFrom(const wchar_t* from)const\r
+       {\r
+               return wcsncmp(GetRefName(),from,wcslen(from))==0;\r
+       }\r
 \r
        CString                 m_csRefName;\r
        CString                 m_csRefHash;\r
@@ -39,13 +43,18 @@ class CBrowseRefsDlg : public CResizableStandAloneDialog
        DECLARE_DYNAMIC(CBrowseRefsDlg)\r
 \r
 public:\r
-       CBrowseRefsDlg(CWnd* pParent = NULL);   // standard constructor\r
+       CBrowseRefsDlg(CString cmdPath, CWnd* pParent = NULL);   // standard constructor\r
        virtual ~CBrowseRefsDlg();\r
 \r
        enum eCmd\r
        {\r
                eCmd_ViewLog = WM_APP,\r
-               eCmd_AddRemote\r
+               eCmd_AddRemote,\r
+               eCmd_ManageRemotes,\r
+               eCmd_CreateBranch,\r
+               eCmd_CreateTag,\r
+               eCmd_DeleteBranch,\r
+               eCmd_DeleteTag\r
        };\r
 \r
 // Dialog Data\r
@@ -69,7 +78,11 @@ public:
 \r
        bool                    SelectRef(CString refName);\r
 \r
+       bool                    ConfirmDeleteRef(CString completeRefName);\r
+       bool                    DoDeleteRef(CString completeRefName, bool bForce);\r
+\r
 private:\r
+       CString                 m_cmdPath;\r
 \r
        CShadowTree             m_TreeRoot;\r
        CTreeCtrl               m_RefTreeCtrl;\r
@@ -81,4 +94,5 @@ public:
 \r
        void            OnContextMenu_ListRefLeafs(CPoint point);\r
        void            OnContextMenu_RefTreeCtrl(CPoint point);\r
+       virtual BOOL PreTranslateMessage(MSG* pMsg);\r
 };\r