Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4628


Ignore:
Timestamp:
10/20/10 14:38:17 (14 years ago)
Author:
mkommend
Message:

Minor changes in EnhancedChart (ticket #1237).

Location:
trunk/sources/HeuristicLab.Visualization.ChartControlsExtensions/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Visualization.ChartControlsExtensions/3.3/EnhancedChart.Designer.cs

    r4614 r4628  
    2727      this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
    2828      this.saveImageToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
    29       this.copyImageToClipboardToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     29      this.copyImageToClipboardBitmapToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
    3030      this.contextMenuStrip.SuspendLayout();
    3131      ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
     
    3636      this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
    3737            this.saveImageToolStripMenuItem,
    38             this.copyImageToClipboardToolStripMenuItem});
     38            this.copyImageToClipboardBitmapToolStripMenuItem});
    3939      this.contextMenuStrip.Name = "contextMenuStrip";
    40       this.contextMenuStrip.Size = new System.Drawing.Size(208, 48);
     40      this.contextMenuStrip.Size = new System.Drawing.Size(257, 70);
    4141      //
    4242      // saveImageToolStripMenuItem
    4343      //
    4444      this.saveImageToolStripMenuItem.Name = "saveImageToolStripMenuItem";
    45       this.saveImageToolStripMenuItem.Size = new System.Drawing.Size(207, 22);
     45      this.saveImageToolStripMenuItem.Size = new System.Drawing.Size(256, 22);
    4646      this.saveImageToolStripMenuItem.Text = "Save Image";
    4747      this.saveImageToolStripMenuItem.Click += new System.EventHandler(this.saveImageToolStripMenuItem_Click);
    4848      //
    49       // copyImageToClipboardToolStripMenuItem
     49      // copyImageToClipboardBitmapToolStripMenuItem
    5050      //
    51       this.copyImageToClipboardToolStripMenuItem.Name = "copyImageToClipboardToolStripMenuItem";
    52       this.copyImageToClipboardToolStripMenuItem.Size = new System.Drawing.Size(207, 22);
    53       this.copyImageToClipboardToolStripMenuItem.Text = "Copy Image to Clipboard";
    54       this.copyImageToClipboardToolStripMenuItem.Click += new System.EventHandler(this.copyImageToClipboardToolStripMenuItem_Click);
     51      this.copyImageToClipboardBitmapToolStripMenuItem.Name = "copyImageToClipboardBitmapToolStripMenuItem";
     52      this.copyImageToClipboardBitmapToolStripMenuItem.Size = new System.Drawing.Size(256, 22);
     53      this.copyImageToClipboardBitmapToolStripMenuItem.Text = "Copy Image to Clipboard (Bitmap)";
     54      this.copyImageToClipboardBitmapToolStripMenuItem.Click += new System.EventHandler(this.copyImageToClipboardBitmapToolStripMenuItem_Click);
     55      //
     56      // EnhancedChart
     57      //
     58      this.ContextMenuStrip = this.contextMenuStrip;
    5559      this.contextMenuStrip.ResumeLayout(false);
    5660      ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
     
    6367    private System.Windows.Forms.ContextMenuStrip contextMenuStrip;
    6468    private System.Windows.Forms.ToolStripMenuItem saveImageToolStripMenuItem;
    65     private System.Windows.Forms.ToolStripMenuItem copyImageToClipboardToolStripMenuItem;
     69    private System.Windows.Forms.ToolStripMenuItem copyImageToClipboardBitmapToolStripMenuItem;
    6670  }
    6771}
  • trunk/sources/HeuristicLab.Visualization.ChartControlsExtensions/3.3/EnhancedChart.cs

    r4621 r4628  
    2626namespace HeuristicLab.Visualization.ChartControlsExtensions {
    2727  public partial class EnhancedChart : Chart {
    28 
    29 
    3028    public EnhancedChart()
    3129      : base() {
     30      InitializeComponent();
    3231      EnableDoubleClickResetsZoom = true;
    3332      EnableMiddleClickPanning = true;
     
    4241    public void InitializeChartAreas() {
    4342      ChartAreas.Clear();
    44       ChartAreas.Add(GetDefaultChartArea("ChartArea"));
     43      ChartAreas.Add(CreateDefaultChartArea("ChartArea"));
    4544    }
    4645
    47     public static ChartArea GetDefaultChartArea(string name) {
     46    public static ChartArea CreateDefaultChartArea(string name) {
    4847      ChartArea chartArea = new ChartArea(name);
    4948      chartArea.AxisX.MajorGrid.LineColor = SystemColors.GradientInactiveCaption;
     
    8685
    8786    private class PanningSupport {
    88 
    8987      public ChartArea ChartArea { get; private set; }
    9088
     
    150148      // the choices that appear in the "Save as file type" or
    151149      // "Files of type" box in the dialog box.
    152       saveFileDialog.Filter = "Bitmap (*.bmp)|*.bmp|JPEG (*.jpg)|*.jpg|EMF (*.emf)|*.emf|PNG (*.png)|*.png|SVG (*.svg)|*.svg|GIF (*.gif)|*.gif|TIFF (*.tif)|*.tif";
     150      saveFileDialog.Filter = "Bitmap (*.bmp)|*.bmp|JPEG (*.jpg)|*.jpg|EMF (*.emf)|*.emf|PNG (*.png)|*.png|GIF (*.gif)|*.gif|TIFF (*.tif)|*.tif";
    153151      saveFileDialog.FilterIndex = 2;
    154152      saveFileDialog.RestoreDirectory = true;
     
    177175    }
    178176
    179     private void copyImageToClipboardToolStripMenuItem_Click(object sender, System.EventArgs e) {
     177    private void copyImageToClipboardBitmapToolStripMenuItem_Click(object sender, System.EventArgs e) {
    180178      System.IO.MemoryStream stream = new System.IO.MemoryStream();
    181179      SaveImage(stream, System.Drawing.Imaging.ImageFormat.Bmp);
Note: See TracChangeset for help on using the changeset viewer.