Changeset 1781 for trunk/sources/HeuristicLab.Visualization
- Timestamp:
- 05/12/09 00:53:40 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 7 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
- Property svn:ignore
-
old new 1 1 *.suo 2 2 TestResults 3 _ReSharper.HeuristicLab 4 *.resharper 5 HeuristicLab.resharper.user 6 HeuristicLab.4.5.resharper.user
-
- Property svn:ignore
-
trunk/sources/HeuristicLab.Visualization/3.2/HeuristicLab.Visualization-3.2.csproj
r1586 r1781 102 102 <Compile Include="CompositeShape.cs" /> 103 103 <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" /> 104 113 <Compile Include="DataRowBase.cs" /> 105 114 <Compile Include="LabelProvider\ContinuousLabelProvider.cs" /> … … 177 186 </ItemGroup> 178 187 <ItemGroup> 188 <EmbeddedResource Include="DataExport\ExportDialog.resx"> 189 <DependentUpon>ExportDialog.cs</DependentUpon> 190 </EmbeddedResource> 179 191 <EmbeddedResource Include="LineChart.resx"> 180 192 <DependentUpon>LineChart.cs</DependentUpon> -
trunk/sources/HeuristicLab.Visualization/3.2/LineChart.Designer.cs
r1530 r1781 33 33 this.components = new System.ComponentModel.Container(); 34 34 this.canvasUI = new HeuristicLab.Visualization.CanvasUI(); 35 this.contextMenu Strip1= new System.Windows.Forms.ContextMenuStrip(this.components);35 this.contextMenu = new System.Windows.Forms.ContextMenuStrip(this.components); 36 36 this.optionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 37 this.contextMenuStrip1.SuspendLayout(); 37 this.exportToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 38 this.contextMenu.SuspendLayout(); 38 39 this.SuspendLayout(); 39 40 // … … 53 54 this.canvasUI.KeyDown += new System.Windows.Forms.KeyEventHandler(this.canvasUI1_KeyDown); 54 55 // 55 // contextMenu Strip156 // contextMenu 56 57 // 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); 61 63 // 62 64 // optionsToolStripMenuItem 63 65 // 64 66 this.optionsToolStripMenuItem.Name = "optionsToolStripMenuItem"; 65 this.optionsToolStripMenuItem.Size = new System.Drawing.Size(1 22, 22);66 this.optionsToolStripMenuItem.Text = "Opti ons";67 this.optionsToolStripMenuItem.Size = new System.Drawing.Size(152, 22); 68 this.optionsToolStripMenuItem.Text = "Opti&ons..."; 67 69 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); 68 77 // 69 78 // LineChart … … 74 83 this.Name = "LineChart"; 75 84 this.Size = new System.Drawing.Size(551, 373); 76 this.contextMenu Strip1.ResumeLayout(false);85 this.contextMenu.ResumeLayout(false); 77 86 this.ResumeLayout(false); 78 87 … … 82 91 83 92 private CanvasUI canvasUI; 84 private ContextMenuStrip contextMenu Strip1;93 private ContextMenuStrip contextMenu; 85 94 private ToolStripMenuItem optionsToolStripMenuItem; 95 private ToolStripMenuItem exportToolStripMenuItem; 86 96 } 87 97 } -
trunk/sources/HeuristicLab.Visualization/3.2/LineChart.cs
r1608 r1781 5 5 using System.Windows.Forms; 6 6 using HeuristicLab.Core; 7 using HeuristicLab.Visualization.DataExport; 7 8 using HeuristicLab.Visualization.Legend; 8 9 using HeuristicLab.Visualization.Options; … … 263 264 } 264 265 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 265 276 public void OnDataRowChanged(IDataRow row) { 266 277 RowEntry rowEntry = rowToRowEntry[row]; … … 531 542 532 543 if (e.Button == MouseButtons.Right) { 533 contextMenu Strip1.Show(PointToScreen(e.Location));544 contextMenu.Show(PointToScreen(e.Location)); 534 545 } else if (e.Button == MouseButtons.Left) { 535 546 if (ModifierKeys == Keys.None) { -
trunk/sources/HeuristicLab.Visualization/3.2/LineChart.resx
r1530 r1781 118 118 <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> 119 119 </resheader> 120 <metadata name="contextMenu Strip1.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"> 121 121 <value>17, 17</value> 122 122 </metadata>
Note: See TracChangeset
for help on using the changeset viewer.