Changeset 3694 for trunk/sources/HeuristicLab.Core.Views
- Timestamp:
- 05/07/10 04:45:45 (14 years ago)
- 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 249 249 T item = e.Data.GetData("Value") as T; 250 250 if (!ReadOnly && (type != null) && (item != null)) { 251 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRLkey251 if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link; // ALT key 252 252 else if (((e.KeyState & 4) == 4) && !itemListViewItemTable.ContainsKey(item)) e.Effect = DragDropEffects.Move; // SHIFT key 253 253 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemArrayView.cs
r3588 r3694 259 259 ListViewItem listViewItem = itemsListView.GetItemAt(p.X, p.Y); 260 260 if (listViewItem != null) { 261 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRLkey261 if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link; // ALT key 262 262 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key 263 263 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs
r3588 r3694 212 212 Type type = e.Data.GetData("Type") as Type; 213 213 if (!Content.IsReadOnly && !ReadOnly && (type != null) && (typeof(T).IsAssignableFrom(type))) { 214 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRLkey214 if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link; // ALT key 215 215 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key 216 216 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemListView.cs
r3588 r3694 247 247 Type type = e.Data.GetData("Type") as Type; 248 248 if (!Content.IsReadOnly && !ReadOnly && (type != null) && (typeof(T).IsAssignableFrom(type))) { 249 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRLkey249 if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link; // ALT key 250 250 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key 251 251 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; -
trunk/sources/HeuristicLab.Core.Views/3.3/VariableValueView.cs
r3566 r3694 104 104 Type type = e.Data.GetData("Type") as Type; 105 105 if (!ReadOnly && (type != null) && (typeof(IItem).IsAssignableFrom(type))) { 106 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRLkey106 if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link; // ALT key 107 107 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key 108 108 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; -
trunk/sources/HeuristicLab.Core.Views/3.3/VariableView.cs
r3588 r3694 132 132 Type type = e.Data.GetData("Type") as Type; 133 133 if (!ReadOnly && (type != null) && (typeof(IItem).IsAssignableFrom(type))) { 134 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRLkey134 if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link; // ALT key 135 135 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key 136 136 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy;
Note: See TracChangeset
for help on using the changeset viewer.