Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/01/10 11:45:00 (14 years ago)
Author:
mkommend
Message:

added context menu to OperatorGraphView (ticket #867)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/OperatorGraphView.Designer.cs

    r2861 r2893  
    2424    /// </summary>
    2525    private void InitializeComponent() {
    26       System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OperatorGraphView));
    27       this.graphVisualization = new HeuristicLab.Netron.NetronVisualization();
    28       ((System.ComponentModel.ISupportInitialize)(this.graphVisualization)).BeginInit();
     26      this.graphVisualizationInfoView = new HeuristicLab.Operators.Views.GraphVisualization.GraphVisualizationInfoView();
     27      this.shapeContextMenu = new System.Windows.Forms.ContextMenuStrip();
     28      this.openViewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     29      this.initialToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     30      this.breakPointToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
    2931      this.SuspendLayout();
     32      this.shapeContextMenu.SuspendLayout();
    3033      //
    31       // graphVisualization
     34      // graphVisualizationInfoView
    3235      //
    33       this.graphVisualization.AllowDrop = false;
    34       this.graphVisualization.AutoScroll = true;
    35       this.graphVisualization.BackColor = System.Drawing.Color.DarkGray;
    36       this.graphVisualization.BackgroundType = global::Netron.Diagramming.Core.CanvasBackgroundTypes.FlatColor;
    37       this.graphVisualization.Dock = System.Windows.Forms.DockStyle.Fill;
    38       this.graphVisualization.Document = ((global::Netron.Diagramming.Core.Document)(resources.GetObject("graphVisualization.Document")));
    39       this.graphVisualization.EnableAddConnection = true;
    40       this.graphVisualization.FileName = "";
    41       this.graphVisualization.Location = new System.Drawing.Point(0, 0);
    42       this.graphVisualization.Magnification = new System.Drawing.SizeF(71F, 71F);
    43       this.graphVisualization.Name = "graphVisualization";
    44       this.graphVisualization.Origin = new System.Drawing.Point(0, 0);
    45       this.graphVisualization.PageSettings = ((System.Drawing.Printing.PageSettings)(resources.GetObject("graphVisualization.PageSettings")));
    46       this.graphVisualization.ShowConnectors = true;
    47       this.graphVisualization.ShowRulers = false;
    48       this.graphVisualization.Size = new System.Drawing.Size(665, 444);
    49       this.graphVisualization.TabIndex = 0;
    50       this.graphVisualization.OnEntityRemoved += new System.EventHandler<global::Netron.Diagramming.Core.EntityEventArgs>(this.graphVisualization_OnEntityRemoved);
    51       this.graphVisualization.OnEntityAdded += new System.EventHandler<global::Netron.Diagramming.Core.EntityEventArgs>(this.graphVisualization_OnEntityAdded);
     36      this.graphVisualizationInfoView.AllowDrop = false;
     37      this.graphVisualizationInfoView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     38                  | System.Windows.Forms.AnchorStyles.Left)
     39                  | System.Windows.Forms.AnchorStyles.Right)));
     40      this.graphVisualizationInfoView.Caption = null;
     41      this.graphVisualizationInfoView.Content = null;
     42      this.graphVisualizationInfoView.Location = new System.Drawing.Point(3, 3);
     43      this.graphVisualizationInfoView.Name = "graphVisualizationInfoView";
     44      this.graphVisualizationInfoView.Size = new System.Drawing.Size(659, 336);
     45      this.graphVisualizationInfoView.TabIndex = 0;
     46      //
     47      // shapeContextMenu
     48      //
     49      this.shapeContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     50            this.openViewToolStripMenuItem,
     51            this.initialToolStripMenuItem,
     52            this.breakPointToolStripMenuItem});
     53      this.shapeContextMenu.Name = "shapeContextMenu";
     54      this.shapeContextMenu.Size = new System.Drawing.Size(154, 70);
     55      this.shapeContextMenu.Opening += new System.ComponentModel.CancelEventHandler(shapeContextMenu_Opening);
     56      //
     57      // openViewToolStripMenuItem
     58      //
     59      this.openViewToolStripMenuItem.Name = "openViewToolStripMenuItem";
     60      this.openViewToolStripMenuItem.Size = new System.Drawing.Size(153, 22);
     61      this.openViewToolStripMenuItem.Text = "Open View";
     62      this.openViewToolStripMenuItem.Click += new System.EventHandler(this.openViewToolStripMenuItem_Click);
     63      //
     64      // initialToolStripMenuItem
     65      //
     66      this.initialToolStripMenuItem.Name = "initialToolStripMenuItem";
     67      this.initialToolStripMenuItem.Size = new System.Drawing.Size(153, 22);
     68      this.initialToolStripMenuItem.Text = "Initial Operator";
     69      this.initialToolStripMenuItem.Click += new System.EventHandler(this.initialOperatorToolStripMenuItem_Click);
     70      //
     71      // BreakPointToolStripMenuItem
     72      //
     73      this.breakPointToolStripMenuItem.Name = "breakPointToolStripMenuItem";
     74      this.breakPointToolStripMenuItem.Size = new System.Drawing.Size(153, 22);
     75      this.breakPointToolStripMenuItem.Text = "Break Point";
     76      this.breakPointToolStripMenuItem.Click += new System.EventHandler(this.breakPointToolStripMenuItem_Click);
    5277      //
    5378      // OperatorGraphView
     
    5681      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    5782      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    58       this.Controls.Add(this.graphVisualization);
     83      this.Controls.Add(this.graphVisualizationInfoView);
    5984      this.Name = "OperatorGraphView";
    6085      this.Size = new System.Drawing.Size(665, 444);
    6186      this.DragDrop += new System.Windows.Forms.DragEventHandler(this.OperatorGraphView_DragDrop);
    6287      this.DragEnter += new System.Windows.Forms.DragEventHandler(this.OperatorGraphView_DragEnter);
    63       ((System.ComponentModel.ISupportInitialize)(this.graphVisualization)).EndInit();
     88      this.shapeContextMenu.ResumeLayout(false);
    6489      this.ResumeLayout(false);
    65 
    6690    }
    67 
    6891    #endregion
    6992
    70     private HeuristicLab.Netron.NetronVisualization graphVisualization;
    71 
    72 
    73 
     93    private GraphVisualizationInfoView graphVisualizationInfoView;
     94    private System.Windows.Forms.ContextMenuStrip shapeContextMenu;
     95    private System.Windows.Forms.ToolStripMenuItem openViewToolStripMenuItem;
     96    private System.Windows.Forms.ToolStripMenuItem initialToolStripMenuItem;
     97    private System.Windows.Forms.ToolStripMenuItem breakPointToolStripMenuItem;
    7498  }
    7599}
Note: See TracChangeset for help on using the changeset viewer.