OSDN Git Service

merge original branch.
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / Settings / SetExtMenu.h
diff --git a/src/TortoiseProc/Settings/SetExtMenu.h b/src/TortoiseProc/Settings/SetExtMenu.h
new file mode 100644 (file)
index 0000000..649ca7f
--- /dev/null
@@ -0,0 +1,84 @@
+// TortoiseSVN - a Windows shell extension for easy version control\r
+\r
+// Copyright (C) 2008 - TortoiseSVN\r
+\r
+// This program is free software; you can redistribute it and/or\r
+// modify it under the terms of the GNU General Public License\r
+// as published by the Free Software Foundation; either version 2\r
+// of the License, or (at your option) any later version.\r
+\r
+// This program is distributed in the hope that it will be useful,\r
+// but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+// GNU General Public License for more details.\r
+\r
+// You should have received a copy of the GNU General Public License\r
+// along with this program; if not, write to the Free Software Foundation,\r
+// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\r
+//\r
+#pragma once\r
+#include "resource.h"\r
+#include "StandAloneDlg.h"\r
+\r
+// TortoiseSVN - a Windows shell extension for easy version control\r
+\r
+// Copyright (C) 2008 - TortoiseSVN\r
+\r
+// This program is free software; you can redistribute it and/or\r
+// modify it under the terms of the GNU General Public License\r
+// as published by the Free Software Foundation; either version 2\r
+// of the License, or (at your option) any later version.\r
+\r
+// This program is distributed in the hope that it will be useful,\r
+// but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+// GNU General Public License for more details.\r
+\r
+// You should have received a copy of the GNU General Public License\r
+// along with this program; if not, write to the Free Software Foundation,\r
+// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\r
+//\r
+#pragma once\r
+#include "resource.h"\r
+#include "StandAloneDlg.h"\r
+\r
+class CSetExtMenu : public ISettingsPropPage\r
+{\r
+       DECLARE_DYNAMIC(CSetExtMenu)\r
+\r
+public:\r
+       CSetExtMenu();\r
+       virtual ~CSetExtMenu();\r
+\r
+       UINT GetIconID() {return IDI_MISC;}\r
+\r
+// Dialog Data\r
+       enum { IDD = IDD_SETTINGSEXTMENU };\r
+\r
+protected:\r
+       virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support\r
+       virtual BOOL PreTranslateMessage(MSG* pMsg);\r
+       virtual BOOL OnApply();\r
+       afx_msg void OnBnClickedOnlyexplorer();\r
+       afx_msg void OnLvnItemchangedMenulist(NMHDR *pNMHDR, LRESULT *pResult);\r
+       afx_msg void OnChange();\r
+       afx_msg void OnEnChangeNocontextpaths();\r
+\r
+       DECLARE_MESSAGE_MAP()\r
+public:\r
+       virtual BOOL OnInitDialog();\r
+\r
+private:\r
+\r
+       CToolTips                       m_tooltips;\r
+       CRegStdWORD                     m_regExtmenu;\r
+       CRegStdWORD                     m_regExtmenuhigh;\r
+       \r
+       unsigned __int64        m_extmenu;\r
+\r
+       CImageList                      m_imgList;\r
+       CListCtrl                       m_cMenuList;\r
+       BOOL                            m_bModified;\r
+       bool                            m_bBlock;\r
+       \r
+};\r