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
715af961
Commit
715af961
authored
Aug 29, 2012
by
Lorenzo Marcantonio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed g_pcb_plot_options from gerbview (which has no plotting anyway...)
parent
b44d7194
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
35 deletions
+0
-35
dialog_print_using_printer.cpp
gerbview/dialogs/dialog_print_using_printer.cpp
+0
-3
pcbplot.cpp
gerbview/pcbplot.cpp
+0
-4
pcbplot.h
gerbview/pcbplot.h
+0
-28
No files found.
gerbview/dialogs/dialog_print_using_printer.cpp
View file @
715af961
...
...
@@ -318,7 +318,6 @@ void DIALOG_PRINT_USING_PRINTER::SetPrintParameters( )
int
idx
=
m_ScaleOption
->
GetSelection
();
s_Parameters
.
m_PrintScale
=
s_ScaleList
[
idx
];
g_pcb_plot_options
.
Scale
=
s_Parameters
.
m_PrintScale
;
if
(
m_FineAdjustXscaleOpt
)
{
...
...
@@ -335,8 +334,6 @@ void DIALOG_PRINT_USING_PRINTER::SetPrintParameters( )
DisplayInfoMessage
(
NULL
,
_
(
"Warning: Scale option set to a very small value"
)
);
m_FineAdjustYscaleOpt
->
GetValue
().
ToDouble
(
&
s_Parameters
.
m_YScaleAdjust
);
}
g_pcb_plot_options
.
ScaleAdjX
=
s_Parameters
.
m_XScaleAdjust
;
g_pcb_plot_options
.
ScaleAdjX
=
s_Parameters
.
m_YScaleAdjust
;
}
void
DIALOG_PRINT_USING_PRINTER
::
OnScaleSelectionClick
(
wxCommandEvent
&
event
)
...
...
gerbview/pcbplot.cpp
View file @
715af961
...
...
@@ -9,10 +9,6 @@
#include <pcbplot.h>
/* The group of plot options - sadly global XXX */
PCB_Plot_Options
g_pcb_plot_options
;
/**************************************************************/
/* void PCB_BASE_FRAME::ToPlotter(wxCommandEvent& event) */
/***************************************************************/
...
...
gerbview/pcbplot.h
View file @
715af961
...
...
@@ -37,32 +37,4 @@
#define OPTKEY_PRINT_PAGE_FRAME wxT( "PrintPageFrame" )
#define OPTKEY_PRINT_MONOCHROME_MODE wxT( "PrintMonochrome" )
/* Plot Options : */
struct
PCB_Plot_Options
{
bool
Exclude_Edges_Pcb
;
int
PlotLine_Width
;
bool
Plot_Frame_Ref
;
// True to plot/print frame references
int
Plot_Mode
;
bool
Plot_Set_MIROIR
;
bool
Sel_Rotate_Window
;
int
HPGL_Pen_Num
;
int
HPGL_Pen_Speed
;
int
HPGL_Pen_Diam
;
int
HPGL_Pen_Recouvrement
;
bool
HPGL_Org_Centre
;
// true if, HPGL originally the center of the node
int
PlotPSColorOpt
;
// True for color Postscript output
bool
Plot_PS_Negative
;
// True to create a negative board ps plot
/* id for plot format (see enum PlotFormat in plot_common.h) */
int
PlotFormat
;
int
PlotOrient
;
int
PlotScaleOpt
;
int
DrillShapeOpt
;
double
Scale
;
double
ScaleAdjX
;
double
ScaleAdjY
;
};
extern
PCB_Plot_Options
g_pcb_plot_options
;
#endif // ifndef PCBPLOT_H
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