Changeset 6569 for branches/QAPAlgorithms/HeuristicLab.Core.Views
- Timestamp:
- 07/17/11 22:51:11 (13 years ago)
- Location:
- branches/QAPAlgorithms
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/QAPAlgorithms
- Property svn:ignore
-
old new 12 12 *.psess 13 13 *.vsp 14 *.docstates
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/QAPAlgorithms/HeuristicLab.Core.Views/3.3/Clipboard.cs
r5839 r6569 27 27 using System.Threading; 28 28 using System.Windows.Forms; 29 using HeuristicLab.Common; 29 30 using HeuristicLab.MainForm; 30 31 using HeuristicLab.Persistence.Default.Xml; … … 321 322 } else if (e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) is IEnumerable) { 322 323 IEnumerable<T> items = ((IEnumerable)e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat)).Cast<T>(); 324 if (e.Effect.HasFlag(DragDropEffects.Copy)) { 325 Cloner cloner = new Cloner(); 326 items = items.Select(x => cloner.Clone(x)); 327 } 323 328 foreach (T item in items) 324 AddItem( e.Effect.HasFlag(DragDropEffects.Copy) ? (T)item.Clone() :item);329 AddItem(item); 325 330 } 326 331 } -
branches/QAPAlgorithms/HeuristicLab.Core.Views/3.3/HeuristicLabCoreViewsPlugin.cs.frame
r6099 r6569 26 26 /// Plugin class for HeuristicLab.Core.Views plugin. 27 27 /// </summary> 28 [Plugin("HeuristicLab.Core.Views", "3.3. 4.$WCREV$")]28 [Plugin("HeuristicLab.Core.Views", "3.3.5.$WCREV$")] 29 29 [PluginFile("HeuristicLab.Core.Views-3.3.dll", PluginFileType.Assembly)] 30 30 [PluginDependency("HeuristicLab.Collections", "3.3")] -
branches/QAPAlgorithms/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs
r5839 r6569 26 26 using System.Windows.Forms; 27 27 using HeuristicLab.Collections; 28 using HeuristicLab.Common; 28 29 using HeuristicLab.MainForm; 29 30 using HeuristicLab.MainForm.WindowsForms; … … 294 295 } else if (e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) is IEnumerable) { 295 296 IEnumerable<T> items = ((IEnumerable)e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat)).Cast<T>(); 297 if (e.Effect.HasFlag(DragDropEffects.Copy)) { 298 Cloner cloner = new Cloner(); 299 items = items.Select(x => cloner.Clone(x)); 300 } 296 301 foreach (T item in items) 297 Content.Add( e.Effect.HasFlag(DragDropEffects.Copy) ? (T)item.Clone() :item);302 Content.Add(item); 298 303 } 299 304 } -
branches/QAPAlgorithms/HeuristicLab.Core.Views/3.3/ItemListView.cs
r5928 r6569 27 27 using System.Windows.Forms; 28 28 using HeuristicLab.Collections; 29 using HeuristicLab.Common; 29 30 using HeuristicLab.MainForm; 30 31 using HeuristicLab.MainForm.WindowsForms; … … 334 335 } else if (e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) is IEnumerable) { 335 336 IEnumerable<T> items = ((IEnumerable)e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat)).Cast<T>(); 337 if (e.Effect.HasFlag(DragDropEffects.Copy)) { 338 Cloner cloner = new Cloner(); 339 items = items.Select(x => cloner.Clone(x)); 340 } 336 341 foreach (T item in items) { 337 if (listViewItem != null) Content.Insert(listViewItem.Index, e.Effect.HasFlag(DragDropEffects.Copy) ? (T)item.Clone() :item);338 else Content.Add( e.Effect.HasFlag(DragDropEffects.Copy) ? (T)item.Clone() :item);342 if (listViewItem != null) Content.Insert(listViewItem.Index, item); 343 else Content.Add(item); 339 344 } 340 345 } -
branches/QAPAlgorithms/HeuristicLab.Core.Views/3.3/Properties/AssemblyInfo.frame
r6099 r6569 54 54 // by using the '*' as shown below: 55 55 [assembly: AssemblyVersion("3.3.0.0")] 56 [assembly: AssemblyFileVersion("3.3. 4.$WCREV$")]56 [assembly: AssemblyFileVersion("3.3.5.$WCREV$")] -
branches/QAPAlgorithms/HeuristicLab.Core.Views/3.3/TypeSelector.cs
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/branches/GP.Grammar.Editor/HeuristicLab.Core.Views/3.3/TypeSelector.cs merged eligible /trunk/sources/HeuristicLab.Core.Views/3.3/TypeSelector.cs merged eligible /branches/CloningRefactoring/HeuristicLab.Core.Views/3.3/TypeSelector.cs 4656-4721 /branches/DataAnalysis Refactoring/HeuristicLab.Core.Views/3.3/TypeSelector.cs 5471-5808 /branches/DataAnalysis SolutionEnsembles/HeuristicLab.Core.Views/3.3/TypeSelector.cs 5815-6180 /branches/DataAnalysis/HeuristicLab.Core.Views/3.3/TypeSelector.cs 4458-4459,4462,4464 /branches/GP.Symbols (TimeLag, Diff, Integral)/HeuristicLab.Core.Views/3.3/TypeSelector.cs 5060 /branches/NET40/sources/HeuristicLab.Core.Views/3.3/TypeSelector.cs 5138-5162 /branches/ParallelEngine/HeuristicLab.Core.Views/3.3/TypeSelector.cs 5175-5192 /branches/SuccessProgressAnalysis/HeuristicLab.Core.Views/3.3/TypeSelector.cs 5370-5682 /branches/VNS/HeuristicLab.Core.Views/3.3/TypeSelector.cs 5594-5752 /branches/histogram/HeuristicLab.Core.Views/3.3/TypeSelector.cs 5959-6341
r6019 r6569 86 86 87 87 public virtual void Configure(Type baseType, bool showNotInstantiableTypes, bool showGenericTypes) { 88 Configure(new List<Type>() { baseType }, showNotInstantiableTypes, showGenericTypes, true); 88 Configure(baseType, showNotInstantiableTypes, showGenericTypes, (t) => true); 89 } 90 91 public virtual void Configure(Type baseType, bool showNotInstantiableTypes, bool showGenericTypes, Func<Type, bool> typeCondition) { 92 Configure(new List<Type>() { baseType }, showNotInstantiableTypes, showGenericTypes, true, typeCondition); 89 93 } 90 94 91 95 public virtual void Configure(IEnumerable<Type> baseTypes, bool showNotInstantiableTypes, bool showGenericTypes, bool assignableToAllTypes) { 96 Configure(baseTypes, showNotInstantiableTypes, showGenericTypes, assignableToAllTypes, (t) => { return true; }); 97 } 98 99 public virtual void Configure(IEnumerable<Type> baseTypes, bool showNotInstantiableTypes, bool showGenericTypes, bool assignableToAllTypes, Func<Type, bool> typeCondition) { 92 100 if (baseTypes == null) throw new ArgumentNullException(); 93 101 if (InvokeRequired) 94 Invoke(new Action<IEnumerable<Type>, bool, bool, bool >(Configure), baseTypes, showNotInstantiableTypes, showGenericTypes, assignableToAllTypes);102 Invoke(new Action<IEnumerable<Type>, bool, bool, bool, Func<Type, bool>>(Configure), baseTypes, showNotInstantiableTypes, showGenericTypes, assignableToAllTypes, typeCondition); 95 103 else { 96 104 this.baseTypes = baseTypes; … … 120 128 121 129 var types = from t in ApplicationManager.Manager.GetTypes(BaseTypes, plugin, !ShowNotInstantiableTypes, assignableToAllTypes) 130 where typeCondition(t) 122 131 orderby t.Name ascending 123 132 select t; -
Property
svn:mergeinfo
set to
(toggle deleted branches)
Note: See TracChangeset
for help on using the changeset viewer.