github.com/ijc/docker-app@v0.6.1-0.20181012090447-c7ca8bc483fb/integrations/visualstudio/dockerappvsix/DockerAppPackage.vsct (about) 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 23 <!--The Commands section is where commands, menus, and menu groups are defined. 24 This section uses a Guid to identify the package that provides the command defined inside it. --> 25 <Commands package="guidDockerAppPackage"> 26 <!-- Inside this section we have different sub-sections: one for the menus, another 27 for the menu groups, one for the buttons (the actual commands), one for the combos 28 and the last one for the bitmaps used. Each element is identified by a command id that 29 is a unique pair of guid and numeric identifier; the guid part of the identifier is usually 30 called "command set" and is used to group different command inside a logically related 31 group; your package should define its own command set in order to avoid collisions 32 with command ids defined by other packages. --> 33 34 <!-- In this section you can define new menu groups. A menu group is a container for 35 other menus or buttons (commands); from a visual point of view you can see the 36 group as the part of a menu contained between two lines. The parent of a group 37 must be a menu. --> 38 <Groups> 39 <Group guid="guidDockerAppPackageCmdSet" id="DockerAppMenuGroup" priority="0x0600"> 40 <Parent guid="guidSHLMainMenu" id="IDM_VS_MENU_TOOLS" /> 41 </Group> 42 </Groups> 43 44 <!--Buttons section. --> 45 <!--This section defines the elements the user can interact with, like a menu command or a button 46 or combo box in a toolbar. --> 47 <Buttons> 48 <!--To define a menu group you have to specify its ID, the parent menu and its display priority. 49 The command is visible and enabled by default. If you need to change the visibility, status, etc, you can use 50 the CommandFlag node. 51 You can add more than one CommandFlag node e.g.: 52 <CommandFlag>DefaultInvisible</CommandFlag> 53 <CommandFlag>DynamicVisibility</CommandFlag> 54 If you do not want an image next to your command, remove the Icon node /> --> 55 56 <Button guid="guidDockerAppPackageCmdSet" id="cmdidCommandNew" priority="0x0100" type="Button"> 57 <CommandFlag>DefaultInvisible</CommandFlag> 58 <CommandFlag>DynamicVisibility</CommandFlag> 59 <Parent guid="guidDockerAppPackageCmdSet" id="DockerAppMenuGroup" /> 60 <Icon guid="guidImages" id="whale1" /> 61 <Strings> 62 <ButtonText>New Application...</ButtonText> 63 </Strings> 64 </Button> 65 <Button guid="guidDockerAppPackageCmdSet" id="cmdidCommandRender" priority="0x0101" type="Button"> 66 <CommandFlag>DefaultInvisible</CommandFlag> 67 <CommandFlag>DynamicVisibility</CommandFlag> 68 <Parent guid="guidDockerAppPackageCmdSet" id="DockerAppMenuGroup" /> 69 <Icon guid="guidImages" id="whale1" /> 70 <Strings> 71 <ButtonText>Render Application</ButtonText> 72 </Strings> 73 </Button> 74 <Button guid="guidDockerAppPackageCmdSet" id="cmdidCommandSelectApp" priority="0x0102" type="Button"> 75 <CommandFlag>DefaultInvisible</CommandFlag> 76 <CommandFlag>DynamicVisibility</CommandFlag> 77 <Parent guid="guidDockerAppPackageCmdSet" id="DockerAppMenuGroup" /> 78 <Icon guid="guidImages" id="whale1" /> 79 <Strings> 80 <ButtonText>Select Application...</ButtonText> 81 </Strings> 82 </Button> 83 <Button guid="guidDockerAppPackageCmdSet" id="cmdidCommandSettings" priority="0x0103" type="Button"> 84 <CommandFlag>DefaultInvisible</CommandFlag> 85 <CommandFlag>DynamicVisibility</CommandFlag> 86 <Parent guid="guidDockerAppPackageCmdSet" id="DockerAppMenuGroup" /> 87 <Icon guid="guidImages" id="whale1" /> 88 <Strings> 89 <ButtonText>Settings...</ButtonText> 90 </Strings> 91 </Button> 92 <Button guid="guidDockerAppPackageCmdSet" id="cmdidCommandDeploy" priority="0x0103" type="Button"> 93 <CommandFlag>DefaultInvisible</CommandFlag> 94 <CommandFlag>DynamicVisibility</CommandFlag> 95 <Parent guid="guidDockerAppPackageCmdSet" id="DockerAppMenuGroup" /> 96 <Icon guid="guidImages" id="whale1" /> 97 <Strings> 98 <ButtonText>Deploy application</ButtonText> 99 </Strings> 100 </Button> 101 </Buttons> 102 103 104 <!--The bitmaps section is used to define the bitmaps that are used for the commands.--> 105 <Bitmaps> 106 <!-- The bitmap id is defined in a way that is a little bit different from the others: 107 the declaration starts with a guid for the bitmap strip, then there is the resource id of the 108 bitmap strip containing the bitmaps and then there are the numeric ids of the elements used 109 inside a button definition. An important aspect of this declaration is that the element id 110 must be the actual index (1-based) of the bitmap inside the bitmap strip. --> 111 <Bitmap guid="guidImages" href="Resources\docker.ico" usedList="whale1" /> 112 <Bitmap guid="guidImages1" href="Resources\CommandSelectApp.png" usedList="bmpPic1, bmpPic2, bmpPicSearch, bmpPicX, bmpPicArrows, bmpPicStrikethrough" /> 113 <Bitmap guid="guidImages2" href="Resources\CommandSettings.png" usedList="bmpPic1, bmpPic2, bmpPicSearch, bmpPicX, bmpPicArrows, bmpPicStrikethrough" /> 114 <Bitmap guid="guidImages3" href="Resources\CommandDeploy.png" usedList="bmpPic1, bmpPic2, bmpPicSearch, bmpPicX, bmpPicArrows, bmpPicStrikethrough" /> 115 <Bitmap guid="guidImages4" href="Resources\CommandNew.png" usedList="bmpPic1, bmpPic2, bmpPicSearch, bmpPicX, bmpPicArrows, bmpPicStrikethrough" /> 116 </Bitmaps> 117 </Commands> 118 <VisibilityConstraints> 119 <VisibilityItem guid="guidDockerAppPackageCmdSet" id="cmdidCommandNew" context="UICONTEXT_SolutionExists" /> 120 <VisibilityItem guid="guidDockerAppPackageCmdSet" id="cmdidCommandRender" context="UICONTEXT_SolutionExists" /> 121 <VisibilityItem guid="guidDockerAppPackageCmdSet" id="cmdidCommandSelectApp" context="UICONTEXT_SolutionExists" /> 122 <VisibilityItem guid="guidDockerAppPackageCmdSet" id="cmdidCommandSettings" context="UICONTEXT_SolutionExists" /> 123 <VisibilityItem guid="guidDockerAppPackageCmdSet" id="cmdidCommandDeploy" context="UICONTEXT_SolutionExists" /> 124 </VisibilityConstraints> 125 <Symbols> 126 <!-- This is the package guid. --> 127 <GuidSymbol name="guidDockerAppPackage" value="{02eefd95-14a5-4afd-ab88-8d61ce9c902f}" /> 128 129 <!-- This is the guid used to group the menu commands together --> 130 <GuidSymbol name="guidDockerAppPackageCmdSet" value="{0113e9de-ef33-4d36-9c72-75012c5afd35}"> 131 <IDSymbol name="DockerAppMenuGroup" value="0x1020" /> 132 <IDSymbol name="cmdidCommandRender" value="0x0100" /> 133 <IDSymbol value="4129" name="cmdidCommandSelectApp" /> 134 <IDSymbol value="4130" name="cmdidCommandSettings" /> 135 <IDSymbol value="4131" name="cmdidCommandDeploy" /> 136 <IDSymbol value="4132" name="cmdidCommandNew" /> 137 </GuidSymbol> 138 139 <GuidSymbol name="guidImages" value="{90cd9bf0-60dc-42e4-b7fd-0605c2a50138}"> 140 <IDSymbol name="whale1" value="1" /> 141 </GuidSymbol> 142 143 <GuidSymbol value="{5aa2c816-1ce3-4317-b8bd-7433fbd22a5c}" name="guidImages1"> 144 <IDSymbol name="bmpPic1" value="1" /> 145 <IDSymbol name="bmpPic2" value="2" /> 146 <IDSymbol name="bmpPicSearch" value="3" /> 147 <IDSymbol name="bmpPicX" value="4" /> 148 <IDSymbol name="bmpPicArrows" value="5" /> 149 <IDSymbol name="bmpPicStrikethrough" value="6" /> 150 </GuidSymbol> 151 152 <GuidSymbol value="{27050485-0fce-4667-9f5b-9cba7169e19a}" name="guidImages2"> 153 <IDSymbol name="bmpPic1" value="1" /> 154 <IDSymbol name="bmpPic2" value="2" /> 155 <IDSymbol name="bmpPicSearch" value="3" /> 156 <IDSymbol name="bmpPicX" value="4" /> 157 <IDSymbol name="bmpPicArrows" value="5" /> 158 <IDSymbol name="bmpPicStrikethrough" value="6" /> 159 </GuidSymbol> 160 161 <GuidSymbol value="{3f454ccf-b97f-47d4-87a3-63ee0336f426}" name="guidImages3"> 162 <IDSymbol name="bmpPic1" value="1" /> 163 <IDSymbol name="bmpPic2" value="2" /> 164 <IDSymbol name="bmpPicSearch" value="3" /> 165 <IDSymbol name="bmpPicX" value="4" /> 166 <IDSymbol name="bmpPicArrows" value="5" /> 167 <IDSymbol name="bmpPicStrikethrough" value="6" /> 168 </GuidSymbol> 169 170 <GuidSymbol value="{dc9b962c-c511-4425-9ee4-f8478b8ca03d}" name="guidImages4"> 171 <IDSymbol name="bmpPic1" value="1" /> 172 <IDSymbol name="bmpPic2" value="2" /> 173 <IDSymbol name="bmpPicSearch" value="3" /> 174 <IDSymbol name="bmpPicX" value="4" /> 175 <IDSymbol name="bmpPicArrows" value="5" /> 176 <IDSymbol name="bmpPicStrikethrough" value="6" /> 177 </GuidSymbol> 178 </Symbols> 179 </CommandTable>