MenuCommands.cs 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. //
  2. // System.Windows.Forms.Design.MenuCommands.cs
  3. //
  4. // Author:
  5. // Gert Driesen ([email protected])
  6. // (C) 2004 Ximian, Inc. http://www.ximian.com
  7. //
  8. //
  9. // Permission is hereby granted, free of charge, to any person obtaining
  10. // a copy of this software and associated documentation files (the
  11. // "Software"), to deal in the Software without restriction, including
  12. // without limitation the rights to use, copy, modify, merge, publish,
  13. // distribute, sublicense, and/or sell copies of the Software, and to
  14. // permit persons to whom the Software is furnished to do so, subject to
  15. // the following conditions:
  16. //
  17. // The above copyright notice and this permission notice shall be
  18. // included in all copies or substantial portions of the Software.
  19. //
  20. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  21. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  22. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  23. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  24. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  25. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  26. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  27. //
  28. using System;
  29. using System.ComponentModel.Design;
  30. namespace System.Windows.Forms.Design
  31. {
  32. public sealed class MenuCommands : StandardCommands
  33. {
  34. #region Public Instance Constructors
  35. public MenuCommands()
  36. {
  37. // LAMESPEC having a public constructor but only static methods
  38. }
  39. #endregion Public Instance Constructors
  40. #region Static Constructor
  41. static MenuCommands()
  42. {
  43. MenuCommands.wfMenuGroup = new Guid ("{74D21312-2AEE-11d1-8BFB-00A0C90F26F7}");
  44. MenuCommands.wfCommandSet = new Guid ("{74D21313-2AEE-11d1-8BFB-00A0C90F26F7}");
  45. MenuCommands.guidVSStd2K = new Guid ("{1496A755-94DE-11D0-8C3F-00C04FC2AAE2}");
  46. MenuCommands.SelectionMenu = new CommandID (MenuCommands.wfMenuGroup, 1280);
  47. MenuCommands.ContainerMenu = new CommandID (MenuCommands.wfMenuGroup, 1281);
  48. MenuCommands.TraySelectionMenu = new CommandID (MenuCommands.wfMenuGroup, 1283);
  49. MenuCommands.ComponentTrayMenu = new CommandID (MenuCommands.wfMenuGroup, 1286);
  50. MenuCommands.DesignerProperties = new CommandID (MenuCommands.wfCommandSet, 4097);
  51. MenuCommands.KeyCancel = new CommandID (MenuCommands.guidVSStd2K, 103);
  52. MenuCommands.KeyReverseCancel = new CommandID (MenuCommands.wfCommandSet, 16385);
  53. MenuCommands.KeyDefaultAction = new CommandID (MenuCommands.guidVSStd2K, 3);
  54. MenuCommands.KeyMoveUp = new CommandID (MenuCommands.guidVSStd2K, 11);
  55. MenuCommands.KeyMoveDown = new CommandID (MenuCommands.guidVSStd2K, 13);
  56. MenuCommands.KeyMoveLeft = new CommandID (MenuCommands.guidVSStd2K, 7);
  57. MenuCommands.KeyMoveRight = new CommandID (MenuCommands.guidVSStd2K, 9);
  58. MenuCommands.KeyNudgeUp = new CommandID (MenuCommands.guidVSStd2K, 1227);
  59. MenuCommands.KeyNudgeDown = new CommandID (MenuCommands.guidVSStd2K, 1225);
  60. MenuCommands.KeyNudgeLeft = new CommandID (MenuCommands.guidVSStd2K, 1224);
  61. MenuCommands.KeyNudgeRight = new CommandID (MenuCommands.guidVSStd2K, 1226);
  62. MenuCommands.KeySizeWidthIncrease = new CommandID (MenuCommands.guidVSStd2K, 10);
  63. MenuCommands.KeySizeHeightIncrease = new CommandID (MenuCommands.guidVSStd2K, 12);
  64. MenuCommands.KeySizeWidthDecrease = new CommandID (MenuCommands.guidVSStd2K, 8);
  65. MenuCommands.KeySizeHeightDecrease = new CommandID (MenuCommands.guidVSStd2K, 14);
  66. MenuCommands.KeyNudgeWidthIncrease = new CommandID (MenuCommands.guidVSStd2K, 1231);
  67. MenuCommands.KeyNudgeHeightIncrease = new CommandID (MenuCommands.guidVSStd2K, 1228);
  68. MenuCommands.KeyNudgeWidthDecrease = new CommandID (MenuCommands.guidVSStd2K, 1230);
  69. MenuCommands.KeyNudgeHeightDecrease = new CommandID (MenuCommands.guidVSStd2K, 1229);
  70. MenuCommands.KeySelectNext = new CommandID (MenuCommands.guidVSStd2K, 4);
  71. MenuCommands.KeySelectPrevious = new CommandID (MenuCommands.guidVSStd2K, 5);
  72. MenuCommands.KeyTabOrderSelect = new CommandID (MenuCommands.wfCommandSet, 16405);
  73. }
  74. #endregion Static Constructor
  75. #region Public Static Fields
  76. public static readonly CommandID ComponentTrayMenu;
  77. public static readonly CommandID ContainerMenu;
  78. public static readonly CommandID DesignerProperties;
  79. public static readonly CommandID KeyCancel;
  80. public static readonly CommandID KeyDefaultAction;
  81. public static readonly CommandID KeyMoveDown;
  82. public static readonly CommandID KeyMoveLeft;
  83. public static readonly CommandID KeyMoveRight;
  84. public static readonly CommandID KeyMoveUp;
  85. public static readonly CommandID KeyNudgeDown;
  86. public static readonly CommandID KeyNudgeHeightDecrease;
  87. public static readonly CommandID KeyNudgeHeightIncrease;
  88. public static readonly CommandID KeyNudgeLeft;
  89. public static readonly CommandID KeyNudgeRight;
  90. public static readonly CommandID KeyNudgeUp;
  91. public static readonly CommandID KeyNudgeWidthDecrease;
  92. public static readonly CommandID KeyNudgeWidthIncrease;
  93. public static readonly CommandID KeyReverseCancel;
  94. public static readonly CommandID KeySelectNext;
  95. public static readonly CommandID KeySelectPrevious;
  96. public static readonly CommandID KeySizeHeightDecrease;
  97. public static readonly CommandID KeySizeHeightIncrease;
  98. public static readonly CommandID KeySizeWidthDecrease;
  99. public static readonly CommandID KeySizeWidthIncrease;
  100. public static readonly CommandID KeyTabOrderSelect;
  101. public static readonly CommandID SelectionMenu;
  102. public static readonly CommandID TraySelectionMenu;
  103. #endregion Public Static Fields
  104. #region Private Static Fields
  105. private static readonly Guid guidVSStd2K;
  106. private static readonly Guid wfCommandSet;
  107. private static readonly Guid wfMenuGroup;
  108. #endregion Private Static Fields
  109. }
  110. }