- Timestamp:
- 11/29/10 13:57:05 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/Symbols
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/Symbols/ConstantView.Designer.cs
r3915 r4989 54 54 this.valueChangeSigmaTextBox = new System.Windows.Forms.TextBox(); 55 55 this.meanWeightChangeLabel = new System.Windows.Forms.Label(); 56 this.valueChange NuTextBox = new System.Windows.Forms.TextBox();56 this.valueChangeMuTextBox = new System.Windows.Forms.TextBox(); 57 57 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 58 58 this.initializationGroupBox.SuspendLayout(); … … 146 146 this.mutationGroupBox.Controls.Add(this.valueChangeSigmaTextBox); 147 147 this.mutationGroupBox.Controls.Add(this.meanWeightChangeLabel); 148 this.mutationGroupBox.Controls.Add(this.valueChange NuTextBox);148 this.mutationGroupBox.Controls.Add(this.valueChangeMuTextBox); 149 149 this.mutationGroupBox.Location = new System.Drawing.Point(3, 158); 150 150 this.mutationGroupBox.Name = "mutationGroupBox"; … … 183 183 this.meanWeightChangeLabel.Location = new System.Drawing.Point(6, 22); 184 184 this.meanWeightChangeLabel.Name = "meanWeightChangeLabel"; 185 this.meanWeightChangeLabel.Size = new System.Drawing.Size(9 7, 13);185 this.meanWeightChangeLabel.Size = new System.Drawing.Size(99, 13); 186 186 this.meanWeightChangeLabel.TabIndex = 6; 187 this.meanWeightChangeLabel.Text = "Value change ( nu):";188 this.toolTip.SetToolTip(this.meanWeightChangeLabel, "The nu (mean) parameter for the normal distribution to sample the value change.");189 // 190 // valueChange NuTextBox191 // 192 this.valueChange NuTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)193 | System.Windows.Forms.AnchorStyles.Right))); 194 this.errorProvider.SetIconAlignment(this.valueChange NuTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);195 this.valueChange NuTextBox.Location = new System.Drawing.Point(136, 19);196 this.valueChange NuTextBox.Name = "valueChangeNuTextBox";197 this.valueChange NuTextBox.Size = new System.Drawing.Size(178, 20);198 this.valueChange NuTextBox.TabIndex = 7;199 this.toolTip.SetToolTip(this.valueChange NuTextBox, "The nu (mean) parameter for the normal distribution to sample the value change.");200 this.valueChange NuTextBox.TextChanged += new System.EventHandler(this.valueChangeNuTextBox_TextChanged);187 this.meanWeightChangeLabel.Text = "Value change (mu):"; 188 this.toolTip.SetToolTip(this.meanWeightChangeLabel, "The mu (mean) parameter for the normal distribution to sample the value change."); 189 // 190 // valueChangeMuTextBox 191 // 192 this.valueChangeMuTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 193 | System.Windows.Forms.AnchorStyles.Right))); 194 this.errorProvider.SetIconAlignment(this.valueChangeMuTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 195 this.valueChangeMuTextBox.Location = new System.Drawing.Point(136, 19); 196 this.valueChangeMuTextBox.Name = "valueChangeMuTextBox"; 197 this.valueChangeMuTextBox.Size = new System.Drawing.Size(178, 20); 198 this.valueChangeMuTextBox.TabIndex = 7; 199 this.toolTip.SetToolTip(this.valueChangeMuTextBox, "The mu (mean) parameter for the normal distribution to sample the value change."); 200 this.valueChangeMuTextBox.TextChanged += new System.EventHandler(this.valueChangeNuTextBox_TextChanged); 201 201 // 202 202 // ConstantView … … 237 237 private System.Windows.Forms.TextBox valueChangeSigmaTextBox; 238 238 private System.Windows.Forms.Label meanWeightChangeLabel; 239 private System.Windows.Forms.TextBox valueChange NuTextBox;239 private System.Windows.Forms.TextBox valueChangeMuTextBox; 240 240 241 241 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/Symbols/ConstantView.cs
r4435 r4989 61 61 maxValueTextBox.Enabled = Content != null; 62 62 maxValueTextBox.ReadOnly = ReadOnly; 63 valueChange NuTextBox.Enabled = Content != null;64 valueChange NuTextBox.ReadOnly = ReadOnly;63 valueChangeMuTextBox.Enabled = Content != null; 64 valueChangeMuTextBox.ReadOnly = ReadOnly; 65 65 valueChangeSigmaTextBox.Enabled = Content != null; 66 66 valueChangeSigmaTextBox.ReadOnly = ReadOnly; … … 95 95 private void valueChangeNuTextBox_TextChanged(object sender, EventArgs e) { 96 96 double nu; 97 if (double.TryParse(valueChange NuTextBox.Text, out nu)) {98 Content.Manipulator Nu = nu;99 errorProvider.SetError(valueChange NuTextBox, string.Empty);97 if (double.TryParse(valueChangeMuTextBox.Text, out nu)) { 98 Content.ManipulatorMu = nu; 99 errorProvider.SetError(valueChangeMuTextBox, string.Empty); 100 100 } else { 101 errorProvider.SetError(valueChange NuTextBox, "Invalid value");101 errorProvider.SetError(valueChangeMuTextBox, "Invalid value"); 102 102 } 103 103 } … … 124 124 minValueTextBox.Text = Content.MinValue.ToString(); 125 125 maxValueTextBox.Text = Content.MaxValue.ToString(); 126 valueChange NuTextBox.Text = Content.ManipulatorNu.ToString();126 valueChangeMuTextBox.Text = Content.ManipulatorMu.ToString(); 127 127 valueChangeSigmaTextBox.Text = Content.ManipulatorSigma.ToString(); 128 128 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/Symbols/VariableView.Designer.cs
r3915 r4989 45 45 /// </summary> 46 46 private void InitializeComponent() { 47 this.weight NuLabel = new System.Windows.Forms.Label();48 this.weight NuTextBox = new System.Windows.Forms.TextBox();47 this.weightMuLabel = new System.Windows.Forms.Label(); 48 this.weightMuTextBox = new System.Windows.Forms.TextBox(); 49 49 this.initializationGroupBox = new System.Windows.Forms.GroupBox(); 50 50 this.weightSigmaLabel = new System.Windows.Forms.Label(); … … 54 54 this.weightChangeSigmaTextBox = new System.Windows.Forms.TextBox(); 55 55 this.meanWeightChangeLabel = new System.Windows.Forms.Label(); 56 this.weightChange NuTextBox = new System.Windows.Forms.TextBox();56 this.weightChangeMuTextBox = new System.Windows.Forms.TextBox(); 57 57 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 58 58 this.initializationGroupBox.SuspendLayout(); … … 66 66 // initialFrequencyTextBox 67 67 // 68 this.errorProvider.SetIconAlignment(this.initialFrequencyTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 68 69 this.initialFrequencyTextBox.Size = new System.Drawing.Size(203, 20); 69 70 // … … 76 77 // descriptionTextBox 77 78 // 79 this.errorProvider.SetIconAlignment(this.descriptionTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 78 80 this.descriptionTextBox.Size = new System.Drawing.Size(203, 20); 79 81 // 80 // weight NuLabel81 // 82 this.weight NuLabel.AutoSize = true;83 this.weight NuLabel.Location = new System.Drawing.Point(6, 22);84 this.weight NuLabel.Name = "weightNuLabel";85 this.weight NuLabel.Size = new System.Drawing.Size(65, 13);86 this.weight NuLabel.TabIndex = 6;87 this.weight NuLabel.Text = "Weight (nu):";88 this.toolTip.SetToolTip(this.weight NuLabel, "The nu (mean) parameter of the normal distribution to use for initial weights.");89 // 90 // weight NuTextBox91 // 92 this.weight NuTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)93 | System.Windows.Forms.AnchorStyles.Right))); 94 this.weight NuTextBox.Location = new System.Drawing.Point(92, 19);95 this.weight NuTextBox.Name = "weightNuTextBox";96 this.weight NuTextBox.Size = new System.Drawing.Size(201, 20);97 this.weight NuTextBox.TabIndex = 7;98 this.toolTip.SetToolTip(this.weight NuTextBox, "The nu (mean) parameter of the normal distribution from which to sample the initi" +82 // weightMuLabel 83 // 84 this.weightMuLabel.AutoSize = true; 85 this.weightMuLabel.Location = new System.Drawing.Point(6, 22); 86 this.weightMuLabel.Name = "weightMuLabel"; 87 this.weightMuLabel.Size = new System.Drawing.Size(67, 13); 88 this.weightMuLabel.TabIndex = 6; 89 this.weightMuLabel.Text = "Weight (mu):"; 90 this.toolTip.SetToolTip(this.weightMuLabel, "The mu (mean) parameter of the normal distribution to use for initial weights."); 91 // 92 // weightMuTextBox 93 // 94 this.weightMuTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 95 | System.Windows.Forms.AnchorStyles.Right))); 96 this.weightMuTextBox.Location = new System.Drawing.Point(92, 19); 97 this.weightMuTextBox.Name = "weightMuTextBox"; 98 this.weightMuTextBox.Size = new System.Drawing.Size(201, 20); 99 this.weightMuTextBox.TabIndex = 7; 100 this.toolTip.SetToolTip(this.weightMuTextBox, "The mu (mean) parameter of the normal distribution from which to sample the initi" + 99 101 "al weights."); 100 this.weight NuTextBox.TextChanged += new System.EventHandler(this.weightNuTextBox_TextChanged);102 this.weightMuTextBox.TextChanged += new System.EventHandler(this.weightNuTextBox_TextChanged); 101 103 // 102 104 // initializationGroupBox … … 106 108 this.initializationGroupBox.Controls.Add(this.weightSigmaLabel); 107 109 this.initializationGroupBox.Controls.Add(this.weightSigmaTextBox); 108 this.initializationGroupBox.Controls.Add(this.weight NuLabel);109 this.initializationGroupBox.Controls.Add(this.weight NuTextBox);110 this.initializationGroupBox.Controls.Add(this.weightMuLabel); 111 this.initializationGroupBox.Controls.Add(this.weightMuTextBox); 110 112 this.initializationGroupBox.Location = new System.Drawing.Point(3, 79); 111 113 this.initializationGroupBox.Name = "initializationGroupBox"; … … 144 146 this.mutationGroupBox.Controls.Add(this.weightChangeSigmaTextBox); 145 147 this.mutationGroupBox.Controls.Add(this.meanWeightChangeLabel); 146 this.mutationGroupBox.Controls.Add(this.weightChange NuTextBox);148 this.mutationGroupBox.Controls.Add(this.weightChangeMuTextBox); 147 149 this.mutationGroupBox.Location = new System.Drawing.Point(3, 158); 148 150 this.mutationGroupBox.Name = "mutationGroupBox"; … … 180 182 this.meanWeightChangeLabel.Location = new System.Drawing.Point(6, 22); 181 183 this.meanWeightChangeLabel.Name = "meanWeightChangeLabel"; 182 this.meanWeightChangeLabel.Size = new System.Drawing.Size(10 4, 13);184 this.meanWeightChangeLabel.Size = new System.Drawing.Size(106, 13); 183 185 this.meanWeightChangeLabel.TabIndex = 6; 184 this.meanWeightChangeLabel.Text = "Weight change ( nu):";186 this.meanWeightChangeLabel.Text = "Weight change (mu):"; 185 187 this.toolTip.SetToolTip(this.meanWeightChangeLabel, "The nu (mean) parameter for the normal distribution to sample the change in weigh" + 186 188 "t."); 187 189 // 188 // weightChange NuTextBox189 // 190 this.weightChange NuTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)191 | System.Windows.Forms.AnchorStyles.Right))); 192 this.weightChange NuTextBox.Location = new System.Drawing.Point(131, 19);193 this.weightChange NuTextBox.Name = "weightChangeNuTextBox";194 this.weightChange NuTextBox.Size = new System.Drawing.Size(162, 20);195 this.weightChange NuTextBox.TabIndex = 7;196 this.toolTip.SetToolTip(this.weightChange NuTextBox, "The nu (mean) parameter for the normal distribution to sample the change in weigh" +190 // weightChangeMuTextBox 191 // 192 this.weightChangeMuTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 193 | System.Windows.Forms.AnchorStyles.Right))); 194 this.weightChangeMuTextBox.Location = new System.Drawing.Point(131, 19); 195 this.weightChangeMuTextBox.Name = "weightChangeMuTextBox"; 196 this.weightChangeMuTextBox.Size = new System.Drawing.Size(162, 20); 197 this.weightChangeMuTextBox.TabIndex = 7; 198 this.toolTip.SetToolTip(this.weightChangeMuTextBox, "The mu (mean) parameter for the normal distribution to sample the change in weigh" + 197 199 "t."); 198 this.weightChange NuTextBox.TextChanged += new System.EventHandler(this.weightChangeNuTextBox_TextChanged);200 this.weightChangeMuTextBox.TextChanged += new System.EventHandler(this.weightChangeNuTextBox_TextChanged); 199 201 // 200 202 // VariableView … … 226 228 #endregion 227 229 228 private System.Windows.Forms.Label weight NuLabel;229 private System.Windows.Forms.TextBox weight NuTextBox;230 private System.Windows.Forms.Label weightMuLabel; 231 private System.Windows.Forms.TextBox weightMuTextBox; 230 232 protected System.Windows.Forms.GroupBox initializationGroupBox; 231 233 private System.Windows.Forms.Label weightSigmaLabel; … … 235 237 private System.Windows.Forms.TextBox weightChangeSigmaTextBox; 236 238 private System.Windows.Forms.Label meanWeightChangeLabel; 237 private System.Windows.Forms.TextBox weightChange NuTextBox;239 private System.Windows.Forms.TextBox weightChangeMuTextBox; 238 240 239 241 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/Symbols/VariableView.cs
r4435 r4989 57 57 protected override void SetEnabledStateOfControls() { 58 58 base.SetEnabledStateOfControls(); 59 weight NuTextBox.Enabled = Content != null;60 weight NuTextBox.ReadOnly = ReadOnly;59 weightMuTextBox.Enabled = Content != null; 60 weightMuTextBox.ReadOnly = ReadOnly; 61 61 weightSigmaTextBox.Enabled = Content != null; 62 62 weightSigmaTextBox.ReadOnly = ReadOnly; 63 weightChange NuTextBox.Enabled = Content != null;64 weightChange NuTextBox.ReadOnly = ReadOnly;63 weightChangeMuTextBox.Enabled = Content != null; 64 weightChangeMuTextBox.ReadOnly = ReadOnly; 65 65 weightChangeSigmaTextBox.Enabled = Content != null; 66 66 weightChangeSigmaTextBox.ReadOnly = ReadOnly; … … 76 76 private void weightNuTextBox_TextChanged(object sender, EventArgs e) { 77 77 double nu; 78 if (double.TryParse(weight NuTextBox.Text, out nu)) {79 Content.Weight Nu = nu;80 errorProvider.SetError(weight NuTextBox, string.Empty);78 if (double.TryParse(weightMuTextBox.Text, out nu)) { 79 Content.WeightMu = nu; 80 errorProvider.SetError(weightMuTextBox, string.Empty); 81 81 } else { 82 errorProvider.SetError(weight NuTextBox, "Invalid value");82 errorProvider.SetError(weightMuTextBox, "Invalid value"); 83 83 } 84 84 } … … 95 95 private void weightChangeNuTextBox_TextChanged(object sender, EventArgs e) { 96 96 double nu; 97 if (double.TryParse(weightChange NuTextBox.Text, out nu)) {98 Content.WeightManipulator Nu = nu;99 errorProvider.SetError(weightChange NuTextBox, string.Empty);97 if (double.TryParse(weightChangeMuTextBox.Text, out nu)) { 98 Content.WeightManipulatorMu = nu; 99 errorProvider.SetError(weightChangeMuTextBox, string.Empty); 100 100 } else { 101 errorProvider.SetError(weightChange NuTextBox, "Invalid value");101 errorProvider.SetError(weightChangeMuTextBox, "Invalid value"); 102 102 } 103 103 } … … 117 117 private void UpdateControl() { 118 118 if (Content == null) { 119 weight NuTextBox.Text = string.Empty;119 weightMuTextBox.Text = string.Empty; 120 120 weightSigmaTextBox.Text = string.Empty; 121 weight NuTextBox.Text = string.Empty;121 weightMuTextBox.Text = string.Empty; 122 122 weightChangeSigmaTextBox.Text = string.Empty; 123 123 } else { 124 weight NuTextBox.Text = Content.WeightNu.ToString();124 weightMuTextBox.Text = Content.WeightMu.ToString(); 125 125 weightSigmaTextBox.Text = Content.WeightSigma.ToString(); 126 weightChange NuTextBox.Text = Content.WeightManipulatorNu.ToString();126 weightChangeMuTextBox.Text = Content.WeightManipulatorMu.ToString(); 127 127 weightChangeSigmaTextBox.Text = Content.WeightManipulatorSigma.ToString(); 128 128 }
Note: See TracChangeset
for help on using the changeset viewer.