drop createpatch
[TortoiseGit.git] / src / TortoiseShell / MenuInfo.h
blob97f93579d9e84e7d2213e7337de042059f7126d3
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 ShellMenuImport,
20 ShellMenuExport,
21 ShellMenuAbout,
22 ShellMenuCreateRepos,
23 ShellMenuCopy,
24 ShellMenuMerge,
25 ShellMenuMergeAll,
26 ShellMenuSettings,
27 ShellMenuRemove,
28 ShellMenuRemoveKeep,
29 ShellMenuRename,
30 ShellMenuUpdateExt,
31 ShellMenuDiff,
32 ShellMenuPrevDiff,
33 ShellMenuUrlDiff,
34 ShellMenuDiffTwo,
35 ShellMenuDropCopyAdd,
36 ShellMenuDropMoveAdd,
37 ShellMenuDropMove,
38 ShellMenuDropMoveRename,
39 ShellMenuDropCopy,
40 ShellMenuDropCopyRename,
41 ShellMenuDropExport,
42 ShellMenuDropExportExtended,
43 ShellMenuLog,
44 ShellMenuConflictEditor,
45 ShellMenuRelocate,
46 ShellMenuHelp,
47 ShellMenuShowChanged,
48 ShellMenuIgnoreSub,
49 ShellMenuDeleteIgnoreSub,
50 ShellMenuIgnore,
51 ShellMenuDeleteIgnore,
52 ShellMenuIgnoreCaseSensitive,
53 ShellMenuDeleteIgnoreCaseSensitive,
54 ShellMenuRefLog,
55 ShellMenuRefBrowse,
56 ShellMenuBlame,
57 ShellMenuApplyPatch,
58 ShellMenuRevisionGraph,
59 ShellMenuUnIgnoreSub,
60 ShellMenuUnIgnoreCaseSensitive,
61 ShellMenuUnIgnore,
62 // ShellMenuLock,
63 // ShellMenuUnlock,
64 // ShellMenuUnlockForce,
65 ShellMenuProperties,
66 ShellMenuDelUnversioned,
67 ShellMenuClipPaste,
68 ShellMenuPull,
69 ShellMenuPush,
70 ShellMenuClone,
71 ShellMenuBranch,
72 ShellMenuTag,
73 ShellMenuFormatPatch,
74 ShellMenuImportPatch,
75 ShellMenuCherryPick,
76 ShellMenuFetch,
77 ShellMenuRebase,
78 ShellMenuStashSave,
79 ShellMenuStashApply,
80 ShellMenuStashList,
81 ShellMenuStashPop,
82 ShellMenuSubAdd,
83 ShellMenuSubSync,
84 ShellMenuSendMail,
85 ShellMenuGitSVNRebase,
86 ShellMenuGitSVNDCommit,
87 ShellMenuGitSVNIgnore, //import svn ignore
88 ShellMenuSync,
89 ShellMenuLastEntry // used to mark the menu array end
92 // helper struct for context menu entries
93 struct MenuInfo
95 GitCommands command; ///< the command which gets executed for this menu entry
96 unsigned __int64 menuID; ///< the menu ID to recognize the entry. NULL if it shouldn't be added to the context menu automatically
97 UINT iconID; ///< the icon to show for the menu entry
98 UINT menuTextID; ///< the text of the menu entry
99 UINT menuDescID; ///< the description text for the menu entry
100 /// the following 8 params are for checking whether the menu entry should
101 /// be added automatically, based on states of the selected item(s).
102 /// The 'yes' states must be set, the 'no' states must not be set
103 /// the four pairs are OR'ed together, the 'yes'/'no' states are AND'ed together.
104 DWORD firstyes;
105 DWORD firstno;
106 DWORD secondyes;
107 DWORD secondno;
108 DWORD thirdyes;
109 DWORD thirdno;
110 DWORD fourthyes;
111 DWORD fourthno;