Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
c597e75b
Commit
c597e75b
authored
Apr 18, 2013
by
Miguel Angel Ajo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support to enable color from PLOT_CONTROLLER into plotters that start in B/W
parent
a20c8928
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
pcbplot.cpp
pcbnew/pcbplot.cpp
+16
-0
plotcontroller.h
pcbnew/plotcontroller.h
+4
-0
No files found.
pcbnew/pcbplot.cpp
View file @
c597e75b
...
...
@@ -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
();
}
pcbnew/plotcontroller.h
View file @
c597e75b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment