Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/07/10 04:45:45 (14 years ago)
Author:
swagner
Message:

Implemented reviewers' comments (#893)

Location:
trunk/sources/HeuristicLab.Core.Views/3.3
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core.Views/3.3/Clipboard.cs

    r3588 r3694  
    249249      T item = e.Data.GetData("Value") as T;
    250250      if (!ReadOnly && (type != null) && (item != null)) {
    251         if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link;  // CTRL key
     251        if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link;  // ALT key
    252252        else if (((e.KeyState & 4) == 4) && !itemListViewItemTable.ContainsKey(item)) e.Effect = DragDropEffects.Move;  // SHIFT key
    253253        else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy;
  • trunk/sources/HeuristicLab.Core.Views/3.3/ItemArrayView.cs

    r3588 r3694  
    259259        ListViewItem listViewItem = itemsListView.GetItemAt(p.X, p.Y);
    260260        if (listViewItem != null) {
    261           if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link;  // CTRL key
     261          if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link;  // ALT key
    262262          else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move;  // SHIFT key
    263263          else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy;
  • trunk/sources/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs

    r3588 r3694  
    212212      Type type = e.Data.GetData("Type") as Type;
    213213      if (!Content.IsReadOnly && !ReadOnly && (type != null) && (typeof(T).IsAssignableFrom(type))) {
    214         if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link;  // CTRL key
     214        if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link;  // ALT key
    215215        else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move;  // SHIFT key
    216216        else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy;
  • trunk/sources/HeuristicLab.Core.Views/3.3/ItemListView.cs

    r3588 r3694  
    247247      Type type = e.Data.GetData("Type") as Type;
    248248      if (!Content.IsReadOnly && !ReadOnly && (type != null) && (typeof(T).IsAssignableFrom(type))) {
    249         if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link;  // CTRL key
     249        if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link;  // ALT key
    250250        else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move;  // SHIFT key
    251251        else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy;
  • trunk/sources/HeuristicLab.Core.Views/3.3/VariableValueView.cs

    r3566 r3694  
    104104      Type type = e.Data.GetData("Type") as Type;
    105105      if (!ReadOnly && (type != null) && (typeof(IItem).IsAssignableFrom(type))) {
    106         if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link;  // CTRL key
     106        if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link;  // ALT key
    107107        else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move;  // SHIFT key
    108108        else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy;
  • trunk/sources/HeuristicLab.Core.Views/3.3/VariableView.cs

    r3588 r3694  
    132132      Type type = e.Data.GetData("Type") as Type;
    133133      if (!ReadOnly && (type != null) && (typeof(IItem).IsAssignableFrom(type))) {
    134         if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link;  // CTRL key
     134        if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link;  // ALT key
    135135        else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move;  // SHIFT key
    136136        else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy;
Note: See TracChangeset for help on using the changeset viewer.