From d53d9d88fb6348b3f2364e5a01efbae819d92340 Mon Sep 17 00:00:00 2001 From: Miguel Angel Ajo Date: Thu, 18 Apr 2013 23:21:26 +0200 Subject: [PATCH] Support to enable color from PLOT_CONTROLLER into plotters that start in B/W --- pcbnew/pcbplot.cpp | 16 ++++++++++++++++ pcbnew/plotcontroller.h | 4 ++++ 2 files changed, 20 insertions(+) diff --git a/pcbnew/pcbplot.cpp b/pcbnew/pcbplot.cpp index 17004e252c..38d3e86201 100644 --- a/pcbnew/pcbplot.cpp +++ b/pcbnew/pcbplot.cpp @@ -384,3 +384,19 @@ bool PLOT_CONTROLLER::PlotLayer( LAYER_NUM aLayer )/*{{{*/ return true; }/*}}}*/ +void PLOT_CONTROLLER::SetColorMode( bool aColorMode ) +{ + if( !m_plotter ) + return; + + m_plotter->SetColorMode( aColorMode ); +} + +bool PLOT_CONTROLLER::GetColorMode() +{ + if( !m_plotter ) + return false; + + return m_plotter->GetColorMode(); +} + diff --git a/pcbnew/plotcontroller.h b/pcbnew/plotcontroller.h index 89e0028d0b..1716866122 100644 --- a/pcbnew/plotcontroller.h +++ b/pcbnew/plotcontroller.h @@ -25,7 +25,11 @@ public: void ClosePlot(); bool OpenPlotfile( const wxString &aSuffix, PlotFormat aFormat, const wxString &aSheetDesc ); + bool PlotLayer( LAYER_NUM layer ); + + void SetColorMode( bool aColorMode ); + bool GetColorMode(); private: /// Option bank