Changeset 8916 for branches/HeuristicLab.TreeSimplifier/HeuristicLab.Problems.DataAnalysis.Symbolic.Views
- Timestamp:
- 11/16/12 14:30:54 (12 years ago)
- Location:
- branches/HeuristicLab.TreeSimplifier
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.TreeSimplifier
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification.Views 5700-5808
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
-
branches/HeuristicLab.TreeSimplifier/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic.Views-3.4.csproj
r8915 r8916 273 273 <ItemGroup> 274 274 <ProjectReference Include="..\..\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views\3.4\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views-3.4.csproj"> 275 <Project>{423 BD94F-963A-438E-BA45-3BB3D61CD03B}</Project>275 <Project>{423bd94f-963a-438e-ba45-3bb3d61cd03b}</Project> 276 276 <Name>HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views-3.4</Name> 277 <Private>False</Private>278 277 </ProjectReference> 279 278 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis.Symbolic\3.4\HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.csproj"> 280 <Project>{3 D28463F-EC96-4D82-AFEE-38BE91A0CA00}</Project>279 <Project>{3d28463f-ec96-4d82-afee-38be91a0ca00}</Project> 281 280 <Name>HeuristicLab.Problems.DataAnalysis.Symbolic-3.4</Name> 282 <Private>False</Private>283 281 </ProjectReference> 284 282 </ItemGroup> -
branches/HeuristicLab.TreeSimplifier/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/InteractiveSymbolicDataAnalysisSolutionSimplifierView.Designer.cs
r8915 r8916 45 45 /// </summary> 46 46 private void InitializeComponent() { 47 this.components = new System.ComponentModel.Container(); 47 48 this.viewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost(); 48 49 this.splitContainer = new System.Windows.Forms.SplitContainer(); … … 50 51 this.flowLayoutPanel = new System.Windows.Forms.FlowLayoutPanel(); 51 52 this.btnSimplify = new System.Windows.Forms.Button(); 52 this.btnPrune = new System.Windows.Forms.Button();53 53 this.btnOptimizeConstants = new System.Windows.Forms.Button(); 54 this.treeChart = new InteractiveSymbolicExpressionTreeChart();54 this.treeChart = new HeuristicLab.Problems.DataAnalysis.Symbolic.Views.InteractiveSymbolicExpressionTreeChart(); 55 55 this.grpViewHost = new System.Windows.Forms.GroupBox(); 56 56 this.backgroundWorker1 = new System.ComponentModel.BackgroundWorker(); … … 66 66 // viewHost 67 67 // 68 this.viewHost.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 69 | System.Windows.Forms.AnchorStyles.Left) 68 this.viewHost.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 69 | System.Windows.Forms.AnchorStyles.Left) 70 70 | System.Windows.Forms.AnchorStyles.Right))); 71 71 this.viewHost.Caption = "View"; … … 112 112 // flowLayoutPanel 113 113 // 114 this.flowLayoutPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) 114 this.flowLayoutPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) 115 115 | System.Windows.Forms.AnchorStyles.Right))); 116 116 this.flowLayoutPanel.Controls.Add(this.btnSimplify); 117 this.flowLayoutPanel.Controls.Add(this.btnPrune);118 117 this.flowLayoutPanel.Controls.Add(this.btnOptimizeConstants); 119 118 this.flowLayoutPanel.Location = new System.Drawing.Point(6, 313); … … 133 132 this.btnSimplify.Click += new System.EventHandler(this.btnSimplify_Click); 134 133 // 135 // btnPrune136 //137 this.btnPrune.Location = new System.Drawing.Point(104, 3);138 this.btnPrune.Name = "btnPrune";139 this.btnPrune.Size = new System.Drawing.Size(95, 23);140 this.btnPrune.TabIndex = 3;141 this.btnPrune.Text = "Prune";142 this.btnPrune.UseVisualStyleBackColor = true;143 this.btnPrune.Click += new System.EventHandler(this.btnPrune_Click);144 //145 134 // btnOptimizeConstants 146 135 // 147 136 this.btnOptimizeConstants.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 148 137 this.btnOptimizeConstants.Enabled = false; 149 this.btnOptimizeConstants.Location = new System.Drawing.Point( 205, 3);138 this.btnOptimizeConstants.Location = new System.Drawing.Point(104, 3); 150 139 this.btnOptimizeConstants.Name = "btnOptimizeConstants"; 151 140 this.btnOptimizeConstants.Size = new System.Drawing.Size(97, 23); … … 157 146 // treeChart 158 147 // 159 this.treeChart.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 160 | System.Windows.Forms.AnchorStyles.Left) 148 this.treeChart.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 149 | System.Windows.Forms.AnchorStyles.Left) 161 150 | System.Windows.Forms.AnchorStyles.Right))); 162 151 this.treeChart.BackgroundColor = System.Drawing.Color.White; … … 221 210 private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel; 222 211 protected System.Windows.Forms.Button btnOptimizeConstants; 223 private System.Windows.Forms.Button btnPrune;224 212 private System.ComponentModel.BackgroundWorker backgroundWorker1; 225 213 } -
branches/HeuristicLab.TreeSimplifier/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/InteractiveSymbolicDataAnalysisSolutionSimplifierView.cs
r8409 r8916 47 47 originalValues = new Dictionary<ISymbolicExpressionTreeNode, double>(); 48 48 originalVariableNames = new Dictionary<ISymbolicExpressionTreeNode, string>(); 49 Caption = "Interactive Solution Simplifier"; 49 50 this.Caption = "Interactive Solution Simplifier"; 50 51 } 51 52 … … 218 219 var dialog = (ValueChangeDialog)sender; 219 220 bool flag1 = false, flag2 = false; 220 if (dialog.Content is VariableTreeNode) { 221 var variable = (VariableTreeNode)dialog.Content; 221 var node = dialog.Content; 222 223 if (node is VariableTreeNode) { 224 var variable = dialog.Content as VariableTreeNode; 222 225 var weight = double.Parse(dialog.NewValueTextBox.Text); 223 226 var name = (string)dialog.VariableNameComboBox.SelectedItem; … … 232 235 variable.VariableName = name; 233 236 } 234 } else if ( dialog.Contentis ConstantTreeNode) {235 var constant = (ConstantTreeNode)dialog.Content;237 } else if (node is ConstantTreeNode) { 238 var constant = dialog.Content as ConstantTreeNode; 236 239 var value = double.Parse(dialog.NewValueTextBox.Text); 237 240 if (!constant.Value.Equals(value)) { … … 239 242 originalValues[constant] = constant.Value; 240 243 constant.Value = value; 241 242 244 } 243 245 } … … 324 326 protected abstract void btnOptimizeConstants_Click(object sender, EventArgs e); 325 327 326 private void btnPrune_Click(object sender, EventArgs e) {327 btnPrune.Enabled = false;328 backgroundWorker1.RunWorkerAsync();329 }328 // private void btnPrune_Click(object sender, EventArgs e) { 329 // btnPrune.Enabled = false; 330 // backgroundWorker1.RunWorkerAsync(); 331 // } 330 332 331 333 private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) { … … 360 362 updateInProgress = false; 361 363 } 362 btnPrune.Enabled = true;364 // btnPrune.Enabled = true; 363 365 } 364 366 -
branches/HeuristicLab.TreeSimplifier/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/InteractiveSymbolicExpressionTreeChart.cs
r8915 r8916 305 305 // copy subtree 306 306 var clone = tempNode.Clone() as ISymbolicExpressionTreeNode; 307 clone.Parent = tempNode.Parent; 308 tempNode = clone; 307 if (clone != null) { 308 clone.Parent = tempNode.Parent; 309 tempNode = clone; 310 } 309 311 break; 310 312 } 311 313 } 312 314 node.AddSubtree(tempNode); 313 Tree = Tree; // hack in order to trigger the reinitialization of the dictionaries after new nodes appeared in the graph 315 Tree = Tree; 316 // hack in order to trigger the reinitialization of the dictionaries after new nodes appeared in the graph 314 317 OnSymbolicExpressionTreeChanged(sender, e); 315 318 } else { -
branches/HeuristicLab.TreeSimplifier/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/TreeEditDialogs/SymbolicExpressionTreeNodeChangeValueDialog.cs
r8409 r8916 94 94 variableNamesCombo.Visible = true; 95 95 foreach (var name in variable.Symbol.VariableNames) variableNamesCombo.Items.Add(name); 96 variableNamesCombo.SelectedIndex = 0; 96 variableNamesCombo.SelectedIndex = variableNamesCombo.Items.IndexOf(variable.VariableName); 97 // variableNamesCombo.SelectedText = variable.VariableName; 98 // variableNamesCombo.SelectedIndex = 0; 97 99 } else if (Content is ConstantTreeNode) { 98 100 Caption = "Change constant value";
Note: See TracChangeset
for help on using the changeset viewer.