2009-06-30 15:36:17 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: plotdxf.cpp
|
|
|
|
// Purpose:
|
|
|
|
// Author: Lorenzo Marcantonio
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/2006 08:37:24
|
|
|
|
// RCS-ID:
|
|
|
|
// Copyright: GNU License
|
|
|
|
// Licence:
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
// Generated by DialogBlocks (unregistered), 01/02/2006 08:37:24
|
|
|
|
|
2009-11-04 20:46:53 +00:00
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
2009-06-30 15:36:17 +00:00
|
|
|
#pragma implementation "plotdxf.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "fctsys.h"
|
|
|
|
#include "gr_basic.h"
|
|
|
|
#include "common.h"
|
2009-09-25 18:49:04 +00:00
|
|
|
#include "plot_common.h"
|
2009-06-30 15:36:17 +00:00
|
|
|
#include "confirm.h"
|
2009-09-25 18:49:04 +00:00
|
|
|
#include "worksheet.h"
|
|
|
|
|
2009-06-30 15:36:17 +00:00
|
|
|
#include "program.h"
|
|
|
|
#include "general.h"
|
|
|
|
#include "protos.h"
|
|
|
|
|
2009-09-25 18:49:04 +00:00
|
|
|
|
2009-11-04 20:46:53 +00:00
|
|
|
static bool Plot_Sheet_Ref = TRUE;
|
2009-06-30 15:36:17 +00:00
|
|
|
|
|
|
|
#include "plotdxf.h"
|
|
|
|
|
|
|
|
////@begin XPM images
|
|
|
|
////@end XPM images
|
|
|
|
|
|
|
|
|
|
|
|
void WinEDA_SchematicFrame::ToPlot_DXF( wxCommandEvent& event )
|
|
|
|
{
|
|
|
|
wxPoint pos;
|
|
|
|
|
|
|
|
pos = GetPosition();
|
|
|
|
|
|
|
|
pos.x += 10;
|
|
|
|
pos.y += 20;
|
|
|
|
|
|
|
|
WinEDA_PlotDXFFrame* DXF_frame = new WinEDA_PlotDXFFrame( this );
|
|
|
|
|
|
|
|
DXF_frame->ShowModal();
|
|
|
|
DXF_frame->Destroy();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* WinEDA_PlotDXFFrame type definition
|
|
|
|
*/
|
|
|
|
|
|
|
|
IMPLEMENT_DYNAMIC_CLASS( WinEDA_PlotDXFFrame, wxDialog )
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* WinEDA_PlotDXFFrame event table definition
|
|
|
|
*/
|
|
|
|
|
|
|
|
BEGIN_EVENT_TABLE( WinEDA_PlotDXFFrame, wxDialog )
|
|
|
|
|
|
|
|
////@begin WinEDA_PlotDXFFrame event table entries
|
2009-11-04 20:46:53 +00:00
|
|
|
EVT_BUTTON( ID_PLOT_DXF_CURRENT_EXECUTE,
|
|
|
|
WinEDA_PlotDXFFrame::OnPlotDXFCurrentExecuteClick )
|
2009-06-30 15:36:17 +00:00
|
|
|
|
2009-11-04 20:46:53 +00:00
|
|
|
EVT_BUTTON( ID_PLOT_DXF_ALL_EXECUTE,
|
|
|
|
WinEDA_PlotDXFFrame::OnPlotDXFAllExecuteClick )
|
2009-06-30 15:36:17 +00:00
|
|
|
|
|
|
|
EVT_BUTTON( wxID_CANCEL, WinEDA_PlotDXFFrame::OnCancelClick )
|
|
|
|
|
|
|
|
////@end WinEDA_PlotDXFFrame event table entries
|
|
|
|
|
|
|
|
END_EVENT_TABLE()
|
|
|
|
/*!
|
|
|
|
* WinEDA_PlotDXFFrame constructors
|
|
|
|
*/
|
|
|
|
|
|
|
|
WinEDA_PlotDXFFrame::WinEDA_PlotDXFFrame()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
WinEDA_PlotDXFFrame::WinEDA_PlotDXFFrame( WinEDA_DrawFrame* parent,
|
2009-11-04 20:46:53 +00:00
|
|
|
wxWindowID id,
|
|
|
|
const wxString& caption,
|
|
|
|
const wxPoint& pos,
|
|
|
|
const wxSize& size,
|
|
|
|
long style )
|
2009-06-30 15:36:17 +00:00
|
|
|
{
|
|
|
|
m_Parent = parent;
|
|
|
|
PlotDXFColorOpt = false;
|
|
|
|
Create( parent, id, caption, pos, size, style );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* WinEDA_PlotDXFFrame creator
|
|
|
|
*/
|
|
|
|
|
|
|
|
bool WinEDA_PlotDXFFrame::Create( wxWindow* parent,
|
2009-11-04 20:46:53 +00:00
|
|
|
wxWindowID id,
|
|
|
|
const wxString& caption,
|
|
|
|
const wxPoint& pos,
|
|
|
|
const wxSize& size,
|
|
|
|
long style )
|
2009-06-30 15:36:17 +00:00
|
|
|
{
|
|
|
|
////@begin WinEDA_PlotDXFFrame member initialisation
|
|
|
|
m_PlotDXFColorOption = NULL;
|
2009-11-04 20:46:53 +00:00
|
|
|
m_Plot_Sheet_Ref = NULL;
|
2009-06-30 15:36:17 +00:00
|
|
|
m_btClose = NULL;
|
2009-11-04 20:46:53 +00:00
|
|
|
m_MsgBox = NULL;
|
|
|
|
|
2009-06-30 15:36:17 +00:00
|
|
|
////@end WinEDA_PlotDXFFrame member initialisation
|
|
|
|
|
|
|
|
////@begin WinEDA_PlotDXFFrame creation
|
2009-11-04 20:46:53 +00:00
|
|
|
SetExtraStyle( wxWS_EX_BLOCK_EVENTS );
|
2009-06-30 15:36:17 +00:00
|
|
|
wxDialog::Create( parent, id, caption, pos, size, style );
|
|
|
|
|
|
|
|
CreateControls();
|
2009-11-04 20:46:53 +00:00
|
|
|
if( GetSizer() )
|
2009-06-30 15:36:17 +00:00
|
|
|
{
|
2009-11-04 20:46:53 +00:00
|
|
|
GetSizer()->SetSizeHints( this );
|
2009-06-30 15:36:17 +00:00
|
|
|
}
|
|
|
|
Centre();
|
2009-11-04 20:46:53 +00:00
|
|
|
|
2009-06-30 15:36:17 +00:00
|
|
|
////@end WinEDA_PlotDXFFrame creation
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2009-11-04 20:46:53 +00:00
|
|
|
|
2009-06-30 15:36:17 +00:00
|
|
|
/*!
|
|
|
|
* Control creation for WinEDA_PlotDXFFrame
|
|
|
|
*/
|
|
|
|
|
|
|
|
void WinEDA_PlotDXFFrame::CreateControls()
|
|
|
|
{
|
|
|
|
////@begin WinEDA_PlotDXFFrame content construction
|
|
|
|
// Generated by DialogBlocks, 24/04/2009 14:25:24 (unregistered)
|
|
|
|
|
|
|
|
WinEDA_PlotDXFFrame* itemDialog1 = this;
|
|
|
|
|
2009-11-04 20:46:53 +00:00
|
|
|
wxBoxSizer* itemBoxSizer2 = new wxBoxSizer( wxVERTICAL );
|
2009-06-30 15:36:17 +00:00
|
|
|
|
2009-11-04 20:46:53 +00:00
|
|
|
itemDialog1->SetSizer( itemBoxSizer2 );
|
2009-06-30 15:36:17 +00:00
|
|
|
|
2009-11-04 20:46:53 +00:00
|
|
|
wxBoxSizer* itemBoxSizer3 = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
itemBoxSizer2->Add( itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL | wxALL, 5 );
|
2009-06-30 15:36:17 +00:00
|
|
|
|
2009-11-04 20:46:53 +00:00
|
|
|
wxStaticBox* itemStaticBoxSizer6Static =
|
|
|
|
new wxStaticBox( itemDialog1, wxID_ANY, _( "Plot Options:" ) );
|
|
|
|
wxStaticBoxSizer* itemStaticBoxSizer6 =
|
|
|
|
new wxStaticBoxSizer( itemStaticBoxSizer6Static, wxVERTICAL );
|
|
|
|
itemBoxSizer3->Add( itemStaticBoxSizer6,
|
|
|
|
0,
|
|
|
|
wxALIGN_CENTER_VERTICAL | wxALL,
|
|
|
|
5 );
|
2009-06-30 15:36:17 +00:00
|
|
|
|
2009-11-04 20:46:53 +00:00
|
|
|
wxArrayString m_PlotDXFColorOptionStrings;
|
|
|
|
m_PlotDXFColorOptionStrings.Add( _( "B/W" ) );
|
|
|
|
m_PlotDXFColorOptionStrings.Add( _( "Color" ) );
|
|
|
|
m_PlotDXFColorOption =
|
|
|
|
new wxRadioBox( itemDialog1, ID_RADIOBOX, _( "Plot Color:" ),
|
|
|
|
wxDefaultPosition, wxDefaultSize,
|
|
|
|
m_PlotDXFColorOptionStrings, 1, wxRA_SPECIFY_COLS );
|
|
|
|
m_PlotDXFColorOption->SetSelection( 0 );
|
|
|
|
itemStaticBoxSizer6->Add( m_PlotDXFColorOption, 0, wxGROW | wxALL, 5 );
|
|
|
|
|
|
|
|
m_Plot_Sheet_Ref =
|
|
|
|
new wxCheckBox( itemDialog1, ID_CHECKBOX, _( "Print Sheet Ref" ),
|
|
|
|
wxDefaultPosition, wxDefaultSize, wxCHK_2STATE );
|
|
|
|
m_Plot_Sheet_Ref->SetValue( false );
|
|
|
|
itemStaticBoxSizer6->Add( m_Plot_Sheet_Ref, 0, wxGROW | wxALL, 5 );
|
|
|
|
|
|
|
|
itemBoxSizer3->Add( 5, 5, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5 );
|
|
|
|
|
|
|
|
wxBoxSizer* itemBoxSizer10 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
itemBoxSizer3->Add( itemBoxSizer10, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5 );
|
|
|
|
|
|
|
|
wxButton* itemButton11 = new wxButton( itemDialog1,
|
|
|
|
ID_PLOT_DXF_CURRENT_EXECUTE,
|
|
|
|
_( "&Plot Page" ),
|
|
|
|
wxDefaultPosition,
|
|
|
|
wxDefaultSize,
|
|
|
|
0 );
|
2009-06-30 15:36:17 +00:00
|
|
|
itemButton11->SetDefault();
|
2009-11-04 20:46:53 +00:00
|
|
|
itemBoxSizer10->Add( itemButton11, 0, wxGROW | wxALL, 5 );
|
|
|
|
|
|
|
|
wxButton* itemButton12 = new wxButton( itemDialog1,
|
|
|
|
ID_PLOT_DXF_ALL_EXECUTE,
|
|
|
|
_( "Plot A&LL" ),
|
|
|
|
wxDefaultPosition,
|
|
|
|
wxDefaultSize,
|
|
|
|
0 );
|
|
|
|
itemBoxSizer10->Add( itemButton12, 0, wxGROW | wxALL, 5 );
|
|
|
|
|
|
|
|
m_btClose = new wxButton( itemDialog1, wxID_CANCEL, _( "Close" ),
|
|
|
|
wxDefaultPosition, wxDefaultSize,
|
|
|
|
0 );
|
|
|
|
itemBoxSizer10->Add( m_btClose, 0, wxGROW | wxALL, 5 );
|
|
|
|
|
|
|
|
wxStaticText* itemStaticText15 = new wxStaticText( itemDialog1,
|
|
|
|
wxID_STATIC,
|
|
|
|
_( "Messages :" ),
|
|
|
|
wxDefaultPosition,
|
|
|
|
wxDefaultSize,
|
|
|
|
0 );
|
|
|
|
itemBoxSizer2->Add( itemStaticText15,
|
|
|
|
0,
|
|
|
|
wxALIGN_LEFT | wxLEFT | wxRIGHT | wxTOP |
|
|
|
|
wxADJUST_MINSIZE,
|
|
|
|
5 );
|
|
|
|
|
|
|
|
m_MsgBox = new wxTextCtrl( itemDialog1, ID_TEXTCTRL, _T( "" ),
|
|
|
|
wxDefaultPosition, wxSize( -1, 200 ),
|
|
|
|
wxTE_MULTILINE );
|
|
|
|
itemBoxSizer2->Add( m_MsgBox, 0, wxGROW | wxALL | wxFIXED_MINSIZE, 5 );
|
2009-06-30 15:36:17 +00:00
|
|
|
|
|
|
|
// Set validators
|
2009-11-04 20:46:53 +00:00
|
|
|
m_PlotDXFColorOption->SetValidator( wxGenericValidator( &PlotDXFColorOpt ) );
|
|
|
|
m_Plot_Sheet_Ref->SetValidator( wxGenericValidator( &Plot_Sheet_Ref ) );
|
|
|
|
|
2009-06-30 15:36:17 +00:00
|
|
|
////@end WinEDA_PlotDXFFrame content construction
|
|
|
|
|
|
|
|
SetFocus(); // make the ESC work
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Should we show tooltips?
|
|
|
|
*/
|
|
|
|
|
|
|
|
bool WinEDA_PlotDXFFrame::ShowToolTips()
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Get bitmap resources
|
|
|
|
*/
|
|
|
|
|
|
|
|
wxBitmap WinEDA_PlotDXFFrame::GetBitmapResource( const wxString& name )
|
|
|
|
{
|
|
|
|
// Bitmap retrieval
|
|
|
|
////@begin WinEDA_PlotDXFFrame bitmap retrieval
|
2009-11-04 20:46:53 +00:00
|
|
|
wxUnusedVar( name );
|
2009-06-30 15:36:17 +00:00
|
|
|
return wxNullBitmap;
|
2009-11-04 20:46:53 +00:00
|
|
|
|
2009-06-30 15:36:17 +00:00
|
|
|
////@end WinEDA_PlotDXFFrame bitmap retrieval
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Get icon resources
|
|
|
|
*/
|
|
|
|
|
|
|
|
wxIcon WinEDA_PlotDXFFrame::GetIconResource( const wxString& name )
|
|
|
|
{
|
|
|
|
// Icon retrieval
|
|
|
|
////@begin WinEDA_PlotDXFFrame icon retrieval
|
2009-11-04 20:46:53 +00:00
|
|
|
wxUnusedVar( name );
|
2009-06-30 15:36:17 +00:00
|
|
|
return wxNullIcon;
|
2009-11-04 20:46:53 +00:00
|
|
|
|
2009-06-30 15:36:17 +00:00
|
|
|
////@end WinEDA_PlotDXFFrame icon retrieval
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON
|
|
|
|
*/
|
|
|
|
|
|
|
|
void WinEDA_PlotDXFFrame::OnPlotDXFCurrentExecuteClick( wxCommandEvent& event )
|
|
|
|
{
|
|
|
|
int Select_PlotAll = FALSE;
|
|
|
|
|
|
|
|
InitOptVars();
|
|
|
|
CreateDXFFile( Select_PlotAll );
|
|
|
|
m_MsgBox->AppendText( wxT( "*****\n" ) );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON1
|
|
|
|
*/
|
|
|
|
|
|
|
|
void WinEDA_PlotDXFFrame::OnPlotDXFAllExecuteClick( wxCommandEvent& event )
|
|
|
|
{
|
|
|
|
int Select_PlotAll = TRUE;
|
|
|
|
|
|
|
|
InitOptVars();
|
|
|
|
CreateDXFFile( Select_PlotAll );
|
|
|
|
m_MsgBox->AppendText( wxT( "*****\n" ) );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
|
|
|
|
*/
|
|
|
|
|
|
|
|
void WinEDA_PlotDXFFrame::OnCancelClick( wxCommandEvent& event )
|
|
|
|
{
|
|
|
|
InitOptVars();
|
|
|
|
EndModal( 0 );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void WinEDA_PlotDXFFrame::InitOptVars()
|
|
|
|
{
|
2009-11-04 20:46:53 +00:00
|
|
|
Plot_Sheet_Ref = m_Plot_Sheet_Ref->GetValue();
|
2009-06-30 15:36:17 +00:00
|
|
|
PlotDXFColorOpt = m_PlotDXFColorOption->GetSelection();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void WinEDA_PlotDXFFrame::CreateDXFFile( int AllPages )
|
|
|
|
{
|
2009-11-04 20:46:53 +00:00
|
|
|
WinEDA_SchematicFrame* schframe = (WinEDA_SchematicFrame*) m_Parent;
|
|
|
|
SCH_SCREEN* screen = schframe->GetScreen();
|
|
|
|
SCH_SCREEN* oldscreen = screen;
|
2009-12-02 21:44:03 +00:00
|
|
|
SCH_SHEET_PATH* sheetpath, * oldsheetpath = schframe->GetSheet();
|
2009-11-04 20:46:53 +00:00
|
|
|
wxString PlotFileName;
|
2009-06-30 15:36:17 +00:00
|
|
|
Ki_PageDescr* PlotSheet;
|
2009-11-04 20:46:53 +00:00
|
|
|
wxPoint plot_offset;
|
2009-06-30 15:36:17 +00:00
|
|
|
|
|
|
|
/* When printing all pages, the printed page is not the current page.
|
2009-11-04 20:46:53 +00:00
|
|
|
* In complex hierarchies, we must setup references and others parameters
|
|
|
|
* in the printed SCH_SCREEN
|
2009-06-30 15:36:17 +00:00
|
|
|
* because in complex hierarchies a SCH_SCREEN (a schematic drawings)
|
|
|
|
* is shared between many sheets
|
|
|
|
*/
|
2009-12-02 21:44:03 +00:00
|
|
|
SCH_SHEET_LIST SheetList( NULL );
|
2009-11-04 20:46:53 +00:00
|
|
|
|
2009-06-30 15:36:17 +00:00
|
|
|
sheetpath = SheetList.GetFirst();
|
2009-12-02 21:44:03 +00:00
|
|
|
SCH_SHEET_PATH list;
|
2009-06-30 15:36:17 +00:00
|
|
|
|
2009-11-04 20:46:53 +00:00
|
|
|
while( true )
|
2009-06-30 15:36:17 +00:00
|
|
|
{
|
|
|
|
if( AllPages )
|
|
|
|
{
|
|
|
|
if( sheetpath == NULL )
|
|
|
|
break;
|
|
|
|
list.Clear();
|
|
|
|
if( list.BuildSheetPathInfoFromSheetPathValue( sheetpath->Path() ) )
|
|
|
|
{
|
|
|
|
schframe->m_CurrentSheet = &list;
|
|
|
|
schframe->m_CurrentSheet->UpdateAllScreenReferences();
|
|
|
|
schframe->SetSheetNumberAndCount();
|
|
|
|
screen = schframe->m_CurrentSheet->LastScreen();
|
|
|
|
ActiveScreen = screen;
|
|
|
|
}
|
|
|
|
else // Should not happen
|
|
|
|
return;
|
|
|
|
sheetpath = SheetList.GetNext();
|
|
|
|
}
|
|
|
|
PlotSheet = screen->m_CurrentSheetDesc;
|
2009-11-04 20:46:53 +00:00
|
|
|
double scale = 10;
|
2009-06-30 15:36:17 +00:00
|
|
|
|
|
|
|
plot_offset.x = 0;
|
|
|
|
plot_offset.y = 0;
|
|
|
|
|
2009-11-04 20:46:53 +00:00
|
|
|
PlotFileName = schframe->GetUniqueFilenameForCurrentSheet() + wxT(
|
|
|
|
".dxf" );
|
2009-06-30 15:36:17 +00:00
|
|
|
|
|
|
|
PlotOneSheetDXF( PlotFileName, screen, PlotSheet, plot_offset, scale );
|
|
|
|
|
|
|
|
if( !AllPages )
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
ActiveScreen = oldscreen;
|
|
|
|
schframe->m_CurrentSheet = oldsheetpath;
|
|
|
|
schframe->m_CurrentSheet->UpdateAllScreenReferences();
|
|
|
|
schframe->SetSheetNumberAndCount();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void WinEDA_PlotDXFFrame::PlotOneSheetDXF( const wxString& FileName,
|
2009-11-04 20:46:53 +00:00
|
|
|
SCH_SCREEN* screen,
|
|
|
|
Ki_PageDescr* sheet,
|
|
|
|
wxPoint plot_offset,
|
|
|
|
double scale )
|
2009-06-30 15:36:17 +00:00
|
|
|
{
|
|
|
|
wxString msg;
|
|
|
|
|
2009-11-04 20:46:53 +00:00
|
|
|
FILE* output_file = wxFopen( FileName, wxT( "wt" ) );
|
|
|
|
|
2009-06-30 15:36:17 +00:00
|
|
|
if( output_file == NULL )
|
|
|
|
{
|
|
|
|
msg = wxT( "\n** " );
|
|
|
|
msg += _( "Unable to create " ) + FileName + wxT( " **\n\n" );
|
|
|
|
m_MsgBox->AppendText( msg );
|
|
|
|
wxBell();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
SetLocaleTo_C_standard();
|
|
|
|
msg.Printf( _( "Plot: %s\n" ), FileName.GetData() );
|
|
|
|
m_MsgBox->AppendText( msg );
|
|
|
|
|
2009-11-04 20:46:53 +00:00
|
|
|
DXF_PLOTTER* plotter = new DXF_PLOTTER();
|
|
|
|
plotter->set_paper_size( sheet );
|
|
|
|
plotter->set_viewport( plot_offset, scale, 0 );
|
|
|
|
plotter->set_color_mode( PlotDXFColorOpt );
|
2009-06-30 15:36:17 +00:00
|
|
|
|
|
|
|
/* Init : */
|
2009-11-04 20:46:53 +00:00
|
|
|
plotter->set_creator( wxT( "EESchema-DXF" ) );
|
|
|
|
plotter->set_filename( FileName );
|
|
|
|
plotter->start_plot( output_file );
|
2009-06-30 15:36:17 +00:00
|
|
|
|
|
|
|
if( Plot_Sheet_Ref )
|
|
|
|
{
|
2009-11-04 20:46:53 +00:00
|
|
|
plotter->set_color( BLACK );
|
2009-06-30 15:36:17 +00:00
|
|
|
m_Parent->PlotWorkSheet( plotter, screen );
|
|
|
|
}
|
|
|
|
|
2009-11-04 20:46:53 +00:00
|
|
|
PlotDrawlist( plotter, screen->EEDrawList );
|
2009-06-30 15:36:17 +00:00
|
|
|
|
|
|
|
/* fin */
|
|
|
|
plotter->end_plot();
|
|
|
|
delete plotter;
|
|
|
|
SetLocaleTo_Default();
|
|
|
|
|
|
|
|
m_MsgBox->AppendText( wxT( "Ok\n" ) );
|
|
|
|
}
|