added some development tools
[windows-sources.git] / developer / VSSDK / Samples / Code_Sweep / C# / VsPackage / VSPackage.vsct
blobf4d61b30d68d56d438dbdd4ab2c5b55b5f8aa26b
1 <?xml version="1.0" encoding="utf-8"?>
3 <!--
4  
5 Copyright (c) Microsoft Corporation. All rights reserved.
6 THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
7 ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
8 IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
9 PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
11 -->
13 <CommandTable xmlns="http://schemas.microsoft.com/VisualStudio/2005-10-18/CommandTable" xmlns:xs="http://www.w3.org/2001/XMLSchema">
15   <!--  This is the file that defines the actual layout and type of the commands.
16         It is divided in different sections (e.g. command definition, command
17         placement, ...), with each defining a specific set of properties.
18         See the comment before each section for more details about how to
19         use it. -->
21   <!--  The VSCT compiler (the tool that translates this file into the binary 
22         format that VisualStudio will consume) has the ability to run a preprocessor 
23         on the vsct file; this preprocessor is (usually) the C++ preprocessor, so 
24         it is possible to define includes and macros with the same syntax used 
25         in C++ files. Using this ability of the compiler here, we include some files 
26         defining some of the constants that we will use inside the file. -->
28   <!--This is the file that defines the IDs for all the commands exposed by VisualStudio. -->
29   <Extern href="stdidcmd.h"/>
31   <!--This header contains the command ids for the menus provided by the shell. -->
32   <Extern href="vsshlids.h"/>
37   <!--The Commands section is where we the commands, menus and menu groups are defined.
38       This section uses a Guid to identify the package that provides the command defined inside it. -->
39   <Commands package="guidVSPackagePkg">
40     <!-- Inside this section we have different sub-sections: one for the menus, another  
41     for the menu groups, one for the buttons (the actual commands), one for the combos 
42     and the last one for the bitmaps used. Each element is identified by a command id that  
43     is a unique pair of guid and numeric identifier; the guid part of the identifier is usually  
44     called "command set" and is used to group different command inside a logically related  
45     group; your package should define its own command set in order to avoid collisions  
46     with command ids defined by other packages. -->
48     <Menus>
49       <Menu guid="guidVSPackageCmdSet" id="IDM_CODESWEEP_TASKLIST" priority="0x0000" type="ToolWindowToolbar">
50         <Strings>
51           <ButtonText>CodeSweep Task List</ButtonText>
52         </Strings>
53       </Menu>
54     </Menus>
56     <!-- In this section you can define new menu groups. A menu group is a container for 
57          other menus or buttons (commands); from a visual point of view you can see the 
58          group as the part of a menu contained between two lines. The parent of a group 
59          must be a menu. -->
60     <Groups>
61       <Group guid="guidVSPackageCmdSet" id="IDG_CODESWEEP_CONFIG" priority="0x0600">
62         <Parent guid="guidSHLMainMenu" id="IDM_VS_MENU_PROJECT"/>
63       </Group>
64       <Group guid="guidVSPackageCmdSet" id="IDG_CODESWEEP_CONFIG" priority="0x0500">
65         <Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_PROJNODE"/>
66       </Group>
67       <Group guid="guidVSPackageCmdSet" id="IDG_CODESWEEP_CONFIG" priority="0x0300">
68         <Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_XPROJ_MULTIPROJ"/>
69       </Group>
70       <Group guid="guidSHLMainMenu" id="IDG_VS_TASKLIST_PROVIDERLIST" priority="0x0100">
71         <Parent guid="guidVSPackageCmdSet" id="IDM_CODESWEEP_TASKLIST"/>
72       </Group>
73       <Group guid="guidVSPackageCmdSet" id="IDG_CODESWEEP_TASKLIST" priority="0x0200">
74         <Parent guid="guidVSPackageCmdSet" id="IDM_CODESWEEP_TASKLIST"/>
75       </Group>
76     </Groups>
77     
78     <!--Buttons section. -->
79     <!--This section defines the elements the user can interact with, like a menu command or a button 
80         or combo box in a toolbar. -->
81     <Buttons>
82       <!--To define a menu group you have to specify its ID, the parent menu and its display priority. 
83           The command is visible and enabled by default. If you need to change the visibility, status, etc, you can use
84           the CommandFlag node.
85           You can add more than one CommandFlag node e.g.:
86               <CommandFlag>DefaultInvisible</CommandFlag>
87               <CommandFlag>DynamicVisibility</CommandFlag>
88           If you do not want an image next to your command, remove the Icon node /> -->
90       <Button guid="guidVSPackageCmdSet" id="cmdidConfig" priority="0x0100" type="Button">
91         <Parent guid="guidVSPackageCmdSet" id="IDG_CODESWEEP_CONFIG"/>
92         <Icon guid="guidVSPackageCmdSet" id="bmpCodeSweep"/>
93         <CommandFlag>DynamicVisibility</CommandFlag>
94         <CommandFlag>DefaultInvisible</CommandFlag>
95         <Strings>
96           <ButtonText>C&amp;odeSweep...</ButtonText>
97         </Strings>
98       </Button>
99       <Button guid="guidVSPackageCmdSet" id="cmdidStopScan" priority="0x0000" type="Button">
100         <Icon guid="guidVSPackageCmdSet" id="bmpStop"/>
101         <Strings>
102           <ButtonText>&amp;Stop Scan</ButtonText>
103           <CanonicalName>Stop Scan</CanonicalName>
104           <LocCanonicalName>Stop Scan</LocCanonicalName>
105         </Strings>
106       </Button>
107       <Button guid="guidVSPackageCmdSet" id="cmdidRepeatLastScan" priority="0x0000" type="Button">
108         <Icon guid="guidVSPackageCmdSet" id="bmpRepeat"/>
109         <Strings>
110           <ButtonText>&amp;Repeat Last Scan</ButtonText>
111           <CanonicalName>Repeat Last Scan</CanonicalName>
112           <LocCanonicalName>Repeat Last Scan</LocCanonicalName>
113         </Strings>
114       </Button>
115       <Button guid="guidVSPackageCmdSet" id="cmdidIgnore" priority="0x0000" type="Button">
116         <Icon guid="guidVSPackageCmdSet" id="bmpIgnore"/>
117         <Strings>
118           <ButtonText>&amp;Ignore</ButtonText>
119           <CanonicalName>Ignore</CanonicalName>
120           <LocCanonicalName>Ignore</LocCanonicalName>
121         </Strings>
122       </Button>
123       <Button guid="guidVSPackageCmdSet" id="cmdidDoNotIgnore" priority="0x0000" type="Button">
124         <Strings>
125           <ButtonText>&amp;Do Not Ignore</ButtonText>
126           <CanonicalName>Do Not Ignore</CanonicalName>
127           <LocCanonicalName>Do Not Ignore</LocCanonicalName>
128         </Strings>
129       </Button>
130       <Button guid="guidVSPackageCmdSet" id="cmdidShowIgnoredInstances" priority="0x0000" type="Button">
131         <Icon guid="guidVSPackageCmdSet" id="bmpShowIgnored"/>
132         <CommandFlag>CommandWellOnly</CommandFlag>
133         <Strings>
134           <ButtonText>&amp;Show Ignored Instances</ButtonText>
135           <CanonicalName>Show Ignored Instances</CanonicalName>
136           <LocCanonicalName>Show Ignored Instances</LocCanonicalName>
137         </Strings>
138       </Button>
139     </Buttons>
140    
141     <!--The bitmaps section is used to define the bitmaps that are used for the commands.-->
142     <Bitmaps>
143       <!--  The bitmap id is defined in a way that is a little bit different from the others: 
144             the declaration starts with a guid for the bitmap strip, then there is the resource id of the 
145             bitmap strip containing the bitmaps and then there are the numeric ids of the elements used 
146             inside a button definition. An important aspect of this declaration is that the element id 
147             must be the actual index (1-based) of the bitmap inside the bitmap strip. -->
148       <Bitmap guid="guidVSPackageCmdSet" href="Images_32bit.bmp" usedList="1,2,3,4,5"/>
149     </Bitmaps>
151   </Commands>
153   <CommandPlacements>
154     <CommandPlacement guid="guidVSPackageCmdSet" id="cmdidStopScan" priority="0x0100">
155       <Parent guid="guidVSPackageCmdSet" id="IDG_CODESWEEP_TASKLIST"/>
156     </CommandPlacement>
157     <CommandPlacement guid="guidVSPackageCmdSet" id="cmdidRepeatLastScan" priority="0x0200">
158       <Parent guid="guidVSPackageCmdSet" id="IDG_CODESWEEP_TASKLIST"/>
159     </CommandPlacement>
160     <CommandPlacement guid="guidVSPackageCmdSet" id="cmdidIgnore" priority="0x0300">
161       <Parent guid="guidVSPackageCmdSet" id="IDG_CODESWEEP_TASKLIST"/>
162     </CommandPlacement>
163     <CommandPlacement guid="guidVSPackageCmdSet" id="cmdidShowIgnoredInstances" priority="0x0400">
164       <Parent guid="guidVSPackageCmdSet" id="IDG_CODESWEEP_TASKLIST"/>
165     </CommandPlacement>
166     <CommandPlacement guid="guidVSPackageCmdSet" id="cmdidIgnore" priority="0x0100">
167       <Parent guid="guidSHLMainMenu" id="IDG_VS_TASKLIST_CLIENT"/>
168     </CommandPlacement>
169     <CommandPlacement guid="guidVSPackageCmdSet" id="cmdidDoNotIgnore" priority="0x0200">
170       <Parent guid="guidSHLMainMenu" id="IDG_VS_TASKLIST_CLIENT"/>
171     </CommandPlacement>
172   </CommandPlacements>
176   <Symbols>
177     <!-- This is the package guid. -->
178     <GuidSymbol name="guidVSPackagePkg" value="{2b621c1e-60a3-48c5-a07d-0ad6d3dd3417}" />
179     
180     <!-- This is the guid used to group the menu commands together -->
181     <GuidSymbol name="guidVSPackageCmdSet" value="{d0882566-3d01-4578-b4f2-0aff36119700}">
183       <IDSymbol name="IDM_CODESWEEP_TASKLIST" value="0x2020"/>
184       <IDSymbol name="IDG_CODESWEEP_CONFIG" value="0x1020" />
185       <IDSymbol name="IDG_CODESWEEP_TASKLIST" value="0x2021" />
187       <IDSymbol name="cmdidConfig" value="0x100" />
188       <IDSymbol name="cmdidStopScan" value="0x101" />
189       <IDSymbol name="cmdidRepeatLastScan" value="0x102" />
190       <IDSymbol name="cmdidIgnore" value="0x103" />
191       <IDSymbol name="cmdidDoNotIgnore" value="0x104" />
192       <IDSymbol name="cmdidShowIgnoredInstances" value="0x105" />
194       <IDSymbol name="bmpCodeSweep" value="1" />
195       <IDSymbol name="bmpStop" value="2" />
196       <IDSymbol name="bmpRepeat" value="3" />
197       <IDSymbol name="bmpIgnore" value="4" />
198       <IDSymbol name="bmpShowIgnored" value="5" />
199     </GuidSymbol>
200   </Symbols>
202 </CommandTable>