Commit c597e75b authored by Miguel Angel Ajo's avatar Miguel Angel Ajo

Support to enable color from PLOT_CONTROLLER into plotters that start in B/W

parent a20c8928
...@@ -384,3 +384,19 @@ bool PLOT_CONTROLLER::PlotLayer( LAYER_NUM aLayer )/*{{{*/ ...@@ -384,3 +384,19 @@ bool PLOT_CONTROLLER::PlotLayer( LAYER_NUM aLayer )/*{{{*/
return true; 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();
}
...@@ -25,7 +25,11 @@ public: ...@@ -25,7 +25,11 @@ public:
void ClosePlot(); void ClosePlot();
bool OpenPlotfile( const wxString &aSuffix, PlotFormat aFormat, bool OpenPlotfile( const wxString &aSuffix, PlotFormat aFormat,
const wxString &aSheetDesc ); const wxString &aSheetDesc );
bool PlotLayer( LAYER_NUM layer ); bool PlotLayer( LAYER_NUM layer );
void SetColorMode( bool aColorMode );
bool GetColorMode();
private: private:
/// Option bank /// Option bank
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment