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
64288367
Commit
64288367
authored
Feb 17, 2011
by
Marco Mattila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix postscript output option in pcbnew plot dialog.
parent
521d43c4
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
20 additions
and
6 deletions
+20
-6
dialog_plot_base.cpp
pcbnew/dialogs/dialog_plot_base.cpp
+2
-2
dialog_plot_base.fbp
pcbnew/dialogs/dialog_plot_base.fbp
+2
-2
dialog_plot_base.h
pcbnew/dialogs/dialog_plot_base.h
+1
-1
pcb_plot_params.cpp
pcbnew/pcb_plot_params.cpp
+8
-0
pcb_plot_params.h
pcbnew/pcb_plot_params.h
+3
-0
pcb_plot_params.keywords
pcbnew/pcb_plot_params.keywords
+1
-0
pcbplot.cpp
pcbnew/pcbplot.cpp
+3
-1
No files found.
pcbnew/dialogs/dialog_plot_base.cpp
View file @
64288367
...
@@ -272,8 +272,8 @@ DIALOG_PLOT_BASE::DIALOG_PLOT_BASE( wxWindow* parent, wxWindowID id, const wxStr
...
@@ -272,8 +272,8 @@ DIALOG_PLOT_BASE::DIALOG_PLOT_BASE( wxWindow* parent, wxWindowID id, const wxStr
m_plotPSNegativeOpt
=
new
wxCheckBox
(
this
,
wxID_ANY
,
_
(
"Negative plot"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_plotPSNegativeOpt
=
new
wxCheckBox
(
this
,
wxID_ANY
,
_
(
"Negative plot"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_PSOptionsSizer
->
Add
(
m_plotPSNegativeOpt
,
0
,
wxALL
,
2
);
m_PSOptionsSizer
->
Add
(
m_plotPSNegativeOpt
,
0
,
wxALL
,
2
);
m_
usePsA4Opt
=
new
wxCheckBox
(
this
,
wxID_ANY
,
_
(
"Force A4 paper size
"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_
forcePSA4OutputOpt
=
new
wxCheckBox
(
this
,
wxID_ANY
,
_
(
"Force A4 output
"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_PSOptionsSizer
->
Add
(
m_
usePsA4
Opt
,
0
,
wxALL
,
2
);
m_PSOptionsSizer
->
Add
(
m_
forcePSA4Output
Opt
,
0
,
wxALL
,
2
);
m_PlotOptionsSizer
->
Add
(
m_PSOptionsSizer
,
0
,
wxALL
|
wxEXPAND
,
3
);
m_PlotOptionsSizer
->
Add
(
m_PSOptionsSizer
,
0
,
wxALL
|
wxEXPAND
,
3
);
...
...
pcbnew/dialogs/dialog_plot_base.fbp
View file @
64288367
...
@@ -3457,14 +3457,14 @@
...
@@ -3457,14 +3457,14 @@
<property
name=
"gripper"
>
0
</property>
<property
name=
"gripper"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
Force A4
paper size
</property>
<property
name=
"label"
>
Force A4
output
</property>
<property
name=
"layer"
></property>
<property
name=
"layer"
></property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximum_size"
></property>
<property
name=
"maximum_size"
></property>
<property
name=
"minimize_button"
>
0
</property>
<property
name=
"minimize_button"
>
0
</property>
<property
name=
"minimum_size"
></property>
<property
name=
"minimum_size"
></property>
<property
name=
"moveable"
>
1
</property>
<property
name=
"moveable"
>
1
</property>
<property
name=
"name"
>
m_
usePsA4
Opt
</property>
<property
name=
"name"
>
m_
forcePSA4Output
Opt
</property>
<property
name=
"pane_border"
>
1
</property>
<property
name=
"pane_border"
>
1
</property>
<property
name=
"pane_position"
></property>
<property
name=
"pane_position"
></property>
<property
name=
"pane_size"
></property>
<property
name=
"pane_size"
></property>
...
...
pcbnew/dialogs/dialog_plot_base.h
View file @
64288367
...
@@ -84,7 +84,7 @@ class DIALOG_PLOT_BASE : public wxDialog
...
@@ -84,7 +84,7 @@ class DIALOG_PLOT_BASE : public wxDialog
wxStaticText
*
m_staticText8
;
wxStaticText
*
m_staticText8
;
wxTextCtrl
*
m_fineAdjustYscaleOpt
;
wxTextCtrl
*
m_fineAdjustYscaleOpt
;
wxCheckBox
*
m_plotPSNegativeOpt
;
wxCheckBox
*
m_plotPSNegativeOpt
;
wxCheckBox
*
m_
usePsA4
Opt
;
wxCheckBox
*
m_
forcePSA4Output
Opt
;
wxStaticText
*
m_staticText2
;
wxStaticText
*
m_staticText2
;
wxTextCtrl
*
m_messagesBox
;
wxTextCtrl
*
m_messagesBox
;
...
...
pcbnew/pcb_plot_params.cpp
View file @
64288367
...
@@ -86,6 +86,7 @@ PCB_PLOT_PARAMS::PCB_PLOT_PARAMS()
...
@@ -86,6 +86,7 @@ PCB_PLOT_PARAMS::PCB_PLOT_PARAMS()
m_HPGLPenOvr
=
2
;
m_HPGLPenOvr
=
2
;
m_PlotPSColorOpt
=
true
;
m_PlotPSColorOpt
=
true
;
m_PlotPSNegative
=
false
;
m_PlotPSNegative
=
false
;
psA4Output
=
false
;
m_PlotReference
=
true
;
m_PlotReference
=
true
;
m_PlotValue
=
true
;
m_PlotValue
=
true
;
m_PlotTextOther
=
true
;
m_PlotTextOther
=
true
;
...
@@ -139,6 +140,8 @@ void PCB_PLOT_PARAMS::Format( OUTPUTFORMATTER* aFormatter,
...
@@ -139,6 +140,8 @@ void PCB_PLOT_PARAMS::Format( OUTPUTFORMATTER* aFormatter,
m_PlotPSColorOpt
?
trueStr
:
falseStr
);
m_PlotPSColorOpt
?
trueStr
:
falseStr
);
aFormatter
->
Print
(
aNestLevel
+
1
,
"(%s %s)
\n
"
,
getTokenName
(
T_psnegative
),
aFormatter
->
Print
(
aNestLevel
+
1
,
"(%s %s)
\n
"
,
getTokenName
(
T_psnegative
),
m_PlotPSNegative
?
trueStr
:
falseStr
);
m_PlotPSNegative
?
trueStr
:
falseStr
);
aFormatter
->
Print
(
aNestLevel
+
1
,
"(%s %s)
\n
"
,
getTokenName
(
T_psa4output
),
psA4Output
?
trueStr
:
falseStr
);
aFormatter
->
Print
(
aNestLevel
+
1
,
"(%s %s)
\n
"
,
getTokenName
(
T_plotreference
),
aFormatter
->
Print
(
aNestLevel
+
1
,
"(%s %s)
\n
"
,
getTokenName
(
T_plotreference
),
m_PlotReference
?
trueStr
:
falseStr
);
m_PlotReference
?
trueStr
:
falseStr
);
aFormatter
->
Print
(
aNestLevel
+
1
,
"(%s %s)
\n
"
,
getTokenName
(
T_plotvalue
),
aFormatter
->
Print
(
aNestLevel
+
1
,
"(%s %s)
\n
"
,
getTokenName
(
T_plotvalue
),
...
@@ -201,6 +204,8 @@ bool PCB_PLOT_PARAMS::operator==( const PCB_PLOT_PARAMS &aPcbPlotParams ) const
...
@@ -201,6 +204,8 @@ bool PCB_PLOT_PARAMS::operator==( const PCB_PLOT_PARAMS &aPcbPlotParams ) const
return
false
;
return
false
;
if
(
m_PlotPSNegative
!=
aPcbPlotParams
.
m_PlotPSNegative
)
if
(
m_PlotPSNegative
!=
aPcbPlotParams
.
m_PlotPSNegative
)
return
false
;
return
false
;
if
(
psA4Output
!=
aPcbPlotParams
.
psA4Output
)
return
false
;
if
(
m_PlotReference
!=
aPcbPlotParams
.
m_PlotReference
)
if
(
m_PlotReference
!=
aPcbPlotParams
.
m_PlotReference
)
return
false
;
return
false
;
if
(
m_PlotValue
!=
aPcbPlotParams
.
m_PlotValue
)
if
(
m_PlotValue
!=
aPcbPlotParams
.
m_PlotValue
)
...
@@ -296,6 +301,9 @@ void PCB_PLOT_PARAMS_PARSER::Parse( PCB_PLOT_PARAMS* aPcbPlotParams ) throw( IO_
...
@@ -296,6 +301,9 @@ void PCB_PLOT_PARAMS_PARSER::Parse( PCB_PLOT_PARAMS* aPcbPlotParams ) throw( IO_
case
T_usegerberextensions
:
case
T_usegerberextensions
:
aPcbPlotParams
->
useGerberExtensions
=
ParseBool
();
aPcbPlotParams
->
useGerberExtensions
=
ParseBool
();
break
;
break
;
case
T_psa4output
:
aPcbPlotParams
->
psA4Output
=
ParseBool
();
break
;
case
T_excludeedgelayer
:
case
T_excludeedgelayer
:
aPcbPlotParams
->
m_ExcludeEdgeLayer
=
ParseBool
();
aPcbPlotParams
->
m_ExcludeEdgeLayer
=
ParseBool
();
break
;
break
;
...
...
pcbnew/pcb_plot_params.h
View file @
64288367
...
@@ -90,6 +90,7 @@ private:
...
@@ -90,6 +90,7 @@ private:
bool
useGerberExtensions
;
bool
useGerberExtensions
;
bool
useAuxOrigin
;
bool
useAuxOrigin
;
bool
subtractMaskFromSilk
;
bool
subtractMaskFromSilk
;
bool
psA4Output
;
int
scaleSelection
;
int
scaleSelection
;
wxString
outputDirectory
;
wxString
outputDirectory
;
...
@@ -116,6 +117,8 @@ public:
...
@@ -116,6 +117,8 @@ public:
bool
GetUseAuxOrigin
()
const
{
return
useAuxOrigin
;
};
bool
GetUseAuxOrigin
()
const
{
return
useAuxOrigin
;
};
void
SetScaleSelection
(
int
aSelection
)
{
scaleSelection
=
aSelection
;
};
void
SetScaleSelection
(
int
aSelection
)
{
scaleSelection
=
aSelection
;
};
int
GetScaleSelection
()
const
{
return
scaleSelection
;
};
int
GetScaleSelection
()
const
{
return
scaleSelection
;
};
void
SetPsA4Output
(
int
aForce
)
{
psA4Output
=
aForce
;
};
bool
GetPsA4Output
()
const
{
return
psA4Output
;
};
int
GetHpglPenDiameter
()
const
{
return
m_HPGLPenDiam
;
};
int
GetHpglPenDiameter
()
const
{
return
m_HPGLPenDiam
;
};
bool
SetHpglPenDiameter
(
int
aValue
);
bool
SetHpglPenDiameter
(
int
aValue
);
...
...
pcbnew/pcb_plot_params.keywords
View file @
64288367
...
@@ -18,6 +18,7 @@ plotinvisibletext
...
@@ -18,6 +18,7 @@ plotinvisibletext
plotothertext
plotothertext
plotreference
plotreference
plotvalue
plotvalue
psa4output
pscolor
pscolor
psnegative
psnegative
scaleselection
scaleselection
...
...
pcbnew/pcbplot.cpp
View file @
64288367
...
@@ -141,6 +141,7 @@ void DIALOG_PLOT::Init_Dialog()
...
@@ -141,6 +141,7 @@ void DIALOG_PLOT::Init_Dialog()
m_fineAdjustYscaleOpt
->
AppendText
(
msg
);
m_fineAdjustYscaleOpt
->
AppendText
(
msg
);
m_plotPSNegativeOpt
->
SetValue
(
g_PcbPlotOptions
.
m_PlotPSNegative
);
m_plotPSNegativeOpt
->
SetValue
(
g_PcbPlotOptions
.
m_PlotPSNegative
);
m_forcePSA4OutputOpt
->
SetValue
(
g_PcbPlotOptions
.
GetPsA4Output
()
);
// List layers in same order than in setup layers dialog
// List layers in same order than in setup layers dialog
// (Front or Top to Back or Bottom)
// (Front or Top to Back or Bottom)
...
@@ -514,6 +515,7 @@ void DIALOG_PLOT::applyPlotSettings()
...
@@ -514,6 +515,7 @@ void DIALOG_PLOT::applyPlotSettings()
tempOptions
.
SetLayerSelection
(
selectedLayers
);
tempOptions
.
SetLayerSelection
(
selectedLayers
);
tempOptions
.
m_PlotPSNegative
=
m_plotPSNegativeOpt
->
GetValue
();
tempOptions
.
m_PlotPSNegative
=
m_plotPSNegativeOpt
->
GetValue
();
tempOptions
.
SetPsA4Output
(
m_forcePSA4OutputOpt
->
GetValue
()
);
// Set output directory and replace backslashes with forward ones
// Set output directory and replace backslashes with forward ones
wxString
dirStr
;
wxString
dirStr
;
...
@@ -732,7 +734,7 @@ void DIALOG_PLOT::Plot( wxCommandEvent& event )
...
@@ -732,7 +734,7 @@ void DIALOG_PLOT::Plot( wxCommandEvent& event )
{
{
case
PLOT_FORMAT_POST
:
case
PLOT_FORMAT_POST
:
success
=
m_Parent
->
Genere_PS
(
fn
.
GetFullPath
(),
layer
,
success
=
m_Parent
->
Genere_PS
(
fn
.
GetFullPath
(),
layer
,
m_usePsA4Opt
->
GetValue
(),
g_PcbPlotOptions
.
GetPsA4Output
(),
g_PcbPlotOptions
.
m_PlotMode
);
g_PcbPlotOptions
.
m_PlotMode
);
break
;
break
;
...
...
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