Changeset 14546 for branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4
- Timestamp:
- 01/05/17 15:50:40 (8 years ago)
- Location:
- branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/DataGridContentView.Designer.cs
r14185 r14546 63 63 this.btnReplace = new System.Windows.Forms.Button(); 64 64 this.toolTip = new System.Windows.Forms.ToolTip(this.components); 65 this.uncheckAllButton = new System.Windows.Forms.Button(); 66 this.checkAllButton = new System.Windows.Forms.Button(); 67 this.checkInputsTargetButton = new System.Windows.Forms.Button(); 65 68 this.addRowButton = new System.Windows.Forms.Button(); 66 69 this.addColumnButton = new System.Windows.Forms.Button(); 67 70 this.renameColumnsButton = new System.Windows.Forms.Button(); 71 this.groupBox1 = new System.Windows.Forms.GroupBox(); 68 72 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 69 73 this.contextMenuCell.SuspendLayout(); 74 this.groupBox1.SuspendLayout(); 70 75 this.SuspendLayout(); 71 76 // … … 81 86 this.columnsTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left))); 82 87 this.columnsTextBox.Size = new System.Drawing.Size(71, 20); 83 //84 // statisticsTextBox85 //86 this.statisticsTextBox.Location = new System.Drawing.Point(3, 387);87 this.statisticsTextBox.Size = new System.Drawing.Size(421, 13);88 88 // 89 89 // btnApplySort … … 104 104 this.replaceValueOverSelectionToolStripMenuItem}); 105 105 this.contextMenuCell.Name = "contextMenuCell"; 106 this.contextMenuCell.Size = new System.Drawing.Size(22 5, 48);106 this.contextMenuCell.Size = new System.Drawing.Size(224, 48); 107 107 // 108 108 // replaceValueOverColumnToolStripMenuItem … … 116 116 this.smoothingToolStripMenuItem_Column}); 117 117 this.replaceValueOverColumnToolStripMenuItem.Name = "replaceValueOverColumnToolStripMenuItem"; 118 this.replaceValueOverColumnToolStripMenuItem.Size = new System.Drawing.Size(22 4, 22);118 this.replaceValueOverColumnToolStripMenuItem.Size = new System.Drawing.Size(223, 22); 119 119 this.replaceValueOverColumnToolStripMenuItem.Text = "Replace Value over Column"; 120 120 // … … 169 169 this.mostCommonToolStripMenuItem_Selection}); 170 170 this.replaceValueOverSelectionToolStripMenuItem.Name = "replaceValueOverSelectionToolStripMenuItem"; 171 this.replaceValueOverSelectionToolStripMenuItem.Size = new System.Drawing.Size(22 4, 22);171 this.replaceValueOverSelectionToolStripMenuItem.Size = new System.Drawing.Size(223, 22); 172 172 this.replaceValueOverSelectionToolStripMenuItem.Text = "Replace Value over Selection"; 173 173 // … … 222 222 this.btnReplace.Click += new System.EventHandler(this.btnReplace_Click); 223 223 // 224 // uncheckAllButton 225 // 226 this.uncheckAllButton.Location = new System.Drawing.Point(105, 17); 227 this.uncheckAllButton.Name = "uncheckAllButton"; 228 this.uncheckAllButton.Size = new System.Drawing.Size(43, 24); 229 this.uncheckAllButton.TabIndex = 12; 230 this.uncheckAllButton.Text = "None"; 231 this.toolTip.SetToolTip(this.uncheckAllButton, "Uncheck all variables"); 232 this.uncheckAllButton.UseVisualStyleBackColor = true; 233 this.uncheckAllButton.Click += new System.EventHandler(this.uncheckAllButton_Click); 234 // 235 // checkAllButton 236 // 237 this.checkAllButton.Location = new System.Drawing.Point(68, 17); 238 this.checkAllButton.Name = "checkAllButton"; 239 this.checkAllButton.Size = new System.Drawing.Size(31, 24); 240 this.checkAllButton.TabIndex = 13; 241 this.checkAllButton.Text = "All"; 242 this.toolTip.SetToolTip(this.checkAllButton, "Check all variables"); 243 this.checkAllButton.UseVisualStyleBackColor = true; 244 this.checkAllButton.Click += new System.EventHandler(this.checkAllButton_Click); 245 // 246 // checkInputsTargetButton 247 // 248 this.checkInputsTargetButton.Location = new System.Drawing.Point(6, 17); 249 this.checkInputsTargetButton.Name = "checkInputsTargetButton"; 250 this.checkInputsTargetButton.Size = new System.Drawing.Size(56, 24); 251 this.checkInputsTargetButton.TabIndex = 14; 252 this.checkInputsTargetButton.Text = "Inputs"; 253 this.toolTip.SetToolTip(this.checkInputsTargetButton, "Check only inputs and target variable"); 254 this.checkInputsTargetButton.UseVisualStyleBackColor = true; 255 this.checkInputsTargetButton.Click += new System.EventHandler(this.checkInputsTargetButton_Click); 256 // 224 257 // addRowButton 225 258 // … … 252 285 this.renameColumnsButton.Click += new System.EventHandler(this.renameColumnsButton_Click); 253 286 // 287 // groupBox1 288 // 289 this.groupBox1.Controls.Add(this.checkInputsTargetButton); 290 this.groupBox1.Controls.Add(this.uncheckAllButton); 291 this.groupBox1.Controls.Add(this.checkAllButton); 292 this.groupBox1.Location = new System.Drawing.Point(426, 0); 293 this.groupBox1.Name = "groupBox1"; 294 this.groupBox1.Size = new System.Drawing.Size(160, 49); 295 this.groupBox1.TabIndex = 15; 296 this.groupBox1.TabStop = false; 297 this.groupBox1.Text = "Show Variables"; 298 // 254 299 // DataGridContentView 255 300 // 256 301 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 257 302 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 303 this.Controls.Add(this.groupBox1); 258 304 this.Controls.Add(this.renameColumnsButton); 259 305 this.Controls.Add(this.addColumnButton); … … 263 309 this.Controls.Add(this.btnApplySort); 264 310 this.Name = "DataGridContentView"; 265 this.Size = new System.Drawing.Size(430, 403);266 311 this.Controls.SetChildIndex(this.btnApplySort, 0); 267 312 this.Controls.SetChildIndex(this.btnSearch, 0); … … 275 320 this.Controls.SetChildIndex(this.rowsTextBox, 0); 276 321 this.Controls.SetChildIndex(this.columnsTextBox, 0); 322 this.Controls.SetChildIndex(this.groupBox1, 0); 277 323 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 278 324 this.contextMenuCell.ResumeLayout(false); 325 this.groupBox1.ResumeLayout(false); 279 326 this.ResumeLayout(false); 280 327 this.PerformLayout(); … … 304 351 private System.Windows.Forms.Button addColumnButton; 305 352 private System.Windows.Forms.Button renameColumnsButton; 353 private System.Windows.Forms.Button uncheckAllButton; 354 private System.Windows.Forms.Button checkAllButton; 355 private System.Windows.Forms.Button checkInputsTargetButton; 356 private System.Windows.Forms.GroupBox groupBox1; 306 357 } 307 358 } -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/DataGridContentView.cs
r14525 r14546 686 686 } 687 687 } 688 689 private void checkInputsTargetButton_Click(object sender, EventArgs e) { 690 foreach (DataGridViewColumn column in DataGridView.Columns) { 691 var variable = column.HeaderText; 692 bool isInputTarget = Content.PreProcessingData.InputVariables.Contains(variable) 693 || Content.PreProcessingData.TargetVariable == variable; 694 column.Visible = isInputTarget; 695 } 696 } 697 698 private void checkAllButton_Click(object sender, EventArgs e) { 699 foreach (DataGridViewColumn column in DataGridView.Columns) { 700 column.Visible = true; 701 } 702 } 703 704 private void uncheckAllButton_Click(object sender, EventArgs e) { 705 foreach (DataGridViewColumn column in DataGridView.Columns) { 706 column.Visible = false; 707 } 708 } 688 709 } 689 710 } -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/StatisticsView.Designer.cs
r14545 r14546 56 56 this.txtMissingValuesTotal = new System.Windows.Forms.Label(); 57 57 this.stringMatrixView = new HeuristicLab.Data.Views.StringConvertibleMatrixView(); 58 this.groupBox1 = new System.Windows.Forms.GroupBox(); 59 this.checkInputsTargetButton = new System.Windows.Forms.Button(); 60 this.uncheckAllButton = new System.Windows.Forms.Button(); 61 this.checkAllButton = new System.Windows.Forms.Button(); 62 this.groupBox1.SuspendLayout(); 58 63 this.SuspendLayout(); 59 64 // … … 61 66 // 62 67 this.lblRows.AutoSize = true; 63 this.lblRows.Location = new System.Drawing.Point( 3, 11);68 this.lblRows.Location = new System.Drawing.Point(2, 6); 64 69 this.lblRows.Name = "lblRows"; 65 70 this.lblRows.Size = new System.Drawing.Size(34, 13); … … 70 75 // 71 76 this.txtRows.AutoSize = true; 72 this.txtRows.Location = new System.Drawing.Point(11 5, 11);77 this.txtRows.Location = new System.Drawing.Point(114, 6); 73 78 this.txtRows.Name = "txtRows"; 74 79 this.txtRows.Size = new System.Drawing.Size(19, 13); … … 79 84 // 80 85 this.lblColumns.AutoSize = true; 81 this.lblColumns.Location = new System.Drawing.Point( 3, 31);86 this.lblColumns.Location = new System.Drawing.Point(2, 26); 82 87 this.lblColumns.Name = "lblColumns"; 83 88 this.lblColumns.Size = new System.Drawing.Size(47, 13); … … 88 93 // 89 94 this.lblMissingValuesTotal.AutoSize = true; 90 this.lblMissingValuesTotal.Location = new System.Drawing.Point( 3, 92);95 this.lblMissingValuesTotal.Location = new System.Drawing.Point(2, 87); 91 96 this.lblMissingValuesTotal.Name = "lblMissingValuesTotal"; 92 97 this.lblMissingValuesTotal.Size = new System.Drawing.Size(100, 13); … … 97 102 // 98 103 this.txtColumns.AutoSize = true; 99 this.txtColumns.Location = new System.Drawing.Point(11 5, 31);104 this.txtColumns.Location = new System.Drawing.Point(114, 26); 100 105 this.txtColumns.Name = "txtColumns"; 101 106 this.txtColumns.Size = new System.Drawing.Size(25, 13); … … 106 111 // 107 112 this.txtNumericColumns.AutoSize = true; 108 this.txtNumericColumns.Location = new System.Drawing.Point(11 5, 51);113 this.txtNumericColumns.Location = new System.Drawing.Point(114, 46); 109 114 this.txtNumericColumns.Name = "txtNumericColumns"; 110 115 this.txtNumericColumns.Size = new System.Drawing.Size(25, 13); … … 115 120 // 116 121 this.txtNominalColumns.AutoSize = true; 117 this.txtNominalColumns.Location = new System.Drawing.Point(11 5, 72);122 this.txtNominalColumns.Location = new System.Drawing.Point(114, 67); 118 123 this.txtNominalColumns.Name = "txtNominalColumns"; 119 124 this.txtNominalColumns.Size = new System.Drawing.Size(25, 13); … … 124 129 // 125 130 this.lblNumericColumns.AutoSize = true; 126 this.lblNumericColumns.Location = new System.Drawing.Point( 3, 51);131 this.lblNumericColumns.Location = new System.Drawing.Point(2, 46); 127 132 this.lblNumericColumns.Name = "lblNumericColumns"; 128 133 this.lblNumericColumns.Size = new System.Drawing.Size(89, 13); … … 133 138 // 134 139 this.lblNominalColumns.AutoSize = true; 135 this.lblNominalColumns.Location = new System.Drawing.Point( 3, 72);140 this.lblNominalColumns.Location = new System.Drawing.Point(2, 67); 136 141 this.lblNominalColumns.Name = "lblNominalColumns"; 137 142 this.lblNominalColumns.Size = new System.Drawing.Size(88, 13); … … 142 147 // 143 148 this.txtMissingValuesTotal.AutoSize = true; 144 this.txtMissingValuesTotal.Location = new System.Drawing.Point(11 5, 92);149 this.txtMissingValuesTotal.Location = new System.Drawing.Point(114, 87); 145 150 this.txtMissingValuesTotal.Name = "txtMissingValuesTotal"; 146 151 this.txtMissingValuesTotal.Size = new System.Drawing.Size(25, 13); … … 155 160 this.stringMatrixView.Caption = "StringConvertibleMatrix View"; 156 161 this.stringMatrixView.Content = null; 157 this.stringMatrixView.Location = new System.Drawing.Point(5, 11 7);162 this.stringMatrixView.Location = new System.Drawing.Point(5, 112); 158 163 this.stringMatrixView.Name = "stringMatrixView"; 159 164 this.stringMatrixView.ReadOnly = true; 160 165 this.stringMatrixView.ShowRowsAndColumnsTextBox = false; 161 166 this.stringMatrixView.ShowStatisticalInformation = true; 162 this.stringMatrixView.Size = new System.Drawing.Size(530, 2 78);167 this.stringMatrixView.Size = new System.Drawing.Size(530, 283); 163 168 this.stringMatrixView.TabIndex = 4; 169 // 170 // groupBox1 171 // 172 this.groupBox1.Controls.Add(this.checkInputsTargetButton); 173 this.groupBox1.Controls.Add(this.uncheckAllButton); 174 this.groupBox1.Controls.Add(this.checkAllButton); 175 this.groupBox1.Location = new System.Drawing.Point(212, 3); 176 this.groupBox1.Name = "groupBox1"; 177 this.groupBox1.Size = new System.Drawing.Size(160, 49); 178 this.groupBox1.TabIndex = 16; 179 this.groupBox1.TabStop = false; 180 this.groupBox1.Text = "Show Variables"; 181 // 182 // checkInputsTargetButton 183 // 184 this.checkInputsTargetButton.Location = new System.Drawing.Point(6, 17); 185 this.checkInputsTargetButton.Name = "checkInputsTargetButton"; 186 this.checkInputsTargetButton.Size = new System.Drawing.Size(56, 24); 187 this.checkInputsTargetButton.TabIndex = 14; 188 this.checkInputsTargetButton.Text = "Inputs"; 189 this.checkInputsTargetButton.UseVisualStyleBackColor = true; 190 this.checkInputsTargetButton.Click += new System.EventHandler(this.checkInputsTargetButton_Click); 191 // 192 // uncheckAllButton 193 // 194 this.uncheckAllButton.Location = new System.Drawing.Point(105, 17); 195 this.uncheckAllButton.Name = "uncheckAllButton"; 196 this.uncheckAllButton.Size = new System.Drawing.Size(43, 24); 197 this.uncheckAllButton.TabIndex = 12; 198 this.uncheckAllButton.Text = "None"; 199 this.uncheckAllButton.UseVisualStyleBackColor = true; 200 this.uncheckAllButton.Click += new System.EventHandler(this.uncheckAllButton_Click); 201 // 202 // checkAllButton 203 // 204 this.checkAllButton.Location = new System.Drawing.Point(68, 17); 205 this.checkAllButton.Name = "checkAllButton"; 206 this.checkAllButton.Size = new System.Drawing.Size(31, 24); 207 this.checkAllButton.TabIndex = 13; 208 this.checkAllButton.Text = "All"; 209 this.checkAllButton.UseVisualStyleBackColor = true; 210 this.checkAllButton.Click += new System.EventHandler(this.checkAllButton_Click); 164 211 // 165 212 // StatisticsView … … 167 214 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 168 215 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 216 this.Controls.Add(this.groupBox1); 169 217 this.Controls.Add(this.stringMatrixView); 170 218 this.Controls.Add(this.lblNominalColumns); … … 180 228 this.Name = "StatisticsView"; 181 229 this.Size = new System.Drawing.Size(549, 408); 230 this.groupBox1.ResumeLayout(false); 182 231 this.ResumeLayout(false); 183 232 this.PerformLayout(); … … 198 247 private System.Windows.Forms.Label txtMissingValuesTotal; 199 248 private HeuristicLab.Data.Views.StringConvertibleMatrixView stringMatrixView; 249 private System.Windows.Forms.GroupBox groupBox1; 250 private System.Windows.Forms.Button checkInputsTargetButton; 251 private System.Windows.Forms.Button uncheckAllButton; 252 private System.Windows.Forms.Button checkAllButton; 200 253 } 201 254 } -
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/StatisticsView.cs
r14545 r14546 198 198 private void Content_Changed(object sender, DataPreprocessingChangedEventArgs e) { 199 199 UpdateData(); 200 //switch (e.Type) { 201 // case DataPreprocessingChangedEventType.DeleteColumn: 202 // statisticsMatrix.RemoveAt(e.Column); 203 // break; 204 // case DataPreprocessingChangedEventType.AddColumn: 205 // statisticsMatrix.Insert(e.Row, GetList(e.Column)); 206 // stringMatrixView.Content.Rows++; 207 // break; 208 // case DataPreprocessingChangedEventType.ChangeItem: 209 // statisticsMatrix[e.Column] = GetList(e.Column); 210 // break; 211 // case DataPreprocessingChangedEventType.DeleteRow: 212 // case DataPreprocessingChangedEventType.AddRow: 213 // default: 214 // for (int i = 0; i < statisticsMatrix.Count; ++i) { 215 // statisticsMatrix[i] = GetList(e.Column); 216 // } 217 // break; 218 //} 200 } 201 202 private void checkInputsTargetButton_Click(object sender, EventArgs e) { 203 foreach (DataGridViewColumn column in stringMatrixView.DataGridView.Columns) { 204 var variable = column.HeaderText; 205 bool isInputTarget = Content.PreprocessingData.InputVariables.Contains(variable) 206 || Content.PreprocessingData.TargetVariable == variable; 207 column.Visible = isInputTarget; 208 } 209 } 210 211 private void checkAllButton_Click(object sender, EventArgs e) { 212 foreach (DataGridViewColumn column in stringMatrixView.DataGridView.Columns) { 213 column.Visible = true; 214 } 215 } 216 217 private void uncheckAllButton_Click(object sender, EventArgs e) { 218 foreach (DataGridViewColumn column in stringMatrixView.DataGridView.Columns) { 219 column.Visible = false; 220 } 219 221 } 220 222 }
Note: See TracChangeset
for help on using the changeset viewer.