Fixed issue #820: Missing menu item for "git svn fetch"
[TortoiseGit.git] / src / TortoiseShell / MenuInfo.h
blobb1a1b5213d328362113219dc8fd16dc708cbd558
1 #pragma once
3 enum GitCommands
5 ShellSeparator = 0,
6 ShellSubMenu = 1,
7 ShellSubMenuFolder,
8 ShellSubMenuFile,
9 ShellSubMenuLink,
10 ShellSubMenuMultiple,
11 ShellMenuUpdate,
12 ShellMenuCommit,
13 ShellMenuAdd,
14 ShellMenuAddAsReplacement,
15 ShellMenuRevert,
16 ShellMenuCleanup,
17 ShellMenuResolve,
18 ShellMenuSwitch,
19 ShellMenuExport,
20 ShellMenuAbout,
21 ShellMenuCreateRepos,
22 ShellMenuCopy,
23 ShellMenuMerge,
24 ShellMenuSettings,
25 ShellMenuRemove,
26 ShellMenuRemoveKeep,
27 ShellMenuRename,
28 ShellMenuUpdateExt,
29 ShellMenuDiff,
30 ShellMenuPrevDiff,
31 ShellMenuDiffTwo,
32 ShellMenuDropCopyAdd,
33 ShellMenuDropMoveAdd,
34 ShellMenuDropMove,
35 ShellMenuDropMoveRename,
36 ShellMenuDropCopy,
37 ShellMenuDropCopyRename,
38 ShellMenuDropExport,
39 ShellMenuDropExportExtended,
40 ShellMenuLog,
41 ShellMenuConflictEditor,
42 ShellMenuHelp,
43 ShellMenuShowChanged,
44 ShellMenuIgnoreSub,
45 ShellMenuDeleteIgnoreSub,
46 ShellMenuIgnore,
47 ShellMenuDeleteIgnore,
48 ShellMenuIgnoreCaseSensitive,
49 ShellMenuDeleteIgnoreCaseSensitive,
50 ShellMenuRefLog,
51 ShellMenuRefBrowse,
52 ShellMenuBlame,
53 ShellMenuApplyPatch,
54 ShellMenuRevisionGraph,
55 ShellMenuUnIgnoreSub,
56 ShellMenuUnIgnoreCaseSensitive,
57 ShellMenuUnIgnore,
58 ShellMenuProperties,
59 ShellMenuClipPaste,
60 ShellMenuPull,
61 ShellMenuPush,
62 ShellMenuClone,
63 ShellMenuBranch,
64 ShellMenuTag,
65 ShellMenuFormatPatch,
66 ShellMenuImportPatch,
67 ShellMenuCherryPick,
68 ShellMenuFetch,
69 ShellMenuRebase,
70 ShellMenuStashSave,
71 ShellMenuStashApply,
72 ShellMenuStashList,
73 ShellMenuStashPop,
74 ShellMenuSubAdd,
75 ShellMenuSubSync,
76 ShellMenuSendMail,
77 ShellMenuGitSVNRebase,
78 ShellMenuGitSVNDCommit,
79 ShellMenuGitSVNDFetch,
80 ShellMenuGitSVNIgnore, //import svn ignore
81 ShellMenuSync,
82 ShellMenuBisectStart,
83 ShellMenuBisectGood,
84 ShellMenuBisectBad,
85 ShellMenuBisectReset,
86 ShellMenuLastEntry // used to mark the menu array end
89 // helper struct for context menu entries
90 struct MenuInfo
92 GitCommands command; ///< the command which gets executed for this menu entry
93 unsigned __int64 menuID; ///< the menu ID to recognize the entry. NULL if it shouldn't be added to the context menu automatically
94 UINT iconID; ///< the icon to show for the menu entry
95 UINT menuTextID; ///< the text of the menu entry
96 UINT menuDescID; ///< the description text for the menu entry
97 /// the following 8 params are for checking whether the menu entry should
98 /// be added automatically, based on states of the selected item(s).
99 /// The 'yes' states must be set, the 'no' states must not be set
100 /// the four pairs are OR'ed together, the 'yes'/'no' states are AND'ed together.
101 DWORD firstyes;
102 DWORD firstno;
103 DWORD secondyes;
104 DWORD secondno;
105 DWORD thirdyes;
106 DWORD thirdno;
107 DWORD fourthyes;
108 DWORD fourthno;