Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.TreeSimplifierView/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/InteractiveSymbolicDataAnalysisSolutionSimplifierView.Designer.cs @ 7388

Last change on this file since 7388 was 7388, checked in by bburlacu, 12 years ago

#1763: Added a new context option for leaf nodes (ConstantTreeNode or VariableTreeNode) to change the value or variable weight respectively.

  • Added new dialog: SymbolicExpressionTreeNodeChangeValueDialog
  • Added new SymbolicExpressionTreeNodeChanged event and handler
  • Changed the double click behavior to account for node value/weight changes

Overall the behavior has been slightly changed: if a node was folded(replaced by a ConstantTreeNode), then it is possible to change its value via the context menu. For all changed nodes the original value is kept in a dictionary, so the first double click will restore it. After that, a second double click will unfold the node.

File size: 9.5 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
4 *
5 * This file is part of HeuristicLab.
6 *
7 * HeuristicLab is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * HeuristicLab is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
19 */
20#endregion
21
22namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Views {
23  partial class InteractiveSymbolicDataAnalysisSolutionSimplifierView {
24    /// <summary>
25    /// Required designer variable.
26    /// </summary>
27    private System.ComponentModel.IContainer components = null;
28
29    /// <summary>
30    /// Clean up any resources being used.
31    /// </summary>
32    /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
33    protected override void Dispose(bool disposing) {
34      if (disposing && (components != null)) {
35        components.Dispose();
36      }
37      base.Dispose(disposing);
38    }
39
40    #region Component Designer generated code
41
42    /// <summary>
43    /// Required method for Designer support - do not modify
44    /// the contents of this method with the code editor.
45    /// </summary>
46    private void InitializeComponent() {
47      this.viewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost();
48      this.splitContainer = new System.Windows.Forms.SplitContainer();
49      this.grpSimplify = new System.Windows.Forms.GroupBox();
50      this.flowLayoutPanel = new System.Windows.Forms.FlowLayoutPanel();
51      this.btnSimplify = new System.Windows.Forms.Button();
52      this.btnOptimizeConstants = new System.Windows.Forms.Button();
53      this.treeChart = new HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views.SymbolicExpressionTreeChart();
54      this.grpViewHost = new System.Windows.Forms.GroupBox();
55      ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit();
56      this.splitContainer.Panel1.SuspendLayout();
57      this.splitContainer.Panel2.SuspendLayout();
58      this.splitContainer.SuspendLayout();
59      this.grpSimplify.SuspendLayout();
60      this.flowLayoutPanel.SuspendLayout();
61      this.grpViewHost.SuspendLayout();
62      this.SuspendLayout();
63      //
64      // viewHost
65      //
66      this.viewHost.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
67            | System.Windows.Forms.AnchorStyles.Left)
68            | System.Windows.Forms.AnchorStyles.Right)));
69      this.viewHost.Caption = "View";
70      this.viewHost.Content = null;
71      this.viewHost.Enabled = false;
72      this.viewHost.Location = new System.Drawing.Point(6, 16);
73      this.viewHost.Name = "viewHost";
74      this.viewHost.ReadOnly = false;
75      this.viewHost.Size = new System.Drawing.Size(335, 326);
76      this.viewHost.TabIndex = 0;
77      this.viewHost.ViewsLabelVisible = true;
78      this.viewHost.ViewType = null;
79      //
80      // splitContainer
81      //
82      this.splitContainer.Dock = System.Windows.Forms.DockStyle.Fill;
83      this.splitContainer.Location = new System.Drawing.Point(0, 0);
84      this.splitContainer.Name = "splitContainer";
85      //
86      // splitContainer.Panel1
87      //
88      this.splitContainer.Panel1.Controls.Add(this.grpSimplify);
89      //
90      // splitContainer.Panel2
91      //
92      this.splitContainer.Panel2.Controls.Add(this.grpViewHost);
93      this.splitContainer.Size = new System.Drawing.Size(564, 348);
94      this.splitContainer.SplitterDistance = 213;
95      this.splitContainer.TabIndex = 1;
96      //
97      // grpSimplify
98      //
99      this.grpSimplify.Controls.Add(this.flowLayoutPanel);
100      this.grpSimplify.Controls.Add(this.treeChart);
101      this.grpSimplify.Dock = System.Windows.Forms.DockStyle.Fill;
102      this.grpSimplify.Location = new System.Drawing.Point(0, 0);
103      this.grpSimplify.Name = "grpSimplify";
104      this.grpSimplify.Size = new System.Drawing.Size(213, 348);
105      this.grpSimplify.TabIndex = 1;
106      this.grpSimplify.TabStop = false;
107      this.grpSimplify.Text = "Simplify";
108      //
109      // flowLayoutPanel
110      //
111      this.flowLayoutPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
112            | System.Windows.Forms.AnchorStyles.Right)));
113      this.flowLayoutPanel.Controls.Add(this.btnSimplify);
114      this.flowLayoutPanel.Controls.Add(this.btnOptimizeConstants);
115      this.flowLayoutPanel.Location = new System.Drawing.Point(6, 313);
116      this.flowLayoutPanel.Name = "flowLayoutPanel";
117      this.flowLayoutPanel.Size = new System.Drawing.Size(204, 29);
118      this.flowLayoutPanel.TabIndex = 2;
119      this.flowLayoutPanel.WrapContents = false;
120      //
121      // btnSimplify
122      //
123      this.btnSimplify.Location = new System.Drawing.Point(3, 3);
124      this.btnSimplify.Name = "btnSimplify";
125      this.btnSimplify.Size = new System.Drawing.Size(95, 23);
126      this.btnSimplify.TabIndex = 1;
127      this.btnSimplify.Text = "Simplify";
128      this.btnSimplify.UseVisualStyleBackColor = true;
129      this.btnSimplify.Click += new System.EventHandler(this.btnSimplify_Click);
130      //
131      // btnOptimizeConstants
132      //
133      this.btnOptimizeConstants.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
134      this.btnOptimizeConstants.Enabled = false;
135      this.btnOptimizeConstants.Location = new System.Drawing.Point(104, 3);
136      this.btnOptimizeConstants.Name = "btnOptimizeConstants";
137      this.btnOptimizeConstants.Size = new System.Drawing.Size(97, 23);
138      this.btnOptimizeConstants.TabIndex = 2;
139      this.btnOptimizeConstants.Text = "Optimize";
140      this.btnOptimizeConstants.UseVisualStyleBackColor = true;
141      this.btnOptimizeConstants.Click += new System.EventHandler(this.btnOptimizeConstants_Click);
142      //
143      // treeChart
144      //
145      this.treeChart.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
146            | System.Windows.Forms.AnchorStyles.Left)
147            | System.Windows.Forms.AnchorStyles.Right)));
148      this.treeChart.BackgroundColor = System.Drawing.Color.White;
149      this.treeChart.LineColor = System.Drawing.Color.Black;
150      this.treeChart.Location = new System.Drawing.Point(6, 16);
151      this.treeChart.Name = "treeChart";
152      this.treeChart.Size = new System.Drawing.Size(201, 291);
153      this.treeChart.Spacing = 5;
154      this.treeChart.SuspendRepaint = false;
155      this.treeChart.TabIndex = 0;
156      this.treeChart.TextFont = new System.Drawing.Font("Times New Roman", 8F);
157      this.treeChart.Tree = null;
158      this.treeChart.SymbolicExpressionTreeNodeChanged += new System.EventHandler(this.treeChart_SymbolicExpressionTreeNodeChanged);
159      this.treeChart.SymbolicExpressionTreeNodeClicked += new System.Windows.Forms.MouseEventHandler(this.treeChart_SymbolicExpressionTreeNodeClicked);
160      this.treeChart.SymbolicExpressionTreeNodeDoubleClicked += new System.Windows.Forms.MouseEventHandler(this.treeChart_SymbolicExpressionTreeNodeDoubleClicked);
161      //
162      // grpViewHost
163      //
164      this.grpViewHost.Controls.Add(this.viewHost);
165      this.grpViewHost.Dock = System.Windows.Forms.DockStyle.Fill;
166      this.grpViewHost.Location = new System.Drawing.Point(0, 0);
167      this.grpViewHost.Name = "grpViewHost";
168      this.grpViewHost.Size = new System.Drawing.Size(347, 348);
169      this.grpViewHost.TabIndex = 1;
170      this.grpViewHost.TabStop = false;
171      this.grpViewHost.Text = "Details";
172      //
173      // InteractiveSymbolicDataAnalysisSolutionSimplifierView
174      //
175      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
176      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
177      this.Controls.Add(this.splitContainer);
178      this.Name = "InteractiveSymbolicDataAnalysisSolutionSimplifierView";
179      this.Size = new System.Drawing.Size(564, 348);
180      this.splitContainer.Panel1.ResumeLayout(false);
181      this.splitContainer.Panel2.ResumeLayout(false);
182      ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).EndInit();
183      this.splitContainer.ResumeLayout(false);
184      this.grpSimplify.ResumeLayout(false);
185      this.flowLayoutPanel.ResumeLayout(false);
186      this.grpViewHost.ResumeLayout(false);
187      this.ResumeLayout(false);
188
189    }
190
191    #endregion
192
193    private HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views.SymbolicExpressionTreeChart treeChart;
194    private System.Windows.Forms.SplitContainer splitContainer;
195    private HeuristicLab.MainForm.WindowsForms.ViewHost viewHost;
196    private System.Windows.Forms.GroupBox grpSimplify;
197    private System.Windows.Forms.GroupBox grpViewHost;
198    private System.Windows.Forms.Button btnSimplify;
199    private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel;
200    protected System.Windows.Forms.Button btnOptimizeConstants;
201  }
202}
Note: See TracBrowser for help on using the repository browser.