public SaveActiveFileCommandDefinition(IDockingHostViewModel dockingHostViewModel) { DefaultKeyGestures = new [] { new MultiKeyGesture(Key.S, ModifierKeys.Control) }; DefaultGestureScope = GestureScopes.GlobalGestureScope; dockingHostViewModel.ActiveLayoutItemChanged += _dockingHostViewModel_ActiveLayoutItemChanged; }
public CopyCommandDefinition() { DefaultKeyGestures = new[] { new MultiKeyGesture(Key.C, ModifierKeys.Control), new MultiKeyGesture(Key.Insert, ModifierKeys.Control) }; DefaultGestureScope = GestureScopes.GlobalGestureScope; }
public OpenToolboxCommandDefinition() { DefaultKeyGestures = new[] { new MultiKeyGesture(new List <KeySequence> { new KeySequence(ModifierKeys.Control, Key.W), new KeySequence(Key.X) }) }; DefaultGestureScope = GestureScopes.GlobalGestureScope; }
public ApplyWindowLayout6() { DefaultKeyGestures = new [] { new MultiKeyGesture(Key.D6, ModifierKeys.Control | ModifierKeys.Alt) }; DefaultGestureScope = GestureScopes.GlobalGestureScope; SetCommand(); }
public OpenInspectorCommandDefinition() { DefaultKeyGestures = new [] { new MultiKeyGesture(Key.F4) }; DefaultGestureScope = GestureScopes.GlobalGestureScope; }
public CommandCategoryKey(CommandDefinition command, GestureScope scope) { Command = command; Scope = scope; }
public RedoCommandDefinition() { DefaultKeyGestures = new [] { new MultiKeyGesture(Key.Y, ModifierKeys.Control) }; DefaultGestureScope = GestureScopes.GlobalGestureScope; }
public CommandGestureScopeMapping(GestureScope scope, CommandDefinition command, MultiKeyGesture gesture) : this(command, new GestureScopeMapping(scope, gesture)) { }
public SaveAllCommandDefinition() { DefaultKeyGestures = new [] { new MultiKeyGesture(Key.S, ModifierKeys.Control | ModifierKeys.Shift) }; DefaultGestureScope = GestureScopes.GlobalGestureScope; }
public CloseProgramCommandDefinition() { DefaultKeyGestures = new[] { new MultiKeyGesture(Key.F4, ModifierKeys.Alt) }; DefaultGestureScope = GestureScopes.GlobalGestureScope; }
public OpenOutputToolCommandDefinition() { DefaultKeyGestures = new [] { new MultiKeyGesture(Key.O, ModifierKeys.Control | ModifierKeys.Alt) }; DefaultGestureScope = GestureScopes.GlobalGestureScope; }
public GestureScopeMapping(GestureScope scope, MultiKeyGesture keyGesture) { Scope = scope; KeyGesture = keyGesture; }
public DeleteCommandDefinition() { DefaultKeyGestures = new [] { new MultiKeyGesture(Key.Delete) }; DefaultGestureScope = GestureScopes.GlobalGestureScope; }