Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/24/22 20:33:45 (2 years ago)
Author:
gkronber
Message:

#3136: reintegrated structure-template GP branch into trunk

Location:
trunk
Files:
1 added
5 edited
3 copied

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/HeuristicLab.Problems.DataAnalysis.Symbolic.Views

  • trunk/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/GraphicalSymbolicDataAnalysisModelView.cs

    r17180 r18220  
    2020#endregion
    2121
     22using System.Drawing;
    2223using System.Windows.Forms;
    2324using HeuristicLab.MainForm;
     
    4041    protected override void OnContentChanged() {
    4142      base.OnContentChanged();
    42       symbolicExpressionTreeView.Content = null;
    43       if (Content != null)
    44         symbolicExpressionTreeView.Content = Content.SymbolicExpressionTree;
     43      symbolicExpressionTreeChart.Tree = null;
     44      if (Content != null) {
     45        symbolicExpressionTreeChart.Tree = Content.SymbolicExpressionTree;
     46        RepaintNodes();
     47      }
     48    }
     49
     50    protected void RepaintNodes() {
     51      var tree = symbolicExpressionTreeChart.Tree;
     52      if (tree != null) {
     53        foreach (var n in tree.IterateNodesPrefix()) {
     54          if (n.Symbol is SubFunctionSymbol) {
     55            var visualNode = symbolicExpressionTreeChart.GetVisualSymbolicExpressionTreeNode(n);
     56            visualNode.FillColor = Color.LightCyan;
     57            visualNode.LineColor = Color.SlateGray;
     58          }
     59        }
     60        symbolicExpressionTreeChart.RepaintNodes();
     61      }
    4562    }
    4663  }
  • trunk/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/GraphicalSymbolicDataAnalysisModelView.designer.cs

    r17180 r18220  
    1919 */
    2020#endregion
     21
     22using System.Drawing;
    2123
    2224namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Views {
     
    4547    /// </summary>
    4648    private void InitializeComponent() {
    47       this.symbolicExpressionTreeView = new HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views.GraphicalSymbolicExpressionTreeView();
     49      this.symbolicExpressionTreeChart = new HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views.SymbolicExpressionTreeChart();
    4850      this.SuspendLayout();
    4951      //
    5052      // expressionTreeView
    5153      //
    52       this.symbolicExpressionTreeView.AllowDrop = true;
    53       this.symbolicExpressionTreeView.Caption = "Graphical SymbolicExpressionTree View";
    54       this.symbolicExpressionTreeView.Content = null;
    55       this.symbolicExpressionTreeView.Dock = System.Windows.Forms.DockStyle.Fill;
    56       this.symbolicExpressionTreeView.Location = new System.Drawing.Point(0, 0);
    57       this.symbolicExpressionTreeView.Name = "expressionTreeView";
    58       this.symbolicExpressionTreeView.ReadOnly = false;
    59       this.symbolicExpressionTreeView.Size = new System.Drawing.Size(352, 413);
    60       this.symbolicExpressionTreeView.TabIndex = 0;
     54      this.symbolicExpressionTreeChart.AllowDrop = true;
     55      this.symbolicExpressionTreeChart.Tree = null;
     56      this.symbolicExpressionTreeChart.TextFont = new System.Drawing.Font(FontFamily.GenericSerif, 8F);
     57      this.symbolicExpressionTreeChart.Dock = System.Windows.Forms.DockStyle.Fill;
     58      this.symbolicExpressionTreeChart.Location = new System.Drawing.Point(0, 0);
     59      this.symbolicExpressionTreeChart.Name = "expressionTreeChart";
     60      this.symbolicExpressionTreeChart.Size = new System.Drawing.Size(352, 413);
     61      this.symbolicExpressionTreeChart.TabIndex = 0;
    6162      //
    6263      // SymbolicExpressionModelView
     
    6566      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    6667      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
    67       this.Controls.Add(this.symbolicExpressionTreeView);
     68      this.Controls.Add(this.symbolicExpressionTreeChart);
    6869      this.Name = "SymbolicExpressionModelView";
    6970      this.Size = new System.Drawing.Size(352, 413);
     
    7374
    7475    #endregion
    75     private HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views.GraphicalSymbolicExpressionTreeView symbolicExpressionTreeView;
     76    private HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views.SymbolicExpressionTreeChart symbolicExpressionTreeChart;
    7677
    7778  }
  • trunk/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic.Views-3.4.csproj

    r18210 r18220  
    122122      <DependentUpon>InteractiveSymbolicExpressionTreeChart.cs</DependentUpon>
    123123    </Compile>
     124    <Compile Include="Properties\Resources.Designer.cs">
     125      <AutoGen>True</AutoGen>
     126      <DesignTime>True</DesignTime>
     127      <DependentUpon>Resources.resx</DependentUpon>
     128    </Compile>
     129    <Compile Include="StructureTemplate\StructureTemplateView.cs">
     130      <SubType>UserControl</SubType>
     131    </Compile>
     132    <Compile Include="StructureTemplate\StructureTemplateView.Designer.cs">
     133      <DependentUpon>StructureTemplateView.cs</DependentUpon>
     134    </Compile>
    124135    <Compile Include="SymbolicDataAnalysisModelMathView.cs">
    125136      <SubType>UserControl</SubType>
     
    211222    </Compile>
    212223    <Compile Include="Properties\AssemblyInfo.cs" />
     224    <EmbeddedResource Include="Resources\structureTemplateHelp.rtf" />
    213225  </ItemGroup>
    214226  <ItemGroup>
     
    310322      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    311323    </Content>
     324  </ItemGroup>
     325  <ItemGroup>
     326    <EmbeddedResource Include="Properties\Resources.resx">
     327      <Generator>ResXFileCodeGenerator</Generator>
     328      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
     329    </EmbeddedResource>
    312330  </ItemGroup>
    313331  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Note: See TracChangeset for help on using the changeset viewer.