Changeset 6640
- Timestamp:
- 08/05/11 20:11:18 (13 years ago)
- Location:
- trunk/sources/HeuristicLab.Visualization.ChartControlsExtensions/3.3
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization.ChartControlsExtensions/3.3/EnhancedChart.Designer.cs
r6342 r6640 50 50 this.copyImageToClipboardBitmapToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 51 51 this.saveFileDialog = new System.Windows.Forms.SaveFileDialog(); 52 this.exportToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 52 53 this.contextMenuStrip.SuspendLayout(); 53 54 ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); … … 58 59 this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { 59 60 this.exportChartToolStripMenuItem, 61 this.exportToolStripMenuItem, 60 62 this.copyImageToClipboardBitmapToolStripMenuItem}); 61 63 this.contextMenuStrip.Name = "contextMenuStrip"; 62 this.contextMenuStrip.Size = new System.Drawing.Size(257, 7 6);64 this.contextMenuStrip.Size = new System.Drawing.Size(257, 70); 63 65 // 64 66 // exportChartToolStripMenuItem … … 66 68 this.exportChartToolStripMenuItem.Name = "exportChartToolStripMenuItem"; 67 69 this.exportChartToolStripMenuItem.Size = new System.Drawing.Size(256, 22); 68 this.exportChartToolStripMenuItem.Text = " Export Chart";70 this.exportChartToolStripMenuItem.Text = "Quick Export Chart"; 69 71 this.exportChartToolStripMenuItem.Click += new System.EventHandler(this.exportChartToolStripMenuItem_Click); 70 72 // … … 81 83 "*.gif)|*.gif|TIFF (*.tif)|*.tif\""; 82 84 this.saveFileDialog.FilterIndex = 2; 85 // 86 // exportToolStripMenuItem 87 // 88 this.exportToolStripMenuItem.Name = "exportToolStripMenuItem"; 89 this.exportToolStripMenuItem.Size = new System.Drawing.Size(256, 22); 90 this.exportToolStripMenuItem.Text = "Export Chart..."; 91 this.exportToolStripMenuItem.Click += new System.EventHandler(this.exportToolStripMenuItem_Click); 83 92 // 84 93 // EnhancedChart … … 97 106 private System.Windows.Forms.ToolStripMenuItem copyImageToClipboardBitmapToolStripMenuItem; 98 107 private System.Windows.Forms.SaveFileDialog saveFileDialog; 108 private System.Windows.Forms.ToolStripMenuItem exportToolStripMenuItem; 99 109 } 100 110 } -
trunk/sources/HeuristicLab.Visualization.ChartControlsExtensions/3.3/EnhancedChart.cs
r5445 r6640 28 28 namespace HeuristicLab.Visualization.ChartControlsExtensions { 29 29 public partial class EnhancedChart : Chart { 30 private ImageExportDialog exportDialog; 31 30 32 public EnhancedChart() 31 33 : base() { 32 34 InitializeComponent(); 35 exportDialog = new ImageExportDialog(this); 33 36 EnableDoubleClickResetsZoom = true; 34 37 EnableMiddleClickPanning = true; … … 138 141 #endregion 139 142 140 private void exportChartToolStripMenuItem_Click(object sender, System.EventArgs e) {143 private void exportChartToolStripMenuItem_Click(object sender, EventArgs e) { 141 144 // Set image file format 142 145 if (saveFileDialog.ShowDialog() == DialogResult.OK) { … … 162 165 } 163 166 164 private void copyImageToClipboardBitmapToolStripMenuItem_Click(object sender, System.EventArgs e) { 167 private void exportToolStripMenuItem_Click(object sender, EventArgs e) { 168 exportDialog.ShowDialog(); 169 } 170 171 private void copyImageToClipboardBitmapToolStripMenuItem_Click(object sender, EventArgs e) { 165 172 System.IO.MemoryStream stream = new System.IO.MemoryStream(); 166 173 SaveImage(stream, System.Drawing.Imaging.ImageFormat.Bmp); -
trunk/sources/HeuristicLab.Visualization.ChartControlsExtensions/3.3/HeuristicLab.Visualization.ChartControlsExtensions-3.3.csproj
r6514 r6640 128 128 <DependentUpon>HistogramControl.cs</DependentUpon> 129 129 </Compile> 130 <Compile Include="ImageExportDialog.cs"> 131 <SubType>Form</SubType> 132 </Compile> 133 <Compile Include="ImageExportDialog.Designer.cs"> 134 <DependentUpon>ImageExportDialog.cs</DependentUpon> 135 </Compile> 130 136 <Compile Include="Properties\AssemblyInfo.cs" /> 131 137 </ItemGroup> … … 140 146 <Name>HeuristicLab.PluginInfrastructure-3.3</Name> 141 147 </ProjectReference> 148 </ItemGroup> 149 <ItemGroup> 150 <None Include="Resources\HeuristicLabLogo.png" /> 151 </ItemGroup> 152 <ItemGroup> 153 <None Include="Resources\genotype_FDC.jpg" /> 142 154 </ItemGroup> 143 155 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Note: See TracChangeset
for help on using the changeset viewer.