- Timestamp:
- 06/11/14 12:35:14 (10 years ago)
- Location:
- branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/CheckedTransformationListView.cs
r10902 r10977 56 56 57 57 return (ITransformation)typeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType(new[] { columnNames }); 58 } catch (Exception ex) { 58 } 59 catch (Exception ex) { 59 60 ErrorHandling.ShowErrorDialog(this, ex); 60 61 } -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/DataPreprocessingView.cs
r10970 r10977 67 67 new FilterContent(filterLogic), 68 68 new ManipulationContent(manipulationLogic, searchLogic, dataGridLogic, filterLogic), 69 new TransformationContent(data )69 new TransformationContent(data, filterLogic) 70 70 }; 71 71 -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/ManipulationView.Designer.cs
r10970 r10977 419 419 this.lblPreviewInActive.Text = "Filters are active and thus manipulations cannot be applied!\r\n\r\nPlease deactive t" + 420 420 "he filter(s) first in order to be able to perform manipulations."; 421 this.lblPreviewInActive.Visible = false; 421 422 // 422 423 // tabPreviewDeleteColumnsInfo -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/ManipulationView.cs
r10970 r10977 45 45 tabsPreview.ItemSize = new Size(0, 1); 46 46 tabsPreview.SizeMode = TabSizeMode.Fixed; 47 lblPreviewInActive.Visible = false;48 47 49 48 validators = new Action[] { … … 73 72 } 74 73 cmbVariableNames.SelectedIndex = 0; 75 checkFilters();74 CheckFilters(); 76 75 } 77 76 } … … 91 90 private void FilterLogic_FilterChanged(object sender, EventArgs e) { 92 91 if (Content != null) { 93 checkFilters();94 } 95 } 96 97 private void checkFilters() {92 CheckFilters(); 93 } 94 } 95 96 private void CheckFilters() { 98 97 if (Content.FilterLogic.IsFiltered) { 99 98 tabsPreview.SelectedIndex = 0; -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/TransformationView.Designer.cs
r10948 r10977 47 47 /// </summary> 48 48 private void InitializeComponent() { 49 this.transformationListView = new HeuristicLab.DataPreprocessing.Views.CheckedTransformationListView();50 49 this.applyButton = new System.Windows.Forms.Button(); 51 50 this.preserveColumnsCheckbox = new System.Windows.Forms.CheckBox(); 51 this.lblFilterNotice = new System.Windows.Forms.Label(); 52 this.transformationListView = new HeuristicLab.DataPreprocessing.Views.CheckedTransformationListView(); 52 53 this.SuspendLayout(); 53 //54 // transformationListView55 //56 this.transformationListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)57 | System.Windows.Forms.AnchorStyles.Left)58 | System.Windows.Forms.AnchorStyles.Right)));59 this.transformationListView.Caption = "Transformations";60 this.transformationListView.Content = null;61 this.transformationListView.Location = new System.Drawing.Point(0, 0);62 this.transformationListView.Name = "transformationListView";63 this.transformationListView.ReadOnly = false;64 this.transformationListView.Size = new System.Drawing.Size(627, 482);65 this.transformationListView.TabIndex = 0;66 54 // 67 55 // applyButton … … 87 75 this.preserveColumnsCheckbox.UseVisualStyleBackColor = true; 88 76 // 77 // lblFilterNotice 78 // 79 this.lblFilterNotice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 80 this.lblFilterNotice.AutoSize = true; 81 this.lblFilterNotice.Location = new System.Drawing.Point(20, 493); 82 this.lblFilterNotice.Name = "lblFilterNotice"; 83 this.lblFilterNotice.Size = new System.Drawing.Size(274, 13); 84 this.lblFilterNotice.TabIndex = 3; 85 this.lblFilterNotice.Text = "Transformations cannot be applied since a filter is active!"; 86 this.lblFilterNotice.Visible = false; 87 // 88 // transformationListView 89 // 90 this.transformationListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 91 | System.Windows.Forms.AnchorStyles.Left) 92 | System.Windows.Forms.AnchorStyles.Right))); 93 this.transformationListView.Caption = "Transformations"; 94 this.transformationListView.Content = null; 95 this.transformationListView.Location = new System.Drawing.Point(0, 0); 96 this.transformationListView.Name = "transformationListView"; 97 this.transformationListView.ReadOnly = false; 98 this.transformationListView.Size = new System.Drawing.Size(627, 482); 99 this.transformationListView.TabIndex = 0; 100 // 89 101 // TransformationView 90 102 // 91 103 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 92 104 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 105 this.Controls.Add(this.lblFilterNotice); 93 106 this.Controls.Add(this.preserveColumnsCheckbox); 94 107 this.Controls.Add(this.applyButton); … … 105 118 private System.Windows.Forms.Button applyButton; 106 119 private System.Windows.Forms.CheckBox preserveColumnsCheckbox; 120 private System.Windows.Forms.Label lblFilterNotice; 107 121 } 108 122 } -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/TransformationView.cs
r10948 r10977 48 48 } else { 49 49 transformationListView.Content = Content.CheckedTransformationList; 50 CheckFilters(); 51 } 52 } 53 54 /// <summary> 55 /// Adds eventhandlers to the current instance. 56 /// </summary> 57 protected override void RegisterContentEvents() { 58 Content.FilterLogic.FilterChanged += FilterLogic_FilterChanged; 59 } 60 61 /// <summary> 62 /// Removes the eventhandlers from the current instance. 63 /// </summary> 64 protected override void DeregisterContentEvents() { 65 Content.FilterLogic.FilterChanged -= FilterLogic_FilterChanged; 66 } 67 68 void FilterLogic_FilterChanged(object sender, EventArgs e) { 69 if (Content != null) { 70 CheckFilters(); 71 } 72 } 73 74 private void CheckFilters() { 75 if (Content.FilterLogic.IsFiltered) { 76 applyButton.Enabled = false; 77 lblFilterNotice.Visible = true; 78 } else { 79 applyButton.Enabled = true; 80 lblFilterNotice.Visible = false; 50 81 } 51 82 }
Note: See TracChangeset
for help on using the changeset viewer.