예제 #1
0
        public SaveActiveFileCommandDefinition(IDockingHostViewModel dockingHostViewModel)
        {
            DefaultKeyGestures  = new [] { new MultiKeyGesture(Key.S, ModifierKeys.Control) };
            DefaultGestureScope = GestureScopes.GlobalGestureScope;

            dockingHostViewModel.ActiveLayoutItemChanged += _dockingHostViewModel_ActiveLayoutItemChanged;
        }
예제 #2
0
 public CopyCommandDefinition()
 {
     DefaultKeyGestures = new[]
     {
         new MultiKeyGesture(Key.C, ModifierKeys.Control),
         new MultiKeyGesture(Key.Insert, ModifierKeys.Control)
     };
     DefaultGestureScope = GestureScopes.GlobalGestureScope;
 }
예제 #3
0
 public OpenToolboxCommandDefinition()
 {
     DefaultKeyGestures = new[]
     {
         new MultiKeyGesture(new List <KeySequence>
         {
             new KeySequence(ModifierKeys.Control, Key.W),
             new KeySequence(Key.X)
         })
     };
     DefaultGestureScope = GestureScopes.GlobalGestureScope;
 }
예제 #4
0
 public ApplyWindowLayout6()
 {
     DefaultKeyGestures  = new [] { new MultiKeyGesture(Key.D6, ModifierKeys.Control | ModifierKeys.Alt) };
     DefaultGestureScope = GestureScopes.GlobalGestureScope;
     SetCommand();
 }
예제 #5
0
 public OpenInspectorCommandDefinition()
 {
     DefaultKeyGestures  = new [] { new MultiKeyGesture(Key.F4) };
     DefaultGestureScope = GestureScopes.GlobalGestureScope;
 }
예제 #6
0
 public CommandCategoryKey(CommandDefinition command, GestureScope scope)
 {
     Command = command;
     Scope   = scope;
 }
예제 #7
0
 public RedoCommandDefinition()
 {
     DefaultKeyGestures  = new [] { new MultiKeyGesture(Key.Y, ModifierKeys.Control) };
     DefaultGestureScope = GestureScopes.GlobalGestureScope;
 }
예제 #8
0
 public CommandGestureScopeMapping(GestureScope scope, CommandDefinition command,
                                   MultiKeyGesture gesture) : this(command, new GestureScopeMapping(scope, gesture))
 {
 }
예제 #9
0
 public SaveAllCommandDefinition()
 {
     DefaultKeyGestures  = new [] { new MultiKeyGesture(Key.S, ModifierKeys.Control | ModifierKeys.Shift) };
     DefaultGestureScope = GestureScopes.GlobalGestureScope;
 }
예제 #10
0
 public CloseProgramCommandDefinition()
 {
     DefaultKeyGestures  = new[] { new MultiKeyGesture(Key.F4, ModifierKeys.Alt) };
     DefaultGestureScope = GestureScopes.GlobalGestureScope;
 }
예제 #11
0
 public OpenOutputToolCommandDefinition()
 {
     DefaultKeyGestures  = new [] { new MultiKeyGesture(Key.O, ModifierKeys.Control | ModifierKeys.Alt) };
     DefaultGestureScope = GestureScopes.GlobalGestureScope;
 }
예제 #12
0
 public GestureScopeMapping(GestureScope scope, MultiKeyGesture keyGesture)
 {
     Scope      = scope;
     KeyGesture = keyGesture;
 }
예제 #13
0
 public DeleteCommandDefinition()
 {
     DefaultKeyGestures  = new [] { new MultiKeyGesture(Key.Delete) };
     DefaultGestureScope = GestureScopes.GlobalGestureScope;
 }