Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/14/11 00:18:46 (14 years ago)
Author:
abeham
Message:

#1465

  • worked on histogram integration
    • Added control to display DataRowVisualProperties
    • Added a dialog to select the DataRowVisualProperties of different series
    • Added a Properties menu item to the context menu and an option to show or hide this item (default is hide)
Location:
branches/histogram/HeuristicLab.Visualization.ChartControlsExtensions/3.3
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/histogram/HeuristicLab.Visualization.ChartControlsExtensions/3.3/EnhancedChart.Designer.cs

    r5445 r6010  
    5050      this.copyImageToClipboardBitmapToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
    5151      this.saveFileDialog = new System.Windows.Forms.SaveFileDialog();
     52      this.propertiesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     53      this.propertiesToolStripSeparator = new System.Windows.Forms.ToolStripSeparator();
    5254      this.contextMenuStrip.SuspendLayout();
    5355      ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
     
    5860      this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
    5961            this.exportChartToolStripMenuItem,
    60             this.copyImageToClipboardBitmapToolStripMenuItem});
     62            this.copyImageToClipboardBitmapToolStripMenuItem,
     63            this.propertiesToolStripSeparator,
     64            this.propertiesToolStripMenuItem});
    6165      this.contextMenuStrip.Name = "contextMenuStrip";
    62       this.contextMenuStrip.Size = new System.Drawing.Size(257, 48);
     66      this.contextMenuStrip.Size = new System.Drawing.Size(257, 76);
     67      this.contextMenuStrip.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuStrip_Opening);
    6368      //
    6469      // exportChartToolStripMenuItem
     
    7883      // saveFileDialog
    7984      //
    80       this.saveFileDialog.Filter = "Bitmap (*.bmp)|*.bmp|JPEG (*.jpg)|*.jpg|EMF (*.emf)|*.emf|PNG (*.png)|*.png|GIF " +
    81           "(*.gif)|*.gif|TIFF (*.tif)|*.tif\"";
     85      this.saveFileDialog.Filter = "Bitmap (*.bmp)|*.bmp|JPEG (*.jpg)|*.jpg|EMF (*.emf)|*.emf|PNG (*.png)|*.png|GIF (" +
     86          "*.gif)|*.gif|TIFF (*.tif)|*.tif\"";
    8287      this.saveFileDialog.FilterIndex = 2;
     88      //
     89      // propertiesToolStripMenuItem
     90      //
     91      this.propertiesToolStripMenuItem.Name = "propertiesToolStripMenuItem";
     92      this.propertiesToolStripMenuItem.Size = new System.Drawing.Size(256, 22);
     93      this.propertiesToolStripMenuItem.Text = "Properties";
     94      this.propertiesToolStripMenuItem.Click += new System.EventHandler(this.propertiesToolStripMenuItem_Click);
     95      //
     96      // propertiesToolStripSeparator
     97      //
     98      this.propertiesToolStripSeparator.Name = "propertiesToolStripSeparator";
     99      this.propertiesToolStripSeparator.Size = new System.Drawing.Size(253, 6);
    83100      //
    84101      // EnhancedChart
     
    97114    private System.Windows.Forms.ToolStripMenuItem copyImageToClipboardBitmapToolStripMenuItem;
    98115    private System.Windows.Forms.SaveFileDialog saveFileDialog;
     116    private System.Windows.Forms.ToolStripSeparator propertiesToolStripSeparator;
     117    private System.Windows.Forms.ToolStripMenuItem propertiesToolStripMenuItem;
    99118  }
    100119}
  • branches/histogram/HeuristicLab.Visualization.ChartControlsExtensions/3.3/EnhancedChart.cs

    r5445 r6010  
    4040    [DefaultValue(true)]
    4141    public bool EnableMiddleClickPanning { get; set; }
     42    [DefaultValue(false)]
     43    public bool ShowPropertiesContextMenuItem { get; set; }
    4244
    4345    public static void CustomizeChartArea(ChartArea chartArea) {
     
    138140    #endregion
    139141
     142    private void contextMenuStrip_Opening(object sender, CancelEventArgs e) {
     143      propertiesToolStripSeparator.Visible = ShowPropertiesContextMenuItem;
     144      propertiesToolStripMenuItem.Visible = ShowPropertiesContextMenuItem;
     145    }
     146
    140147    private void exportChartToolStripMenuItem_Click(object sender, System.EventArgs e) {
    141148      // Set image file format
     
    168175      Clipboard.SetDataObject(bmp);
    169176    }
     177
     178    private void propertiesToolStripMenuItem_Click(object sender, EventArgs e) {
     179      OnPropertiesClicked();
     180    }
     181
     182    public event EventHandler PropertiesClicked;
     183    private void OnPropertiesClicked() {
     184      var handler = PropertiesClicked;
     185      if (handler != null) handler(this, EventArgs.Empty);
     186    }
    170187  }
    171188}
  • branches/histogram/HeuristicLab.Visualization.ChartControlsExtensions/3.3/HeuristicLab.Visualization.ChartControlsExtensions-3.3.csproj

    r5970 r6010  
    141141    </ProjectReference>
    142142  </ItemGroup>
     143  <ItemGroup>
     144    <EmbeddedResource Include="EnhancedChart.resx">
     145      <DependentUpon>EnhancedChart.cs</DependentUpon>
     146    </EmbeddedResource>
     147  </ItemGroup>
    143148  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    144149  <PropertyGroup>
Note: See TracChangeset for help on using the changeset viewer.