OSDN Git Service

Add Missed file
authorFrank Li <lznuaa@gmail.com>
Sat, 23 Jan 2010 06:26:57 +0000 (14:26 +0800)
committerFrank Li <lznuaa@gmail.com>
Sat, 23 Jan 2010 06:26:57 +0000 (14:26 +0800)
Signed-off-by: Frank Li <lznuaa@gmail.com>
ext/gitdll/gitdll.rc [new file with mode: 0644]
ext/gitdll/resource.h [new file with mode: 0644]
src/TortoiseProc/Commands/SetExtMenu.h [new file with mode: 0644]
src/TortoiseShell/MenuInfo.h [new file with mode: 0644]

diff --git a/ext/gitdll/gitdll.rc b/ext/gitdll/gitdll.rc
new file mode 100644 (file)
index 0000000..92f2497
--- /dev/null
@@ -0,0 +1,82 @@
+// Microsoft Visual C++ generated resource script.\r
+//\r
+#include "resource.h"\r
+\r
+#define APSTUDIO_READONLY_SYMBOLS\r
+/////////////////////////////////////////////////////////////////////////////\r
+//\r
+// Generated from the TEXTINCLUDE 2 resource.\r
+//\r
+#include "afxres.h"\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+#undef APSTUDIO_READONLY_SYMBOLS\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+// Chinese (P.R.C.) resources\r
+\r
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS)\r
+#ifdef _WIN32\r
+LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED\r
+#pragma code_page(936)\r
+#endif //_WIN32\r
+\r
+#ifdef APSTUDIO_INVOKED\r
+/////////////////////////////////////////////////////////////////////////////\r
+//\r
+// TEXTINCLUDE\r
+//\r
+\r
+1 TEXTINCLUDE \r
+BEGIN\r
+    "resource.h\0"\r
+END\r
+\r
+2 TEXTINCLUDE \r
+BEGIN\r
+    "#include ""afxres.h""\r\n"\r
+    "\0"\r
+END\r
+\r
+3 TEXTINCLUDE \r
+BEGIN\r
+    "#include ""gitdll.rc2""\r\n"\r
+    "\0"\r
+END\r
+\r
+#endif    // APSTUDIO_INVOKED\r
+\r
+#endif    // Chinese (P.R.C.) resources\r
+/////////////////////////////////////////////////////////////////////////////\r
+\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+// English (U.S.) resources\r
+\r
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r
+#ifdef _WIN32\r
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US\r
+#pragma code_page(1252)\r
+#endif //_WIN32\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+//\r
+// String Table\r
+//\r
+\r
+\r
+#endif    // English (U.S.) resources\r
+/////////////////////////////////////////////////////////////////////////////\r
+\r
+\r
+\r
+#ifndef APSTUDIO_INVOKED\r
+/////////////////////////////////////////////////////////////////////////////\r
+//\r
+// Generated from the TEXTINCLUDE 3 resource.\r
+//\r
+#include "gitdll.rc2"\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+#endif    // not APSTUDIO_INVOKED\r
+\r
diff --git a/ext/gitdll/resource.h b/ext/gitdll/resource.h
new file mode 100644 (file)
index 0000000..423a207
--- /dev/null
@@ -0,0 +1,14 @@
+//{{NO_DEPENDENCIES}}\r
+// Microsoft Visual C++ generated include file.\r
+// Used by gitdll.rc\r
+\r
+// Next default values for new objects\r
+// \r
+#ifdef APSTUDIO_INVOKED\r
+#ifndef APSTUDIO_READONLY_SYMBOLS\r
+#define _APS_NEXT_RESOURCE_VALUE        101\r
+#define _APS_NEXT_COMMAND_VALUE         40001\r
+#define _APS_NEXT_CONTROL_VALUE         1001\r
+#define _APS_NEXT_SYMED_VALUE           101\r
+#endif\r
+#endif\r
diff --git a/src/TortoiseProc/Commands/SetExtMenu.h b/src/TortoiseProc/Commands/SetExtMenu.h
new file mode 100644 (file)
index 0000000..99c2ad7
--- /dev/null
@@ -0,0 +1,85 @@
+// 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 CSetMenuEx : public ISettingsPropPage\r
+{\r
+       DECLARE_DYNAMIC(CSetLookAndFeelPage)\r
+\r
+public:\r
+       CSetLookAndFeelPage();\r
+       virtual ~CSetLookAndFeelPage();\r
+\r
+       UINT GetIconID() {return IDI_MISC;}\r
+\r
+// Dialog Data\r
+       enum { IDD = IDD_SETTINMENUEX };\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
+       CRegDWORD                       m_regTopmenu;\r
+       CRegDWORD                       m_regTopmenuhigh;\r
+\r
+       CImageList                      m_imgList;\r
+       CListCtrl                       m_cMenuList;\r
+       BOOL                            m_bModified;\r
+       unsigned __int64        m_topmenu;\r
+       bool                            m_bBlock;\r
+       \r
+       CString                         m_sNoContextPaths;\r
+       CRegString                      m_regNoContextPaths;\r
+};\r
diff --git a/src/TortoiseShell/MenuInfo.h b/src/TortoiseShell/MenuInfo.h
new file mode 100644 (file)
index 0000000..d7b9265
--- /dev/null
@@ -0,0 +1,113 @@
+#pragma once\r
+\r
+enum GitCommands\r
+{\r
+               ShellSeparator = 0,\r
+               ShellSubMenu = 1,\r
+               ShellSubMenuFolder,\r
+               ShellSubMenuFile,\r
+               ShellSubMenuLink,\r
+               ShellSubMenuMultiple,\r
+               ShellMenuCheckout,\r
+               ShellMenuUpdate,\r
+               ShellMenuCommit,\r
+               ShellMenuAdd,\r
+               ShellMenuAddAsReplacement,\r
+               ShellMenuRevert,\r
+               ShellMenuCleanup,\r
+               ShellMenuResolve,\r
+               ShellMenuSwitch,\r
+               ShellMenuImport,\r
+               ShellMenuExport,\r
+               ShellMenuAbout,\r
+               ShellMenuCreateRepos,\r
+               ShellMenuCopy,\r
+               ShellMenuMerge,\r
+               ShellMenuMergeAll,\r
+               ShellMenuSettings,\r
+               ShellMenuRemove,\r
+               ShellMenuRemoveKeep,\r
+               ShellMenuRename,\r
+               ShellMenuUpdateExt,\r
+               ShellMenuDiff,\r
+               ShellMenuPrevDiff,\r
+               ShellMenuUrlDiff,\r
+               ShellMenuDiffTwo,\r
+               ShellMenuDropCopyAdd,\r
+               ShellMenuDropMoveAdd,\r
+               ShellMenuDropMove,\r
+               ShellMenuDropMoveRename,\r
+               ShellMenuDropCopy,\r
+               ShellMenuDropCopyRename,\r
+               ShellMenuDropExport,\r
+               ShellMenuDropExportExtended,\r
+               ShellMenuLog,\r
+               ShellMenuConflictEditor,\r
+               ShellMenuRelocate,\r
+               ShellMenuHelp,\r
+               ShellMenuShowChanged,\r
+               ShellMenuIgnoreSub,\r
+               ShellMenuIgnore,\r
+               ShellMenuIgnoreFile,\r
+               ShellMenuIgnoreCaseSensitive,\r
+               ShellMenuIgnoreCaseInsensitive,\r
+               ShellMenuRefLog,\r
+               ShellMenuRefBrowse,\r
+               ShellMenuBlame,\r
+               ShellMenuApplyPatch,\r
+               ShellMenuCreatePatch,\r
+               ShellMenuRevisionGraph,\r
+               ShellMenuUnIgnoreSub,\r
+               ShellMenuUnIgnoreCaseSensitive,\r
+               ShellMenuUnIgnore,\r
+//             ShellMenuLock,\r
+//             ShellMenuUnlock,\r
+//             ShellMenuUnlockForce,\r
+               ShellMenuProperties,\r
+               ShellMenuDelUnversioned,\r
+               ShellMenuClipPaste,\r
+               ShellMenuPull,\r
+               ShellMenuPush,\r
+               ShellMenuClone,\r
+               ShellMenuBranch,\r
+               ShellMenuTag,\r
+               ShellMenuFormatPatch,\r
+               ShellMenuImportPatch,\r
+               ShellMenuCherryPick,\r
+               ShellMenuFetch,\r
+               ShellMenuRebase,\r
+               ShellMenuStashSave,\r
+               ShellMenuStashApply,\r
+               ShellMenuStashList,\r
+               ShellMenuStashPop,\r
+               ShellMenuSubAdd,\r
+               ShellMenuSubSync,\r
+               ShellMenuSendMail,\r
+               ShellMenuGitSVNRebase,\r
+               ShellMenuGitSVNDCommit,\r
+               ShellMenuGitSVNIgnore,      //import svn ignore\r
+               ShellMenuSync,\r
+               ShellMenuLastEntry                      // used to mark the menu array end\r
+};\r
+\r
+       // helper struct for context menu entries\r
+typedef struct MenuInfo\r
+{\r
+               GitCommands                     command;                ///< the command which gets executed for this menu entry\r
+               unsigned __int64        menuID;                 ///< the menu ID to recognize the entry. NULL if it shouldn't be added to the context menu automatically\r
+               UINT                            iconID;                 ///< the icon to show for the menu entry\r
+               UINT                            menuTextID;             ///< the text of the menu entry\r
+               UINT                            menuDescID;             ///< the description text for the menu entry\r
+               /// the following 8 params are for checking whether the menu entry should\r
+               /// be added automatically, based on states of the selected item(s).\r
+               /// The 'yes' states must be set, the 'no' states must not be set\r
+               /// the four pairs are OR'ed together, the 'yes'/'no' states are AND'ed together.\r
+               DWORD                           firstyes;\r
+               DWORD                           firstno;\r
+               DWORD                           secondyes;\r
+               DWORD                           secondno;\r
+               DWORD                           thirdyes;\r
+               DWORD                           thirdno;\r
+               DWORD                           fourthyes;\r
+               DWORD                           fourthno;\r
+};\r