Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/06/11 17:01:30 (12 years ago)
Author:
mkommend
Message:

#1555: Implemented context menu to collapse & expand nodes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/ExperimentTreeView.Designer.cs

    r6496 r6517  
    3434    private void InitializeComponent() {
    3535      this.components = new System.ComponentModel.Container();
     36      System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ExperimentTreeView));
    3637      this.optimizersGroupBox = new System.Windows.Forms.GroupBox();
    3738      this.splitContainer = new System.Windows.Forms.SplitContainer();
     
    4142      this.moveDownButton = new System.Windows.Forms.Button();
    4243      this.addButton = new System.Windows.Forms.Button();
    43       this.optimizerTreeView = new System.Windows.Forms.TreeView();
     44      this.optimizerTreeView = new HeuristicLab.Optimization.Views.ExperimentTreeView.CustomTreeView();
    4445      this.imageList = new System.Windows.Forms.ImageList(this.components);
    4546      this.detailsGroupBox = new System.Windows.Forms.GroupBox();
    4647      this.detailsViewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost();
     48      this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
     49      this.ExpandToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     50      this.CollapseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
    4751      this.toolTip = new System.Windows.Forms.ToolTip(this.components);
    4852      this.optimizersGroupBox.SuspendLayout();
     
    5256      this.splitContainer.SuspendLayout();
    5357      this.detailsGroupBox.SuspendLayout();
     58      this.contextMenuStrip.SuspendLayout();
    5459      this.SuspendLayout();
    5560      //
     
    163168      this.optimizerTreeView.TabIndex = 10;
    164169      this.optimizerTreeView.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.optimizerTreeView_ItemDrag);
     170      this.optimizerTreeView.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.optimizerTreeview_NodeMouseClick);
     171      this.optimizerTreeView.NodeMouseDoubleClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.optimizerTreeView_NodeMouseDoubleClick);
    165172      this.optimizerTreeView.DragDrop += new System.Windows.Forms.DragEventHandler(this.optimizerTreeView_DragDrop);
    166173      this.optimizerTreeView.DragEnter += new System.Windows.Forms.DragEventHandler(this.optimizerTreeView_DragEnter);
     
    168175      this.optimizerTreeView.KeyDown += new System.Windows.Forms.KeyEventHandler(this.optimizerTreeView_KeyDown);
    169176      this.optimizerTreeView.MouseDown += new System.Windows.Forms.MouseEventHandler(this.optimizerTreeView_MouseDown);
    170       this.optimizerTreeView.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.optimizerTreeview_NodeMouseClick);
    171       this.optimizerTreeView.NodeMouseDoubleClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(optimizerTreeView_NodeMouseDoubleClick);
     177      this.optimizerTreeView.RightClick += new System.EventHandler(optimizerTreeView_RightClick);
    172178      //
    173179      // imageList
     
    206212      this.detailsViewHost.ViewType = null;
    207213      //
     214      // contextMenuStrip
     215      //
     216      this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     217            this.ExpandToolStripMenuItem,
     218            this.CollapseToolStripMenuItem});
     219      this.contextMenuStrip.Name = "contextMenuStrip";
     220      this.contextMenuStrip.Size = new System.Drawing.Size(120, 48);
     221      //
     222      // ExpandToolStripMenuItem
     223      //
     224      this.ExpandToolStripMenuItem.Name = "ExpandToolStripMenuItem";
     225      this.ExpandToolStripMenuItem.Size = new System.Drawing.Size(119, 22);
     226      this.ExpandToolStripMenuItem.Text = "Expand";
     227      this.ExpandToolStripMenuItem.Click += new System.EventHandler(this.ExpandToolStripMenuItem_Click);
     228      //
     229      // CollapseToolStripMenuItem
     230      //
     231      this.CollapseToolStripMenuItem.Name = "CollapseToolStripMenuItem";
     232      this.CollapseToolStripMenuItem.Size = new System.Drawing.Size(119, 22);
     233      this.CollapseToolStripMenuItem.Text = "Collapse";
     234      this.CollapseToolStripMenuItem.Click += new System.EventHandler(this.CollapseToolStripMenuItem_Click);
     235      //
    208236      // ExperimentTreeView
    209237      //
     
    219247      this.splitContainer.ResumeLayout(false);
    220248      this.detailsGroupBox.ResumeLayout(false);
     249      this.contextMenuStrip.ResumeLayout(false);
    221250      this.ResumeLayout(false);
    222251
     
    226255    private System.Windows.Forms.GroupBox optimizersGroupBox;
    227256    private System.Windows.Forms.SplitContainer splitContainer;
    228     private System.Windows.Forms.TreeView optimizerTreeView;
     257    private HeuristicLab.Optimization.Views.ExperimentTreeView.CustomTreeView optimizerTreeView;
    229258    private System.Windows.Forms.GroupBox detailsGroupBox;
    230259    private MainForm.WindowsForms.ViewHost detailsViewHost;
     
    236265    private System.Windows.Forms.Button addButton;
    237266    private System.Windows.Forms.ImageList imageList;
     267    private System.Windows.Forms.ContextMenuStrip contextMenuStrip;
     268    private System.Windows.Forms.ToolStripMenuItem ExpandToolStripMenuItem;
     269    private System.Windows.Forms.ToolStripMenuItem CollapseToolStripMenuItem;
    238270
    239271  }
Note: See TracChangeset for help on using the changeset viewer.