Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1781 for trunk/sources


Ignore:
Timestamp:
05/12/09 00:53:40 (16 years ago)
Author:
mstoeger
Message:

Data Export (CSV) #588

Location:
trunk/sources
Files:
7 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources

    • Property svn:ignore
      •  

        old new  
        11*.suo
        22TestResults
         3_ReSharper.HeuristicLab
         4*.resharper
         5HeuristicLab.resharper.user
         6HeuristicLab.4.5.resharper.user
  • trunk/sources/HeuristicLab.Visualization/3.2/HeuristicLab.Visualization-3.2.csproj

    r1586 r1781  
    102102    <Compile Include="CompositeShape.cs" />
    103103    <Compile Include="ChartDataRowsModelDataCollector.cs" />
     104    <Compile Include="DataExport\CSVDataExport.cs" />
     105    <Compile Include="DataExport\CSVWriter.cs" />
     106    <Compile Include="DataExport\ExportDialog.cs">
     107      <SubType>Form</SubType>
     108    </Compile>
     109    <Compile Include="DataExport\ExportDialog.Designer.cs">
     110      <DependentUpon>ExportDialog.cs</DependentUpon>
     111    </Compile>
     112    <Compile Include="DataExport\IExporter.cs" />
    104113    <Compile Include="DataRowBase.cs" />
    105114    <Compile Include="LabelProvider\ContinuousLabelProvider.cs" />
     
    177186  </ItemGroup>
    178187  <ItemGroup>
     188    <EmbeddedResource Include="DataExport\ExportDialog.resx">
     189      <DependentUpon>ExportDialog.cs</DependentUpon>
     190    </EmbeddedResource>
    179191    <EmbeddedResource Include="LineChart.resx">
    180192      <DependentUpon>LineChart.cs</DependentUpon>
  • trunk/sources/HeuristicLab.Visualization/3.2/LineChart.Designer.cs

    r1530 r1781  
    3333          this.components = new System.ComponentModel.Container();
    3434          this.canvasUI = new HeuristicLab.Visualization.CanvasUI();
    35           this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
     35          this.contextMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
    3636          this.optionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
    37           this.contextMenuStrip1.SuspendLayout();
     37          this.exportToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     38          this.contextMenu.SuspendLayout();
    3839          this.SuspendLayout();
    3940          //
     
    5354          this.canvasUI.KeyDown += new System.Windows.Forms.KeyEventHandler(this.canvasUI1_KeyDown);
    5455          //
    55           // contextMenuStrip1
     56          // contextMenu
    5657          //
    57           this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
    58             this.optionsToolStripMenuItem});
    59           this.contextMenuStrip1.Name = "contextMenuStrip1";
    60           this.contextMenuStrip1.Size = new System.Drawing.Size(123, 26);
     58          this.contextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     59            this.optionsToolStripMenuItem,
     60            this.exportToolStripMenuItem});
     61          this.contextMenu.Name = "contextMenuStrip1";
     62          this.contextMenu.Size = new System.Drawing.Size(153, 70);
    6163          //
    6264          // optionsToolStripMenuItem
    6365          //
    6466          this.optionsToolStripMenuItem.Name = "optionsToolStripMenuItem";
    65           this.optionsToolStripMenuItem.Size = new System.Drawing.Size(122, 22);
    66           this.optionsToolStripMenuItem.Text = "Options";
     67          this.optionsToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
     68          this.optionsToolStripMenuItem.Text = "Opti&ons...";
    6769          this.optionsToolStripMenuItem.Click += new System.EventHandler(this.optionsToolStripMenuItem_Click);
     70          //
     71          // exportToolStripMenuItem
     72          //
     73          this.exportToolStripMenuItem.Name = "exportToolStripMenuItem";
     74          this.exportToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
     75          this.exportToolStripMenuItem.Text = "E&xport...";
     76          this.exportToolStripMenuItem.Click += new System.EventHandler(this.exportToolStripMenuItem_Click);
    6877          //
    6978          // LineChart
     
    7483          this.Name = "LineChart";
    7584          this.Size = new System.Drawing.Size(551, 373);
    76           this.contextMenuStrip1.ResumeLayout(false);
     85          this.contextMenu.ResumeLayout(false);
    7786          this.ResumeLayout(false);
    7887
     
    8291
    8392        private CanvasUI canvasUI;
    84         private ContextMenuStrip contextMenuStrip1;
     93        private ContextMenuStrip contextMenu;
    8594        private ToolStripMenuItem optionsToolStripMenuItem;
     95        private ToolStripMenuItem exportToolStripMenuItem;
    8696    }
    8797}
  • trunk/sources/HeuristicLab.Visualization/3.2/LineChart.cs

    r1608 r1781  
    55using System.Windows.Forms;
    66using HeuristicLab.Core;
     7using HeuristicLab.Visualization.DataExport;
    78using HeuristicLab.Visualization.Legend;
    89using HeuristicLab.Visualization.Options;
     
    263264    }
    264265
     266    private void exportToolStripMenuItem_Click(object sender, EventArgs e) {
     267      ExportDialog exportdlg = new ExportDialog();
     268      exportdlg.ShowDialog(this);
     269
     270      IExporter exporter = exportdlg.SelectedExporter;
     271
     272      if (exporter != null)
     273        exporter.Export(model);
     274    }
     275
    265276    public void OnDataRowChanged(IDataRow row) {
    266277      RowEntry rowEntry = rowToRowEntry[row];
     
    531542
    532543      if (e.Button == MouseButtons.Right) {
    533         contextMenuStrip1.Show(PointToScreen(e.Location));
     544        contextMenu.Show(PointToScreen(e.Location));
    534545      } else if (e.Button == MouseButtons.Left) {
    535546        if (ModifierKeys == Keys.None) {
  • trunk/sources/HeuristicLab.Visualization/3.2/LineChart.resx

    r1530 r1781  
    118118    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
    119119  </resheader>
    120   <metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     120  <metadata name="contextMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    121121    <value>17, 17</value>
    122122  </metadata>
Note: See TracChangeset for help on using the changeset viewer.