Changeset 5275 for branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/Symbols
- Timestamp:
- 01/11/11 15:03:46 (14 years ago)
- Location:
- branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/Symbols
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/Symbols/ConstantView.Designer.cs
r3915 r5275 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.valueChangeMuTextBox_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 } -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/Symbols/ConstantView.cs
r4068 r5275 58 58 base.SetEnabledStateOfControls(); 59 59 minValueTextBox.Enabled = Content != null; 60 minValueTextBox.ReadOnly = ReadOnly; 60 61 maxValueTextBox.Enabled = Content != null; 61 valueChangeNuTextBox.Enabled = Content != null; 62 maxValueTextBox.ReadOnly = ReadOnly; 63 valueChangeMuTextBox.Enabled = Content != null; 64 valueChangeMuTextBox.ReadOnly = ReadOnly; 62 65 valueChangeSigmaTextBox.Enabled = Content != null; 66 valueChangeSigmaTextBox.ReadOnly = ReadOnly; 63 67 } 64 68 … … 89 93 } 90 94 91 private void valueChange NuTextBox_TextChanged(object sender, EventArgs e) {95 private void valueChangeMuTextBox_TextChanged(object sender, EventArgs e) { 92 96 double nu; 93 if (double.TryParse(valueChange NuTextBox.Text, out nu)) {94 Content.Manipulator Nu = nu;95 errorProvider.SetError(valueChange NuTextBox, string.Empty);97 if (double.TryParse(valueChangeMuTextBox.Text, out nu)) { 98 Content.ManipulatorMu = nu; 99 errorProvider.SetError(valueChangeMuTextBox, string.Empty); 96 100 } else { 97 errorProvider.SetError(valueChange NuTextBox, "Invalid value");101 errorProvider.SetError(valueChangeMuTextBox, "Invalid value"); 98 102 } 99 103 } … … 120 124 minValueTextBox.Text = Content.MinValue.ToString(); 121 125 maxValueTextBox.Text = Content.MaxValue.ToString(); 122 valueChange NuTextBox.Text = Content.ManipulatorNu.ToString();126 valueChangeMuTextBox.Text = Content.ManipulatorMu.ToString(); 123 127 valueChangeSigmaTextBox.Text = Content.ManipulatorSigma.ToString(); 124 128 } -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/Symbols/LaggedVariableView.cs
r4068 r5275 57 57 base.SetEnabledStateOfControls(); 58 58 minTimeOffsetTextBox.Enabled = Content != null; 59 minTimeOffsetTextBox.ReadOnly = ReadOnly; 59 60 maxTimeOffsetTextBox.Enabled = Content != null; 61 maxTimeOffsetTextBox.ReadOnly = ReadOnly; 60 62 } 61 63 -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/Symbols/VariableView.Designer.cs
r3915 r5275 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.weightMuTextBox_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.weightChangeMuTextBox_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 } -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/Symbols/VariableView.cs
r4068 r5275 57 57 protected override void SetEnabledStateOfControls() { 58 58 base.SetEnabledStateOfControls(); 59 weightNuTextBox.Enabled = Content != null; 59 weightMuTextBox.Enabled = Content != null; 60 weightMuTextBox.ReadOnly = ReadOnly; 60 61 weightSigmaTextBox.Enabled = Content != null; 61 weightChangeNuTextBox.Enabled = Content != null; 62 weightSigmaTextBox.ReadOnly = ReadOnly; 63 weightChangeMuTextBox.Enabled = Content != null; 64 weightChangeMuTextBox.ReadOnly = ReadOnly; 62 65 weightChangeSigmaTextBox.Enabled = Content != null; 66 weightChangeSigmaTextBox.ReadOnly = ReadOnly; 63 67 } 64 68 … … 70 74 71 75 #region control event handlers 72 private void weight NuTextBox_TextChanged(object sender, EventArgs e) {76 private void weightMuTextBox_TextChanged(object sender, EventArgs e) { 73 77 double nu; 74 if (double.TryParse(weight NuTextBox.Text, out nu)) {75 Content.Weight Nu = nu;76 errorProvider.SetError(weight NuTextBox, string.Empty);78 if (double.TryParse(weightMuTextBox.Text, out nu)) { 79 Content.WeightMu = nu; 80 errorProvider.SetError(weightMuTextBox, string.Empty); 77 81 } else { 78 errorProvider.SetError(weight NuTextBox, "Invalid value");82 errorProvider.SetError(weightMuTextBox, "Invalid value"); 79 83 } 80 84 } … … 89 93 } 90 94 91 private void weightChange NuTextBox_TextChanged(object sender, EventArgs e) {95 private void weightChangeMuTextBox_TextChanged(object sender, EventArgs e) { 92 96 double nu; 93 if (double.TryParse(weightChange NuTextBox.Text, out nu)) {94 Content.WeightManipulator Nu = nu;95 errorProvider.SetError(weightChange NuTextBox, string.Empty);97 if (double.TryParse(weightChangeMuTextBox.Text, out nu)) { 98 Content.WeightManipulatorMu = nu; 99 errorProvider.SetError(weightChangeMuTextBox, string.Empty); 96 100 } else { 97 errorProvider.SetError(weightChange NuTextBox, "Invalid value");101 errorProvider.SetError(weightChangeMuTextBox, "Invalid value"); 98 102 } 99 103 } … … 113 117 private void UpdateControl() { 114 118 if (Content == null) { 115 weight NuTextBox.Text = string.Empty;119 weightMuTextBox.Text = string.Empty; 116 120 weightSigmaTextBox.Text = string.Empty; 117 weight NuTextBox.Text = string.Empty;121 weightMuTextBox.Text = string.Empty; 118 122 weightChangeSigmaTextBox.Text = string.Empty; 119 123 } else { 120 weight NuTextBox.Text = Content.WeightNu.ToString();124 weightMuTextBox.Text = Content.WeightMu.ToString(); 121 125 weightSigmaTextBox.Text = Content.WeightSigma.ToString(); 122 weightChange NuTextBox.Text = Content.WeightManipulatorNu.ToString();126 weightChangeMuTextBox.Text = Content.WeightManipulatorMu.ToString(); 123 127 weightChangeSigmaTextBox.Text = Content.WeightManipulatorSigma.ToString(); 124 128 }
Note: See TracChangeset
for help on using the changeset viewer.