Datei: NDOPackage/VSCommandTable.vsct

Last Commit (33e9857)
1 <?xml version="1.0" encoding="utf-8"?>
2 <CommandTable xmlns="http://schemas.microsoft.com/VisualStudio/2005-10-18/CommandTable" xmlns:xs="http://www.w3.org/2001/XMLSchema">
3
4 ····<!--··This is the file that defines the actual layout and type of the commands.
5 ········It is divided in different sections (e.g. command definition, command
6 ········placement, ...), with each defining a specific set of properties.
7 ········See the comment before each section for more details about how to
8 ········use it. -->
9
10 ····<!--··The VSCT compiler (the tool that translates this file into the binary
11 ········format that VisualStudio will consume) has the ability to run a preprocessor
12 ········on the vsct file; this preprocessor is (usually) the C++ preprocessor, so
13 ········it is possible to define includes and macros with the same syntax used
14 ········in C++ files. Using this ability of the compiler here, we include some files
15 ········defining some of the constants that we will use inside the file. -->
16
17 ····<!--This is the file that defines the IDs for all the commands exposed by VisualStudio. -->
18 ····<Extern href="stdidcmd.h"/>
19
20 ····<!--This header contains the command ids for the menus provided by the shell. -->
21 ····<Extern href="vsshlids.h"/>
22 ····<Include href="VSGlobals.vsct"/>
 
23
24
25
26 ····<!--The Commands section is where we the commands, menus and menu groups are defined.
27 ······This section uses a Guid to identify the package that provides the command defined inside it. -->
28 ····<Commands package="NDOPackage">
29 ········<!-- Inside this section we have different sub-sections: one for the menus, another··
30 ····for the menu groups, one for the buttons (the actual commands), one for the combos
31 ····and the last one for the bitmaps used. Each element is identified by a command id that··
32 ····is a unique pair of guid and numeric identifier; the guid part of the identifier is usually··
33 ····called "command set" and is used to group different command inside a logically related··
34 ····group; your package should define its own command set in order to avoid collisions··
35 ····with command ids defined by other packages. -->
36
37 ········<Menus>
38 ············<Menu guid="guidNDOPackageCmdSet" id="NDOToolbar" type="Toolbar">
39 ················<CommandFlag>DefaultDocked</CommandFlag>
40 ················<Strings>
41 ····················<ButtonText>.NET Data Objects 4</ButtonText>
42 ····················<CommandName>.NET Data Objects 4</CommandName>
43 ················</Strings>
44 ············</Menu>
45 ········</Menus>
46 ········<!-- In this section you can define new menu groups. A menu group is a container for
47 ········ other menus or buttons (commands); from a visual point of view you can see the
48 ········ group as the part of a menu contained between two lines. The parent of a group
49 ········ must be a menu. -->
50 ········<Groups>
51
52 ············<Group guid="guidNDOPackageCmdSet" id="NDOMenuGroup" priority="0x0000">
53 ················<Parent guid="guidNDOPackageCmdSet" id="NDOToolbar"/>
54 ············</Group>
55
56
57
58 ········</Groups>
59
60 ········<!--Buttons section. -->
61 ········<!--This section defines the elements the user can interact with, like a menu command or a button
62 ········or combo box in a toolbar. -->
63 ········<Buttons>
64 ············<!--To define a menu group you have to specify its ID, the parent menu and its display priority.
65 ··········The command is visible and enabled by default. If you need to change the visibility, status, etc, you can use
66 ··········the CommandFlag node.
67 ··········You can add more than one CommandFlag node e.g.:
68 ··············<CommandFlag>DefaultInvisible</CommandFlag>
69 ··············<CommandFlag>DynamicVisibility</CommandFlag>
70 ··········If you do not want an image next to your command, remove the Icon node /> -->
71
72 ············<Button guid="guidNDOPackageCmdSet" id="cmdidNDOConfiguration" priority="0x0100" type="Button">
73 ················<Parent guid="guidNDOPackageCmdSet" id="NDOMenuGroup" />
74 ················<Icon guid="guidImages" id="bmpConfiguration" />
75 ················<CommandFlag>DefaultDisabled</CommandFlag>
76 ················<Strings>
77 ····················<ButtonText>NDO Configuration</ButtonText>
78 ················</Strings>
79 ············</Button>
80
81 ············<Button guid="guidNDOPackageCmdSet" id="cmdidAddRelation" priority="0x0100" type="Button">
82 ················<Parent guid="guidNDOPackageCmdSet" id="NDOMenuGroup" />
83 ················<Icon guid="guidImages" id="bmpAddRelation" />
84 ················<CommandFlag>DefaultDisabled</CommandFlag>
85 ················<Strings>
86 ····················<ButtonText>Add Relation</ButtonText>
87 ················</Strings>
88 ············</Button>
89 ············
90 ············<Button guid="guidNDOPackageCmdSet" id="cmdidAddAccessor" priority="0x0100" type="Button">
91 ················<Parent guid="guidNDOPackageCmdSet" id="NDOMenuGroup" />
92 ················<Icon guid="guidImages" id="bmpAddAccessor" />
93 ················<CommandFlag>DefaultDisabled</CommandFlag>
94 ················<Strings>
95 ····················<ButtonText>Add Accessor Property</ButtonText>
96 ················</Strings>
97 ············</Button>
98 ················
99 ············<Button guid="guidNDOPackageCmdSet" id="cmdidAddClass" priority="0x0100" type="Button">
100 ················<Parent guid="guidNDOPackageCmdSet" id="NDOMenuGroup" />
101 ················<Icon guid="guidImages" id="bmpAddClass" />
102 ················<CommandFlag>DefaultDisabled</CommandFlag>
103 ················<Strings>
104 ····················<ButtonText>Add Persistent Class</ButtonText>
105 ················</Strings>
106 ············</Button>
107 ················
108 ············<Button guid="guidNDOPackageCmdSet" id="cmdidOpenMappingTool" priority="0x0100" type="Button">
109 ················<Parent guid="guidNDOPackageCmdSet" id="NDOMenuGroup" />
110 ················<Icon guid="guidImages" id="bmpOpenMappingTool" />
111 ················<CommandFlag>DefaultDisabled</CommandFlag>
112 ················<Strings>
113 ····················<ButtonText>Open Mapping Tool</ButtonText>
114 ················</Strings>
115 ············</Button>
116
117 ······<!--Button guid="guidNDOPackageCmdSet" id="cmdidOpenClassGenerator" priority="0x0100" type="Button">
118 ················<Parent guid="guidNDOPackageCmdSet" id="NDOMenuGroup" />
119 ················<Icon guid="guidImages" id="bmpOpenClassGenerator" />
120 ················<CommandFlag>DefaultDisabled</CommandFlag>
121 ················<Strings>
122 ····················<ButtonText>Open Class Generator</ButtonText>
123 ················</Strings>
124 ············</Button-->················
125
126 ········</Buttons>
127
128 ········<!--The bitmaps section is used to define the bitmaps that are used for the commands.-->
129 ········<Bitmaps>
130 ············<!--··The bitmap id is defined in a way that is a little bit different from the others:
131 ············the declaration starts with a guid for the bitmap strip, then there is the resource id of the
132 ············bitmap strip containing the bitmaps and then there are the numeric ids of the elements used
133 ············inside a button definition. An important aspect of this declaration is that the element id
134 ············must be the actual index (1-based) of the bitmap inside the bitmap strip. -->
135 ············<Bitmap guid="guidImages" href="Resources\Images.png" usedList="bmpConfiguration, bmpAddRelation, bmpAddAccessor, bmpAddClass, bmpOpenMappingTool, bmpOpenClassGenerator"/>
136
137 ········</Bitmaps>
138
139 ····</Commands>
140
141
142
143
144
145 ····<Symbols>
146 ········<!-- This is the package guid. -->
147 ········<GuidSymbol name="NDOPackage" value="{9a3bfde0-3b01-4a99-9ddc-1544345635fc}" />
148
149 ········<!-- This is the guid used to group the menu commands together -->
150 ········<GuidSymbol name="guidNDOPackageCmdSet" value="{7bf3372d-80b5-47ce-8104-704a904fcb3e}">
151
152 ············<IDSymbol name="NDOMenuGroup" value="0x1020" />
153 ············<IDSymbol name="cmdidNDOConfiguration" value="0x0100" />
154 ············<IDSymbol name="cmdidAddRelation" value="0x101" />
155 ············<IDSymbol name="cmdidAddAccessor" value="0x102" />
156 ············<IDSymbol name="cmdidAddClass" value="0x103" />
157 ············<IDSymbol name="cmdidOpenMappingTool" value="0x104" />
158 ············<IDSymbol name="cmdidOpenClassGenerator" value="0x105" />
159 ············<IDSymbol name="NDOToolbar" value="0x1000"/>
160 ········</GuidSymbol>
161
162
163
164 ········<GuidSymbol name="guidImages" value="{1c2bee68-81ce-4f37-bb4f-6460b14e8ed8}" >
165 ············<IDSymbol name="bmpConfiguration" value="1" />
166 ············<IDSymbol name="bmpAddRelation" value="2" />
167 ············<IDSymbol name="bmpAddAccessor" value="3" />
168 ············<IDSymbol name="bmpAddClass" value="4" />
169 ············<IDSymbol name="bmpOpenMappingTool" value="5" />
170 ············<IDSymbol name="bmpOpenClassGenerator" value="6" />
171 ········</GuidSymbol>
172 ····</Symbols>
173
174 </CommandTable>
175
New Commit (aa458ff)
1 <?xml version="1.0" encoding="utf-8"?>
2 <CommandTable xmlns="http://schemas.microsoft.com/VisualStudio/2005-10-18/CommandTable" xmlns:xs="http://www.w3.org/2001/XMLSchema">
3
4 ····<!--··This is the file that defines the actual layout and type of the commands.
5 ········It is divided in different sections (e.g. command definition, command
6 ········placement, ...), with each defining a specific set of properties.
7 ········See the comment before each section for more details about how to
8 ········use it. -->
9
10 ····<!--··The VSCT compiler (the tool that translates this file into the binary
11 ········format that VisualStudio will consume) has the ability to run a preprocessor
12 ········on the vsct file; this preprocessor is (usually) the C++ preprocessor, so
13 ········it is possible to define includes and macros with the same syntax used
14 ········in C++ files. Using this ability of the compiler here, we include some files
15 ········defining some of the constants that we will use inside the file. -->
16
17 ····<!--This is the file that defines the IDs for all the commands exposed by VisualStudio. -->
18 ····<Extern href="stdidcmd.h"/>
19
20 ····<!--This header contains the command ids for the menus provided by the shell. -->
21 ····<Extern href="vsshlids.h"/>
22 ····<Include href="VSGlobals.vsct"/>
23 ····<Include href="NDOPackage.vsct"/>
24
25
26
27 ····<!--The Commands section is where we the commands, menus and menu groups are defined.
28 ······This section uses a Guid to identify the package that provides the command defined inside it. -->
29 ····<Commands package="NDOPackage">
30 ········<!-- Inside this section we have different sub-sections: one for the menus, another··
31 ····for the menu groups, one for the buttons (the actual commands), one for the combos
32 ····and the last one for the bitmaps used. Each element is identified by a command id that··
33 ····is a unique pair of guid and numeric identifier; the guid part of the identifier is usually··
34 ····called "command set" and is used to group different command inside a logically related··
35 ····group; your package should define its own command set in order to avoid collisions··
36 ····with command ids defined by other packages. -->
37
38 ········<Menus>
39 ············<Menu guid="guidNDOPackageCmdSet" id="NDOToolbar" type="Toolbar">
40 ················<CommandFlag>DefaultDocked</CommandFlag>
41 ················<Strings>
42 ····················<ButtonText>.NET Data Objects 4</ButtonText>
43 ····················<CommandName>.NET Data Objects 4</CommandName>
44 ················</Strings>
45 ············</Menu>
46 ········</Menus>
47 ········<!-- In this section you can define new menu groups. A menu group is a container for
48 ········ other menus or buttons (commands); from a visual point of view you can see the
49 ········ group as the part of a menu contained between two lines. The parent of a group
50 ········ must be a menu. -->
51 ········<Groups>
52
53 ············<Group guid="guidNDOPackageCmdSet" id="NDOMenuGroup" priority="0x0000">
54 ················<Parent guid="guidNDOPackageCmdSet" id="NDOToolbar"/>
55 ············</Group>
56
57
58
59 ········</Groups>
60
61 ········<!--Buttons section. -->
62 ········<!--This section defines the elements the user can interact with, like a menu command or a button
63 ········or combo box in a toolbar. -->
64 ········<Buttons>
65 ············<!--To define a menu group you have to specify its ID, the parent menu and its display priority.
66 ··········The command is visible and enabled by default. If you need to change the visibility, status, etc, you can use
67 ··········the CommandFlag node.
68 ··········You can add more than one CommandFlag node e.g.:
69 ··············<CommandFlag>DefaultInvisible</CommandFlag>
70 ··············<CommandFlag>DynamicVisibility</CommandFlag>
71 ··········If you do not want an image next to your command, remove the Icon node /> -->
72
73 ············<Button guid="guidNDOPackageCmdSet" id="cmdidNDOConfiguration" priority="0x0100" type="Button">
74 ················<Parent guid="guidNDOPackageCmdSet" id="NDOMenuGroup" />
75 ················<Icon guid="guidImages" id="bmpConfiguration" />
76 ················<CommandFlag>DefaultDisabled</CommandFlag>
77 ················<Strings>
78 ····················<ButtonText>NDO Configuration</ButtonText>
79 ················</Strings>
80 ············</Button>
81
82 ············<Button guid="guidNDOPackageCmdSet" id="cmdidAddRelation" priority="0x0100" type="Button">
83 ················<Parent guid="guidNDOPackageCmdSet" id="NDOMenuGroup" />
84 ················<Icon guid="guidImages" id="bmpAddRelation" />
85 ················<CommandFlag>DefaultDisabled</CommandFlag>
86 ················<Strings>
87 ····················<ButtonText>Add Relation</ButtonText>
88 ················</Strings>
89 ············</Button>
90 ············
91 ············<Button guid="guidNDOPackageCmdSet" id="cmdidAddAccessor" priority="0x0100" type="Button">
92 ················<Parent guid="guidNDOPackageCmdSet" id="NDOMenuGroup" />
93 ················<Icon guid="guidImages" id="bmpAddAccessor" />
94 ················<CommandFlag>DefaultDisabled</CommandFlag>
95 ················<Strings>
96 ····················<ButtonText>Add Accessor Property</ButtonText>
97 ················</Strings>
98 ············</Button>
99 ················
100 ············<Button guid="guidNDOPackageCmdSet" id="cmdidAddClass" priority="0x0100" type="Button">
101 ················<Parent guid="guidNDOPackageCmdSet" id="NDOMenuGroup" />
102 ················<Icon guid="guidImages" id="bmpAddClass" />
103 ················<CommandFlag>DefaultDisabled</CommandFlag>
104 ················<Strings>
105 ····················<ButtonText>Add Persistent Class</ButtonText>
106 ················</Strings>
107 ············</Button>
108 ················
109 ············<Button guid="guidNDOPackageCmdSet" id="cmdidOpenMappingTool" priority="0x0100" type="Button">
110 ················<Parent guid="guidNDOPackageCmdSet" id="NDOMenuGroup" />
111 ················<Icon guid="guidImages" id="bmpOpenMappingTool" />
112 ················<CommandFlag>DefaultDisabled</CommandFlag>
113 ················<Strings>
114 ····················<ButtonText>Open Mapping Tool</ButtonText>
115 ················</Strings>
116 ············</Button>
117
118 ······<!--Button guid="guidNDOPackageCmdSet" id="cmdidOpenClassGenerator" priority="0x0100" type="Button">
119 ················<Parent guid="guidNDOPackageCmdSet" id="NDOMenuGroup" />
120 ················<Icon guid="guidImages" id="bmpOpenClassGenerator" />
121 ················<CommandFlag>DefaultDisabled</CommandFlag>
122 ················<Strings>
123 ····················<ButtonText>Open Class Generator</ButtonText>
124 ················</Strings>
125 ············</Button-->················
126
127 ········</Buttons>
128
129 ········<!--The bitmaps section is used to define the bitmaps that are used for the commands.-->
130 ········<Bitmaps>
131 ············<!--··The bitmap id is defined in a way that is a little bit different from the others:
132 ············the declaration starts with a guid for the bitmap strip, then there is the resource id of the
133 ············bitmap strip containing the bitmaps and then there are the numeric ids of the elements used
134 ············inside a button definition. An important aspect of this declaration is that the element id
135 ············must be the actual index (1-based) of the bitmap inside the bitmap strip. -->
136 ············<Bitmap guid="guidImages" href="Resources\Images.png" usedList="bmpConfiguration, bmpAddRelation, bmpAddAccessor, bmpAddClass, bmpOpenMappingTool, bmpOpenClassGenerator"/>
137
138 ········</Bitmaps>
139
140 ····</Commands>
141
142
143
144
145
146 ····<Symbols>
147 ········<!-- This is the package guid. -->
148 ········<GuidSymbol name="NDOPackage" value="{9a3bfde0-3b01-4a99-9ddc-1544345635fc}" />
149
150 ········<!-- This is the guid used to group the menu commands together -->
151 ········<GuidSymbol name="guidNDOPackageCmdSet" value="{7bf3372d-80b5-47ce-8104-704a904fcb3e}">
152
153 ············<IDSymbol name="NDOMenuGroup" value="0x1020" />
154 ············<IDSymbol name="cmdidNDOConfiguration" value="0x0100" />
155 ············<IDSymbol name="cmdidAddRelation" value="0x101" />
156 ············<IDSymbol name="cmdidAddAccessor" value="0x102" />
157 ············<IDSymbol name="cmdidAddClass" value="0x103" />
158 ············<IDSymbol name="cmdidOpenMappingTool" value="0x104" />
159 ············<IDSymbol name="cmdidOpenClassGenerator" value="0x105" />
160 ············<IDSymbol name="NDOToolbar" value="0x1000"/>
161 ········</GuidSymbol>
162
163
164
165 ········<GuidSymbol name="guidImages" value="{1c2bee68-81ce-4f37-bb4f-6460b14e8ed8}" >
166 ············<IDSymbol name="bmpConfiguration" value="1" />
167 ············<IDSymbol name="bmpAddRelation" value="2" />
168 ············<IDSymbol name="bmpAddAccessor" value="3" />
169 ············<IDSymbol name="bmpAddClass" value="4" />
170 ············<IDSymbol name="bmpOpenMappingTool" value="5" />
171 ············<IDSymbol name="bmpOpenClassGenerator" value="6" />
172 ········</GuidSymbol>
173 ····</Symbols>
174
175 </CommandTable>
176