Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.TreeSimplifierView/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/SymbolicExpressionTreeNodeChangeValueDialog.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: 6.1 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2012 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.Encodings.SymbolicExpressionTreeEncoding.Views {
23  partial class ValueChangeDialog {
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) {
35        if (components != null) components.Dispose();
36      }
37      base.Dispose(disposing);
38    }
39
40    #region Windows Form 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.components = new System.ComponentModel.Container();
48      this.okButton = new System.Windows.Forms.Button();
49      this.oldValueLabel = new System.Windows.Forms.Label();
50      this.oldValueTextBox = new System.Windows.Forms.TextBox();
51      this.newValueTextBox = new System.Windows.Forms.TextBox();
52      this.newValueLabel = new System.Windows.Forms.Label();
53      this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components);
54      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
55      this.SuspendLayout();
56      //
57      // okButton
58      //
59      this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
60      this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
61      this.okButton.Enabled = false;
62      this.okButton.Location = new System.Drawing.Point(66, 74);
63      this.okButton.Name = "okButton";
64      this.okButton.Size = new System.Drawing.Size(75, 23);
65      this.okButton.TabIndex = 0;
66      this.okButton.Text = "&OK";
67      this.okButton.UseVisualStyleBackColor = true;
68      this.okButton.Click += new System.EventHandler(this.okButton_Click);
69      //
70      // oldValueLabel
71      //
72      this.oldValueLabel.AutoSize = true;
73      this.oldValueLabel.Location = new System.Drawing.Point(14, 15);
74      this.oldValueLabel.Name = "oldValueLabel";
75      this.oldValueLabel.Size = new System.Drawing.Size(53, 13);
76      this.oldValueLabel.TabIndex = 2;
77      this.oldValueLabel.Text = "Old Value";
78      //
79      // oldValueTextBox
80      //
81      this.oldValueTextBox.Location = new System.Drawing.Point(91, 12);
82      this.oldValueTextBox.Name = "oldValueTextBox";
83      this.oldValueTextBox.ReadOnly = true;
84      this.oldValueTextBox.Size = new System.Drawing.Size(100, 20);
85      this.oldValueTextBox.TabIndex = 3;
86      //
87      // newValueTextBox
88      //
89      this.newValueTextBox.Location = new System.Drawing.Point(91, 38);
90      this.newValueTextBox.Name = "newValueTextBox";
91      this.newValueTextBox.Size = new System.Drawing.Size(100, 20);
92      this.newValueTextBox.TabIndex = 4;
93      this.newValueTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.newValueTextBox_KeyDown);
94      this.newValueTextBox.Validating += new System.ComponentModel.CancelEventHandler(this.newValueTextBox_Validating);
95      this.newValueTextBox.Validated += new System.EventHandler(this.newValueTextBox_Validated);
96      //
97      // newValueLabel
98      //
99      this.newValueLabel.AutoSize = true;
100      this.newValueLabel.Location = new System.Drawing.Point(8, 41);
101      this.newValueLabel.Name = "newValueLabel";
102      this.newValueLabel.Size = new System.Drawing.Size(59, 13);
103      this.newValueLabel.TabIndex = 5;
104      this.newValueLabel.Text = "New Value";
105      //
106      // errorProvider
107      //
108      this.errorProvider.BlinkStyle = System.Windows.Forms.ErrorBlinkStyle.NeverBlink;
109      this.errorProvider.ContainerControl = this;
110      this.errorProvider.RightToLeft = true;
111      //
112      // ValueChangeDialog
113      //
114      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
115      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
116      this.AutoSize = true;
117      this.ClientSize = new System.Drawing.Size(209, 109);
118      this.Controls.Add(this.newValueLabel);
119      this.Controls.Add(this.newValueTextBox);
120      this.Controls.Add(this.oldValueTextBox);
121      this.Controls.Add(this.oldValueLabel);
122      this.Controls.Add(this.okButton);
123      this.MaximizeBox = false;
124      this.MinimizeBox = false;
125      this.Name = "ValueChangeDialog";
126      this.ShowIcon = false;
127      this.ShowInTaskbar = false;
128      this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
129      this.Text = "Change Value or Weight";
130      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
131      this.ResumeLayout(false);
132      this.PerformLayout();
133
134    }
135
136    #endregion
137
138    protected System.Windows.Forms.Button okButton;
139    private System.Windows.Forms.Label oldValueLabel;
140    private System.Windows.Forms.TextBox oldValueTextBox;
141    private System.Windows.Forms.TextBox newValueTextBox;
142    private System.Windows.Forms.Label newValueLabel;
143    private System.Windows.Forms.ErrorProvider errorProvider;
144  }
145}
Note: See TracBrowser for help on using the repository browser.