Changeset 18220 for trunk/HeuristicLab.Problems.DataAnalysis.Symbolic.Views
- Timestamp:
- 02/24/22 20:33:45 (2 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 5 edited
- 3 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
-
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic.Views
- Property svn:mergeinfo changed
/branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Views (added) merged: 18063,18065,18067-18069,18071,18073,18075,18099,18134,18146,18151,18154,18164,18185,18216
- Property svn:mergeinfo changed
-
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/GraphicalSymbolicDataAnalysisModelView.cs
r17180 r18220 20 20 #endregion 21 21 22 using System.Drawing; 22 23 using System.Windows.Forms; 23 24 using HeuristicLab.MainForm; … … 40 41 protected override void OnContentChanged() { 41 42 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 } 45 62 } 46 63 } -
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/GraphicalSymbolicDataAnalysisModelView.designer.cs
r17180 r18220 19 19 */ 20 20 #endregion 21 22 using System.Drawing; 21 23 22 24 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Views { … … 45 47 /// </summary> 46 48 private void InitializeComponent() { 47 this.symbolicExpressionTree View = new HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views.GraphicalSymbolicExpressionTreeView();49 this.symbolicExpressionTreeChart = new HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views.SymbolicExpressionTreeChart(); 48 50 this.SuspendLayout(); 49 51 // 50 52 // expressionTreeView 51 53 // 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; 61 62 // 62 63 // SymbolicExpressionModelView … … 65 66 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 66 67 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 67 this.Controls.Add(this.symbolicExpressionTree View);68 this.Controls.Add(this.symbolicExpressionTreeChart); 68 69 this.Name = "SymbolicExpressionModelView"; 69 70 this.Size = new System.Drawing.Size(352, 413); … … 73 74 74 75 #endregion 75 private HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views. GraphicalSymbolicExpressionTreeView symbolicExpressionTreeView;76 private HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views.SymbolicExpressionTreeChart symbolicExpressionTreeChart; 76 77 77 78 } -
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic.Views-3.4.csproj
r18210 r18220 122 122 <DependentUpon>InteractiveSymbolicExpressionTreeChart.cs</DependentUpon> 123 123 </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> 124 135 <Compile Include="SymbolicDataAnalysisModelMathView.cs"> 125 136 <SubType>UserControl</SubType> … … 211 222 </Compile> 212 223 <Compile Include="Properties\AssemblyInfo.cs" /> 224 <EmbeddedResource Include="Resources\structureTemplateHelp.rtf" /> 213 225 </ItemGroup> 214 226 <ItemGroup> … … 310 322 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 311 323 </Content> 324 </ItemGroup> 325 <ItemGroup> 326 <EmbeddedResource Include="Properties\Resources.resx"> 327 <Generator>ResXFileCodeGenerator</Generator> 328 <LastGenOutput>Resources.Designer.cs</LastGenOutput> 329 </EmbeddedResource> 312 330 </ItemGroup> 313 331 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Note: See TracChangeset
for help on using the changeset viewer.