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
25a12772
Commit
25a12772
authored
Oct 15, 2013
by
Wayne Stambaugh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add PDF output to Pcbnew plot dialog. (fixes 1p:1188972)
parent
efb96bcc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
10 deletions
+15
-10
dialog_plot.cpp
pcbnew/dialogs/dialog_plot.cpp
+9
-4
dialog_plot_base.cpp
pcbnew/dialogs/dialog_plot_base.cpp
+2
-2
dialog_plot_base.fbp
pcbnew/dialogs/dialog_plot_base.fbp
+4
-4
No files found.
pcbnew/dialogs/dialog_plot.cpp
View file @
25a12772
...
...
@@ -94,6 +94,10 @@ void DIALOG_PLOT::Init_Dialog()
case
PLOT_FORMAT_HPGL
:
m_plotFormatOpt
->
SetSelection
(
4
);
break
;
case
PLOT_FORMAT_PDF
:
m_plotFormatOpt
->
SetSelection
(
5
);
break
;
}
msg
=
ReturnStringFromValue
(
g_UserUnit
,
m_brdSettings
.
m_SolderMaskMargin
,
true
);
...
...
@@ -610,7 +614,7 @@ void DIALOG_PLOT::applyPlotSettings()
{
msg
=
ReturnStringFromValue
(
g_UserUnit
,
tempOptions
.
GetLineWidth
()
);
m_linesWidth
->
SetValue
(
msg
);
msg
.
Printf
(
_
(
"Default linewidth constrained!
\n
"
)
);
msg
.
Printf
(
_
(
"Default line
width constrained!
\n
"
)
);
m_messagesBox
->
AppendText
(
msg
);
}
...
...
@@ -790,12 +794,13 @@ void DIALOG_PLOT::Plot( wxCommandEvent& event )
LOCALE_IO
toggle
;
BOARD
*
board
=
m_parent
->
GetBoard
();
PLOTTER
*
plotter
=
StartPlotBoard
(
board
,
&
m_plotOpts
,
fn
.
GetFullPath
(),
wxEmptyString
);
PLOTTER
*
plotter
=
StartPlotBoard
(
board
,
&
m_plotOpts
,
fn
.
GetFullPath
(),
wxEmptyString
);
// Print diags in messages box:
wxString
msg
;
if
(
plotter
)
{
PlotOneBoardLayer
(
board
,
plotter
,
layer
,
m_plotOpts
);
...
...
pcbnew/dialogs/dialog_plot_base.cpp
View file @
25a12772
...
...
@@ -28,7 +28,7 @@ DIALOG_PLOT_BASE::DIALOG_PLOT_BASE( wxWindow* parent, wxWindowID id, const wxStr
m_staticText121
->
Wrap
(
-
1
);
bSizer27
->
Add
(
m_staticText121
,
0
,
wxTOP
,
5
);
wxString
m_plotFormatOptChoices
[]
=
{
_
(
"Gerber"
),
_
(
"Postscript"
),
_
(
"SVG"
),
_
(
"DXF"
),
_
(
"HPGL"
)
};
wxString
m_plotFormatOptChoices
[]
=
{
_
(
"Gerber"
),
_
(
"Postscript"
),
_
(
"SVG"
),
_
(
"DXF"
),
_
(
"HPGL"
)
,
_
(
"PDF"
)
};
int
m_plotFormatOptNChoices
=
sizeof
(
m_plotFormatOptChoices
)
/
sizeof
(
wxString
);
m_plotFormatOpt
=
new
wxChoice
(
this
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
m_plotFormatOptNChoices
,
m_plotFormatOptChoices
,
0
);
m_plotFormatOpt
->
SetSelection
(
0
);
...
...
@@ -186,7 +186,7 @@ DIALOG_PLOT_BASE::DIALOG_PLOT_BASE( wxWindow* parent, wxWindowID id, const wxStr
m_PlotOptionsSizer
->
Add
(
sbOptionsSizer
,
0
,
wxALL
|
wxEXPAND
,
3
);
wxStaticBoxSizer
*
sbSizerSoldMaskLayerOpt
;
sbSizerSoldMaskLayerOpt
=
new
wxStaticBoxSizer
(
new
wxStaticBox
(
this
,
wxID_ANY
,
_
(
"
Solder mask current
settings:"
)
),
wxVERTICAL
);
sbSizerSoldMaskLayerOpt
=
new
wxStaticBoxSizer
(
new
wxStaticBox
(
this
,
wxID_ANY
,
_
(
"
Current solder mask
settings:"
)
),
wxVERTICAL
);
wxFlexGridSizer
*
fgSizerSoldMaskOpts
;
fgSizerSoldMaskOpts
=
new
wxFlexGridSizer
(
2
,
2
,
0
,
0
);
...
...
pcbnew/dialogs/dialog_plot_base.fbp
View file @
25a12772
...
...
@@ -219,7 +219,7 @@
<property
name=
"caption"
></property>
<property
name=
"caption_visible"
>
1
</property>
<property
name=
"center_pane"
>
0
</property>
<property
name=
"choices"
>
"
Gerber
"
"
Postscript
"
"
SVG
"
"
DXF
"
"
HPGL
"
</property>
<property
name=
"choices"
>
"
Gerber
"
"
Postscript
"
"
SVG
"
"
DXF
"
"
HPGL
"
"
PDF
"
</property>
<property
name=
"close_button"
>
1
</property>
<property
name=
"context_help"
></property>
<property
name=
"context_menu"
>
1
</property>
...
...
@@ -2318,7 +2318,7 @@
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxStaticBoxSizer"
expanded=
"1"
>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
Solder mask current
settings:
</property>
<property
name=
"label"
>
Current solder mask
settings:
</property>
<property
name=
"minimum_size"
></property>
<property
name=
"name"
>
sbSizerSoldMaskLayerOpt
</property>
<property
name=
"orient"
>
wxVERTICAL
</property>
...
...
@@ -2676,11 +2676,11 @@
</object>
</object>
</object>
<object
class=
"sizeritem"
expanded=
"
0
"
>
<object
class=
"sizeritem"
expanded=
"
1
"
>
<property
name=
"border"
>
3
</property>
<property
name=
"flag"
>
wxALL|wxEXPAND
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxStaticBoxSizer"
expanded=
"
0
"
>
<object
class=
"wxStaticBoxSizer"
expanded=
"
1
"
>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
Gerber Options
</property>
<property
name=
"minimum_size"
></property>
...
...
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