rename Ki_PageDescr to PAGE_INFO, encapsulate it in accessors, and move it into the BOARD

This commit is contained in:
Dick Hollenbeck
2011-12-22 15:57:50 -06:00
parent 702ac16d12
commit 5cce143273
49 changed files with 978 additions and 761 deletions
+5 -6
View File
@@ -32,7 +32,6 @@ PLOTTER::PLOTTER( PlotFormat aPlotType )
output_file = 0;
color_mode = false; /* Start as a BW plot */
negative_mode = false;
sheet = NULL;
}
@@ -424,12 +423,12 @@ void PLOTTER::thick_circle( wxPoint pos, int diametre, int width,
}
void PLOTTER::set_paper_size( Ki_PageDescr* asheet )
void PLOTTER::SetPageSettings( const PAGE_INFO& aPageSettings )
{
wxASSERT( !output_file );
sheet = asheet;
pageInfo = aPageSettings;
// Sheets are in mils, plotter works with decimals
paper_size.x = sheet->m_Size.x * 10;
paper_size.y = sheet->m_Size.y * 10;
// PAGE_INFO is in mils, plotter works with decimals
paper_size = pageInfo.GetSizeMils() * 10;
}