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