Ignore:
Timestamp:
10/08/21 16:28:53 (9 months ago)
Author:
dpiringe
Message:

#3136

  • modified InfixExpressionParser to fully support SubFunctionSymbol
    • created a SubFunctionTreeNode to store the function arguments
  • modified StructureTemplateView to regenerate the content state
  • first implementation for the main tree build up logic
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/StructureTemplate/StructureTemplateView.cs

    r18063 r18065  
    2121    }
    2222
    23 
    2423    public StructureTemplateView() {
    2524      InitializeComponent();
    2625      errorLabel.Text = "";
     26    }
     27
     28    protected override void OnContentChanged() {
     29      base.OnContentChanged();
     30      if (Content == null) return;
     31
     32      expressionInput.Text = Content.Template;
     33      symRegTreeChart.Content = Content.Tree;
     34      subFunctionListView.Content = new ItemList<SubFunction>(Content.SubFunctions.Values).AsReadOnly();
     35     
     36      errorLabel.Text = "";
     37     
    2738    }
    2839
     
    3445
    3546          var subFunctionList = new ItemList<SubFunction>();
    36           foreach (var func in Content.SubFunctions)
     47          foreach (var func in Content.SubFunctions.Values)
    3748            subFunctionList.Add(func);
    3849          subFunctionListView.Content = subFunctionList.AsReadOnly();
Note: See TracChangeset for help on using the changeset viewer.