Date:2011-03-13 08:26:18 (13 years 15 days ago)
Author:Wolfgang Spraul
Commit:a074fa1bc8bff4b85a1dbe7de4e839a66db69bed
Message:merged Werner's patch, fixed eeschema background color bug

Files: kicad-patches/exclude-pcb-edge.patch (1 diff)
kicad-patches/scripted-new.patch (5 diffs)
kicad-patches/series (1 diff)

Change Details

kicad-patches/exclude-pcb-edge.patch
1Index: kicad.bzr/pcbnew/pcbnew_scripted.cpp
2===================================================================
3+++ kicad.bzr/pcbnew/pcbnew_scripted.cpp 2011-03-12 21:50:13.000000000 -0300
4@@ -55,6 +55,7 @@
5      { wxCMD_LINE_OPTION, wxT("ps-pads-drill-opt"), wxT("ps-pads-drill-opt"), wxT("Postscript pads drill option [none|small|real] (default:small)"),
6           wxCMD_LINE_VAL_STRING },
7      { wxCMD_LINE_SWITCH, wxT("mirror"), wxT("mirror"), wxT("mirror plot (HPGL and Postscript only)") },
8+ { wxCMD_LINE_SWITCH, wxT("e"), wxT("exclude-pcb-edge"), wxT("exclude PCB edge (Gerber only)") },
9      { wxCMD_LINE_SWITCH, wxT("fill-all-zones"), wxT("fill-all-zones"), wxT("fill zones before plotting") },
10      { wxCMD_LINE_SWITCH, wxT("drc"), wxT("drc"), wxT("generates a design rule check report (.rpt)") },
11      { wxCMD_LINE_SWITCH, wxT("svg"), wxT("svg"), wxT("plots the board in SVG format") },
12@@ -223,6 +224,10 @@
13         if ( parser.Found( wxT("mirror") ) )
14             g_pcb_plot_options.PlotOrient = PLOT_MIROIR;
15
16+ // --exclude-pcb-edge
17+ if ( parser.Found( wxT("exclude-pcb-edge") ) )
18+ g_pcb_plot_options.Exclude_Edges_Pcb = true;
19+
20         if ( parser.Found( wxT("fill-all-zones") ) )
21             frame->Fill_All_Zones( false /* verbose */ );
22
kicad-patches/scripted-new.patch
11diff -ruN kicad.orig/eeschema/eeschema_scripted.cpp kicad/eeschema/eeschema_scripted.cpp
22--- kicad.orig/eeschema/eeschema_scripted.cpp 1970-01-01 00:00:00.000000000 +0000
3+++ kicad/eeschema/eeschema_scripted.cpp 2011-01-02 17:25:27.428837658 +0000
4@@ -0,0 +1,237 @@
3@@ -0,0 +1,236 @@
54+/////////////////////////////////////////////////////////////////////////////
65+// Name: eeschema_scripted.cpp
76+// Copyright: Werner Almesberger, Wolfgang Spraul
...... 
128128+ }
129129+ wxSetWorkingDirectory( fn.GetPath() );
130130+
131+ g_DrawBgColor = BLACK;
132131+ SeedLayers();
133132+ frame = new WinEDA_SchematicFrame( NULL, wxT( "EESchema" ),
134133+ wxPoint( 0, 0 ), wxSize( 600, 400 ) );
...... 
259258+extern EESCHEMA_SCRIPTED g_EESchemaScripted;
260259diff -ruN kicad.orig/pcbnew/pcbnew_scripted.cpp kicad/pcbnew/pcbnew_scripted.cpp
261260--- kicad.orig/pcbnew/pcbnew_scripted.cpp 1970-01-01 00:00:00.000000000 +0000
262+++ kicad/pcbnew/pcbnew_scripted.cpp 2011-01-02 17:30:48.624837659 +0000
263@@ -0,0 +1,546 @@
261@@ -0,0 +1,552 @@
264262+/////////////////////////////////////////////////////////////////////////////
265263+// Name: pcbnew_scripted.cpp
266264+// Copyright: Wolfgang Spraul
...... 
318317+ { wxCMD_LINE_OPTION, wxT("ps-pads-drill-opt"), wxT("ps-pads-drill-opt"), wxT("Postscript pads drill option [none|small|real] (default:small)"),
319318+ wxCMD_LINE_VAL_STRING },
320319+ { wxCMD_LINE_SWITCH, wxT("mirror"), wxT("mirror"), wxT("mirror plot (HPGL and Postscript only)") },
320+ { wxCMD_LINE_SWITCH, wxT("e"), wxT("exclude-pcb-edge"), wxT("exclude PCB edge (Gerber only)") },
321321+ { wxCMD_LINE_SWITCH, wxT("fill-all-zones"), wxT("fill-all-zones"), wxT("fill zones before plotting") },
322322+ { wxCMD_LINE_SWITCH, wxT("drc"), wxT("drc"), wxT("generates a design rule check report (.rpt)") },
323323+ { wxCMD_LINE_SWITCH, wxT("svg"), wxT("svg"), wxT("plots the board in SVG format") },
...... 
486486+ if ( parser.Found( wxT("mirror") ) )
487487+ g_pcb_plot_options.PlotOrient = PLOT_MIROIR;
488488+
489+ // --exclude-pcb-edge
490+ if ( parser.Found( wxT("exclude-pcb-edge") ) )
491+ g_pcb_plot_options.Exclude_Edges_Pcb = true;
492+
493+ // --fill-all-zones
489494+ if ( parser.Found( wxT("fill-all-zones") ) )
490495+ frame->Fill_All_Zones( false /* verbose */ );
491496+
kicad-patches/series
1616scripted-common.patch
1717scripted-eeschema.patch
1818scripted-pcbnew.patch
19exclude-pcb-edge.patch

Archive Download the corresponding diff file

Branches:
master



interactive