Changeset 3526
- Timestamp:
- 04/26/10 00:56:59 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 11 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 } -
trunk/sources/HeuristicLab.Optimization.Views/3.3/AlgorithmView.cs
r3500 r3526 236 236 Type type = e.Data.GetData("Type") as Type; 237 237 if ((type != null) && (Content.ProblemType.IsAssignableFrom(type))) { 238 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects. Copy; // CTRL key238 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRL key 239 239 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key 240 else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link;241 240 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; 242 241 else if ((e.AllowedEffect & DragDropEffects.Move) == DragDropEffects.Move) e.Effect = DragDropEffects.Move; 242 else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link; 243 243 } 244 244 } -
trunk/sources/HeuristicLab.Optimization.Views/3.3/BatchRunView.cs
r3500 r3526 223 223 Type type = e.Data.GetData("Type") as Type; 224 224 if ((type != null) && (typeof(IAlgorithm).IsAssignableFrom(type))) { 225 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects. Copy; // CTRL key225 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRL key 226 226 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key 227 else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link;228 227 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; 229 228 else if ((e.AllowedEffect & DragDropEffects.Move) == DragDropEffects.Move) e.Effect = DragDropEffects.Move; 229 else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link; 230 230 } 231 231 } -
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionView.cs
r3507 r3526 223 223 Type type = e.Data.GetData("Type") as Type; 224 224 if (!Content.IsReadOnly && !ReadOnly && (type != null) && (typeof(IRun).IsAssignableFrom(type))) { 225 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects. Copy; // CTRL key225 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRL key 226 226 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key 227 else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link;228 227 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; 229 228 else if ((e.AllowedEffect & DragDropEffects.Move) == DragDropEffects.Move) e.Effect = DragDropEffects.Move; 229 else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link; 230 230 } 231 231 } -
trunk/sources/HeuristicLab.Parameters.Views/3.3/ValueLookupParameterView.cs
r3455 r3526 153 153 Type type = e.Data.GetData("Type") as Type; 154 154 if (!ReadOnly && (type != null) && (Content.DataType.IsAssignableFrom(type))) { 155 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects. Copy; // CTRL key155 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRL key 156 156 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key 157 else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link;158 157 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; 159 158 else if ((e.AllowedEffect & DragDropEffects.Move) == DragDropEffects.Move) e.Effect = DragDropEffects.Move; 159 else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link; 160 160 } 161 161 } -
trunk/sources/HeuristicLab.Parameters.Views/3.3/ValueParameterView.cs
r3455 r3526 141 141 Type type = e.Data.GetData("Type") as Type; 142 142 if (!ReadOnly && (type != null) && (Content.DataType.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.