Changeset 16898 for branches/2971_named_intervals
- Timestamp:
- 05/06/19 14:17:54 (6 years ago)
- Location:
- branches/2971_named_intervals
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4/IntervalConstraintView.Designer.cs
r16862 r16898 45 45 private void InitializeComponent() { 46 46 this.components = new System.ComponentModel.Container(); 47 this.definitionLabel = new System.Windows.Forms.Label();48 47 this.lowerboundLabel = new System.Windows.Forms.Label(); 49 48 this.upperboundLabel = new System.Windows.Forms.Label(); … … 52 51 this.variableLabel = new System.Windows.Forms.Label(); 53 52 this.numberderivationLabel = new System.Windows.Forms.Label(); 54 this.definitionInput = new System.Windows.Forms.TextBox();55 53 this.upperboundInput = new System.Windows.Forms.TextBox(); 56 54 this.lowerboundInput = new System.Windows.Forms.TextBox(); … … 65 63 this.incllowerboundInput = new System.Windows.Forms.CheckBox(); 66 64 this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components); 65 this.enabledLabel = new System.Windows.Forms.Label(); 67 66 this.groupBox1.SuspendLayout(); 68 67 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 69 68 this.SuspendLayout(); 70 69 // 71 // definitionLabel72 //73 this.definitionLabel.AutoSize = true;74 this.definitionLabel.Location = new System.Drawing.Point(11, 72);75 this.definitionLabel.Name = "definitionLabel";76 this.definitionLabel.Size = new System.Drawing.Size(54, 13);77 this.definitionLabel.TabIndex = 1;78 this.definitionLabel.Text = "Definition:";79 //80 70 // lowerboundLabel 81 71 // 82 72 this.lowerboundLabel.AutoSize = true; 83 this.lowerboundLabel.Location = new System.Drawing.Point( 11, 98);73 this.lowerboundLabel.Location = new System.Drawing.Point(8, 101); 84 74 this.lowerboundLabel.Name = "lowerboundLabel"; 85 75 this.lowerboundLabel.Size = new System.Drawing.Size(69, 13); … … 90 80 // 91 81 this.upperboundLabel.AutoSize = true; 92 this.upperboundLabel.Location = new System.Drawing.Point( 11, 123);82 this.upperboundLabel.Location = new System.Drawing.Point(8, 126); 93 83 this.upperboundLabel.Name = "upperboundLabel"; 94 84 this.upperboundLabel.Size = new System.Drawing.Size(69, 13); … … 99 89 // 100 90 this.incllowerboundLabel.AutoSize = true; 101 this.incllowerboundLabel.Location = new System.Drawing.Point( 11, 149);91 this.incllowerboundLabel.Location = new System.Drawing.Point(8, 153); 102 92 this.incllowerboundLabel.Name = "incllowerboundLabel"; 103 93 this.incllowerboundLabel.Size = new System.Drawing.Size(92, 13); … … 108 98 // 109 99 this.inclupperboundLabel.AutoSize = true; 110 this.inclupperboundLabel.Location = new System.Drawing.Point( 11, 174);100 this.inclupperboundLabel.Location = new System.Drawing.Point(8, 178); 111 101 this.inclupperboundLabel.Name = "inclupperboundLabel"; 112 102 this.inclupperboundLabel.Size = new System.Drawing.Size(92, 13); … … 117 107 // 118 108 this.variableLabel.AutoSize = true; 119 this.variableLabel.Location = new System.Drawing.Point( 11, 199);109 this.variableLabel.Location = new System.Drawing.Point(8, 47); 120 110 this.variableLabel.Name = "variableLabel"; 121 111 this.variableLabel.Size = new System.Drawing.Size(48, 13); … … 126 116 // 127 117 this.numberderivationLabel.AutoSize = true; 128 this.numberderivationLabel.Location = new System.Drawing.Point( 11, 225);118 this.numberderivationLabel.Location = new System.Drawing.Point(8, 74); 129 119 this.numberderivationLabel.Name = "numberderivationLabel"; 130 120 this.numberderivationLabel.Size = new System.Drawing.Size(65, 13); … … 132 122 this.numberderivationLabel.Text = "#Derivation:"; 133 123 // 134 // definitionInput135 //136 this.definitionInput.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)137 | System.Windows.Forms.AnchorStyles.Right)));138 this.definitionInput.Location = new System.Drawing.Point(111, 69);139 this.definitionInput.Name = "definitionInput";140 this.definitionInput.Size = new System.Drawing.Size(473, 20);141 this.definitionInput.TabIndex = 9;142 //143 124 // upperboundInput 144 125 // 145 126 this.upperboundInput.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 146 127 | System.Windows.Forms.AnchorStyles.Right))); 147 this.upperboundInput.Location = new System.Drawing.Point(1 11, 120);128 this.upperboundInput.Location = new System.Drawing.Point(108, 123); 148 129 this.upperboundInput.Name = "upperboundInput"; 149 130 this.upperboundInput.Size = new System.Drawing.Size(473, 20); … … 156 137 this.lowerboundInput.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 157 138 | System.Windows.Forms.AnchorStyles.Right))); 158 this.lowerboundInput.Location = new System.Drawing.Point(1 11, 95);139 this.lowerboundInput.Location = new System.Drawing.Point(108, 98); 159 140 this.lowerboundInput.Name = "lowerboundInput"; 160 141 this.lowerboundInput.Size = new System.Drawing.Size(473, 20); … … 167 148 this.variableInput.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 168 149 | System.Windows.Forms.AnchorStyles.Right))); 169 this.variableInput.Location = new System.Drawing.Point(1 11, 196);150 this.variableInput.Location = new System.Drawing.Point(108, 44); 170 151 this.variableInput.Name = "variableInput"; 171 152 this.variableInput.Size = new System.Drawing.Size(473, 20); … … 174 155 // groupBox1 175 156 // 157 this.groupBox1.Controls.Add(this.enabledLabel); 176 158 this.groupBox1.Controls.Add(this.label1); 177 159 this.groupBox1.Controls.Add(this.numberderivationInput); … … 184 166 this.groupBox1.Controls.Add(this.lowerboundInput); 185 167 this.groupBox1.Controls.Add(this.upperboundInput); 186 this.groupBox1.Controls.Add(this.definitionInput);187 168 this.groupBox1.Controls.Add(this.numberderivationLabel); 188 169 this.groupBox1.Controls.Add(this.variableLabel); … … 191 172 this.groupBox1.Controls.Add(this.upperboundLabel); 192 173 this.groupBox1.Controls.Add(this.lowerboundLabel); 193 this.groupBox1.Controls.Add(this.definitionLabel);194 174 this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill; 195 175 this.groupBox1.Location = new System.Drawing.Point(0, 0); … … 203 183 // 204 184 this.label1.AutoSize = true; 205 this.label1.Location = new System.Drawing.Point(11, 22);185 this.label1.Location = new System.Drawing.Point(11, -105); 206 186 this.label1.Name = "label1"; 207 187 this.label1.Size = new System.Drawing.Size(49, 13); … … 214 194 | System.Windows.Forms.AnchorStyles.Right))); 215 195 this.numberderivationInput.FormattingEnabled = true; 216 this.numberderivationInput.Location = new System.Drawing.Point(1 11, 225);196 this.numberderivationInput.Location = new System.Drawing.Point(108, 71); 217 197 this.numberderivationInput.Name = "numberderivationInput"; 218 this.numberderivationInput.Size = new System.Drawing.Size(47 0, 21);198 this.numberderivationInput.Size = new System.Drawing.Size(473, 21); 219 199 this.numberderivationInput.TabIndex = 27; 220 200 this.numberderivationInput.SelectedIndexChanged += new System.EventHandler(this.numberderivationInput_SelectedIndexChanged); … … 223 203 // 224 204 this.ischeckedCheckBox.AutoSize = true; 225 this.ischeckedCheckBox.Location = new System.Drawing.Point(1 11, 21);205 this.ischeckedCheckBox.Location = new System.Drawing.Point(108, 200); 226 206 this.ischeckedCheckBox.Name = "ischeckedCheckBox"; 227 207 this.ischeckedCheckBox.Size = new System.Drawing.Size(15, 14); … … 234 214 this.expressionInput.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 235 215 | System.Windows.Forms.AnchorStyles.Right))); 236 this.expressionInput.Location = new System.Drawing.Point(1 11, 44);216 this.expressionInput.Location = new System.Drawing.Point(108, 19); 237 217 this.expressionInput.Name = "expressionInput"; 238 218 this.expressionInput.Size = new System.Drawing.Size(473, 20); … … 242 222 // 243 223 this.expressionLabel.AutoSize = true; 244 this.expressionLabel.Location = new System.Drawing.Point( 11, 47);224 this.expressionLabel.Location = new System.Drawing.Point(8, 22); 245 225 this.expressionLabel.Name = "expressionLabel"; 246 226 this.expressionLabel.Size = new System.Drawing.Size(61, 13); … … 251 231 // 252 232 this.inclupperboundInput.AutoSize = true; 253 this.inclupperboundInput.Location = new System.Drawing.Point(1 11, 173);233 this.inclupperboundInput.Location = new System.Drawing.Point(108, 177); 254 234 this.inclupperboundInput.Name = "inclupperboundInput"; 255 235 this.inclupperboundInput.Size = new System.Drawing.Size(15, 14); … … 261 241 // 262 242 this.incllowerboundInput.AutoSize = true; 263 this.incllowerboundInput.Location = new System.Drawing.Point(1 11, 149);243 this.incllowerboundInput.Location = new System.Drawing.Point(108, 153); 264 244 this.incllowerboundInput.Name = "incllowerboundInput"; 265 245 this.incllowerboundInput.Size = new System.Drawing.Size(15, 14); … … 272 252 this.errorProvider.ContainerControl = this; 273 253 this.errorProvider.RightToLeft = true; 254 // 255 // enabledLabel 256 // 257 this.enabledLabel.AutoSize = true; 258 this.enabledLabel.Location = new System.Drawing.Point(8, 200); 259 this.enabledLabel.Name = "enabledLabel"; 260 this.enabledLabel.Size = new System.Drawing.Size(49, 13); 261 this.enabledLabel.TabIndex = 29; 262 this.enabledLabel.Text = "Enabled:"; 274 263 // 275 264 // IntervalConstraintView … … 287 276 288 277 #endregion 289 private System.Windows.Forms.Label definitionLabel;290 278 private System.Windows.Forms.Label lowerboundLabel; 291 279 private System.Windows.Forms.Label upperboundLabel; … … 294 282 private System.Windows.Forms.Label variableLabel; 295 283 private System.Windows.Forms.Label numberderivationLabel; 296 private System.Windows.Forms.TextBox definitionInput;297 284 private System.Windows.Forms.TextBox upperboundInput; 298 285 private System.Windows.Forms.TextBox lowerboundInput; … … 307 294 private System.Windows.Forms.ComboBox numberderivationInput; 308 295 private System.Windows.Forms.Label label1; 296 private System.Windows.Forms.Label enabledLabel; 309 297 } 310 298 } -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4/IntervalConstraintView.cs
r16895 r16898 39 39 int [] items = {1, 2, 3}; 40 40 expressionInput.ReadOnly = true; 41 definitionInput.ReadOnly = true;42 41 numberderivationInput.DataSource = items; 43 42 } … … 63 62 upperboundInput.Enabled = Content != null && !Locked && !ReadOnly; 64 63 expressionInput.Enabled = Content != null && !Locked && !ReadOnly; 65 definitionInput.Enabled = Content != null && !Locked && !ReadOnly;66 definitionInput.ReadOnly = true;67 64 expressionInput.ReadOnly = true; 68 65 variableInput.ReadOnly = true; … … 105 102 106 103 expressionInput.Text = Content.Expression; 107 definitionInput.Text = Content.Definition;108 104 lowerboundInput.Text = Content.Interval.LowerBound.ToString(); 109 105 upperboundInput.Text = Content.Interval.UpperBound.ToString(); … … 112 108 variableInput.Text = Content.Variable; 113 109 if (!Content.IsDerivation) { 114 numberderivationInput.Visible = false; 115 numberderivationLabel.Visible = false; 110 numberderivationInput.Enabled = false; 111 numberderivationInput.SelectedItem = null; 112 numberderivationInput.SelectedText = "0"; 116 113 } else { 117 114 numberderivationLabel.Visible = true; … … 190 187 191 188 private void numberderivationInput_SelectedIndexChanged(object sender, EventArgs e) { 189 if (numberderivationInput.SelectedItem == null) { 190 Content.NumberOfDerivation = 0; 191 return; 192 } 192 193 if ((int)numberderivationInput.SelectedItem == 1) 193 Content. numberOfDerivation = 1;194 Content.NumberOfDerivation = 1; 194 195 else if ((int)numberderivationInput.SelectedItem == 2) 195 Content. numberOfDerivation = 2;196 Content.NumberOfDerivation = 2; 196 197 else if ((int)numberderivationInput.SelectedItem == 3) 197 Content. numberOfDerivation = 3;198 Content.NumberOfDerivation = 3; 198 199 } 199 200 -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Interval/IntervalConstraint.cs
r16896 r16898 62 62 } 63 63 64 p ublicint numberOfDerivation;64 private int numberOfDerivation; 65 65 [Storable] 66 66 public int NumberOfDerivation { … … 69 69 if (value < 0 || value > 3) 70 70 throw new ArgumentException("Number of derivation has to be between 0 - 3."); 71 if ( value != numberOfDerivation) {71 if (numberOfDerivation != value) { 72 72 numberOfDerivation = value; 73 73 UpdateExpression();
Note: See TracChangeset
for help on using the changeset viewer.