Free cookie consent management tool by TermsFeed Policy Generator

Changeset 12399


Ignore:
Timestamp:
05/26/15 14:02:50 (9 years ago)
Author:
pfleck
Message:

#2387

  • Added context-menu for expanding and collapsing tree-nodes.
  • Improve response time when expanding/collapsing all nodes for TypeSelector and NewItemDialog.
Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core.Views/3.3/TypeSelector.Designer.cs

    r12398 r12399  
    4343      this.searchTextBox = new System.Windows.Forms.TextBox();
    4444      this.clearSearchButton = new System.Windows.Forms.Button();
     45      this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
     46      this.expandToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     47      this.expandAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     48      this.collapseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     49      this.collapseAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
    4550      this.typeParametersGroupBox = new System.Windows.Forms.GroupBox();
    4651      this.setTypeParameterButton = new System.Windows.Forms.Button();
     
    5762      this.typeParametersSplitContainer.SuspendLayout();
    5863      this.typeParametersGroupBox.SuspendLayout();
     64      this.contextMenuStrip.SuspendLayout();
    5965      this.SuspendLayout();
    6066      //
     
    7682      this.typesTreeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.typesTreeView_AfterSelect);
    7783      this.typesTreeView.VisibleChanged += new System.EventHandler(this.typesTreeView_VisibleChanged);
     84      this.typesTreeView.MouseDown += new System.Windows.Forms.MouseEventHandler(this.typesTreeView_MouseDown);
    7885      //
    7986      // imageList
     
    237244      this.descriptionTextBox.TabIndex = 0;
    238245      //
     246      // contextMenuStrip
     247      //
     248      this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     249            this.expandToolStripMenuItem,
     250            this.expandAllToolStripMenuItem,
     251            this.collapseToolStripMenuItem,
     252            this.collapseAllToolStripMenuItem});
     253      this.contextMenuStrip.Name = "contextMenuStrip";
     254      this.contextMenuStrip.Size = new System.Drawing.Size(137, 92);
     255      //
     256      // expandToolStripMenuItem
     257      //
     258      this.expandToolStripMenuItem.Name = "expandToolStripMenuItem";
     259      this.expandToolStripMenuItem.Size = new System.Drawing.Size(136, 22);
     260      this.expandToolStripMenuItem.Text = "Expand";
     261      this.expandToolStripMenuItem.Click += new System.EventHandler(this.expandToolStripMenuItem_Click);
     262      //
     263      // expandAllToolStripMenuItem
     264      //
     265      this.expandAllToolStripMenuItem.Name = "expandAllToolStripMenuItem";
     266      this.expandAllToolStripMenuItem.Size = new System.Drawing.Size(136, 22);
     267      this.expandAllToolStripMenuItem.Text = "Expand All";
     268      this.expandAllToolStripMenuItem.Click += new System.EventHandler(this.expandAllToolStripMenuItem_Click);
     269      //
     270      // collapseToolStripMenuItem
     271      //
     272      this.collapseToolStripMenuItem.Name = "collapseToolStripMenuItem";
     273      this.collapseToolStripMenuItem.Size = new System.Drawing.Size(136, 22);
     274      this.collapseToolStripMenuItem.Text = "Collapse";
     275      this.collapseToolStripMenuItem.Click += new System.EventHandler(this.collapseToolStripMenuItem_Click);
     276      //
     277      // collapseAllToolStripMenuItem
     278      //
     279      this.collapseAllToolStripMenuItem.Name = "collapseAllToolStripMenuItem";
     280      this.collapseAllToolStripMenuItem.Size = new System.Drawing.Size(136, 22);
     281      this.collapseAllToolStripMenuItem.Text = "Collapse All";
     282      this.collapseAllToolStripMenuItem.Click += new System.EventHandler(this.collapseAllToolStripMenuItem_Click);
     283      //
    239284      // TypeSelector
    240285      //
     
    254299      this.typeParametersSplitContainer.ResumeLayout(false);
    255300      this.typeParametersGroupBox.ResumeLayout(false);
     301      this.contextMenuStrip.ResumeLayout(false);
    256302      this.ResumeLayout(false);
    257303
     
    269315    protected System.Windows.Forms.Button clearSearchButton;
    270316    protected System.Windows.Forms.ToolTip toolTip;
     317    protected System.Windows.Forms.ContextMenuStrip contextMenuStrip;
     318    protected System.Windows.Forms.ToolStripMenuItem expandToolStripMenuItem;
     319    protected System.Windows.Forms.ToolStripMenuItem expandAllToolStripMenuItem;
     320    protected System.Windows.Forms.ToolStripMenuItem collapseToolStripMenuItem;
     321    protected System.Windows.Forms.ToolStripMenuItem collapseAllToolStripMenuItem;
    271322    protected System.Windows.Forms.SplitContainer typeParametersSplitContainer;
    272323    protected System.Windows.Forms.GroupBox typeParametersGroupBox;
     
    274325    protected System.Windows.Forms.Button setTypeParameterButton;
    275326    protected System.Windows.Forms.ColumnHeader columnHeader1;
    276 
    277327  }
    278328}
  • trunk/sources/HeuristicLab.Optimizer/3.3/NewItemDialog.cs

    r12398 r12399  
    369369
    370370    private void expandToolStripMenuItem_Click(object sender, EventArgs e) {
     371      typesTreeView.BeginUpdate();
    371372      if (toolStripMenuNode != null) toolStripMenuNode.ExpandAll();
     373      typesTreeView.EndUpdate();
    372374    }
    373375    private void expandAllToolStripMenuItem_Click(object sender, EventArgs e) {
     376      typesTreeView.BeginUpdate();
    374377      typesTreeView.ExpandAll();
     378      typesTreeView.EndUpdate();
    375379    }
    376380    private void collapseToolStripMenuItem_Click(object sender, EventArgs e) {
     381      typesTreeView.BeginUpdate();
    377382      if (toolStripMenuNode != null) toolStripMenuNode.Collapse();
     383      typesTreeView.EndUpdate();
    378384    }
    379385    private void collapseAllToolStripMenuItem_Click(object sender, EventArgs e) {
     386      typesTreeView.BeginUpdate();
    380387      typesTreeView.CollapseAll();
     388      typesTreeView.EndUpdate();
    381389    }
    382390
Note: See TracChangeset for help on using the changeset viewer.