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