Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/20/16 15:28:14 (7 years ago)
Author:
pfleck
Message:

#2709

  • Added Check Inputs/All/None buttons instead of showing disabled buttons of the ItemCollectionView.
  • Removed the PreprocessingCheckedItemListView. A standard ListView is used instead.
  • Fixed slow updating when simultaneously (un-)checking multiple variables in the chart views. (currently only works by using the new buttons)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/PreprocessingCheckedVariablesView.Designer.cs

    r14381 r14511  
    4747      this.components = new System.ComponentModel.Container();
    4848      this.splitContainer = new System.Windows.Forms.SplitContainer();
    49       this.checkedItemList = new HeuristicLab.DataPreprocessing.Views.PreprocessingCheckedItemListView();
    50       this.variablesListcontextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
    51       this.checkInputsTargetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
    52       this.checkOnlyInputsTargetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
    53       this.checkAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
    54       this.uncheckAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     49      this.groupBox1 = new System.Windows.Forms.GroupBox();
     50      this.uncheckAllButton = new System.Windows.Forms.Button();
     51      this.checkAllButton = new System.Windows.Forms.Button();
     52      this.checkInputsTargetButton = new System.Windows.Forms.Button();
     53      this.variablesListView = new System.Windows.Forms.ListView();
     54      this.columnHeader = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     55      this.toolTip = new System.Windows.Forms.ToolTip(this.components);
    5556      ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit();
    5657      this.splitContainer.Panel1.SuspendLayout();
    5758      this.splitContainer.SuspendLayout();
    58       this.variablesListcontextMenuStrip.SuspendLayout();
     59      this.groupBox1.SuspendLayout();
    5960      this.SuspendLayout();
    6061      //
     
    6263      //
    6364      this.splitContainer.Dock = System.Windows.Forms.DockStyle.Fill;
     65      this.splitContainer.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
    6466      this.splitContainer.Location = new System.Drawing.Point(0, 0);
    6567      this.splitContainer.Name = "splitContainer";
     
    6769      // splitContainer.Panel1
    6870      //
    69       this.splitContainer.Panel1.Controls.Add(this.checkedItemList);
     71      this.splitContainer.Panel1.Controls.Add(this.groupBox1);
    7072      this.splitContainer.Size = new System.Drawing.Size(654, 403);
    71       this.splitContainer.SplitterDistance = 91;
     73      this.splitContainer.SplitterDistance = 180;
    7274      this.splitContainer.TabIndex = 7;
    7375      //
    74       // checkedItemList
     76      // groupBox1
    7577      //
    76       this.checkedItemList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    77             | System.Windows.Forms.AnchorStyles.Left)
     78      this.groupBox1.Controls.Add(this.uncheckAllButton);
     79      this.groupBox1.Controls.Add(this.checkAllButton);
     80      this.groupBox1.Controls.Add(this.checkInputsTargetButton);
     81      this.groupBox1.Controls.Add(this.variablesListView);
     82      this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
     83      this.groupBox1.Location = new System.Drawing.Point(0, 0);
     84      this.groupBox1.Name = "groupBox1";
     85      this.groupBox1.Size = new System.Drawing.Size(180, 403);
     86      this.groupBox1.TabIndex = 7;
     87      this.groupBox1.TabStop = false;
     88      this.groupBox1.Text = "Variables";
     89      //
     90      // uncheckAllButton
     91      //
     92      this.uncheckAllButton.Location = new System.Drawing.Point(66, 19);
     93      this.uncheckAllButton.Name = "uncheckAllButton";
     94      this.uncheckAllButton.Size = new System.Drawing.Size(24, 24);
     95      this.uncheckAllButton.TabIndex = 7;
     96      this.uncheckAllButton.Text = "N";
     97      this.toolTip.SetToolTip(this.uncheckAllButton, "Uncheck all variables");
     98      this.uncheckAllButton.UseVisualStyleBackColor = true;
     99      this.uncheckAllButton.Click += new System.EventHandler(this.uncheckAllButton_Click);
     100      //
     101      // checkAllButton
     102      //
     103      this.checkAllButton.Location = new System.Drawing.Point(36, 19);
     104      this.checkAllButton.Name = "checkAllButton";
     105      this.checkAllButton.Size = new System.Drawing.Size(24, 24);
     106      this.checkAllButton.TabIndex = 7;
     107      this.checkAllButton.Text = "A";
     108      this.toolTip.SetToolTip(this.checkAllButton, "Check all variables");
     109      this.checkAllButton.UseVisualStyleBackColor = true;
     110      this.checkAllButton.Click += new System.EventHandler(this.checkAllButton_Click);
     111      //
     112      // checkInputsTargetButton
     113      //
     114      this.checkInputsTargetButton.Location = new System.Drawing.Point(6, 19);
     115      this.checkInputsTargetButton.Name = "checkInputsTargetButton";
     116      this.checkInputsTargetButton.Size = new System.Drawing.Size(24, 24);
     117      this.checkInputsTargetButton.TabIndex = 7;
     118      this.checkInputsTargetButton.Text = "I";
     119      this.toolTip.SetToolTip(this.checkInputsTargetButton, "Check only inputs and target variable");
     120      this.checkInputsTargetButton.UseVisualStyleBackColor = true;
     121      this.checkInputsTargetButton.Click += new System.EventHandler(this.checkInputsTargetButton_Click);
     122      //
     123      // variablesListView
     124      //
     125      this.variablesListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     126            | System.Windows.Forms.AnchorStyles.Left)
    78127            | System.Windows.Forms.AnchorStyles.Right)));
    79       this.checkedItemList.Caption = "View";
    80       this.checkedItemList.Content = null;
    81       this.checkedItemList.ContextMenuStrip = this.variablesListcontextMenuStrip;
    82       this.checkedItemList.Location = new System.Drawing.Point(4, 4);
    83       this.checkedItemList.Name = "checkedItemList";
    84       this.checkedItemList.ReadOnly = false;
    85       this.checkedItemList.Size = new System.Drawing.Size(84, 252);
    86       this.checkedItemList.TabIndex = 4;
     128      this.variablesListView.CheckBoxes = true;
     129      this.variablesListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
     130            this.columnHeader});
     131      this.variablesListView.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
     132      this.variablesListView.HideSelection = false;
     133      this.variablesListView.Location = new System.Drawing.Point(6, 49);
     134      this.variablesListView.Name = "variablesListView";
     135      this.variablesListView.Size = new System.Drawing.Size(168, 348);
     136      this.variablesListView.TabIndex = 6;
     137      this.variablesListView.UseCompatibleStateImageBehavior = false;
     138      this.variablesListView.View = System.Windows.Forms.View.Details;
    87139      //
    88       // variablesListcontextMenuStrip
     140      // columnHeader
    89141      //
    90       this.variablesListcontextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
    91             this.checkInputsTargetToolStripMenuItem,
    92             this.checkOnlyInputsTargetToolStripMenuItem,
    93             this.checkAllToolStripMenuItem,
    94             this.uncheckAllToolStripMenuItem});
    95       this.variablesListcontextMenuStrip.Name = "variablesListcontextMenuStrip";
    96       this.variablesListcontextMenuStrip.Size = new System.Drawing.Size(211, 92);
    97       this.variablesListcontextMenuStrip.Opening += new System.ComponentModel.CancelEventHandler(this.variablesListcontextMenuStrip_Opening);
    98       //
    99       // checkInputsTargetToolStripMenuItem
    100       //
    101       this.checkInputsTargetToolStripMenuItem.Name = "checkInputsTargetToolStripMenuItem";
    102       this.checkInputsTargetToolStripMenuItem.Size = new System.Drawing.Size(210, 22);
    103       this.checkInputsTargetToolStripMenuItem.Text = "Check Inputs+Target";
    104       this.checkInputsTargetToolStripMenuItem.Click += new System.EventHandler(this.checkInputsTargetToolStripMenuItem_Click);
    105       //
    106       // checkOnlyInputsTargetToolStripMenuItem
    107       //
    108       this.checkOnlyInputsTargetToolStripMenuItem.Name = "checkOnlyInputsTargetToolStripMenuItem";
    109       this.checkOnlyInputsTargetToolStripMenuItem.Size = new System.Drawing.Size(210, 22);
    110       this.checkOnlyInputsTargetToolStripMenuItem.Text = "Check only Inputs+Target";
    111       this.checkOnlyInputsTargetToolStripMenuItem.Click += new System.EventHandler(this.checkOnlyInputsTargetToolStripMenuItem_Click);
    112       //
    113       // checkAllToolStripMenuItem
    114       //
    115       this.checkAllToolStripMenuItem.Name = "checkAllToolStripMenuItem";
    116       this.checkAllToolStripMenuItem.Size = new System.Drawing.Size(210, 22);
    117       this.checkAllToolStripMenuItem.Text = "Check All";
    118       this.checkAllToolStripMenuItem.Click += new System.EventHandler(this.checkAllToolStripMenuItem_Click);
    119       //
    120       // uncheckAllToolStripMenuItem
    121       //
    122       this.uncheckAllToolStripMenuItem.Name = "uncheckAllToolStripMenuItem";
    123       this.uncheckAllToolStripMenuItem.Size = new System.Drawing.Size(210, 22);
    124       this.uncheckAllToolStripMenuItem.Text = "Uncheck All";
    125       this.uncheckAllToolStripMenuItem.Click += new System.EventHandler(this.uncheckAllToolStripMenuItem_Click);
     142      this.columnHeader.Text = "";
     143      this.columnHeader.Width = 164;
    126144      //
    127145      // PreprocessingCheckedVariablesView
     
    135153      ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).EndInit();
    136154      this.splitContainer.ResumeLayout(false);
    137       this.variablesListcontextMenuStrip.ResumeLayout(false);
     155      this.groupBox1.ResumeLayout(false);
    138156      this.ResumeLayout(false);
    139157
     
    141159
    142160    #endregion
    143 
    144     protected PreprocessingCheckedItemListView checkedItemList;
    145161    protected System.Windows.Forms.SplitContainer splitContainer;
    146     private System.Windows.Forms.ContextMenuStrip variablesListcontextMenuStrip;
    147     private System.Windows.Forms.ToolStripMenuItem checkInputsTargetToolStripMenuItem;
    148     private System.Windows.Forms.ToolStripMenuItem checkAllToolStripMenuItem;
    149     private System.Windows.Forms.ToolStripMenuItem uncheckAllToolStripMenuItem;
    150     private System.Windows.Forms.ToolStripMenuItem checkOnlyInputsTargetToolStripMenuItem;
     162    private System.Windows.Forms.ListView variablesListView;
     163    private System.Windows.Forms.GroupBox groupBox1;
     164    private System.Windows.Forms.ToolTip toolTip;
     165    private System.Windows.Forms.ColumnHeader columnHeader;
     166    private System.Windows.Forms.Button checkInputsTargetButton;
     167    private System.Windows.Forms.Button uncheckAllButton;
     168    private System.Windows.Forms.Button checkAllButton;
    151169  }
    152170}
Note: See TracChangeset for help on using the changeset viewer.