Changeset 14435


Ignore:
Timestamp:
12/01/16 15:59:54 (3 years ago)
Author:
pfleck
Message:

#2713 Added new ToolStripMenuItem to the chart for DataTableView and ScatterPlotView to open the configuration dialog.

Location:
trunk/sources/HeuristicLab.Analysis.Views/3.3
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Analysis.Views/3.3/DataTableView.Designer.cs

    r14185 r14435  
    5050      System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title();
    5151      this.chart = new HeuristicLab.Visualization.ChartControlsExtensions.EnhancedChart();
     52      this.configureToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
    5253      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
    5354      ((System.ComponentModel.ISupportInitialize)(this.chart)).BeginInit();
     
    100101      this.chart.MouseMove += new System.Windows.Forms.MouseEventHandler(this.chart_MouseMove);
    101102      //
     103      // configureToolStripMenuItem
     104      //
     105      this.configureToolStripMenuItem.Name = "configureToolStripMenuItem";
     106      this.configureToolStripMenuItem.Size = new System.Drawing.Size(256, 22);
     107      this.configureToolStripMenuItem.Text = "Configure Chart";
     108      this.configureToolStripMenuItem.Click += new System.EventHandler(this.configureToolStripMenuItem_Click);
     109      //
    102110      // DataTableView
    103111      //
     
    121129
    122130    protected HeuristicLab.Visualization.ChartControlsExtensions.EnhancedChart chart;
    123 
     131    private System.Windows.Forms.ToolStripMenuItem configureToolStripMenuItem;
    124132  }
    125133}
  • trunk/sources/HeuristicLab.Analysis.Views/3.3/DataTableView.cs

    r14185 r14435  
    2020#endregion
    2121
    22 using HeuristicLab.Collections;
    23 using HeuristicLab.Core.Views;
    24 using HeuristicLab.MainForm;
    2522using System;
    2623using System.Collections.Generic;
     
    2926using System.Windows.Forms;
    3027using System.Windows.Forms.DataVisualization.Charting;
     28using HeuristicLab.Collections;
     29using HeuristicLab.Core.Views;
     30using HeuristicLab.MainForm;
    3131
    3232namespace HeuristicLab.Analysis.Views {
     
    4848      chart.CustomizeAllChartAreas();
    4949      chart.ChartAreas[0].CursorX.Interval = 1;
     50      chart.ContextMenuStrip.Items.Add(configureToolStripMenuItem);
    5051    }
    5152
     
    451452    }
    452453    #endregion
     454    private void configureToolStripMenuItem_Click(object sender, EventArgs e) {
     455      ShowConfiguration();
     456    }
    453457    #endregion
    454458
  • trunk/sources/HeuristicLab.Analysis.Views/3.3/ScatterPlotView.Designer.cs

    r14185 r14435  
    5050      System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title();
    5151      this.chart = new HeuristicLab.Visualization.ChartControlsExtensions.EnhancedChart();
     52      this.configureToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
    5253      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
    5354      ((System.ComponentModel.ISupportInitialize)(this.chart)).BeginInit();
     
    100101      this.chart.MouseMove += new System.Windows.Forms.MouseEventHandler(this.chart_MouseMove);
    101102      //
     103      // configureToolStripMenuItem
     104      //
     105      this.configureToolStripMenuItem.Name = "configureToolStripMenuItem";
     106      this.configureToolStripMenuItem.Size = new System.Drawing.Size(256, 22);
     107      this.configureToolStripMenuItem.Text = "Configure Chart";
     108      this.configureToolStripMenuItem.Click += new System.EventHandler(configureToolStripMenuItem_Click);
     109      //
    102110      // ScatterPlotView
    103111      //
     
    117125
    118126    }
    119 
    120127    #endregion
    121128
    122129    protected HeuristicLab.Visualization.ChartControlsExtensions.EnhancedChart chart;
    123 
     130    private System.Windows.Forms.ToolStripMenuItem configureToolStripMenuItem;
    124131  }
    125132}
  • trunk/sources/HeuristicLab.Analysis.Views/3.3/ScatterPlotView.cs

    r14185 r14435  
    5050      chart.CustomizeAllChartAreas();
    5151      chart.ChartAreas[0].CursorX.Interval = 1;
     52      chart.ContextMenuStrip.Items.Add(configureToolStripMenuItem);
    5253    }
    5354
     
    395396    }
    396397    #endregion
     398    private void configureToolStripMenuItem_Click(object sender, System.EventArgs e) {
     399      ShowConfiguration();
     400    }
    397401    #endregion
    398402
Note: See TracChangeset for help on using the changeset viewer.