Changeset 3526 for trunk/sources/HeuristicLab.Core.Views
- Timestamp:
- 04/26/10 00:56:59 (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
r3416 r3526 257 257 T item = e.Data.GetData("Value") as T; 258 258 if (!ReadOnly && (type != null) && (item != null)) { 259 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects. Copy; // CTRL key259 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRL key 260 260 else if (((e.KeyState & 4) == 4) && !itemListViewItemTable.ContainsKey(item)) e.Effect = DragDropEffects.Move; // SHIFT key 261 else if (((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) && !itemListViewItemTable.ContainsKey(item)) e.Effect = DragDropEffects.Link;262 261 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; 263 262 else if (((e.AllowedEffect & DragDropEffects.Move) == DragDropEffects.Move) && !itemListViewItemTable.ContainsKey(item)) e.Effect = DragDropEffects.Move; 263 else if (((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) && !itemListViewItemTable.ContainsKey(item)) e.Effect = DragDropEffects.Link; 264 264 } 265 265 } -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemArrayView.cs
r3483 r3526 264 264 ListViewItem listViewItem = itemsListView.GetItemAt(p.X, p.Y); 265 265 if (listViewItem != null) { 266 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects. Copy; // CTRL key266 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRL key 267 267 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key 268 else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link;269 268 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; 270 269 else if ((e.AllowedEffect & DragDropEffects.Move) == DragDropEffects.Move) e.Effect = DragDropEffects.Move; 270 else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link; 271 271 } 272 272 } -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs
r3483 r3526 217 217 Type type = e.Data.GetData("Type") as Type; 218 218 if (!Content.IsReadOnly && !ReadOnly && (type != null) && (typeof(T).IsAssignableFrom(type))) { 219 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects. Copy; // CTRL key219 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRL key 220 220 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key 221 else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link;222 221 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; 223 222 else if ((e.AllowedEffect & DragDropEffects.Move) == DragDropEffects.Move) e.Effect = DragDropEffects.Move; 223 else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link; 224 224 } 225 225 } -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemListView.cs
r3483 r3526 252 252 Type type = e.Data.GetData("Type") as Type; 253 253 if (!Content.IsReadOnly && !ReadOnly && (type != null) && (typeof(T).IsAssignableFrom(type))) { 254 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects. Copy; // CTRL key254 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRL key 255 255 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key 256 else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link;257 256 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; 258 257 else if ((e.AllowedEffect & DragDropEffects.Move) == DragDropEffects.Move) e.Effect = DragDropEffects.Move; 258 else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link; 259 259 } 260 260 } -
trunk/sources/HeuristicLab.Core.Views/3.3/VariableValueView.cs
r3455 r3526 113 113 Type type = e.Data.GetData("Type") as Type; 114 114 if (!ReadOnly && (type != null) && (typeof(IItem).IsAssignableFrom(type))) { 115 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects. Copy; // CTRL key115 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRL key 116 116 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key 117 else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link;118 117 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; 119 118 else if ((e.AllowedEffect & DragDropEffects.Move) == DragDropEffects.Move) e.Effect = DragDropEffects.Move; 119 else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link; 120 120 } 121 121 } -
trunk/sources/HeuristicLab.Core.Views/3.3/VariableView.cs
r3455 r3526 141 141 Type type = e.Data.GetData("Type") as Type; 142 142 if (!ReadOnly && (type != null) && (typeof(IItem).IsAssignableFrom(type))) { 143 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects. Copy; // CTRL key143 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRL key 144 144 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key 145 else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link;146 145 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; 147 146 else if ((e.AllowedEffect & DragDropEffects.Move) == DragDropEffects.Move) e.Effect = DragDropEffects.Move; 147 else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link; 148 148 } 149 149 }
Note: See TracChangeset
for help on using the changeset viewer.