Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/09/10 17:28:32 (14 years ago)
Author:
gkronber
Message:

Added first version of architecture altering operators for ADFs. #290 (Implement ADFs)

Location:
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.3/GraphicalSymbolicExpressionTreeView.cs

    r3244 r3294  
    3131using HeuristicLab.MainForm;
    3232using HeuristicLab.MainForm.WindowsForms;
     33using HeuristicLab.Core.Views;
    3334
    3435namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views {
    3536  [View("Graphical SymbolicExpressionTree View")]
    3637  [Content(typeof(SymbolicExpressionTree), true)]
    37   public partial class GraphicalSymbolicExpressionTreeView : AsynchronousContentView {
     38  public partial class GraphicalSymbolicExpressionTreeView : ItemView {
    3839    public new SymbolicExpressionTree Content {
    3940      get { return (SymbolicExpressionTree)base.Content; }
     
    6061      }
    6162    }
    62    
    63     //private VisualFunctionTreeModel visualModel;
    64     //public VisualFunctionTreeModel VisualModel {
    65     //  get { return this.visualModel; }
    66     //  private set {
    67     //    if (value != this.visualModel) {
    68     //      if (this.visualModel != null)
    69     //        this.visualModel.Changed -= new EventHandler(model_Changed);
    70 
    71     //      if (value == null) {
    72     //        this.Caption = "Formula tree";
    73     //        this.functionTreeChart.FunctionTree = null;
    74     //      } else {
    75     //        value.Changed += new EventHandler(model_Changed);
    76     //        this.functionTreeChart.FunctionTree = value.FunctionTree;
    77     //        this.Caption = value.ModelName + " formula tree";
    78     //      }
    79     //      this.visualModel = value;
    80     //    }
    81     //  }
    82     //}
    83 
    84     private void functionTreeChart_FunctionTreeClicked(object sender, MouseEventArgs e) {
    85       VisualSymbolicExpressionTreeNode visualFunctionTreeNode = (VisualSymbolicExpressionTreeNode)sender;
    86       visualFunctionTreeNode.LineColor = Color.Red;
    87       this.symbolicExpressionTreeChart.Repaint();
    88     }
    89 
    90     private void functionTreeChart_FunctionTreeDoubleClicked(object sender, MouseEventArgs e) {
    91       VisualSymbolicExpressionTreeNode visualFunctionTreeNode = (VisualSymbolicExpressionTreeNode)sender;
    92       visualFunctionTreeNode.FillColor = Color.Blue;
    93       this.symbolicExpressionTreeChart.Repaint();
    94     }
    9563  }
    9664}
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.3/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views-3.3.csproj

    r3244 r3294  
    8989    </Compile>
    9090    <Compile Include="HeuristicLabEncodingsSymbolicExpressionTreeEncodingViewsPlugin.cs" />
     91    <Compile Include="PropertiesView.cs">
     92      <SubType>UserControl</SubType>
     93    </Compile>
     94    <Compile Include="PropertiesView.Designer.cs">
     95      <DependentUpon>PropertiesView.cs</DependentUpon>
     96    </Compile>
    9197    <Compile Include="Properties\AssemblyInfo.cs" />
    9298    <Compile Include="Properties\Resources.Designer.cs">
     
    110116  </ItemGroup>
    111117  <ItemGroup>
     118    <ProjectReference Include="..\..\HeuristicLab.Core.Views\3.3\HeuristicLab.Core.Views-3.3.csproj">
     119      <Project>{E226881D-315F-423D-B419-A766FE0D8685}</Project>
     120      <Name>HeuristicLab.Core.Views-3.3</Name>
     121    </ProjectReference>
    112122    <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj">
    113123      <Project>{C36BD924-A541-4A00-AFA8-41701378DDC5}</Project>
     
    140150      <DependentUpon>GraphicalSymbolicExpressionTreeView.cs</DependentUpon>
    141151    </EmbeddedResource>
     152    <EmbeddedResource Include="PropertiesView.resx">
     153      <DependentUpon>PropertiesView.cs</DependentUpon>
     154    </EmbeddedResource>
    142155    <EmbeddedResource Include="Properties\Resources.resx">
    143156      <Generator>ResXFileCodeGenerator</Generator>
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.3/SymbolicExpressionTreeChart.cs

    r3244 r3294  
    3030
    3131namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views {
    32   public partial class SymbolicExpressionTreeChart : UserControl {
     32  public sealed partial class SymbolicExpressionTreeChart : UserControl {
    3333    private StringFormat stringFormat;
    3434    private Dictionary<SymbolicExpressionTreeNode, VisualSymbolicExpressionTreeNode> visualTreeNodes;
Note: See TracChangeset for help on using the changeset viewer.