Browse Source

Set input gesture text.

pull/191/merge
Eusebiu Marcu 15 years ago
parent
commit
a0a4637a16
  1. 3
      ILSpy/Commands/DebuggerCommands.cs
  2. 4
      ILSpy/ExportCommandAttribute.cs
  3. 2
      ILSpy/MainWindow.xaml.cs

3
ILSpy/Commands/DebuggerCommands.cs

@ -168,6 +168,7 @@ namespace ICSharpCode.ILSpy.Commands @@ -168,6 +168,7 @@ namespace ICSharpCode.ILSpy.Commands
MenuIcon = "ILSpy.Debugger;component/Images/ContinueDebugging.png",
MenuCategory = "Debugger1",
Header = "Continue debugging",
InputGestureText = "F5",
IsEnabled = false,
MenuOrder = 1)]
internal sealed class ContinueDebuggingCommand : DebuggerCommands
@ -183,6 +184,7 @@ namespace ICSharpCode.ILSpy.Commands @@ -183,6 +184,7 @@ namespace ICSharpCode.ILSpy.Commands
MenuIcon = "ILSpy.Debugger;component/Images/StepInto.png",
MenuCategory = "Debugger1",
Header = "Step into",
InputGestureText = "F11",
IsEnabled = false,
MenuOrder = 2)]
internal sealed class StepIntoCommand : DebuggerCommands
@ -198,6 +200,7 @@ namespace ICSharpCode.ILSpy.Commands @@ -198,6 +200,7 @@ namespace ICSharpCode.ILSpy.Commands
MenuIcon = "ILSpy.Debugger;component/Images/StepOver.png",
MenuCategory = "Debugger1",
Header = "Step over",
InputGestureText = "F10",
IsEnabled = false,
MenuOrder = 3)]
internal sealed class StepOverCommand : DebuggerCommands

4
ILSpy/ExportCommandAttribute.cs

@ -41,7 +41,7 @@ namespace ICSharpCode.ILSpy @@ -41,7 +41,7 @@ namespace ICSharpCode.ILSpy
string Header { get; }
string Menu { get; }
string MenuCategory { get; }
string InputGestureText { get; }
bool IsEnabled { get; }
double MenuOrder { get; }
@ -62,7 +62,7 @@ namespace ICSharpCode.ILSpy @@ -62,7 +62,7 @@ namespace ICSharpCode.ILSpy
public string Header { get; set; }
public string Menu { get; set; }
public string MenuCategory { get; set; }
public string InputGestureText { get; set; }
public bool IsEnabled {
get { return isEnabled; }
set { isEnabled = value; }

2
ILSpy/MainWindow.xaml.cs

@ -178,7 +178,7 @@ namespace ICSharpCode.ILSpy @@ -178,7 +178,7 @@ namespace ICSharpCode.ILSpy
}
menuItem.IsEnabled = entry.Metadata.IsEnabled;
menuItem.InputGestureText = entry.Metadata.InputGestureText;
topLevelMenuItem.Items.Add(menuItem);
}
}

Loading…
Cancel
Save