Changeset 2520 for trunk/sources/HeuristicLab.Constraints
- Timestamp:
- 11/23/09 11:08:34 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Constraints/3.3
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Constraints/3.3/AllSubOperatorsTypeConstraint.cs
r1823 r2520 119 119 return clone; 120 120 } 121 122 /// <summary>123 /// Creates a new instance of <see cref="AllSubOperatorsTypeConstraintView"/> to represent the current124 /// instance visually.125 /// </summary>126 /// <returns>The created view as <see cref="AllSubOperatorsTypeConstraintView"/>.</returns>127 public override IView CreateView() {128 return new AllSubOperatorsTypeConstraintView(groupConstraint);129 }130 121 } 131 122 } -
trunk/sources/HeuristicLab.Constraints/3.3/AllSubOperatorsTypeConstraintView.cs
r1529 r2520 28 28 using System.Windows.Forms; 29 29 using HeuristicLab.Core; 30 using HeuristicLab.Core.Views; 31 using HeuristicLab.MainForm; 30 32 31 33 namespace HeuristicLab.Constraints { … … 33 35 /// The visual representation of the <see cref="AllSubOperatorsTypeConstraint"/>. 34 36 /// </summary> 37 [Content(typeof(AllSubOperatorsTypeConstraint), true)] 35 38 public partial class AllSubOperatorsTypeConstraintView : ViewBase { 36 39 private SubOperatorTypeConstraint constraint = new SubOperatorTypeConstraint(); -
trunk/sources/HeuristicLab.Constraints/3.3/AndConstraint.cs
r1823 r2520 32 32 /// Constraint where all sub-constraints must be <c>true</c>. 33 33 /// </summary> 34 public class AndConstraint : ConstraintBase , IViewable{34 public class AndConstraint : ConstraintBase { 35 35 36 36 [Storable] … … 78 78 79 79 /// <summary> 80 /// Creates a new instance of <see cref="AndConstraintView"/> to represent the current81 /// instance visually.82 /// </summary>83 /// <returns>The created view as <see cref="AndConstraintView"/>.</returns>84 public override IView CreateView() {85 return new AndConstraintView(this);86 }87 88 /// <summary>89 80 /// Clones the current instance (deep clone). 90 81 /// </summary> -
trunk/sources/HeuristicLab.Constraints/3.3/AndConstraintView.cs
r1529 r2520 29 29 using HeuristicLab.Core; 30 30 using HeuristicLab.Data; 31 using HeuristicLab.Core.Views; 32 using HeuristicLab.MainForm; 31 33 32 34 namespace HeuristicLab.Constraints { … … 34 36 /// The visual representation of an <see cref="AndConstraint"/>. 35 37 /// </summary> 38 [Content(typeof(AndConstraint), true)] 36 39 public partial class AndConstraintView : ViewBase { 37 40 /// <summary> -
trunk/sources/HeuristicLab.Constraints/3.3/DoubleBoundedConstraint.cs
r1823 r2520 180 180 181 181 /// <summary> 182 /// Creates a new instance of <see cref="DoubleBoundedConstraintView"/> to represent the current183 /// instance visually.184 /// </summary>185 /// <returns>The created view as <see cref="DoubleBoundedConstraintView"/>.</returns>186 public override IView CreateView() {187 return new DoubleBoundedConstraintView(this);188 }189 190 /// <summary>191 182 /// Clones the current instance (deep clone). 192 183 /// </summary> -
trunk/sources/HeuristicLab.Constraints/3.3/DoubleBoundedConstraintView.cs
r1529 r2520 29 29 using HeuristicLab.Core; 30 30 using HeuristicLab.Data; 31 using HeuristicLab.Core.Views; 32 using HeuristicLab.MainForm; 31 33 32 34 namespace HeuristicLab.Constraints { … … 34 36 /// The visual representation of a <see cref="DoubleBoundedConstraint"/>. 35 37 /// </summary> 38 [Content(typeof(DoubleBoundedConstraint), true)] 36 39 public partial class DoubleBoundedConstraintView : ViewBase { 37 40 /// <summary> -
trunk/sources/HeuristicLab.Constraints/3.3/HeuristicLab.Constraints-3.3.csproj
r1672 r2520 159 159 </ItemGroup> 160 160 <ItemGroup> 161 <ProjectReference Include="..\..\HeuristicLab.Core.Views\3.3\HeuristicLab.Core.Views-3.3.csproj"> 162 <Project>{E226881D-315F-423D-B419-A766FE0D8685}</Project> 163 <Name>HeuristicLab.Core.Views-3.3</Name> 164 </ProjectReference> 161 165 <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj"> 162 166 <Project>{C36BD924-A541-4A00-AFA8-41701378DDC5}</Project> … … 166 170 <Project>{BBAB9DF5-5EF3-4BA8-ADE9-B36E82114937}</Project> 167 171 <Name>HeuristicLab.Data-3.3</Name> 172 </ProjectReference> 173 <ProjectReference Include="..\..\HeuristicLab.MainForm.WindowsForms\3.2\HeuristicLab.MainForm.WindowsForms-3.2.csproj"> 174 <Project>{AB687BBE-1BFE-476B-906D-44237135431D}</Project> 175 <Name>HeuristicLab.MainForm.WindowsForms-3.2</Name> 176 </ProjectReference> 177 <ProjectReference Include="..\..\HeuristicLab.MainForm\3.2\HeuristicLab.MainForm-3.2.csproj"> 178 <Project>{3BD61258-31DA-4B09-89C0-4F71FEF5F05A}</Project> 179 <Name>HeuristicLab.MainForm-3.2</Name> 168 180 </ProjectReference> 169 181 <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj"> -
trunk/sources/HeuristicLab.Constraints/3.3/HeuristicLabConstraintsPlugin.cs
r1674 r2520 32 32 [PluginFile(Filename = "HeuristicLab.Constraints-3.3.dll", Filetype = PluginFileType.Assembly)] 33 33 [Dependency(Dependency = "HeuristicLab.Core-3.3")] 34 [Dependency(Dependency = "HeuristicLab.Core.Views-3.3")] 34 35 [Dependency(Dependency = "HeuristicLab.Data-3.3")] 36 [Dependency(Dependency = "HeuristicLab.MainForm-3.2")] 37 [Dependency(Dependency = "HeuristicLab.MainForm.WindowsForms-3.2")] 35 38 [Dependency(Dependency = "HeuristicLab.Persistence-3.3")] 36 39 public class HeuristicLabConstraintsPlugin : PluginBase { -
trunk/sources/HeuristicLab.Constraints/3.3/IntBoundedConstraint.cs
r1823 r2520 167 167 168 168 /// <summary> 169 /// Creates a new instance of <see cref="IntBoundedConstraintView"/> to represent the current170 /// instance visually.171 /// </summary>172 /// <returns>The created view as <see cref="IntBoundedConstraintView"/>.</returns>173 public override IView CreateView() {174 return new IntBoundedConstraintView(this);175 }176 177 /// <summary>178 169 /// Clones the current instance (deep clone). 179 170 /// </summary> -
trunk/sources/HeuristicLab.Constraints/3.3/IntBoundedConstraintView.cs
r1529 r2520 29 29 using HeuristicLab.Core; 30 30 using HeuristicLab.Data; 31 using HeuristicLab.Core.Views; 32 using HeuristicLab.MainForm; 31 33 32 34 namespace HeuristicLab.Constraints { … … 34 36 /// The visual representation of an <see cref="IntBoundedConstraint"/>. 35 37 /// </summary> 38 [Content(typeof(IntBoundedConstraint), true)] 36 39 public partial class IntBoundedConstraintView : ViewBase { 37 40 /// <summary> -
trunk/sources/HeuristicLab.Constraints/3.3/ItemTypeConstraint.cs
r1823 r2520 91 91 92 92 /// <summary> 93 /// Creates a new instance of <see cref="ItemTypeConstraintView"/> to represent the current94 /// instance visually.95 /// </summary>96 /// <returns>The created view as <see cref="ItemTypeConstraintView"/>.</returns>97 public override IView CreateView() {98 return new ItemTypeConstraintView(this);99 }100 101 /// <summary>102 93 /// Clones the current instance (deep clone). 103 94 /// </summary> -
trunk/sources/HeuristicLab.Constraints/3.3/ItemTypeConstraintView.cs
r1529 r2520 29 29 using HeuristicLab.Core; 30 30 using HeuristicLab.Data; 31 using HeuristicLab.Core.Views; 32 using HeuristicLab.MainForm; 31 33 32 34 namespace HeuristicLab.Constraints { … … 34 36 /// The visual representation of an <see cref="ItemTypeConstraint"/>. 35 37 /// </summary> 38 [Content(typeof(ItemTypeConstraint), true)] 36 39 public partial class ItemTypeConstraintView : ViewBase { 37 40 /// <summary> -
trunk/sources/HeuristicLab.Constraints/3.3/NotConstraint.cs
r1823 r2520 71 71 72 72 /// <summary> 73 /// Creates a new instance of <see cref="NotConstraintView"/> to represent the current74 /// instance visually.75 /// </summary>76 /// <returns>The created view as <see cref="NotConstraintView"/>.</returns>77 public override IView CreateView() {78 return new NotConstraintView(this);79 }80 81 /// <summary>82 73 /// Clones the current instance (deep clone). 83 74 /// </summary> -
trunk/sources/HeuristicLab.Constraints/3.3/NotConstraintView.Designer.cs
r1529 r2520 45 45 /// </summary> 46 46 private void InitializeComponent() { 47 this.subConstraintViewBase = new HeuristicLab.Core.View Base();47 this.subConstraintViewBase = new HeuristicLab.Core.Views.ViewBase(); 48 48 this.subConstraintComboBox = new System.Windows.Forms.ComboBox(); 49 49 this.SuspendLayout(); … … 84 84 #endregion 85 85 86 private HeuristicLab.Core.View Base subConstraintViewBase;86 private HeuristicLab.Core.Views.ViewBase subConstraintViewBase; 87 87 private System.Windows.Forms.ComboBox subConstraintComboBox; 88 88 } -
trunk/sources/HeuristicLab.Constraints/3.3/NotConstraintView.cs
r1529 r2520 30 30 using HeuristicLab.Core; 31 31 using HeuristicLab.Data; 32 using HeuristicLab.Core.Views; 33 using HeuristicLab.MainForm; 32 34 33 35 namespace HeuristicLab.Constraints { … … 35 37 /// Visual representation of a <see cref="NotConstraint"/>. 36 38 /// </summary> 39 [Content(typeof(NotConstraint), true)] 37 40 public partial class NotConstraintView : ViewBase { 38 41 private Type[] itemTypes; … … 113 116 subConstraintViewBase.Dispose(); 114 117 } 115 subConstraintViewBase = (ViewBase) NotConstraint.SubConstraint.CreateView();118 subConstraintViewBase = (ViewBase)MainFormManager.CreateDefaultView(NotConstraint.SubConstraint); 116 119 if (subConstraintViewBase != null) { 117 120 subConstraintViewBase.Anchor = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); -
trunk/sources/HeuristicLab.Constraints/3.3/NumberOfSubOperatorsConstraint.cs
r1823 r2520 103 103 return clone; 104 104 } 105 106 /// <summary>107 /// Creates a new instance of <see cref="NumberOfSubOperatorsConstraintView"/> to represent the current108 /// instance visually.109 /// </summary>110 /// <returns>The created view as <see cref="NumberOfSubOperatorsConstraintView"/>.</returns>111 public override IView CreateView() {112 return new NumberOfSubOperatorsConstraintView(this);113 }114 105 } 115 106 } -
trunk/sources/HeuristicLab.Constraints/3.3/NumberOfSubOperatorsConstraintView.cs
r1529 r2520 28 28 using System.Windows.Forms; 29 29 using HeuristicLab.Core; 30 using HeuristicLab.Core.Views; 31 using HeuristicLab.MainForm; 30 32 31 33 namespace HeuristicLab.Constraints { … … 33 35 /// Visual representation of a <see cref="NumberOfSubOperatorsConstraint"/>. 34 36 /// </summary> 37 [Content(typeof(NumberOfSubOperatorsConstraint), true)] 35 38 public partial class NumberOfSubOperatorsConstraintView : ViewBase { 36 39 private NumberOfSubOperatorsConstraint constraint; -
trunk/sources/HeuristicLab.Constraints/3.3/OrConstraint.cs
r1823 r2520 32 32 /// Constraint where at least one sub-constraint must be true. 33 33 /// </summary> 34 public class OrConstraint : ConstraintBase , IViewable{34 public class OrConstraint : ConstraintBase { 35 35 36 36 [Storable] … … 78 78 79 79 /// <summary> 80 /// Creates a new instance of <see cref="OrConstraintView"/> to represent the current81 /// instance visually.82 /// </summary>83 /// <returns>The created view as <see cref="OrConstraintView"/>.</returns>84 public override IView CreateView() {85 return new OrConstraintView(this);86 }87 88 /// <summary>89 80 /// Clones the current instance (deep clone). 90 81 /// </summary> -
trunk/sources/HeuristicLab.Constraints/3.3/OrConstraintView.cs
r1529 r2520 29 29 using HeuristicLab.Core; 30 30 using HeuristicLab.Data; 31 using HeuristicLab.Core.Views; 32 using HeuristicLab.MainForm; 31 33 32 34 namespace HeuristicLab.Constraints { … … 34 36 /// Visual representation of an <see cref="OrConstraint"/>. 35 37 /// </summary> 38 [Content(typeof(OrConstraint), true)] 36 39 public partial class OrConstraintView : ViewBase { 37 40 private OrConstraint OrConstraint { -
trunk/sources/HeuristicLab.Constraints/3.3/SubOperatorsTypeConstraint.cs
r1823 r2520 142 142 return clone; 143 143 } 144 145 /// <summary>146 /// Creates a new instance of <see cref="SubOperatorsTypeConstraintView"/> to represent the current147 /// instance visually.148 /// </summary>149 /// <returns>The created view as <see cref="SubOperatorsTypeConstraintView"/>.</returns>150 public override IView CreateView() {151 return new SubOperatorsTypeConstraintView(this);152 }153 144 } 154 145 } -
trunk/sources/HeuristicLab.Constraints/3.3/SubOperatorsTypeConstraintView.cs
r1529 r2520 28 28 using System.Windows.Forms; 29 29 using HeuristicLab.Core; 30 using HeuristicLab.Core.Views; 31 using HeuristicLab.MainForm; 30 32 31 33 namespace HeuristicLab.Constraints { … … 33 35 /// The visual representation of a <see cref="SubOperatorTypeConstraint"/>. 34 36 /// </summary> 37 [Content(typeof(SubOperatorTypeConstraint), true)] 35 38 public partial class SubOperatorsTypeConstraintView : ViewBase { 36 39 private SubOperatorTypeConstraint constraint; -
trunk/sources/HeuristicLab.Constraints/3.3/VariableComparisonConstraint.cs
r1823 r2520 122 122 123 123 /// <summary> 124 /// Creates a new instance of <see cref="VariableComparisonConstraintView"/> to represent the current125 /// instance visually.126 /// </summary>127 /// <returns>The created view as <see cref="VariableComparisonConstraintView"/>.</returns>128 public override IView CreateView() {129 return new VariableComparisonConstraintView(this);130 }131 132 /// <summary>133 124 /// Clones the current instance (deep clone). 134 125 /// </summary> -
trunk/sources/HeuristicLab.Constraints/3.3/VariableComparisonConstraintView.cs
r1529 r2520 29 29 using HeuristicLab.Core; 30 30 using HeuristicLab.Data; 31 using HeuristicLab.Core.Views; 32 using HeuristicLab.MainForm; 31 33 32 34 namespace HeuristicLab.Constraints { … … 34 36 /// Visual representation of a <see cref="VariableComparisonConstraint"/>. 35 37 /// </summary> 38 [Content(typeof(VariableComparisonConstraint), true)] 36 39 public partial class VariableComparisonConstraintView : ViewBase { 37 40 /// <summary> … … 138 141 VariableComparisonConstraint.Comparer.Data = 2; 139 142 } else if (((RadioButton)sender).Checked) { 140 Auxiliary.ShowErrorMessageBox("Unknown radio button selected: " + ((RadioButton)sender).Name.ToString());143 HeuristicLab.Core.Views.Auxiliary.ShowErrorMessageBox("Unknown radio button selected: " + ((RadioButton)sender).Name.ToString()); 141 144 } 142 145 }
Note: See TracChangeset
for help on using the changeset viewer.