diff options
author | Karsten Heimrich <karsten.heimrich@qt.io> | 2023-04-18 15:40:39 +0200 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@qt.io> | 2023-04-20 09:50:28 +0000 |
commit | 46599b1c60daa58de011a3c0ab16142addb02ac3 (patch) | |
tree | cc047c7c4937cbfaf9b92208e6a8c4536650cfab /QtVsTools.Package/QtMenus.cs | |
parent | d05a981fe46f3bc2221ecbed44c0389769913fb3 (diff) |
Make use of the VSCT source generator
* Auto-generate command IDs
* Auto-generate VSIX package Name and Description
* Put all commands under a unified 'Package' GUID
The patch also removes the referenced icon resource, since it's
no longer displayed in the VS Help | About MS Visual Studio dialog.
Change-Id: I1df71289075c12f13b6e00a06ad9756c23109d1a
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
Diffstat (limited to 'QtVsTools.Package/QtMenus.cs')
-rw-r--r-- | QtVsTools.Package/QtMenus.cs | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/QtVsTools.Package/QtMenus.cs b/QtVsTools.Package/QtMenus.cs new file mode 100644 index 00000000..00a0f02e --- /dev/null +++ b/QtVsTools.Package/QtMenus.cs @@ -0,0 +1,74 @@ +๏ปฟ/*************************************************************************************************** + Copyright (C) 2023 The Qt Company Ltd. + SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only +***************************************************************************************************/ + +#nullable enable + +namespace QtVsTools +{ + /// <summary>Defines symbols from the QtMenus.vsct file.</summary> + internal sealed partial class QtMenus + { + /// <summary>Defines the "MenuImages" GUIDSymbol and its IDSymbols.</summary> + internal sealed partial class MenuImages + { + public const string GuidString = "d7cf9f1c-0f37-4609-8eb3-72589dc5a5ec"; + public static readonly System.Guid Guid = new(GuidString); + public const int CreateProFileBitmap = 0x0006; + public const int ExportProFileBitmap = 0x0005; + public const int ImportPriFileBitmap = 0x0004; + public const int LaunchDesignerBitmap = 0x0001; + public const int LaunchLinguistBitmap = 0x0002; + public const int OpenProFileBitmap = 0x0003; + public const int QtLogoBitmap = 0x0007; + } + /// <summary>Defines the "Package" GUIDSymbol and its IDSymbols.</summary> + internal sealed partial class Package + { + public const string GuidString = "15021976-647e-4876-9040-2507afde45d2"; + public static readonly System.Guid Guid = new(GuidString); + public const int ConvertToQtMsBuild = 0x0401; + public const int ExtensionMenuGroup = 0x0001; + public const int F1QtHelp = 0x0103; + public const int ImportPriFile = 0x0302; + public const int ImportPriFileProject = 0x0801; + public const int ItemContextTsMenuGroup = 0x1100; + public const int LaunchDesigner = 0x0201; + public const int LaunchLinguist = 0x0202; + public const int LaunchMenuGroup = 0x0200; + public const int lReleaseOnItem = 0x1102; + public const int lReleaseOnProject = 0x0902; + public const int lReleaseOnSolution = 0x0602; + public const int lUpdateOnItem = 0x1101; + public const int lUpdateOnProject = 0x0901; + public const int lUpdateOnSolution = 0x0601; + public const int OpenProFile = 0x0301; + public const int OptionsMenuGroup = 0x0500; + public const int OthersMenuGroup = 0x0400; + public const int ProjectContextOthersMenuGroup = 0x1000; + public const int ProjectContextProjectMenuGroup = 0x0800; + public const int ProjectContextTsMenuGroup = 0x0900; + public const int ProjectConvertToQtMsBuild = 0x1001; + public const int ProjectMenuGroup = 0x0300; + public const int ProjectRefreshIntelliSense = 0x1002; + public const int QtMainMenu = 0x0002; + public const int QtOptions = 0x0501; + public const int QtProjectSettings = 0x0402; + public const int QtProjectSettingsProject = 0x1003; + public const int QtProjectSubMenu = 0x0006; + public const int QtProjectSubMenuGroup = 0x0005; + public const int QtSolutionSubMenu = 0x0004; + public const int QtSolutionSubMenuGroup = 0x0003; + public const int QtVersion = 0x0101; + public const int QtVersions = 0x0502; + public const int SolutionContextQtMenuGroup = 0x0700; + public const int SolutionContextTsMenuGroup = 0x0600; + public const int SolutionConvertToQtMsBuild = 0x0701; + public const int SolutionEnableProjectTracking = 0x0702; + public const int VersionMenuGroup = 0x0100; + public const int ViewGettingStarted = 0x0104; + public const int ViewQtHelp = 0x0102; + } + } +} |