Changeset 12393


Ignore:
Timestamp:
05/19/15 16:26:42 (4 years ago)
Author:
pfleck
Message:

#2025

  • Removed Expand/CollapseAll buttons.
  • Removed cycling of items.
Location:
trunk/sources/HeuristicLab.Optimizer/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimizer/3.3/NewItemDialog.Designer.cs

    r12305 r12393  
    5151      this.toolTip = new System.Windows.Forms.ToolTip(this.components);
    5252      this.searchLabel = new System.Windows.Forms.Label();
    53       this.expandAllButton = new System.Windows.Forms.Button();
    54       this.collapseAllButton = new System.Windows.Forms.Button();
    5553      this.searchTextBox = new System.Windows.Forms.TextBox();
    5654      this.clearSearchButton = new System.Windows.Forms.Button();
     
    5957      this.typesTreeView = new System.Windows.Forms.TreeView();
    6058      this.imageList = new System.Windows.Forms.ImageList(this.components);
     59      this.descriptionSplitContainer = new System.Windows.Forms.SplitContainer();
    6160      this.itemGroupBox = new System.Windows.Forms.GroupBox();
    6261      this.itemDescriptionTextBox = new System.Windows.Forms.TextBox();
     
    7069      this.collapseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
    7170      this.collapseAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
    72       this.descriptionSplitContainer = new System.Windows.Forms.SplitContainer();
    7371      this.searchTextBox.SuspendLayout();
    7472      ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit();
     
    7775      this.splitContainer.SuspendLayout();
    7876      this.availableItemsGroupBox.SuspendLayout();
    79       this.itemGroupBox.SuspendLayout();
    80       this.pluginDescriptionGroupBox.SuspendLayout();
    81       this.contextMenuStrip.SuspendLayout();
    8277      ((System.ComponentModel.ISupportInitialize)(this.descriptionSplitContainer)).BeginInit();
    8378      this.descriptionSplitContainer.Panel1.SuspendLayout();
    8479      this.descriptionSplitContainer.Panel2.SuspendLayout();
    8580      this.descriptionSplitContainer.SuspendLayout();
     81      this.itemGroupBox.SuspendLayout();
     82      this.pluginDescriptionGroupBox.SuspendLayout();
     83      this.contextMenuStrip.SuspendLayout();
    8684      this.SuspendLayout();
    8785      //
     
    118116      this.searchLabel.TabIndex = 0;
    119117      this.toolTip.SetToolTip(this.searchLabel, "Enter string to search for items");
    120       //
    121       // expandAllButton
    122       //
    123       this.expandAllButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
    124       this.expandAllButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.ZoomIn;
    125       this.expandAllButton.Location = new System.Drawing.Point(12, 587);
    126       this.expandAllButton.Name = "expandAllButton";
    127       this.expandAllButton.Size = new System.Drawing.Size(23, 23);
    128       this.expandAllButton.TabIndex = 0;
    129       this.expandAllButton.TabStop = false;
    130       this.toolTip.SetToolTip(this.expandAllButton, "Expand all nodes.");
    131       this.expandAllButton.UseVisualStyleBackColor = true;
    132       this.expandAllButton.Click += new System.EventHandler(this.expandAllButton_Click);
    133       //
    134       // collapseAllButton
    135       //
    136       this.collapseAllButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
    137       this.collapseAllButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.ZoomOut;
    138       this.collapseAllButton.Location = new System.Drawing.Point(41, 587);
    139       this.collapseAllButton.Name = "collapseAllButton";
    140       this.collapseAllButton.Size = new System.Drawing.Size(23, 23);
    141       this.collapseAllButton.TabIndex = 0;
    142       this.collapseAllButton.TabStop = false;
    143       this.toolTip.SetToolTip(this.collapseAllButton, "Collapse all nodes.");
    144       this.collapseAllButton.UseVisualStyleBackColor = true;
    145       this.collapseAllButton.Click += new System.EventHandler(this.collapseAllButton_Click);
    146118      //
    147119      // searchTextBox
     
    240212      this.imageList.TransparentColor = System.Drawing.Color.Transparent;
    241213      //
     214      // descriptionSplitContainer
     215      //
     216      this.descriptionSplitContainer.Dock = System.Windows.Forms.DockStyle.Fill;
     217      this.descriptionSplitContainer.Location = new System.Drawing.Point(0, 0);
     218      this.descriptionSplitContainer.Name = "descriptionSplitContainer";
     219      this.descriptionSplitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal;
     220      //
     221      // descriptionSplitContainer.Panel1
     222      //
     223      this.descriptionSplitContainer.Panel1.Controls.Add(this.itemGroupBox);
     224      //
     225      // descriptionSplitContainer.Panel2
     226      //
     227      this.descriptionSplitContainer.Panel2.Controls.Add(this.pluginDescriptionGroupBox);
     228      this.descriptionSplitContainer.Size = new System.Drawing.Size(600, 192);
     229      this.descriptionSplitContainer.SplitterDistance = 81;
     230      this.descriptionSplitContainer.TabIndex = 1;
     231      this.descriptionSplitContainer.TabStop = false;
     232      //
    242233      // itemGroupBox
    243234      //
     
    353344      this.collapseAllToolStripMenuItem.Click += new System.EventHandler(this.collapseAllToolStripMenuItem_Click);
    354345      //
    355       // descriptionSplitContainer
    356       //
    357       this.descriptionSplitContainer.Dock = System.Windows.Forms.DockStyle.Fill;
    358       this.descriptionSplitContainer.Location = new System.Drawing.Point(0, 0);
    359       this.descriptionSplitContainer.Name = "descriptionSplitContainer";
    360       this.descriptionSplitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal;
    361       //
    362       // descriptionSplitContainer.Panel1
    363       //
    364       this.descriptionSplitContainer.Panel1.Controls.Add(this.itemGroupBox);
    365       //
    366       // descriptionSplitContainer.Panel2
    367       //
    368       this.descriptionSplitContainer.Panel2.Controls.Add(this.pluginDescriptionGroupBox);
    369       this.descriptionSplitContainer.Size = new System.Drawing.Size(600, 192);
    370       this.descriptionSplitContainer.SplitterDistance = 81;
    371       this.descriptionSplitContainer.TabIndex = 1;
    372       this.descriptionSplitContainer.TabStop = false;
    373       //
    374346      // NewItemDialog
    375347      //
     
    381353      this.Controls.Add(this.cancelButton);
    382354      this.Controls.Add(this.okButton);
    383       this.Controls.Add(this.expandAllButton);
    384       this.Controls.Add(this.collapseAllButton);
    385355      this.MaximizeBox = false;
    386356      this.MinimizeBox = false;
     
    400370      this.availableItemsGroupBox.ResumeLayout(false);
    401371      this.availableItemsGroupBox.PerformLayout();
     372      this.descriptionSplitContainer.Panel1.ResumeLayout(false);
     373      this.descriptionSplitContainer.Panel2.ResumeLayout(false);
     374      ((System.ComponentModel.ISupportInitialize)(this.descriptionSplitContainer)).EndInit();
     375      this.descriptionSplitContainer.ResumeLayout(false);
    402376      this.itemGroupBox.ResumeLayout(false);
    403377      this.itemGroupBox.PerformLayout();
     
    405379      this.pluginDescriptionGroupBox.PerformLayout();
    406380      this.contextMenuStrip.ResumeLayout(false);
    407       this.descriptionSplitContainer.Panel1.ResumeLayout(false);
    408       this.descriptionSplitContainer.Panel2.ResumeLayout(false);
    409       ((System.ComponentModel.ISupportInitialize)(this.descriptionSplitContainer)).EndInit();
    410       this.descriptionSplitContainer.ResumeLayout(false);
    411381      this.ResumeLayout(false);
    412382
     
    424394    private System.Windows.Forms.TreeView typesTreeView;
    425395    private System.Windows.Forms.ImageList imageList;
    426     private System.Windows.Forms.Button expandAllButton;
    427     private System.Windows.Forms.Button collapseAllButton;
    428396    private System.Windows.Forms.GroupBox availableItemsGroupBox;
    429397    private System.Windows.Forms.GroupBox pluginDescriptionGroupBox;
  • trunk/sources/HeuristicLab.Optimizer/3.3/NewItemDialog.cs

    r12305 r12393  
    336336    }
    337337
    338     private void expandAllButton_Click(object sender, EventArgs e) {
    339       typesTreeView.ExpandAll();
    340     }
    341     private void collapseAllButton_Click(object sender, EventArgs e) {
    342       typesTreeView.CollapseAll();
    343     }
    344 
    345338    private TreeNode toolStripMenuNode = null;
    346339    private void typesTreeView_MouseDown(object sender, MouseEventArgs e) {
     
    398391        var selectedNode = typesTreeView.SelectedNode;
    399392
    400         if (selectedNode == null) { // nothing selected => select first or last
     393        if (selectedNode == null) { // nothing selected => select first
    401394          if (e.KeyCode == Keys.Down) typesTreeView.SelectedNode = FirstVisibleNode;
    402           if (e.KeyCode == Keys.Up) typesTreeView.SelectedNode = LastVisibleNode;
    403395        } else {
    404           if (e.KeyCode == Keys.Down)
    405             typesTreeView.SelectedNode = selectedNode.NextVisibleNode ?? FirstVisibleNode; // select next or cycle to first
    406           if (e.KeyCode == Keys.Up)
    407             typesTreeView.SelectedNode = selectedNode.PrevVisibleNode ?? LastVisibleNode; // select prev or cycle to last
     396          if (e.KeyCode == Keys.Down && selectedNode.NextVisibleNode != null)
     397            typesTreeView.SelectedNode = selectedNode.NextVisibleNode;
     398          if (e.KeyCode == Keys.Up && selectedNode.PrevVisibleNode != null)
     399            typesTreeView.SelectedNode = selectedNode.PrevVisibleNode;
    408400        }
    409401        e.Handled = true;
Note: See TracChangeset for help on using the changeset viewer.