- Timestamp:
- 07/24/17 09:51:10 (7 years ago)
- Location:
- branches/PerformanceComparison/HeuristicLab.Analysis.Views
- Files:
-
- 4 deleted
- 10 edited
- 6 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/PerformanceComparison/HeuristicLab.Analysis.Views
- Property svn:mergeinfo changed
-
branches/PerformanceComparison/HeuristicLab.Analysis.Views/3.3/DataRowVisualPropertiesControl.Designer.cs
r14600 r15282 49 49 this.colorButton = new System.Windows.Forms.Button(); 50 50 this.startIndexZeroCheckBox = new System.Windows.Forms.CheckBox(); 51 this.binsNumericUpDown = new System.Windows.Forms.NumericUpDown();52 51 this.label1 = new System.Windows.Forms.Label(); 53 52 this.label2 = new System.Windows.Forms.Label(); 54 this.label3 = new System.Windows.Forms.Label();55 53 this.commonGroupBox = new System.Windows.Forms.GroupBox(); 56 54 this.clearColorButton = new System.Windows.Forms.Button(); … … 68 66 this.label6 = new System.Windows.Forms.Label(); 69 67 this.label9 = new System.Windows.Forms.Label(); 70 this.histoGramGroupBox = new System.Windows.Forms.GroupBox();71 this.binsExactRadioButton = new System.Windows.Forms.RadioButton();72 this.binsApproximatelyRadioButton = new System.Windows.Forms.RadioButton();73 this.label11 = new System.Windows.Forms.Label();74 this.aggregationComboBox = new System.Windows.Forms.ComboBox();75 68 this.lineChartGroupBox = new System.Windows.Forms.GroupBox(); 76 69 this.lineWidthNumericUpDown = new System.Windows.Forms.NumericUpDown(); … … 79 72 this.lineStyleComboBox = new System.Windows.Forms.ComboBox(); 80 73 this.label8 = new System.Windows.Forms.Label(); 81 ((System.ComponentModel.ISupportInitialize)(this.binsNumericUpDown)).BeginInit();82 74 this.commonGroupBox.SuspendLayout(); 83 75 this.axisGroupBox.SuspendLayout(); 84 76 this.panel2.SuspendLayout(); 85 77 this.panel1.SuspendLayout(); 86 this.histoGramGroupBox.SuspendLayout();87 78 this.lineChartGroupBox.SuspendLayout(); 88 79 ((System.ComponentModel.ISupportInitialize)(this.lineWidthNumericUpDown)).BeginInit(); … … 91 82 // chartTypeComboBox 92 83 // 93 this.chartTypeComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 84 this.chartTypeComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 94 85 | System.Windows.Forms.AnchorStyles.Right))); 95 86 this.chartTypeComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; … … 126 117 this.startIndexZeroCheckBox.CheckedChanged += new System.EventHandler(this.startIndexZeroCheckBox_CheckedChanged); 127 118 // 128 // binsNumericUpDown129 //130 this.binsNumericUpDown.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)131 | System.Windows.Forms.AnchorStyles.Right)));132 this.binsNumericUpDown.Location = new System.Drawing.Point(82, 19);133 this.binsNumericUpDown.Minimum = new decimal(new int[] {134 1,135 0,136 0,137 0});138 this.binsNumericUpDown.Name = "binsNumericUpDown";139 this.binsNumericUpDown.Size = new System.Drawing.Size(72, 20);140 this.binsNumericUpDown.TabIndex = 1;141 this.binsNumericUpDown.Value = new decimal(new int[] {142 1,143 0,144 0,145 0});146 this.binsNumericUpDown.ValueChanged += new System.EventHandler(this.binsNumericUpDown_ValueChanged);147 //148 119 // label1 149 120 // … … 164 135 this.label2.Text = "&Color:"; 165 136 // 166 // label3167 //168 this.label3.AutoSize = true;169 this.label3.Location = new System.Drawing.Point(6, 21);170 this.label3.Name = "label3";171 this.label3.Size = new System.Drawing.Size(30, 13);172 this.label3.TabIndex = 0;173 this.label3.Text = "&Bins:";174 //175 137 // commonGroupBox 176 138 // 177 this.commonGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 139 this.commonGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 178 140 | System.Windows.Forms.AnchorStyles.Right))); 179 141 this.commonGroupBox.Controls.Add(this.clearColorButton); … … 232 194 // displayNameTextBox 233 195 // 234 this.displayNameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 196 this.displayNameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 235 197 | System.Windows.Forms.AnchorStyles.Right))); 236 198 this.displayNameTextBox.Location = new System.Drawing.Point(102, 19); … … 242 204 // axisGroupBox 243 205 // 244 this.axisGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 245 | System.Windows.Forms.AnchorStyles.Left) 206 this.axisGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 207 | System.Windows.Forms.AnchorStyles.Left) 246 208 | System.Windows.Forms.AnchorStyles.Right))); 247 209 this.axisGroupBox.Controls.Add(this.panel2); … … 258 220 // panel2 259 221 // 260 this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 222 this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 261 223 | System.Windows.Forms.AnchorStyles.Right))); 262 224 this.panel2.Controls.Add(this.yAxisSecondaryRadioButton); … … 293 255 // panel1 294 256 // 295 this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 257 this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 296 258 | System.Windows.Forms.AnchorStyles.Right))); 297 259 this.panel1.Controls.Add(this.xAxisPrimaryRadioButton); … … 353 315 this.label9.Text = "&Name:"; 354 316 // 355 // histoGramGroupBox356 //357 this.histoGramGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)358 | System.Windows.Forms.AnchorStyles.Right)));359 this.histoGramGroupBox.Controls.Add(this.binsExactRadioButton);360 this.histoGramGroupBox.Controls.Add(this.binsApproximatelyRadioButton);361 this.histoGramGroupBox.Controls.Add(this.binsNumericUpDown);362 this.histoGramGroupBox.Controls.Add(this.label11);363 this.histoGramGroupBox.Controls.Add(this.label3);364 this.histoGramGroupBox.Controls.Add(this.aggregationComboBox);365 this.histoGramGroupBox.Location = new System.Drawing.Point(0, 305);366 this.histoGramGroupBox.Name = "histoGramGroupBox";367 this.histoGramGroupBox.Size = new System.Drawing.Size(327, 75);368 this.histoGramGroupBox.TabIndex = 2;369 this.histoGramGroupBox.TabStop = false;370 this.histoGramGroupBox.Text = "Histogram Properties";371 //372 // binsExactRadioButton373 //374 this.binsExactRadioButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));375 this.binsExactRadioButton.AutoSize = true;376 this.binsExactRadioButton.Location = new System.Drawing.Point(269, 19);377 this.binsExactRadioButton.Name = "binsExactRadioButton";378 this.binsExactRadioButton.Size = new System.Drawing.Size(52, 17);379 this.binsExactRadioButton.TabIndex = 3;380 this.binsExactRadioButton.TabStop = true;381 this.binsExactRadioButton.Text = "&Exact";382 this.binsExactRadioButton.UseVisualStyleBackColor = true;383 this.binsExactRadioButton.CheckedChanged += new System.EventHandler(this.binNumberRadioButton_CheckedChanged);384 //385 // binsApproximatelyRadioButton386 //387 this.binsApproximatelyRadioButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));388 this.binsApproximatelyRadioButton.AutoSize = true;389 this.binsApproximatelyRadioButton.Location = new System.Drawing.Point(173, 19);390 this.binsApproximatelyRadioButton.Name = "binsApproximatelyRadioButton";391 this.binsApproximatelyRadioButton.Size = new System.Drawing.Size(90, 17);392 this.binsApproximatelyRadioButton.TabIndex = 2;393 this.binsApproximatelyRadioButton.TabStop = true;394 this.binsApproximatelyRadioButton.Text = "&Approximately";395 this.binsApproximatelyRadioButton.UseVisualStyleBackColor = true;396 this.binsApproximatelyRadioButton.CheckedChanged += new System.EventHandler(this.binNumberRadioButton_CheckedChanged);397 //398 // label11399 //400 this.label11.AutoSize = true;401 this.label11.Location = new System.Drawing.Point(6, 49);402 this.label11.Name = "label11";403 this.label11.Size = new System.Drawing.Size(67, 13);404 this.label11.TabIndex = 0;405 this.label11.Text = "Aggregation:";406 //407 // aggregationComboBox408 //409 this.aggregationComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)410 | System.Windows.Forms.AnchorStyles.Right)));411 this.aggregationComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;412 this.aggregationComboBox.FormattingEnabled = true;413 this.aggregationComboBox.Location = new System.Drawing.Point(82, 45);414 this.aggregationComboBox.Name = "aggregationComboBox";415 this.aggregationComboBox.Size = new System.Drawing.Size(239, 21);416 this.aggregationComboBox.TabIndex = 3;417 this.aggregationComboBox.SelectedValueChanged += new System.EventHandler(this.aggregationComboBox_SelectedValueChanged);418 //419 317 // lineChartGroupBox 420 318 // 421 this.lineChartGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 319 this.lineChartGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 422 320 | System.Windows.Forms.AnchorStyles.Right))); 423 321 this.lineChartGroupBox.Controls.Add(this.lineWidthNumericUpDown); … … 436 334 // lineWidthNumericUpDown 437 335 // 438 this.lineWidthNumericUpDown.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 336 this.lineWidthNumericUpDown.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 439 337 | System.Windows.Forms.AnchorStyles.Right))); 440 338 this.lineWidthNumericUpDown.Location = new System.Drawing.Point(82, 66); … … 474 372 // lineStyleComboBox 475 373 // 476 this.lineStyleComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 374 this.lineStyleComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 477 375 | System.Windows.Forms.AnchorStyles.Right))); 478 376 this.lineStyleComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; … … 497 395 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 498 396 this.Controls.Add(this.lineChartGroupBox); 499 this.Controls.Add(this.histoGramGroupBox);500 397 this.Controls.Add(this.commonGroupBox); 501 398 this.Name = "DataRowVisualPropertiesControl"; 502 this.Size = new System.Drawing.Size(327, 382); 503 ((System.ComponentModel.ISupportInitialize)(this.binsNumericUpDown)).EndInit(); 399 this.Size = new System.Drawing.Size(327, 300); 504 400 this.commonGroupBox.ResumeLayout(false); 505 401 this.commonGroupBox.PerformLayout(); … … 510 406 this.panel1.ResumeLayout(false); 511 407 this.panel1.PerformLayout(); 512 this.histoGramGroupBox.ResumeLayout(false);513 this.histoGramGroupBox.PerformLayout();514 408 this.lineChartGroupBox.ResumeLayout(false); 515 409 this.lineChartGroupBox.PerformLayout(); … … 525 419 private System.Windows.Forms.Button colorButton; 526 420 private System.Windows.Forms.CheckBox startIndexZeroCheckBox; 527 private System.Windows.Forms.NumericUpDown binsNumericUpDown;528 421 private System.Windows.Forms.Label label1; 529 422 private System.Windows.Forms.Label label2; 530 private System.Windows.Forms.Label label3;531 423 private System.Windows.Forms.GroupBox commonGroupBox; 532 private System.Windows.Forms.GroupBox histoGramGroupBox;533 424 private System.Windows.Forms.RadioButton xAxisSecondaryRadioButton; 534 425 private System.Windows.Forms.RadioButton yAxisSecondaryRadioButton; … … 540 431 private System.Windows.Forms.Label label4; 541 432 private System.Windows.Forms.Label label7; 542 private System.Windows.Forms.RadioButton binsExactRadioButton;543 private System.Windows.Forms.RadioButton binsApproximatelyRadioButton;544 433 private System.Windows.Forms.ComboBox lineStyleComboBox; 545 434 private System.Windows.Forms.Label label8; … … 552 441 private System.Windows.Forms.Label label10; 553 442 private System.Windows.Forms.CheckBox isVisibleInLegendCheckBox; 554 private System.Windows.Forms.Label label11;555 private System.Windows.Forms.ComboBox aggregationComboBox;556 443 private System.Windows.Forms.Button clearColorButton; 557 444 } -
branches/PerformanceComparison/HeuristicLab.Analysis.Views/3.3/DataRowVisualPropertiesControl.cs
r14600 r15282 46 46 chartTypeComboBox.DataSource = Enum.GetValues(typeof(DataRowVisualProperties.DataRowChartType)); 47 47 lineStyleComboBox.DataSource = Enum.GetValues(typeof(DataRowVisualProperties.DataRowLineStyle)); 48 aggregationComboBox.DataSource = Enum.GetValues(typeof(DataRowVisualProperties.DataRowHistogramAggregation));49 48 clearColorButton.BackColor = Color.Transparent; 50 49 clearColorButton.BackgroundImage = VSImageLibrary.Delete; … … 66 65 startIndexZeroCheckBox.Checked = false; 67 66 lineWidthNumericUpDown.Value = 1; 68 binsNumericUpDown.Value = 1;69 binsApproximatelyRadioButton.Checked = false;70 binsExactRadioButton.Checked = false;71 aggregationComboBox.SelectedIndex = -1;72 67 displayNameTextBox.Text = String.Empty; 73 68 } else { … … 91 86 lineWidthNumericUpDown.Value = lineWidthNumericUpDown.Maximum; 92 87 else lineWidthNumericUpDown.Value = Content.LineWidth; 93 if (Content.Bins < binsNumericUpDown.Minimum)94 binsNumericUpDown.Value = binsNumericUpDown.Minimum;95 else if (Content.Bins > binsNumericUpDown.Maximum)96 binsNumericUpDown.Value = binsNumericUpDown.Maximum;97 else binsNumericUpDown.Value = Content.Bins;98 binsApproximatelyRadioButton.Checked = !Content.ExactBins;99 binsExactRadioButton.Checked = Content.ExactBins;100 aggregationComboBox.SelectedItem = Content.Aggregation;101 88 displayNameTextBox.Text = Content.DisplayName; 102 89 isVisibleInLegendCheckBox.Checked = Content.IsVisibleInLegend; … … 110 97 clearColorButton.Visible = Content != null && !Content.Color.IsEmpty; 111 98 lineChartGroupBox.Enabled = Content != null && Content.ChartType == DataRowVisualProperties.DataRowChartType.Line; 112 histoGramGroupBox.Enabled = Content != null && Content.ChartType == DataRowVisualProperties.DataRowChartType.Histogram;113 99 isVisibleInLegendCheckBox.Enabled = Content != null; 114 100 } … … 187 173 } 188 174 189 private void binsNumericUpDown_ValueChanged(object sender, EventArgs e) {190 if (!SuppressEvents && Content != null) {191 Content.Bins = (int)binsNumericUpDown.Value;192 }193 }194 195 private void binNumberRadioButton_CheckedChanged(object sender, EventArgs e) {196 if (!SuppressEvents && Content != null) {197 SuppressEvents = true;198 try {199 Content.ExactBins = binsExactRadioButton.Checked;200 } finally { SuppressEvents = false; }201 }202 }203 204 private void aggregationComboBox_SelectedValueChanged(object sender, EventArgs e) {205 if (!SuppressEvents && Content != null) {206 SuppressEvents = true;207 try {208 Content.Aggregation = (DataRowVisualProperties.DataRowHistogramAggregation)aggregationComboBox.SelectedValue;209 } finally { SuppressEvents = false; }210 }211 }212 213 175 private void displayNameTextBox_Validated(object sender, EventArgs e) { 214 176 if (!SuppressEvents && Content != null) { -
branches/PerformanceComparison/HeuristicLab.Analysis.Views/3.3/DataTableVisualPropertiesControl.Designer.cs
r14600 r15282 105 105 this.label7 = new System.Windows.Forms.Label(); 106 106 this.label8 = new System.Windows.Forms.Label(); 107 this.histogramTabPage = new System.Windows.Forms.TabPage(); 108 this.histogramGroupBox = new System.Windows.Forms.GroupBox(); 109 this.histogramBinsExactRadioButton = new System.Windows.Forms.RadioButton(); 110 this.histogramBinsApproximatelyRadioButton = new System.Windows.Forms.RadioButton(); 111 this.histogramBinsNumericUpDown = new System.Windows.Forms.NumericUpDown(); 112 this.label16 = new System.Windows.Forms.Label(); 113 this.label17 = new System.Windows.Forms.Label(); 114 this.histogramAggregationComboBox = new System.Windows.Forms.ComboBox(); 107 115 this.titleTextBox = new System.Windows.Forms.TextBox(); 108 116 this.label15 = new System.Windows.Forms.Label(); … … 131 139 this.panel6.SuspendLayout(); 132 140 this.panel5.SuspendLayout(); 141 this.histogramTabPage.SuspendLayout(); 142 this.histogramGroupBox.SuspendLayout(); 143 ((System.ComponentModel.ISupportInitialize)(this.histogramBinsNumericUpDown)).BeginInit(); 133 144 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 134 145 this.SuspendLayout(); … … 489 500 this.axisTabControl.Controls.Add(this.xAxisTabPage); 490 501 this.axisTabControl.Controls.Add(this.yAxisTabPage); 502 this.axisTabControl.Controls.Add(this.histogramTabPage); 491 503 this.axisTabControl.Location = new System.Drawing.Point(0, 84); 492 504 this.axisTabControl.Name = "axisTabControl"; … … 791 803 this.label8.TabIndex = 2; 792 804 this.label8.Text = "&Minimum:"; 805 // 806 // histogramTabPage 807 // 808 this.histogramTabPage.Controls.Add(this.histogramGroupBox); 809 this.histogramTabPage.Location = new System.Drawing.Point(4, 22); 810 this.histogramTabPage.Name = "histogramTabPage"; 811 this.histogramTabPage.Padding = new System.Windows.Forms.Padding(3); 812 this.histogramTabPage.Size = new System.Drawing.Size(447, 263); 813 this.histogramTabPage.TabIndex = 2; 814 this.histogramTabPage.Text = "Histogram"; 815 this.histogramTabPage.UseVisualStyleBackColor = true; 816 // 817 // histogramGroupBox 818 // 819 this.histogramGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 820 | System.Windows.Forms.AnchorStyles.Right))); 821 this.histogramGroupBox.Controls.Add(this.histogramBinsExactRadioButton); 822 this.histogramGroupBox.Controls.Add(this.histogramBinsApproximatelyRadioButton); 823 this.histogramGroupBox.Controls.Add(this.histogramBinsNumericUpDown); 824 this.histogramGroupBox.Controls.Add(this.label16); 825 this.histogramGroupBox.Controls.Add(this.label17); 826 this.histogramGroupBox.Controls.Add(this.histogramAggregationComboBox); 827 this.histogramGroupBox.Location = new System.Drawing.Point(3, 3); 828 this.histogramGroupBox.Name = "histogramGroupBox"; 829 this.histogramGroupBox.Size = new System.Drawing.Size(441, 75); 830 this.histogramGroupBox.TabIndex = 2; 831 this.histogramGroupBox.TabStop = false; 832 this.histogramGroupBox.Text = "Histogram Properties"; 833 // 834 // histogramBinsExactRadioButton 835 // 836 this.histogramBinsExactRadioButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 837 this.histogramBinsExactRadioButton.AutoSize = true; 838 this.histogramBinsExactRadioButton.Location = new System.Drawing.Point(383, 19); 839 this.histogramBinsExactRadioButton.Name = "histogramBinsExactRadioButton"; 840 this.histogramBinsExactRadioButton.Size = new System.Drawing.Size(52, 17); 841 this.histogramBinsExactRadioButton.TabIndex = 3; 842 this.histogramBinsExactRadioButton.TabStop = true; 843 this.histogramBinsExactRadioButton.Text = "&Exact"; 844 this.histogramBinsExactRadioButton.UseVisualStyleBackColor = true; 845 this.histogramBinsExactRadioButton.CheckedChanged += new System.EventHandler(this.histogramBinsExactRadioButton_CheckedChanged); 846 // 847 // histogramBinsApproximatelyRadioButton 848 // 849 this.histogramBinsApproximatelyRadioButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 850 this.histogramBinsApproximatelyRadioButton.AutoSize = true; 851 this.histogramBinsApproximatelyRadioButton.Location = new System.Drawing.Point(287, 19); 852 this.histogramBinsApproximatelyRadioButton.Name = "histogramBinsApproximatelyRadioButton"; 853 this.histogramBinsApproximatelyRadioButton.Size = new System.Drawing.Size(90, 17); 854 this.histogramBinsApproximatelyRadioButton.TabIndex = 2; 855 this.histogramBinsApproximatelyRadioButton.TabStop = true; 856 this.histogramBinsApproximatelyRadioButton.Text = "&Approximately"; 857 this.histogramBinsApproximatelyRadioButton.UseVisualStyleBackColor = true; 858 // 859 // histogramBinsNumericUpDown 860 // 861 this.histogramBinsNumericUpDown.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 862 | System.Windows.Forms.AnchorStyles.Right))); 863 this.histogramBinsNumericUpDown.Location = new System.Drawing.Point(82, 19); 864 this.histogramBinsNumericUpDown.Minimum = new decimal(new int[] { 865 1, 866 0, 867 0, 868 0}); 869 this.histogramBinsNumericUpDown.Name = "histogramBinsNumericUpDown"; 870 this.histogramBinsNumericUpDown.Size = new System.Drawing.Size(186, 20); 871 this.histogramBinsNumericUpDown.TabIndex = 1; 872 this.histogramBinsNumericUpDown.Value = new decimal(new int[] { 873 1, 874 0, 875 0, 876 0}); 877 this.histogramBinsNumericUpDown.ValueChanged += new System.EventHandler(this.histogramBinsNumericUpDown_ValueChanged); 878 // 879 // label16 880 // 881 this.label16.AutoSize = true; 882 this.label16.Location = new System.Drawing.Point(6, 49); 883 this.label16.Name = "label16"; 884 this.label16.Size = new System.Drawing.Size(67, 13); 885 this.label16.TabIndex = 0; 886 this.label16.Text = "Aggregation:"; 887 // 888 // label17 889 // 890 this.label17.AutoSize = true; 891 this.label17.Location = new System.Drawing.Point(6, 21); 892 this.label17.Name = "label17"; 893 this.label17.Size = new System.Drawing.Size(30, 13); 894 this.label17.TabIndex = 0; 895 this.label17.Text = "&Bins:"; 896 // 897 // histogramAggregationComboBox 898 // 899 this.histogramAggregationComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 900 | System.Windows.Forms.AnchorStyles.Right))); 901 this.histogramAggregationComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 902 this.histogramAggregationComboBox.FormattingEnabled = true; 903 this.histogramAggregationComboBox.Location = new System.Drawing.Point(82, 45); 904 this.histogramAggregationComboBox.Name = "histogramAggregationComboBox"; 905 this.histogramAggregationComboBox.Size = new System.Drawing.Size(353, 21); 906 this.histogramAggregationComboBox.TabIndex = 3; 907 this.histogramAggregationComboBox.SelectedValueChanged += new System.EventHandler(this.histogramAggregationComboBox_SelectedValueChanged); 793 908 // 794 909 // titleTextBox … … 927 1042 this.panel5.ResumeLayout(false); 928 1043 this.panel5.PerformLayout(); 1044 this.histogramTabPage.ResumeLayout(false); 1045 this.histogramGroupBox.ResumeLayout(false); 1046 this.histogramGroupBox.PerformLayout(); 1047 ((System.ComponentModel.ISupportInitialize)(this.histogramBinsNumericUpDown)).EndInit(); 929 1048 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 930 1049 this.ResumeLayout(false); … … 1005 1124 private System.Windows.Forms.CheckBox yAxisSecondaryLogScaleCheckBox; 1006 1125 private System.Windows.Forms.CheckBox yAxisPrimaryLogScaleCheckBox; 1126 private System.Windows.Forms.TabPage histogramTabPage; 1127 private System.Windows.Forms.GroupBox histogramGroupBox; 1128 private System.Windows.Forms.RadioButton histogramBinsExactRadioButton; 1129 private System.Windows.Forms.RadioButton histogramBinsApproximatelyRadioButton; 1130 private System.Windows.Forms.NumericUpDown histogramBinsNumericUpDown; 1131 private System.Windows.Forms.Label label16; 1132 private System.Windows.Forms.Label label17; 1133 private System.Windows.Forms.ComboBox histogramAggregationComboBox; 1007 1134 } 1008 1135 } -
branches/PerformanceComparison/HeuristicLab.Analysis.Views/3.3/DataTableVisualPropertiesControl.cs
r14600 r15282 20 20 #endregion 21 21 22 using System; 23 using System.Drawing; 24 using System.Windows.Forms; 22 25 using HeuristicLab.MainForm; 23 26 using HeuristicLab.MainForm.WindowsForms; 24 using System.Drawing;25 using System.Windows.Forms;26 27 27 28 namespace HeuristicLab.Analysis.Views { … … 58 59 errorProvider.SetIconPadding(yAxisSecondaryMinimumFixedTextBox, 2); 59 60 errorProvider.SetIconPadding(yAxisSecondaryMaximumFixedTextBox, 2); 61 histogramAggregationComboBox.DataSource = Enum.GetValues(typeof(DataTableVisualProperties.DataTableHistogramAggregation)); 60 62 } 61 63 … … 101 103 yAxisSecondaryMaximumFixedTextBox.Text = string.Empty; 102 104 yAxisSecondaryLogScaleCheckBox.Checked = false; 105 106 histogramBinsNumericUpDown.Value = 1; 107 histogramBinsApproximatelyRadioButton.Checked = false; 108 histogramBinsExactRadioButton.Checked = false; 109 histogramAggregationComboBox.SelectedIndex = -1; 103 110 } else { 104 111 titleFontLabel.Text = "( " + FormatFont(Content.TitleFont) + " )"; … … 139 146 yAxisSecondaryMaximumFixedTextBox.Text = Content.SecondYAxisMaximumFixedValue.ToString(); 140 147 yAxisSecondaryLogScaleCheckBox.Checked = Content.SecondYAxisLogScale; 148 149 if (Content.HistogramBins < histogramBinsNumericUpDown.Minimum) 150 histogramBinsNumericUpDown.Value = histogramBinsNumericUpDown.Minimum; 151 else if (Content.HistogramBins > histogramBinsNumericUpDown.Maximum) 152 histogramBinsNumericUpDown.Value = histogramBinsNumericUpDown.Maximum; 153 else histogramBinsNumericUpDown.Value = Content.HistogramBins; 154 histogramBinsApproximatelyRadioButton.Checked = !Content.HistogramExactBins; 155 histogramBinsExactRadioButton.Checked = Content.HistogramExactBins; 156 histogramAggregationComboBox.SelectedItem = Content.HistogramAggregation; 141 157 } 142 158 } finally { SuppressEvents = false; } … … 483 499 } 484 500 } 501 502 private void histogramBinsNumericUpDown_ValueChanged(object sender, System.EventArgs e) { 503 if (!SuppressEvents && Content != null) { 504 Content.HistogramBins = (int)histogramBinsNumericUpDown.Value; 505 } 506 } 507 508 private void histogramBinsExactRadioButton_CheckedChanged(object sender, System.EventArgs e) { 509 if (!SuppressEvents && Content != null) { 510 SuppressEvents = true; 511 try { 512 Content.HistogramExactBins = histogramBinsExactRadioButton.Checked; 513 } finally { SuppressEvents = false; } 514 } 515 } 516 517 private void histogramAggregationComboBox_SelectedValueChanged(object sender, System.EventArgs e) { 518 if (!SuppressEvents && Content != null) { 519 SuppressEvents = true; 520 try { 521 Content.HistogramAggregation = (DataTableVisualProperties.DataTableHistogramAggregation)histogramAggregationComboBox.SelectedValue; 522 } finally { SuppressEvents = false; } 523 } 524 } 485 525 #endregion 486 526 -
branches/PerformanceComparison/HeuristicLab.Analysis.Views/3.3/HeatMapView.resx
- Property svn:mergeinfo changed
-
branches/PerformanceComparison/HeuristicLab.Analysis.Views/3.3/HeuristicLab.Analysis.Views-3.3.csproj
r14600 r15282 177 177 </ItemGroup> 178 178 <ItemGroup> 179 <Compile Include="DataTableControl.cs"> 180 <SubType>UserControl</SubType> 181 </Compile> 182 <Compile Include="DataTableControl.Designer.cs"> 183 <DependentUpon>DataTableControl.cs</DependentUpon> 179 <Compile Include="DataTableView.cs"> 180 <SubType>UserControl</SubType> 181 </Compile> 182 <Compile Include="DataTableView.Designer.cs"> 183 <DependentUpon>DataTableView.cs</DependentUpon> 184 </Compile> 185 <Compile Include="GanttDataView.cs"> 186 <SubType>UserControl</SubType> 187 </Compile> 188 <Compile Include="GanttDataView.Designer.cs"> 189 <DependentUpon>GanttDataView.cs</DependentUpon> 184 190 </Compile> 185 191 <Compile Include="IndexedDataTableView.cs"> … … 189 195 <DependentUpon>IndexedDataTableView.cs</DependentUpon> 190 196 </Compile> 191 <Compile Include="ScatterPlot Control.cs">192 <SubType>UserControl</SubType> 193 </Compile> 194 <Compile Include="ScatterPlot Control.Designer.cs">195 <DependentUpon>ScatterPlot Control.cs</DependentUpon>197 <Compile Include="ScatterPlotView.cs"> 198 <SubType>UserControl</SubType> 199 </Compile> 200 <Compile Include="ScatterPlotView.Designer.cs"> 201 <DependentUpon>ScatterPlotView.cs</DependentUpon> 196 202 </Compile> 197 203 <Compile Include="ScatterPlotVisualPropertiesDialog.cs"> … … 213 219 <DependentUpon>ScatterPlotDataRowVisualPropertiesControl.cs</DependentUpon> 214 220 </Compile> 215 <Compile Include="ScatterPlotView.cs">216 <SubType>UserControl</SubType>217 </Compile>218 <Compile Include="ScatterPlotView.Designer.cs">219 <DependentUpon>ScatterPlotView.cs</DependentUpon>220 </Compile>221 221 <Compile Include="ScatterPlotHistoryView.cs"> 222 222 <SubType>UserControl</SubType> … … 282 282 <Compile Include="Plugin.cs" /> 283 283 <Compile Include="Properties\AssemblyInfo.cs" /> 284 <Compile Include="DataTableView.cs">285 <SubType>UserControl</SubType>286 </Compile>287 <Compile Include="DataTableView.Designer.cs">288 <DependentUpon>DataTableView.cs</DependentUpon>289 </Compile>290 284 <Compile Include="HistogramControl.cs"> 291 285 <SubType>UserControl</SubType> -
branches/PerformanceComparison/HeuristicLab.Analysis.Views/3.3/IndexedDataTableView.cs
r13745 r15282 158 158 series.BorderColor = Color.Empty; 159 159 160 if (row.VisualProperties.Color != Color.Empty) 161 series.Color = row.VisualProperties.Color; 162 else series.Color = Color.Empty; 160 series.Color = row.VisualProperties.Color; 163 161 series.IsVisibleInLegend = row.VisualProperties.IsVisibleInLegend; 164 162 … … 561 559 for (int i = 0; i < row.Values.Count; i++) { 562 560 var value = row.Values[i]; 561 if (IsInvalidValue(value.Item2)) continue; 563 562 var point = new DataPoint(); 564 563 point.SetValueXY(value.Item1, value.Item2); -
branches/PerformanceComparison/HeuristicLab.Analysis.Views/3.3/ScatterPlotDataRowVisualPropertiesControl.Designer.cs
r14600 r15282 65 65 this.regressionLegendTextBox = new System.Windows.Forms.TextBox(); 66 66 this.toolTip = new System.Windows.Forms.ToolTip(this.components); 67 this.clearColorButton = new System.Windows.Forms.Button(); 67 68 ((System.ComponentModel.ISupportInitialize)(this.pointSizeNumericUpDown)).BeginInit(); 68 69 this.regressionGroupBox.SuspendLayout(); … … 278 279 this.regressionLegendTextBox.Validated += new System.EventHandler(this.regressionLegendTextBox_Validated); 279 280 // 281 // clearColorButton 282 // 283 this.clearColorButton.BackColor = System.Drawing.SystemColors.ActiveCaption; 284 this.clearColorButton.Cursor = System.Windows.Forms.Cursors.Default; 285 this.clearColorButton.FlatAppearance.BorderSize = 0; 286 this.clearColorButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; 287 this.clearColorButton.ForeColor = System.Drawing.Color.Transparent; 288 this.clearColorButton.Location = new System.Drawing.Point(125, 65); 289 this.clearColorButton.Margin = new System.Windows.Forms.Padding(0); 290 this.clearColorButton.Name = "clearColorButton"; 291 this.clearColorButton.Size = new System.Drawing.Size(15, 16); 292 this.clearColorButton.TabIndex = 11; 293 this.clearColorButton.TabStop = false; 294 this.clearColorButton.UseVisualStyleBackColor = false; 295 this.clearColorButton.Click += new System.EventHandler(this.clearColorButton_Click); 296 // 280 297 // ScatterPlotDataRowVisualPropertiesControl 281 298 // 282 299 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 300 this.Controls.Add(this.clearColorButton); 283 301 this.Controls.Add(this.regressionGroupBox); 284 302 this.Controls.Add(this.pointSizeNumericUpDown); … … 324 342 private System.Windows.Forms.ToolTip toolTip; 325 343 private System.Windows.Forms.CheckBox isRegressionVisibleInLegendCheckBox; 344 private System.Windows.Forms.Button clearColorButton; 326 345 } 327 346 } -
branches/PerformanceComparison/HeuristicLab.Analysis.Views/3.3/ScatterPlotDataRowVisualPropertiesControl.cs
r14600 r15282 23 23 using System.Drawing; 24 24 using System.Windows.Forms; 25 using HeuristicLab.Common.Resources; 25 26 using HeuristicLab.MainForm; 26 27 using HeuristicLab.MainForm.WindowsForms; … … 45 46 pointStyleComboBox.DataSource = Enum.GetValues(typeof(ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle)); 46 47 regressionTypeComboBox.DataSource = Enum.GetValues(typeof(ScatterPlotDataRowVisualProperties.ScatterPlotDataRowRegressionType)); 48 clearColorButton.BackColor = Color.Transparent; 49 clearColorButton.BackgroundImage = VSImageLibrary.Delete; 47 50 SetEnabledStateOfControls(); 48 51 } … … 87 90 pointStyleComboBox.Enabled = Content != null; 88 91 colorButton.Enabled = Content != null; 89 c olorButton.Enabled = Content != null;92 clearColorButton.Visible = Content != null && !Content.Color.IsEmpty; 90 93 isVisibleInLegendCheckBox.Enabled = Content != null; 91 94 pointSizeNumericUpDown.Enabled = Content != null; … … 111 114 colorButton.BackColor = Content.Color; 112 115 colorButton.Text = String.Empty; 116 clearColorButton.Visible = true; 117 } 118 } 119 120 private void clearColorButton_Click(object sender, EventArgs e) { 121 if (!SuppressEvents && Content != null) { 122 Content.Color = Color.Empty; 123 colorButton.BackColor = SystemColors.Control; 124 colorButton.Text = "?"; 125 clearColorButton.Visible = false; 113 126 } 114 127 }
Note: See TracChangeset
for help on using the changeset viewer.