Changeset 2520 for trunk/sources/HeuristicLab.Core.Views/3.3
- Timestamp:
- 11/23/09 11:08:34 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Core.Views/3.3
- Files:
-
- 3 edited
- 2 copied
- 55 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3
- Property svn:ignore
-
old new 1 1 bin 2 2 obj 3 *.user
-
- Property svn:ignore
-
trunk/sources/HeuristicLab.Core.Views/3.3/Auxiliary.cs
r2515 r2520 25 25 using System.Windows.Forms; 26 26 27 namespace HeuristicLab.Core {27 namespace HeuristicLab.Core.Views { 28 28 /// <summary> 29 29 /// Static helper class. -
trunk/sources/HeuristicLab.Core.Views/3.3/ChooseItemDialog.Designer.cs
r2515 r2520 20 20 #endregion 21 21 22 namespace HeuristicLab.Core {22 namespace HeuristicLab.Core.Views { 23 23 partial class ChooseItemDialog { 24 24 /// <summary> -
trunk/sources/HeuristicLab.Core.Views/3.3/ChooseItemDialog.cs
r2515 r2520 30 30 using HeuristicLab.PluginInfrastructure; 31 31 32 namespace HeuristicLab.Core {32 namespace HeuristicLab.Core.Views { 33 33 /// <summary> 34 34 /// A dialog to select an item. -
trunk/sources/HeuristicLab.Core.Views/3.3/ChooseOperatorDialog.Designer.cs
r2515 r2520 20 20 #endregion 21 21 22 namespace HeuristicLab.Core {22 namespace HeuristicLab.Core.Views { 23 23 partial class ChooseOperatorDialog { 24 24 /// <summary> -
trunk/sources/HeuristicLab.Core.Views/3.3/ChooseOperatorDialog.cs
r2515 r2520 30 30 using HeuristicLab.PluginInfrastructure; 31 31 32 namespace HeuristicLab.Core {32 namespace HeuristicLab.Core.Views { 33 33 /// <summary> 34 34 /// A dialog to select an operator out of a library. -
trunk/sources/HeuristicLab.Core.Views/3.3/ChooseTypeDialog.Designer.cs
r2515 r2520 20 20 #endregion 21 21 22 namespace HeuristicLab.Core {22 namespace HeuristicLab.Core.Views { 23 23 partial class ChooseTypeDialog { 24 24 /// <summary> -
trunk/sources/HeuristicLab.Core.Views/3.3/ChooseTypeDialog.cs
r2515 r2520 30 30 using HeuristicLab.PluginInfrastructure; 31 31 32 namespace HeuristicLab.Core {32 namespace HeuristicLab.Core.Views { 33 33 /// <summary> 34 34 /// A dialog to select a specific type. -
trunk/sources/HeuristicLab.Core.Views/3.3/ConstrainedItemBaseView.Designer.cs
r2515 r2520 23 23 using System.Windows.Forms; 24 24 25 namespace HeuristicLab.Core {25 namespace HeuristicLab.Core.Views { 26 26 partial class ConstrainedItemBaseView { 27 27 /// <summary> -
trunk/sources/HeuristicLab.Core.Views/3.3/ConstrainedItemBaseView.cs
r2515 r2520 28 28 using System.Windows.Forms; 29 29 using HeuristicLab.Common; 30 using HeuristicLab.MainForm; 30 31 31 namespace HeuristicLab.Core {32 namespace HeuristicLab.Core.Views { 32 33 /// <summary> 33 34 /// The visual representation of an <see cref="IConstrainedItem"/>. 34 35 /// </summary> 36 [Content(typeof(ConstrainedItemBase), true)] 35 37 public partial class ConstrainedItemBaseView : ViewBase { 36 38 private ChooseItemDialog chooseItemDialog; … … 120 122 if (constraintsListView.SelectedItems.Count == 1) { 121 123 IConstraint constraint = (IConstraint)constraintsListView.SelectedItems[0].Tag; 122 Control view = (Control) constraint.CreateView();124 Control view = (Control)MainFormManager.CreateDefaultView(constraint); 123 125 if (view != null) { 124 126 constraintDetailsGroupBox.Controls.Add(view); -
trunk/sources/HeuristicLab.Core.Views/3.3/EditorBase.Designer.cs
r2515 r2520 20 20 #endregion 21 21 22 namespace HeuristicLab.Core {22 namespace HeuristicLab.Core.Views { 23 23 partial class EditorBase { 24 24 /// <summary> -
trunk/sources/HeuristicLab.Core.Views/3.3/EditorBase.cs
r2515 r2520 29 29 using System.Windows.Forms; 30 30 31 namespace HeuristicLab.Core {31 namespace HeuristicLab.Core.Views { 32 32 /// <summary> 33 33 /// Base class for views that can load and save data. -
trunk/sources/HeuristicLab.Core.Views/3.3/EngineBaseEditor.Designer.cs
r2515 r2520 20 20 #endregion 21 21 22 namespace HeuristicLab.Core {22 namespace HeuristicLab.Core.Views { 23 23 partial class EngineBaseEditor { 24 24 /// <summary> … … 49 49 this.splitContainer1 = new System.Windows.Forms.SplitContainer(); 50 50 this.operatorGraphGroupBox = new System.Windows.Forms.GroupBox(); 51 this.operatorGraphView = new HeuristicLab.Core. OperatorGraphView();51 this.operatorGraphView = new HeuristicLab.Core.Views.OperatorGraphView(); 52 52 this.globalScopeGroupBox = new System.Windows.Forms.GroupBox(); 53 this.scopeView = new HeuristicLab.Core. ScopeView();53 this.scopeView = new HeuristicLab.Core.Views.ScopeView(); 54 54 this.resetButton = new System.Windows.Forms.Button(); 55 55 this.abortButton = new System.Windows.Forms.Button(); … … 208 208 protected System.Windows.Forms.Button abortButton; 209 209 protected System.Windows.Forms.Button executeButton; 210 protected HeuristicLab.Core. OperatorGraphView operatorGraphView;211 protected HeuristicLab.Core. ScopeView scopeView;210 protected HeuristicLab.Core.Views.OperatorGraphView operatorGraphView; 211 protected HeuristicLab.Core.Views.ScopeView scopeView; 212 212 213 213 } -
trunk/sources/HeuristicLab.Core.Views/3.3/EngineBaseEditor.cs
r2515 r2520 29 29 using HeuristicLab.Core; 30 30 using HeuristicLab.Common; 31 using HeuristicLab.MainForm; 31 32 32 namespace HeuristicLab.Core {33 namespace HeuristicLab.Core.Views { 33 34 /// <summary> 34 35 /// Base class for editors of engines. 35 36 /// </summary> 37 [Content(typeof(EngineBase), true)] 36 38 public partial class EngineBaseEditor : EditorBase { 37 39 private int executionTimeCounter; -
trunk/sources/HeuristicLab.Core.Views/3.3/HeuristicLab.Core.Views-3.3.csproj
r2511 r2520 39 39 <RequiredTargetFramework>3.5</RequiredTargetFramework> 40 40 </Reference> 41 <Reference Include="System.Drawing" /> 42 <Reference Include="System.Windows.Forms" /> 41 43 <Reference Include="System.Xml.Linq"> 42 44 <RequiredTargetFramework>3.5</RequiredTargetFramework> … … 49 51 </ItemGroup> 50 52 <ItemGroup> 53 <Compile Include="Auxiliary.cs" /> 54 <Compile Include="ChooseItemDialog.cs"> 55 <SubType>Form</SubType> 56 </Compile> 57 <Compile Include="ChooseItemDialog.Designer.cs"> 58 <DependentUpon>ChooseItemDialog.cs</DependentUpon> 59 </Compile> 60 <Compile Include="ChooseOperatorDialog.cs"> 61 <SubType>Form</SubType> 62 </Compile> 63 <Compile Include="ChooseOperatorDialog.Designer.cs"> 64 <DependentUpon>ChooseOperatorDialog.cs</DependentUpon> 65 </Compile> 66 <Compile Include="ChooseTypeDialog.cs"> 67 <SubType>Form</SubType> 68 </Compile> 69 <Compile Include="ChooseTypeDialog.Designer.cs"> 70 <DependentUpon>ChooseTypeDialog.cs</DependentUpon> 71 </Compile> 72 <Compile Include="ConstrainedItemBaseView.cs"> 73 <SubType>UserControl</SubType> 74 </Compile> 75 <Compile Include="ConstrainedItemBaseView.Designer.cs"> 76 <DependentUpon>ConstrainedItemBaseView.cs</DependentUpon> 77 </Compile> 78 <Compile Include="EditorBase.cs"> 79 <SubType>UserControl</SubType> 80 </Compile> 81 <Compile Include="EditorBase.Designer.cs"> 82 <DependentUpon>EditorBase.cs</DependentUpon> 83 </Compile> 84 <Compile Include="EngineBaseEditor.cs"> 85 <SubType>UserControl</SubType> 86 </Compile> 87 <Compile Include="EngineBaseEditor.Designer.cs"> 88 <DependentUpon>EngineBaseEditor.cs</DependentUpon> 89 </Compile> 51 90 <Compile Include="HeuristicLabCoreViewsPlugin.cs" /> 91 <Compile Include="IEditor.cs" /> 92 <Compile Include="ItemBaseView.cs"> 93 <SubType>UserControl</SubType> 94 </Compile> 95 <Compile Include="ItemBaseView.Designer.cs"> 96 <DependentUpon>ItemBaseView.cs</DependentUpon> 97 </Compile> 98 <Compile Include="IView.cs" /> 99 <Compile Include="OperatorBaseDescriptionView.cs"> 100 <SubType>UserControl</SubType> 101 </Compile> 102 <Compile Include="OperatorBaseDescriptionView.Designer.cs"> 103 <DependentUpon>OperatorBaseDescriptionView.cs</DependentUpon> 104 </Compile> 105 <Compile Include="OperatorBaseVariableInfosView.cs"> 106 <SubType>UserControl</SubType> 107 </Compile> 108 <Compile Include="OperatorBaseVariableInfosView.Designer.cs"> 109 <DependentUpon>OperatorBaseVariableInfosView.cs</DependentUpon> 110 </Compile> 111 <Compile Include="OperatorBaseVariablesView.cs"> 112 <SubType>UserControl</SubType> 113 </Compile> 114 <Compile Include="OperatorBaseVariablesView.Designer.cs"> 115 <DependentUpon>OperatorBaseVariablesView.cs</DependentUpon> 116 </Compile> 117 <Compile Include="OperatorBaseView.cs"> 118 <SubType>UserControl</SubType> 119 </Compile> 120 <Compile Include="OperatorBaseView.Designer.cs"> 121 <DependentUpon>OperatorBaseView.cs</DependentUpon> 122 </Compile> 123 <Compile Include="OperatorGraphView.cs"> 124 <SubType>UserControl</SubType> 125 </Compile> 126 <Compile Include="OperatorGraphView.Designer.cs"> 127 <DependentUpon>OperatorGraphView.cs</DependentUpon> 128 </Compile> 129 <Compile Include="OperatorLibraryEditor.cs"> 130 <SubType>UserControl</SubType> 131 </Compile> 132 <Compile Include="OperatorLibraryEditor.Designer.cs"> 133 <DependentUpon>OperatorLibraryEditor.cs</DependentUpon> 134 </Compile> 52 135 <Compile Include="Properties\AssemblyInfo.cs" /> 136 <Compile Include="ScopeView.cs"> 137 <SubType>UserControl</SubType> 138 </Compile> 139 <Compile Include="ScopeView.Designer.cs"> 140 <DependentUpon>ScopeView.cs</DependentUpon> 141 </Compile> 142 <Compile Include="VariableInfoView.cs"> 143 <SubType>UserControl</SubType> 144 </Compile> 145 <Compile Include="VariableInfoView.Designer.cs"> 146 <DependentUpon>VariableInfoView.cs</DependentUpon> 147 </Compile> 148 <Compile Include="VariablesScopeView.cs"> 149 <SubType>UserControl</SubType> 150 </Compile> 151 <Compile Include="VariablesScopeView.Designer.cs"> 152 <DependentUpon>VariablesScopeView.cs</DependentUpon> 153 </Compile> 154 <Compile Include="VariableView.cs"> 155 <SubType>UserControl</SubType> 156 </Compile> 157 <Compile Include="VariableView.Designer.cs"> 158 <DependentUpon>VariableView.cs</DependentUpon> 159 </Compile> 160 <Compile Include="ViewBase.cs"> 161 <SubType>UserControl</SubType> 162 </Compile> 163 <Compile Include="ViewBase.Designer.cs"> 164 <DependentUpon>ViewBase.cs</DependentUpon> 165 </Compile> 53 166 </ItemGroup> 54 167 <ItemGroup> … … 57 170 </ItemGroup> 58 171 <ItemGroup> 172 <ProjectReference Include="..\..\HeuristicLab.Common.Resources\3.2\HeuristicLab.Common.Resources-3.2.csproj"> 173 <Project>{0E27A536-1C4A-4624-A65E-DC4F4F23E3E1}</Project> 174 <Name>HeuristicLab.Common.Resources-3.2</Name> 175 </ProjectReference> 176 <ProjectReference Include="..\..\HeuristicLab.Common\3.2\HeuristicLab.Common-3.2.csproj"> 177 <Project>{1FC004FC-59AF-4249-B1B6-FF25873A20E4}</Project> 178 <Name>HeuristicLab.Common-3.2</Name> 179 </ProjectReference> 180 <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj"> 181 <Project>{C36BD924-A541-4A00-AFA8-41701378DDC5}</Project> 182 <Name>HeuristicLab.Core-3.3</Name> 183 </ProjectReference> 184 <ProjectReference Include="..\..\HeuristicLab.MainForm.WindowsForms\3.2\HeuristicLab.MainForm.WindowsForms-3.2.csproj"> 185 <Project>{AB687BBE-1BFE-476B-906D-44237135431D}</Project> 186 <Name>HeuristicLab.MainForm.WindowsForms-3.2</Name> 187 </ProjectReference> 188 <ProjectReference Include="..\..\HeuristicLab.MainForm\3.2\HeuristicLab.MainForm-3.2.csproj"> 189 <Project>{3BD61258-31DA-4B09-89C0-4F71FEF5F05A}</Project> 190 <Name>HeuristicLab.MainForm-3.2</Name> 191 </ProjectReference> 59 192 <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\HeuristicLab.PluginInfrastructure.csproj"> 60 193 <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project> 61 194 <Name>HeuristicLab.PluginInfrastructure</Name> 62 195 </ProjectReference> 196 </ItemGroup> 197 <ItemGroup> 198 <Content Include="Resources\CombinedOperator.bmp" /> 199 <Content Include="Resources\HeuristicLab.ico" /> 200 <Content Include="Resources\Operator.bmp" /> 201 <Content Include="Resources\ProgrammableOperator.bmp" /> 202 </ItemGroup> 203 <ItemGroup> 204 <EmbeddedResource Include="ChooseItemDialog.resx"> 205 <DependentUpon>ChooseItemDialog.cs</DependentUpon> 206 </EmbeddedResource> 207 <EmbeddedResource Include="ChooseOperatorDialog.resx"> 208 <DependentUpon>ChooseOperatorDialog.cs</DependentUpon> 209 </EmbeddedResource> 210 <EmbeddedResource Include="ChooseTypeDialog.resx"> 211 <DependentUpon>ChooseTypeDialog.cs</DependentUpon> 212 </EmbeddedResource> 213 <EmbeddedResource Include="ConstrainedItemBaseView.resx"> 214 <DependentUpon>ConstrainedItemBaseView.cs</DependentUpon> 215 </EmbeddedResource> 216 <EmbeddedResource Include="EditorBase.resx"> 217 <DependentUpon>EditorBase.cs</DependentUpon> 218 </EmbeddedResource> 219 <EmbeddedResource Include="EngineBaseEditor.resx"> 220 <DependentUpon>EngineBaseEditor.cs</DependentUpon> 221 </EmbeddedResource> 222 <EmbeddedResource Include="ItemBaseView.resx"> 223 <DependentUpon>ItemBaseView.cs</DependentUpon> 224 </EmbeddedResource> 225 <EmbeddedResource Include="OperatorBaseDescriptionView.resx"> 226 <DependentUpon>OperatorBaseDescriptionView.cs</DependentUpon> 227 </EmbeddedResource> 228 <EmbeddedResource Include="OperatorBaseVariableInfosView.resx"> 229 <DependentUpon>OperatorBaseVariableInfosView.cs</DependentUpon> 230 </EmbeddedResource> 231 <EmbeddedResource Include="OperatorBaseVariablesView.resx"> 232 <DependentUpon>OperatorBaseVariablesView.cs</DependentUpon> 233 </EmbeddedResource> 234 <EmbeddedResource Include="OperatorBaseView.resx"> 235 <DependentUpon>OperatorBaseView.cs</DependentUpon> 236 </EmbeddedResource> 237 <EmbeddedResource Include="OperatorGraphView.resx"> 238 <DependentUpon>OperatorGraphView.cs</DependentUpon> 239 </EmbeddedResource> 240 <EmbeddedResource Include="OperatorLibraryEditor.resx"> 241 <DependentUpon>OperatorLibraryEditor.cs</DependentUpon> 242 </EmbeddedResource> 243 <EmbeddedResource Include="ScopeView.resx"> 244 <DependentUpon>ScopeView.cs</DependentUpon> 245 </EmbeddedResource> 246 <EmbeddedResource Include="VariableInfoView.resx"> 247 <DependentUpon>VariableInfoView.cs</DependentUpon> 248 </EmbeddedResource> 249 <EmbeddedResource Include="VariablesScopeView.resx"> 250 <DependentUpon>VariablesScopeView.cs</DependentUpon> 251 </EmbeddedResource> 252 <EmbeddedResource Include="VariableView.resx"> 253 <DependentUpon>VariableView.cs</DependentUpon> 254 </EmbeddedResource> 63 255 </ItemGroup> 64 256 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> -
trunk/sources/HeuristicLab.Core.Views/3.3/HeuristicLabCoreViewsPlugin.cs
r2511 r2520 25 25 using HeuristicLab.PluginInfrastructure; 26 26 27 namespace HeuristicLab.Core {27 namespace HeuristicLab.Core.Views { 28 28 /// <summary> 29 29 /// Plugin class for HeuristicLab.Core.Views plugin. … … 32 32 [PluginFile(Filename = "HeuristicLab.Core.Views-3.3.dll", Filetype = PluginFileType.Assembly)] 33 33 [Dependency(Dependency = "HeuristicLab.Common-3.2")] 34 [Dependency(Dependency = "HeuristicLab.Persistence-3.3")] 34 [Dependency(Dependency = "HeuristicLab.Common.Resources-3.2")] 35 [Dependency(Dependency = "HeuristicLab.Core-3.3")] 36 [Dependency(Dependency = "HeuristicLab.MainForm-3.2")] 37 [Dependency(Dependency = "HeuristicLab.MainForm.WindowsForms-3.2")] 35 38 public class HeuristicLabCoreViewsPlugin : PluginBase { 36 39 } -
trunk/sources/HeuristicLab.Core.Views/3.3/IEditor.cs
r2515 r2520 24 24 using System.Text; 25 25 26 namespace HeuristicLab.Core {26 namespace HeuristicLab.Core.Views { 27 27 /// <summary> 28 28 /// Interface to represent an editor. -
trunk/sources/HeuristicLab.Core.Views/3.3/IView.cs
r2515 r2520 25 25 using HeuristicLab.PluginInfrastructure; 26 26 27 namespace HeuristicLab.Core {27 namespace HeuristicLab.Core.Views { 28 28 /// <summary> 29 29 /// An interface for all kinds visual representations of items (objects, operators...). 30 30 /// </summary> 31 public interface IView : IControl 31 public interface IView : IControl, HeuristicLab.MainForm.IView{ 32 32 /// <summary> 33 33 /// Gets the current item instance. 34 34 /// </summary> 35 35 IItem Item { get; } 36 /// <summary>37 /// Gets or sets the caption of the current instance.38 /// </summary>39 string Caption { get; set; }40 36 41 37 /// <summary> … … 43 39 /// </summary> 44 40 event EventHandler ItemChanged; 45 /// <summary>46 /// Occurs when the caption was changed.47 /// </summary>48 event EventHandler CaptionChanged;49 41 } 50 42 } -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemBaseView.Designer.cs
r2515 r2520 20 20 #endregion 21 21 22 namespace HeuristicLab.Core {22 namespace HeuristicLab.Core.Views { 23 23 partial class ItemBaseView { 24 24 /// <summary> -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemBaseView.cs
r2515 r2520 27 27 using System.Text; 28 28 using System.Windows.Forms; 29 using HeuristicLab.MainForm; 29 30 30 namespace HeuristicLab.Core {31 namespace HeuristicLab.Core.Views { 31 32 /// <summary> 32 33 /// The base class for visual representations of items. 33 34 /// </summary> 35 [Content(typeof(ItemBase), true)] 34 36 public partial class ItemBaseView : ViewBase { 35 37 /// <summary> -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorBaseDescriptionView.Designer.cs
r2515 r2520 23 23 using System.Windows.Forms; 24 24 25 namespace HeuristicLab.Core {25 namespace HeuristicLab.Core.Views { 26 26 partial class OperatorBaseDescriptionView { 27 27 /// <summary> -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorBaseDescriptionView.cs
r2515 r2520 28 28 using System.Windows.Forms; 29 29 30 namespace HeuristicLab.Core {30 namespace HeuristicLab.Core.Views { 31 31 /// <summary> 32 32 /// The visual representation of the description of operators. -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorBaseVariableInfosView.Designer.cs
r2515 r2520 23 23 using System.Windows.Forms; 24 24 25 namespace HeuristicLab.Core {25 namespace HeuristicLab.Core.Views { 26 26 partial class OperatorBaseVariableInfosView { 27 27 /// <summary> -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorBaseVariableInfosView.cs
r2515 r2520 28 28 using System.Windows.Forms; 29 29 using HeuristicLab.Common; 30 using HeuristicLab.MainForm; 30 31 31 namespace HeuristicLab.Core {32 namespace HeuristicLab.Core.Views { 32 33 /// <summary> 33 34 /// The visual representation of the information of the variables of an operator. … … 131 132 if (variableInfosListView.SelectedItems.Count == 1) { 132 133 IVariableInfo variableInfo = (IVariableInfo)variableInfosListView.SelectedItems[0].Tag; 133 Control control = (Control) variableInfo.CreateView();134 Control control = (Control)MainFormManager.CreateDefaultView(variableInfo); 134 135 variableInfoDetailsGroupBox.Controls.Add(control); 135 136 control.Dock = DockStyle.Fill; -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorBaseVariablesView.Designer.cs
r2515 r2520 23 23 using System.Windows.Forms; 24 24 25 namespace HeuristicLab.Core {25 namespace HeuristicLab.Core.Views { 26 26 partial class OperatorBaseVariablesView { 27 27 /// <summary> -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorBaseVariablesView.cs
r2515 r2520 28 28 using System.Windows.Forms; 29 29 using HeuristicLab.Common; 30 31 namespace HeuristicLab.Core { 30 using HeuristicLab.MainForm; 31 32 namespace HeuristicLab.Core.Views { 32 33 /// <summary> 33 34 /// The visual representation of the variables of an operator. … … 126 127 if (variablesListView.SelectedItems.Count == 1) { 127 128 IVariable variable = (IVariable)variablesListView.SelectedItems[0].Tag; 128 Control editor = (Control) variable.CreateView();129 Control editor = (Control)MainFormManager.CreateDefaultView(variable); 129 130 variableDetailsGroupBox.Controls.Add(editor); 130 131 editor.Dock = DockStyle.Fill; -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorBaseView.Designer.cs
r2515 r2520 23 23 using System.Windows.Forms; 24 24 25 namespace HeuristicLab.Core {25 namespace HeuristicLab.Core.Views { 26 26 partial class OperatorBaseView { 27 27 /// <summary> … … 50 50 this.tabControl = new System.Windows.Forms.TabControl(); 51 51 this.variableInfosTabPage = new System.Windows.Forms.TabPage(); 52 this.operatorBaseVariableInfosView = new HeuristicLab.Core. OperatorBaseVariableInfosView();52 this.operatorBaseVariableInfosView = new HeuristicLab.Core.Views.OperatorBaseVariableInfosView(); 53 53 this.variablesTabPage = new System.Windows.Forms.TabPage(); 54 this.operatorBaseVariablesView = new HeuristicLab.Core. OperatorBaseVariablesView();54 this.operatorBaseVariablesView = new HeuristicLab.Core.Views.OperatorBaseVariablesView(); 55 55 this.constraintsTabPage = new System.Windows.Forms.TabPage(); 56 this.constrainedItemBaseView = new HeuristicLab.Core. ConstrainedItemBaseView();56 this.constrainedItemBaseView = new HeuristicLab.Core.Views.ConstrainedItemBaseView(); 57 57 this.descriptionTabPage = new System.Windows.Forms.TabPage(); 58 this.operatorBaseDescriptionView = new HeuristicLab.Core. OperatorBaseDescriptionView();58 this.operatorBaseDescriptionView = new HeuristicLab.Core.Views.OperatorBaseDescriptionView(); 59 59 this.tabControl.SuspendLayout(); 60 60 this.variableInfosTabPage.SuspendLayout(); -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorBaseView.cs
r2515 r2520 27 27 using System.Text; 28 28 using System.Windows.Forms; 29 using HeuristicLab.MainForm; 29 30 30 namespace HeuristicLab.Core {31 namespace HeuristicLab.Core.Views { 31 32 /// <summary> 32 33 /// The base class for visual representation of operators (contains description view, variable view, 33 34 /// variable info view,...). 34 35 /// </summary> 36 [Content(typeof(OperatorBase), true)] 35 37 public partial class OperatorBaseView : ViewBase { 36 38 /// <summary> -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorGraphView.Designer.cs
r2515 r2520 20 20 #endregion 21 21 22 namespace HeuristicLab.Core {22 namespace HeuristicLab.Core.Views { 23 23 partial class OperatorGraphView { 24 24 /// <summary> -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorGraphView.cs
r2515 r2520 29 29 using HeuristicLab.PluginInfrastructure; 30 30 using HeuristicLab.Common; 31 32 namespace HeuristicLab.Core { 31 using HeuristicLab.MainForm; 32 33 namespace HeuristicLab.Core.Views { 33 34 /// <summary> 34 35 /// The visual representation of an <see cref="IOperatorGraph"/>. 35 36 /// </summary> 37 [Content(typeof(OperatorGraph), true)] 36 38 public partial class OperatorGraphView : ViewBase { 37 39 private ChooseOperatorDialog chooseOperatorDialog; … … 182 184 if (operatorsListView.SelectedItems.Count == 1) { 183 185 IOperator op = (IOperator)operatorsListView.SelectedItems[0].Tag; 184 IView view = op.CreateView();186 IView view = (IView)MainFormManager.CreateDefaultView(op); 185 187 if (view != null) 186 188 PluginManager.ControlManager.ShowControl(view); … … 398 400 if (operatorsListView.SelectedItems.Count == 1) { 399 401 IOperator op = (IOperator)operatorsListView.SelectedItems[0].Tag; 400 IView view = op.CreateView();402 IView view = (IView)MainFormManager.CreateDefaultView(op); 401 403 if (view != null) { 402 404 viewToolStripMenuItem.Enabled = true; … … 430 432 if (graphTreeView.SelectedNode != null) { 431 433 IOperator op = (IOperator)graphTreeView.SelectedNode.Tag; 432 IView view = op.CreateView();434 IView view = (IView)MainFormManager.CreateDefaultView(op); 433 435 if (view != null) { 434 436 viewToolStripMenuItem1.Enabled = true; -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorLibraryEditor.Designer.cs
r2515 r2520 20 20 #endregion 21 21 22 namespace HeuristicLab.Core {22 namespace HeuristicLab.Core.Views { 23 23 partial class OperatorLibraryEditor { 24 24 /// <summary> -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorLibraryEditor.cs
r2515 r2520 29 29 using System.Windows.Forms; 30 30 using HeuristicLab.PluginInfrastructure; 31 32 namespace HeuristicLab.Core { 31 using HeuristicLab.MainForm; 32 33 namespace HeuristicLab.Core.Views { 33 34 /// <summary> 34 35 /// Visual representation of the class <see cref="IOperatorLibrary"/>. 35 36 /// </summary> 37 [Content(typeof(OperatorLibrary), true)] 36 38 public partial class OperatorLibraryEditor : EditorBase { 37 39 private ChooseOperatorDialog chooseOperatorDialog; … … 202 204 IOperator op = operatorsTreeView.SelectedNode.Tag as IOperator; 203 205 if (op != null) { 204 IView view = op.CreateView();206 IView view = (IView)MainFormManager.CreateDefaultView(op); 205 207 if (view != null) 206 208 PluginManager.ControlManager.ShowControl(view); … … 277 279 IOperator op = operatorsTreeView.SelectedNode.Tag as IOperator; 278 280 if (op != null) { 279 IView view = op.CreateView();281 IView view = (IView)MainFormManager.CreateDefaultView(op); 280 282 if (view != null) { 281 283 viewToolStripMenuItem.Enabled = true; -
trunk/sources/HeuristicLab.Core.Views/3.3/ScopeView.Designer.cs
r2515 r2520 20 20 #endregion 21 21 22 namespace HeuristicLab.Core {22 namespace HeuristicLab.Core.Views { 23 23 partial class ScopeView { 24 24 /// <summary> -
trunk/sources/HeuristicLab.Core.Views/3.3/ScopeView.cs
r2515 r2520 29 29 using HeuristicLab.PluginInfrastructure; 30 30 using HeuristicLab.Common; 31 32 namespace HeuristicLab.Core { 31 using HeuristicLab.MainForm; 32 33 namespace HeuristicLab.Core.Views { 33 34 /// <summary> 34 35 /// The visual represenation of <see cref="IScope"/>. 35 36 /// </summary> 37 [Content(typeof(Scope), true)] 36 38 public partial class ScopeView : ViewBase { 37 39 private Dictionary<IScope, TreeNode> scopeNodeTable; … … 203 205 private void showViewToolStripMenuItem_Click(object sender, EventArgs e) { 204 206 IItem item = (IItem)((ToolStripMenuItem)sender).Tag; 205 PluginManager.ControlManager.ShowControl( item.CreateView());207 PluginManager.ControlManager.ShowControl((IControl)MainFormManager.CreateDefaultView(item)); 206 208 } 207 209 #endregion -
trunk/sources/HeuristicLab.Core.Views/3.3/VariableInfoView.Designer.cs
r2515 r2520 20 20 #endregion 21 21 22 namespace HeuristicLab.Core {22 namespace HeuristicLab.Core.Views { 23 23 partial class VariableInfoView { 24 24 /// <summary> -
trunk/sources/HeuristicLab.Core.Views/3.3/VariableInfoView.cs
r2515 r2520 27 27 using System.Text; 28 28 using System.Windows.Forms; 29 using HeuristicLab.MainForm; 29 30 30 namespace HeuristicLab.Core {31 namespace HeuristicLab.Core.Views { 31 32 /// <summary> 32 33 /// The visual representation of <see cref="IVariableInfo"/>. 33 34 /// </summary> 35 [Content(typeof(VariableInfo), true)] 34 36 public partial class VariableInfoView : ViewBase { 35 37 /// <summary> -
trunk/sources/HeuristicLab.Core.Views/3.3/VariableView.Designer.cs
r2515 r2520 20 20 #endregion 21 21 22 namespace HeuristicLab.Core {22 namespace HeuristicLab.Core.Views { 23 23 partial class VariableView { 24 24 /// <summary> -
trunk/sources/HeuristicLab.Core.Views/3.3/VariableView.cs
r2515 r2520 27 27 using System.Text; 28 28 using System.Windows.Forms; 29 using HeuristicLab.MainForm; 29 30 30 namespace HeuristicLab.Core {31 namespace HeuristicLab.Core.Views { 31 32 /// <summary> 32 33 /// The visual representation of an <see cref="IVariable"/>. 33 34 /// </summary> 35 [Content(typeof(Variable), true)] 34 36 public partial class VariableView : ViewBase { 35 37 private ChooseItemDialog chooseItemDialog; … … 101 103 valueTextBox.Text = Variable.Value.GetType().FullName; 102 104 valueTextBox.Enabled = true; 103 Control editor = (Control) Variable.Value.CreateView();105 Control editor = (Control)MainFormManager.CreateDefaultView(Variable.Value); 104 106 if (editor != null) { 105 107 editorGroupBox.Controls.Add(editor); -
trunk/sources/HeuristicLab.Core.Views/3.3/VariablesScopeView.Designer.cs
r2515 r2520 23 23 using System.Windows.Forms; 24 24 25 namespace HeuristicLab.Core {25 namespace HeuristicLab.Core.Views { 26 26 partial class VariablesScopeView { 27 27 /// <summary> -
trunk/sources/HeuristicLab.Core.Views/3.3/VariablesScopeView.cs
r2515 r2520 28 28 using System.Windows.Forms; 29 29 using HeuristicLab.Common; 30 31 namespace HeuristicLab.Core { 30 using HeuristicLab.MainForm; 31 32 namespace HeuristicLab.Core.Views { 32 33 /// <summary> 33 34 /// The visual representation of all variables in a specified scope. 34 35 /// </summary> 36 [Content(typeof(Scope))] 35 37 public partial class VariablesScopeView : ViewBase { 36 38 private ChooseItemDialog chooseItemDialog; -
trunk/sources/HeuristicLab.Core.Views/3.3/ViewBase.Designer.cs
r2515 r2520 22 22 using System; 23 23 24 namespace HeuristicLab.Core {24 namespace HeuristicLab.Core.Views { 25 25 partial class ViewBase { 26 26 /// <summary> -
trunk/sources/HeuristicLab.Core.Views/3.3/ViewBase.cs
r2515 r2520 29 29 using System.Windows.Forms; 30 30 31 namespace HeuristicLab.Core {31 namespace HeuristicLab.Core.Views { 32 32 /// <summary> 33 33 /// Base class for all visual representations. 34 34 /// </summary> 35 public partial class ViewBase : UserControl, IView {35 public partial class ViewBase : HeuristicLab.MainForm.WindowsForms.ViewBase, IView { 36 36 private IItem myItem; 37 37 /// <summary>
Note: See TracChangeset
for help on using the changeset viewer.