-
Notifications
You must be signed in to change notification settings - Fork 13
/
VSDebugPro.vsct
240 lines (206 loc) · 11.2 KB
/
VSDebugPro.vsct
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
<?xml version="1.0" encoding="utf-8"?>
<CommandTable xmlns="http://schemas.microsoft.com/VisualStudio/2005-10-18/CommandTable" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!-- This is the file that defines the actual layout and type of the commands.
It is divided in different sections (e.g. command definition, command
placement, ...), with each defining a specific set of properties.
See the comment before each section for more details about how to
use it. -->
<!-- The VSCT compiler (the tool that translates this file into the binary
format that VisualStudio will consume) has the ability to run a preprocessor
on the vsct file; this preprocessor is (usually) the C++ preprocessor, so
it is possible to define includes and macros with the same syntax used
in C++ files. Using this ability of the compiler here, we include some files
defining some of the constants that we will use inside the file. -->
<!--This is the file that defines the IDs for all the commands exposed by VisualStudio. -->
<Extern href="stdidcmd.h"/>
<!--This header contains the command ids for the menus provided by the shell. -->
<Extern href="vsshlids.h"/>
<!--The Commands section is where we the commands, menus and menu groups are defined.
This section uses a Guid to identify the package that provides the command defined inside it. -->
<Commands package="GuidVSDebugProPkg">
<!-- Inside this section we have different sub-sections: one for the menus, another
for the menu groups, one for the buttons (the actual commands), one for the combos
and the last one for the bitmaps used. Each element is identified by a command id that
is a unique pair of guid and numeric identifier; the guid part of the identifier is usually
called "command set" and is used to group different command inside a logically related
group; your package should define its own command set in order to avoid collisions
with command ids defined by other packages. -->
<!-- Menu section definition -->
<Menus>
<Menu guid="GuidVSDebugProMenuBaseGroup" id="GroupIDVSDebugProMenuBaseGroup" priority="0x0800" type="Menu">
<Parent guid="guidSHLMainMenu" id="IDG_VS_MM_TOOLSADDINS" />
<Strings>
<ButtonText>&VSDebugPro</ButtonText>
<CommandName>&VSDebugPro</CommandName>
</Strings>
</Menu>
<Menu guid="GuidVSDebugProConsoleMenu" id="VSDProConsoleCtx" priority="0x0000" type="Context">
<Parent guid="GuidVSDebugProConsoleMenu" id="0" />
<Strings>
<ButtonText>&VSD Console</ButtonText>
<CommandName>&VSD Console</CommandName>
</Strings>
</Menu>
<Menu guid="GuidVSDebugProConsoleMenu" id="VSDProConsoleToolbar" type="ToolWindowToolbar">
<Strings>
<ButtonText>&Console Toolbar</ButtonText>
<CommandName>&Console Toolbar</CommandName>
</Strings>
</Menu>
</Menus>
<Groups>
<Group guid="GuidVSDebugProCmds" id="GroupIDVSDebugProCmds" priority="0x0600">
<Parent guid="GuidVSDebugProMenuBaseGroup" id="GroupIDVSDebugProMenuBaseGroup"/>
</Group>
<!-- Define a group inside our context menu for the standard edit commands -->
<Group guid="GuidVSDebugProConsoleMenu" id="VSDProConsoleEditGrp" priority="0x100">
<Parent guid="GuidVSDebugProConsoleMenu" id="VSDProConsoleCtx"/>
</Group>
<!-- Define a group inside the our context menu. -->
<Group guid="GuidVSDebugProConsoleMenu" id="VSDProConsoleClearGrp" priority="0x200">
<Parent guid="GuidVSDebugProConsoleMenu" id="VSDProConsoleCtx"/>
</Group>
<Group guid="GuidVSDebugProConsoleMenu" id="VSDProConsoleToolbarGrp" priority="0x0000">
<Parent guid="GuidVSDebugProConsoleMenu" id="VSDProConsoleToolbar"/>
</Group>
</Groups>
<!--Buttons section. -->
<Buttons>
<Button guid="GuidVSDebugProConsole" id="CmdIDConsole" priority="0x0100" type="Button">
<Parent guid="GuidVSDebugProCmds" id="GroupIDVSDebugProCmds" />
<Icon guid="guidImages" id="bmpCon" />
<Strings>
<ButtonText>Console</ButtonText>
</Strings>
</Button>
<Button guid="GuidVSDebugProSettings" id="CmdIDSettings" priority="0x0100" type="Button">
<Parent guid="GuidVSDebugProCmds" id="GroupIDVSDebugProCmds" />
<Icon guid="guidImages" id="bmpSet" />
<Strings>
<ButtonText>Settings</ButtonText>
</Strings>
</Button>
<Button guid="GuidVSDebugProAbout" id="CmdIDAbout" priority="0x0100" type="Button">
<Parent guid="GuidVSDebugProCmds" id="GroupIDVSDebugProCmds" />
<Icon guid="guidImages" id="bmpInfo" />
<Strings>
<ButtonText>About</ButtonText>
</Strings>
</Button>
<Button guid="GuidVSDebugProExploreWD" id="CmdIDExploreWD" priority="0x0102" type="Button">
<Parent guid="GuidVSDebugProConsoleMenu" id="VSDProConsoleToolbarGrp" />
<Icon guid="guidImages" id="bmpFolder" />
<Strings>
<ButtonText>Open Working Directory</ButtonText>
</Strings>
</Button>
<Button guid="GuidVSDebugProExportHistory" id="CmdIDExportHistory" priority="0x0103" type="Button">
<Parent guid="GuidVSDebugProConsoleMenu" id="VSDProConsoleToolbarGrp" />
<Icon guid="guidImages" id="bmpExport" />
<Strings>
<ButtonText>Export commands buffer</ButtonText>
</Strings>
</Button>
<Button guid="GuidVSDebugProRepeatCmd" id="CmdIDRepeatCmd" priority="0x0104" type="Button">
<Parent guid="GuidVSDebugProConsoleMenu" id="VSDProConsoleToolbarGrp" />
<Icon guid="guidImages" id="bmpRepeat" />
<Strings>
<ButtonText>Repeat last command</ButtonText>
</Strings>
</Button>
</Buttons>
<!--The bitmaps section is used to define the bitmaps that are used for the commands.-->
<Bitmaps>
<!-- The bitmap id is defined in a way that is a little bit different from the others:
the declaration starts with a guid for the bitmap strip, then there is the resource id of the
bitmap strip containing the bitmaps and then there are the numeric ids of the elements used
inside a button definition. An important aspect of this declaration is that the element id
must be the actual index (1-based) of the bitmap inside the bitmap strip. -->
<Bitmap guid="guidImages" href="Resources\toolbar.png" usedList="bmpInfo, bmpHelp, bmpSet, bmpCon, bmpFolder, bmpLog, bmpRepeat, bmpExport"/>
</Bitmaps>
</Commands>
<!--Within this section you can specify the set of commands defined somewhere else that your
packages uses; for instance if your package uses the standard ‘Copy’ command, you don’t
need to define it, because it is defined by the shell, but you have to use this section
of the CTC file to notify the shell that your package uses it using this section. -->
<UsedCommands>
<UsedCommand guid="guidVSStd97" id="cmdidCut"/>
<UsedCommand guid="guidVSStd97" id="cmdidCopy"/>
<UsedCommand guid="guidVSStd97" id="cmdidPaste"/>
<UsedCommand guid="guidVSStd97" id="cmdidClearPane"/>
</UsedCommands>
<!--Inside this section, we have the ability to place menu groups inside some other menu or
menu / commands inside other groups.
For instance, it is possible to place one of VisualStudio's menus or commands inside one of our
groups or one of our groups inside a menu defined somewhere else. -->
<CommandPlacements>
<CommandPlacement guid="guidVSStd97" id="cmdidCut" priority="0x0100">
<Parent guid="GuidVSDebugProConsoleMenu" id="VSDProConsoleEditGrp"/>
</CommandPlacement>
<CommandPlacement guid="guidVSStd97" id="cmdidCopy" priority="0x0300">
<Parent guid="GuidVSDebugProConsoleMenu" id="VSDProConsoleEditGrp"/>
</CommandPlacement>
<CommandPlacement guid="guidVSStd97" id="cmdidPaste" priority="0x0500">
<Parent guid="GuidVSDebugProConsoleMenu" id="VSDProConsoleEditGrp"/>
</CommandPlacement>
<CommandPlacement guid="guidVSStd97" id="cmdidClearPane" priority="0x100">
<Parent guid="GuidVSDebugProConsoleMenu" id="VSDProConsoleClearGrp"/>
</CommandPlacement>
<CommandPlacement guid="guidVSStd97" id="cmdidClearPane" priority="0x100">
<Parent guid="GuidVSDebugProConsoleMenu" id="VSDProConsoleToolbarGrp"/>
</CommandPlacement>
<CommandPlacement guid="GuidVSDebugProSettings" id="CmdIDSettings" priority="0x101">
<Parent guid="GuidVSDebugProConsoleMenu" id="VSDProConsoleToolbarGrp"/>
</CommandPlacement>
</CommandPlacements>
<Symbols>
<!-- This is the package guid. -->
<GuidSymbol name="GuidVSDebugProPkg" value="{89964642-1cad-4344-9ed3-e3997f19687f}" />
<!-- Menu guids -->
<GuidSymbol name="GuidVSDebugProMenuBaseGroup" value="{75CB598B-9D23-4FBC-BD3E-4F2B5C70AAEF}">
<IDSymbol name="GroupIDVSDebugProMenuBaseGroup" value="0x1050" />
</GuidSymbol>
<GuidSymbol name="GuidVSDebugProCmds" value="{5E308F9C-8C6C-4EF5-BEAD-422005091961}">
<IDSymbol name="GroupIDVSDebugProCmds" value="0x1051" />
</GuidSymbol>
<GuidSymbol name="GuidVSDebugProConsoleMenu" value="{3408ABC4-299F-489A-8203-4165EC9557D4}">
<IDSymbol name="VSDProConsoleCtx" value="0x2200" />
<IDSymbol name="VSDProConsoleToolbar" value="0x2220" />
<IDSymbol name="VSDProConsoleEditGrp" value="0x2230" />
<IDSymbol name="VSDProConsoleClearGrp" value="0x2240" />
<IDSymbol name="VSDProConsoleToolbarGrp" value="0x2250" />
</GuidSymbol>
<!-- Commands -->
<GuidSymbol name="GuidVSDebugProAbout" value="{2CB356A8-2154-42AC-B953-4F7E3A5F53F4}">
<IDSymbol name="CmdIDAbout" value="0x1100" />
</GuidSymbol>
<GuidSymbol name="GuidVSDebugProConsole" value="{1B349D26-5B87-48DD-A3DB-0CFBA5C4F8E2}">
<IDSymbol name="CmdIDConsole" value="0x1101" />
</GuidSymbol>
<GuidSymbol name="GuidVSDebugProHelp" value="{5B184540-B184-4540-A017-B1960519183E}">
<IDSymbol name="CmdIDHelp" value="0x1102" />
</GuidSymbol>
<GuidSymbol name="GuidVSDebugProSettings" value="{317DB7DB-D080-42B2-A298-404F42FFD60E}">
<IDSymbol name="CmdIDSettings" value="0x1103" />
</GuidSymbol>
<GuidSymbol name="GuidVSDebugProExploreWD" value="{D71DB7A7-6183-4D16-9018-747123D2DD39}">
<IDSymbol name="CmdIDExploreWD" value="0x1105" />
</GuidSymbol>
<GuidSymbol name="GuidVSDebugProRepeatCmd" value="{6DE4CA7A-EAD0-4819-B9D8-818FDC6BA7FD}">
<IDSymbol name="CmdIDRepeatCmd" value="0x1106" />
</GuidSymbol>
<GuidSymbol name="GuidVSDebugProExportHistory" value="{AB50D089-A426-4CA6-8958-E2C56CC4ABBC}">
<IDSymbol name="CmdIDExportHistory" value="0x1107" />
</GuidSymbol>
<GuidSymbol name="guidImages" value="{3b9502c5-dedc-4e85-b9b3-40cc6794ed11}" >
<IDSymbol name="bmpInfo" value="1" />
<IDSymbol name="bmpHelp" value="2" />
<IDSymbol name="bmpSet" value="3" />
<IDSymbol name="bmpCon" value="4" />
<IDSymbol name="bmpFolder" value="5" />
<IDSymbol name="bmpLog" value="6" />
<IDSymbol name="bmpRepeat" value="7" />
<IDSymbol name="bmpExport" value="8" />
</GuidSymbol>
</Symbols>
</CommandTable>