Changeset 10970
- Timestamp:
- 06/11/14 11:12:58 (10 years ago)
- Location:
- branches/DataPreprocessing
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/DataPreprocessingView.cs
r10969 r10970 26 26 using HeuristicLab.Core.Views; 27 27 using HeuristicLab.MainForm; 28 using HeuristicLab.DataPreprocessing;29 using HeuristicLab.Problems.DataAnalysis;30 28 31 29 namespace HeuristicLab.DataPreprocessing.Views { … … 54 52 //var correlationMatrixLogic = new ChartLogic(data); 55 53 var filterLogic = new FilterLogic(data); 56 54 57 55 //var dataCompletenessLogic = new ChartLogic(data); 58 56 … … 68 66 69 67 new FilterContent(filterLogic), 70 new ManipulationContent(manipulationLogic, searchLogic, dataGridLogic ),68 new ManipulationContent(manipulationLogic, searchLogic, dataGridLogic, filterLogic), 71 69 new TransformationContent(data) 72 70 }; -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/ManipulationView.Designer.cs
r10905 r10970 53 53 this.tabsPreview = new System.Windows.Forms.TabControl(); 54 54 this.tabPreviewInactive = new System.Windows.Forms.TabPage(); 55 this.lblPreviewInActive = new System.Windows.Forms.Label(); 55 56 this.tabPreviewDeleteColumnsInfo = new System.Windows.Forms.TabPage(); 56 57 this.lblPreviewColumnsInfo = new System.Windows.Forms.Label(); … … 75 76 this.grpBoxPreview.SuspendLayout(); 76 77 this.tabsPreview.SuspendLayout(); 78 this.tabPreviewInactive.SuspendLayout(); 77 79 this.tabPreviewDeleteColumnsInfo.SuspendLayout(); 78 80 this.tabPreviewDeleteColumnsVariance.SuspendLayout(); … … 84 86 // lstMethods 85 87 // 86 this.lstMethods.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 88 this.lstMethods.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 87 89 | System.Windows.Forms.AnchorStyles.Right))); 88 90 this.lstMethods.FormattingEnabled = true; … … 114 116 // grpBoxData 115 117 // 116 this.grpBoxData.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 118 this.grpBoxData.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 117 119 | System.Windows.Forms.AnchorStyles.Right))); 118 120 this.grpBoxData.Controls.Add(this.tabsData); … … 126 128 // tabsData 127 129 // 128 this.tabsData.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 130 this.tabsData.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 129 131 | System.Windows.Forms.AnchorStyles.Right))); 130 132 this.tabsData.Controls.Add(this.tabPage1); … … 369 371 // grpBoxPreview 370 372 // 371 this.grpBoxPreview.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 372 | System.Windows.Forms.AnchorStyles.Left) 373 this.grpBoxPreview.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 374 | System.Windows.Forms.AnchorStyles.Left) 373 375 | System.Windows.Forms.AnchorStyles.Right))); 374 376 this.grpBoxPreview.Controls.Add(this.tabsPreview); … … 382 384 // tabsPreview 383 385 // 384 this.tabsPreview.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 386 this.tabsPreview.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 385 387 | System.Windows.Forms.AnchorStyles.Right))); 386 388 this.tabsPreview.Controls.Add(this.tabPreviewInactive); … … 399 401 // tabPreviewInactive 400 402 // 403 this.tabPreviewInactive.Controls.Add(this.lblPreviewInActive); 401 404 this.tabPreviewInactive.Location = new System.Drawing.Point(4, 22); 402 405 this.tabPreviewInactive.Name = "tabPreviewInactive"; … … 406 409 this.tabPreviewInactive.Text = "inactive"; 407 410 this.tabPreviewInactive.UseVisualStyleBackColor = true; 411 // 412 // lblPreviewInActive 413 // 414 this.lblPreviewInActive.AutoSize = true; 415 this.lblPreviewInActive.Location = new System.Drawing.Point(3, 3); 416 this.lblPreviewInActive.Name = "lblPreviewInActive"; 417 this.lblPreviewInActive.Size = new System.Drawing.Size(361, 39); 418 this.lblPreviewInActive.TabIndex = 2; 419 this.lblPreviewInActive.Text = "Filters are active and thus manipulations cannot be applied!\r\n\r\nPlease deactive t" + 420 "he filter(s) first in order to be able to perform manipulations."; 408 421 // 409 422 // tabPreviewDeleteColumnsInfo … … 549 562 this.grpBoxPreview.ResumeLayout(false); 550 563 this.tabsPreview.ResumeLayout(false); 564 this.tabPreviewInactive.ResumeLayout(false); 565 this.tabPreviewInactive.PerformLayout(); 551 566 this.tabPreviewDeleteColumnsInfo.ResumeLayout(false); 552 567 this.tabPreviewDeleteColumnsInfo.PerformLayout(); … … 606 621 private System.Windows.Forms.ComboBox cmbVariableNames; 607 622 private System.Windows.Forms.Label label8; 623 private System.Windows.Forms.Label lblPreviewInActive; 608 624 } 609 625 } -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/ManipulationView.cs
r10905 r10970 45 45 tabsPreview.ItemSize = new Size(0, 1); 46 46 tabsPreview.SizeMode = TabSizeMode.Fixed; 47 lblPreviewInActive.Visible = false; 47 48 48 49 validators = new Action[] { … … 72 73 } 73 74 cmbVariableNames.SelectedIndex = 0; 75 checkFilters(); 74 76 } 75 77 } … … 78 80 base.RegisterContentEvents(); 79 81 Content.ManipulationLogic.Changed += Content_Changed; 82 Content.FilterLogic.FilterChanged += FilterLogic_FilterChanged; 80 83 } 81 84 … … 83 86 base.DeregisterContentEvents(); 84 87 Content.ManipulationLogic.Changed -= Content_Changed; 88 Content.FilterLogic.FilterChanged -= FilterLogic_FilterChanged; 89 } 90 91 private void FilterLogic_FilterChanged(object sender, EventArgs e) { 92 if (Content != null) { 93 checkFilters(); 94 } 95 } 96 97 private void checkFilters() { 98 if (Content.FilterLogic.IsFiltered) { 99 tabsPreview.SelectedIndex = 0; 100 lstMethods.Enabled = false; 101 tabsData.Enabled = false; 102 tabsPreview.Enabled = false; 103 lblPreviewInActive.Visible = true; 104 btnApply.Enabled = false; 105 } else { 106 lblPreviewInActive.Visible = false; 107 tabsData.Enabled = true; 108 tabsPreview.Enabled = true; 109 lstMethods.Enabled = true; 110 lstMethods_SelectedIndexChanged(null, null); 111 } 85 112 } 86 113 -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.4/Implementations/ManipulationContent.cs
r10905 r10970 32 32 private ISearchLogic searchLogic; 33 33 private IDataGridLogic dataGridLogic; 34 private IFilterLogic filterLogic; 34 35 35 public ManipulationContent(IManipulationLogic theManipulationLogic, ISearchLogic theSearchLogic, IDataGridLogic theDataGridLogic) { 36 public IManipulationLogic ManipulationLogic { get { return manipulationLogic; } } 37 public ISearchLogic SearchLogic { get { return searchLogic; } } 38 public IDataGridLogic DataGridLogic { get { return dataGridLogic; } } 39 public IFilterLogic FilterLogic { get { return filterLogic; } } 40 41 public static new Image StaticItemImage { 42 get { return HeuristicLab.Common.Resources.VSImageLibrary.Method; } 43 } 44 45 public ManipulationContent(IManipulationLogic theManipulationLogic, ISearchLogic theSearchLogic, IDataGridLogic theDataGridLogic, IFilterLogic theFitlerLogic) { 36 46 manipulationLogic = theManipulationLogic; 37 47 searchLogic = theSearchLogic; 38 48 dataGridLogic = theDataGridLogic; 49 filterLogic = theFitlerLogic; 39 50 } 40 51 … … 45 56 } 46 57 47 public IManipulationLogic ManipulationLogic {48 get {49 return manipulationLogic;50 }51 }52 58 53 public ISearchLogic SearchLogic {54 get {55 return searchLogic;56 }57 }58 59 public IDataGridLogic DataGridLogic {60 get {61 return dataGridLogic;62 }63 }64 65 public static new Image StaticItemImage {66 get { return HeuristicLab.Common.Resources.VSImageLibrary.Method; }67 }68 59 } 69 60 }
Note: See TracChangeset
for help on using the changeset viewer.