Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/23/09 11:08:34 (15 years ago)
Author:
swagner
Message:

Implemented first draft of MainForm support in HeuristicLab.Core/HeuristicLab.Core.Views and all other depending plugins (#770)

Location:
trunk/sources/HeuristicLab.Operators/3.3
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Operators/3.3/AddVariableInfoDialog.cs

    r1530 r2520  
    2929using HeuristicLab.Core;
    3030using HeuristicLab.Data;
     31using HeuristicLab.Core.Views;
    3132
    3233namespace HeuristicLab.Operators {
  • trunk/sources/HeuristicLab.Operators/3.3/CombinedOperator.cs

    r1823 r2520  
    118118
    119119    /// <summary>
    120     /// Creates a new instance of <see cref="CombinedOperatorView"/> to display the current instance.
    121     /// </summary>
    122     /// <returns>The created view as <see cref="CombinedOperatorView"/>.</returns>
    123     public override IView CreateView() {
    124       return new CombinedOperatorView(this);
    125     }
    126 
    127     /// <summary>
    128120    /// Occurs when the description of the current instance has been changed.
    129121    /// </summary>
  • trunk/sources/HeuristicLab.Operators/3.3/CombinedOperatorView.Designer.cs

    r1530 r2520  
    4747      this.tabControl = new System.Windows.Forms.TabControl();
    4848      this.operatorGraphTabPage = new System.Windows.Forms.TabPage();
    49       this.operatorGraphView = new HeuristicLab.Core.OperatorGraphView();
     49      this.operatorGraphView = new HeuristicLab.Core.Views.OperatorGraphView();
    5050      this.variableInfosTabPage = new System.Windows.Forms.TabPage();
    51       this.operatorBaseVariableInfosView = new HeuristicLab.Core.OperatorBaseVariableInfosView();
     51      this.operatorBaseVariableInfosView = new HeuristicLab.Core.Views.OperatorBaseVariableInfosView();
    5252      this.variablesTabPage = new System.Windows.Forms.TabPage();
    53       this.operatorBaseVariablesView = new HeuristicLab.Core.OperatorBaseVariablesView();
     53      this.operatorBaseVariablesView = new HeuristicLab.Core.Views.OperatorBaseVariablesView();
    5454      this.constraintsTabPage = new System.Windows.Forms.TabPage();
    55       this.constrainedItemBaseView = new HeuristicLab.Core.ConstrainedItemBaseView();
     55      this.constrainedItemBaseView = new HeuristicLab.Core.Views.ConstrainedItemBaseView();
    5656      this.descriptionTabPage = new System.Windows.Forms.TabPage();
    5757      this.descriptionTextBox = new System.Windows.Forms.TextBox();
     
    242242    private System.Windows.Forms.TabPage descriptionTabPage;
    243243    private System.Windows.Forms.TextBox descriptionTextBox;
    244     private HeuristicLab.Core.OperatorGraphView operatorGraphView;
    245     private HeuristicLab.Core.OperatorBaseVariableInfosView operatorBaseVariableInfosView;
    246     private HeuristicLab.Core.OperatorBaseVariablesView operatorBaseVariablesView;
    247     private HeuristicLab.Core.ConstrainedItemBaseView constrainedItemBaseView;
     244    private HeuristicLab.Core.Views.OperatorGraphView operatorGraphView;
     245    private HeuristicLab.Core.Views.OperatorBaseVariableInfosView operatorBaseVariableInfosView;
     246    private HeuristicLab.Core.Views.OperatorBaseVariablesView operatorBaseVariablesView;
     247    private HeuristicLab.Core.Views.ConstrainedItemBaseView constrainedItemBaseView;
    248248    private System.Windows.Forms.Button removeVariableInfoButton;
    249249    private System.Windows.Forms.Button addVariableInfoButton;
  • trunk/sources/HeuristicLab.Operators/3.3/CombinedOperatorView.cs

    r1530 r2520  
    2828using System.Windows.Forms;
    2929using HeuristicLab.Core;
     30using HeuristicLab.Core.Views;
     31using HeuristicLab.MainForm;
    3032
    3133namespace HeuristicLab.Operators {
     
    3335  /// The visual representation of a <see cref="CombinedOperator"/>.
    3436  /// </summary>
     37  [Content(typeof(CombinedOperator), true)]
    3538  public partial class CombinedOperatorView : ViewBase {
    3639    /// <summary>
     
    116119      if (dialog.ShowDialog(this) == DialogResult.OK) {
    117120        if (CombinedOperator.GetVariableInfo(dialog.VariableInfo.FormalName) != null)
    118           Auxiliary.ShowErrorMessageBox("A variable info with the same formal name already exists.");
     121          HeuristicLab.Core.Views.Auxiliary.ShowErrorMessageBox("A variable info with the same formal name already exists.");
    119122        else
    120123          CombinedOperator.AddVariableInfo(dialog.VariableInfo);
  • trunk/sources/HeuristicLab.Operators/3.3/HeuristicLab.Operators-3.3.csproj

    r1673 r2520  
    143143      <Name>HeuristicLab.Constraints-3.3</Name>
    144144    </ProjectReference>
     145    <ProjectReference Include="..\..\HeuristicLab.Core.Views\3.3\HeuristicLab.Core.Views-3.3.csproj">
     146      <Project>{E226881D-315F-423D-B419-A766FE0D8685}</Project>
     147      <Name>HeuristicLab.Core.Views-3.3</Name>
     148    </ProjectReference>
    145149    <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj">
    146150      <Project>{C36BD924-A541-4A00-AFA8-41701378DDC5}</Project>
     
    150154      <Project>{BBAB9DF5-5EF3-4BA8-ADE9-B36E82114937}</Project>
    151155      <Name>HeuristicLab.Data-3.3</Name>
     156    </ProjectReference>
     157    <ProjectReference Include="..\..\HeuristicLab.MainForm.WindowsForms\3.2\HeuristicLab.MainForm.WindowsForms-3.2.csproj">
     158      <Project>{AB687BBE-1BFE-476B-906D-44237135431D}</Project>
     159      <Name>HeuristicLab.MainForm.WindowsForms-3.2</Name>
     160    </ProjectReference>
     161    <ProjectReference Include="..\..\HeuristicLab.MainForm\3.2\HeuristicLab.MainForm-3.2.csproj">
     162      <Project>{3BD61258-31DA-4B09-89C0-4F71FEF5F05A}</Project>
     163      <Name>HeuristicLab.MainForm-3.2</Name>
    152164    </ProjectReference>
    153165    <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj">
  • trunk/sources/HeuristicLab.Operators/3.3/HeuristicLabOperatorsPlugin.cs

    r1673 r2520  
    3333  [Dependency(Dependency = "HeuristicLab.Constraints-3.3")]
    3434  [Dependency(Dependency = "HeuristicLab.Core-3.3")]
     35  [Dependency(Dependency = "HeuristicLab.Core.Views-3.3")]
    3536  [Dependency(Dependency = "HeuristicLab.Data-3.3")]
     37  [Dependency(Dependency = "HeuristicLab.MainForm-3.2")]
     38  [Dependency(Dependency = "HeuristicLab.MainForm.WindowsForms-3.2")]
    3639  [Dependency(Dependency = "HeuristicLab.Persistence-3.3")] 
    3740  public class HeuristicLabOperatorsPlugin : PluginBase {
  • trunk/sources/HeuristicLab.Operators/3.3/VariableInjector.cs

    r1823 r2520  
    103103    }
    104104
    105     /// <summary>
    106     /// Creates a new instance of <see cref="VariableInjectorView"/> to display the current instance.
    107     /// </summary>
    108     /// <returns>The created view as <see cref="VariableInjectorView"/>.</returns>
    109     public override IView CreateView() {
    110       return new VariableInjectorView(this);
    111     }
    112 
    113105    [Storable]
    114106    private KeyValuePair<Dictionary<IVariableInfo, IVariable>, Dictionary<IVariable, IVariableInfo>> VariableMappingPersistence {
  • trunk/sources/HeuristicLab.Operators/3.3/VariableInjectorView.cs

    r1530 r2520  
    2828using System.Windows.Forms;
    2929using HeuristicLab.Core;
     30using HeuristicLab.Core.Views;
     31using HeuristicLab.MainForm;
    3032
    3133namespace HeuristicLab.Operators {
     
    3335  /// Visual representation of <see cref="VariableInjector"/>.
    3436  /// </summary>
     37  [Content(typeof(VariableInjector), true)]
    3538  public partial class VariableInjectorView : OperatorBaseView {
    3639    /// <summary>
Note: See TracChangeset for help on using the changeset viewer.