Browse Source
Gerbview: added: image polarity, axis select, layer rotation. Code cleanup.
pull/1/head
Gerbview: added: image polarity, axis select, layer rotation. Code cleanup.
pull/1/head
25 changed files with 527 additions and 385 deletions
-
26Documentation/copyright.txt
-
97gerbview/class_GERBER.cpp
-
166gerbview/class_GERBER.h
-
9gerbview/class_aperture_macro.cpp
-
82gerbview/class_gerber_draw_item.cpp
-
29gerbview/class_gerber_draw_item.h
-
4gerbview/dcode.cpp
-
4gerbview/edit.cpp
-
17gerbview/gerber_test_files/test-image-polarity.gbr
-
21gerbview/gerber_test_files/test-image-rotation.gbr
-
15gerbview/gerber_test_files/test-layer-axis-select.gbr
-
23gerbview/gerber_test_files/test-layer-rotation.gbr
-
17gerbview/gerber_test_files/test-layer-scale-factor.gbr
-
6gerbview/gerberframe.cpp
-
2gerbview/gerbview.cpp
-
4gerbview/gerbview.h
-
5gerbview/readgerb.cpp
-
4gerbview/rs274_read_XY_and_IJ_coordinates.cpp
-
94gerbview/rs274d.cpp
-
81gerbview/rs274x.cpp
-
4gerbview/toolbars_gerber.cpp
-
138gerbview/tracepcb.cpp
-
8gerbview/wxGerberFrame.h
-
4include/base_struct.h
-
52pcbnew/class_track.cpp
@ -1,40 +1,32 @@ |
|||
|
|||
Here is the proposed copyright message to be added to all source files |
|||
at their top. There is one line that represents the main copyright holder |
|||
and that would be Jean-Pierre Charras for existing modules. |
|||
at their top. There is one line that represents the main copyright holder. |
|||
|
|||
But in the future, the respective author of any newly coded module would be |
|||
listed as the main copyright holder. Additional workers who might earn a |
|||
partial copyright holder status of the respective module are simply left in the |
|||
change_log.txt file, see the 2nd Copyright line below. |
|||
|
|||
Jean-Pierre, let me know if this is satisfactory and I will run a script I have to |
|||
pre-pend it to all the sources. |
|||
|
|||
Thanks, Dick Hollenbeck dick@softplc.com. |
|||
|
|||
|
|||
|
|||
/* |
|||
* This program source code file is part of KICAD, a free EDA CAD application. |
|||
* |
|||
* Copyright (C) 1992-2009 Jean-Pierre Charras, jean-pierre.charras@inpg.fr |
|||
* Copyright (C) 1992-2009 Kicad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* Copyright (C) 1992-2010 <Creator> |
|||
* Copyright (C) 1992-2010 Kicad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* This program is free software; you can redistribute it and/or |
|||
* modify it under the terms of the GNU General Public License |
|||
* as published by the Free Software Foundation; either version 2 |
|||
* of the License, or (at your option) any later version. |
|||
* |
|||
* |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* |
|||
* |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program; if not, you may find one here: |
|||
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
|||
* or you may search the http://www.gnu.org website for the version 2 license, |
|||
* or you may write to the Free Software Foundation, Inc., |
|||
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
|||
* or you may search the http://www.gnu.org website for the version 2 license, |
|||
* or you may write to the Free Software Foundation, Inc., |
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA |
|||
*/ |
|||
@ -0,0 +1,17 @@ |
|||
G04 Test image polarity * |
|||
G04 Crosshairs should be cut out of a positive background* |
|||
G04 Handcoded by Julian Lamb * |
|||
%MOIN*% |
|||
%FSLAX23Y23*% |
|||
%IPNEG*% |
|||
%ADD10C,0.050*% |
|||
|
|||
G04 Draw crosshairs * |
|||
X-1000Y0D02* |
|||
G54D10* |
|||
X1000Y0D01* |
|||
X0Y-1000D02* |
|||
G54D10* |
|||
X0Y1000D01* |
|||
|
|||
M02* |
|||
@ -0,0 +1,21 @@ |
|||
G04 Test image rotation * |
|||
G04 Handcoded by Julian Lamb * |
|||
%MOIN*% |
|||
%FSLAX23Y23*% |
|||
%IR270*% |
|||
%ADD10C,0.050*% |
|||
|
|||
G04 Quarter star * |
|||
X1000Y0D02* |
|||
G54D10* |
|||
X2000Y0D01* |
|||
|
|||
X1000Y0D02* |
|||
G54D10* |
|||
X2000Y1000D01* |
|||
|
|||
X1000Y0D02* |
|||
G54D10* |
|||
X1000Y1000D01* |
|||
|
|||
M02* |
|||
@ -0,0 +1,15 @@ |
|||
G04 Test layer axis select * |
|||
G04 Line is drawn along A axis, then axis select switches it and renders * |
|||
G04 line along y axis * |
|||
G04 Handcoded by Julian Lamb * |
|||
%MOIN*% |
|||
%FSLAX23Y23*% |
|||
%ASAYBX*% |
|||
%ADD10C,0.050*% |
|||
|
|||
G04 Draw line * |
|||
X-1000Y0D02* |
|||
G54D10* |
|||
X1000Y0D01* |
|||
|
|||
M02* |
|||
@ -0,0 +1,23 @@ |
|||
G04 Test layer rotation 1 * |
|||
G04 Quarter star should be rotated 45 degrees counterclockwise, pointing* |
|||
G04 the center line straight up * |
|||
G04 Handcoded by Julian Lamb * |
|||
%MOIN*% |
|||
%FSLAX23Y23*% |
|||
%RO45*% |
|||
%ADD10C,0.025*% |
|||
|
|||
G04 Quarter star * |
|||
X1000Y0D02* |
|||
G54D10* |
|||
X2000Y0D01* |
|||
|
|||
X1000Y0D02* |
|||
G54D10* |
|||
X2000Y1000D01* |
|||
|
|||
X1000Y0D02* |
|||
G54D10* |
|||
X1000Y1000D01* |
|||
|
|||
M02* |
|||
@ -0,0 +1,17 @@ |
|||
G04 Test layer scale factor 1 * |
|||
G04 Crosshairs should be centered on 0,0 and 2 inches wide and 1 inch tall* |
|||
G04 Handcoded by Julian Lamb * |
|||
%MOIN*% |
|||
%FSLAX23Y23*% |
|||
%SFA2B1*% |
|||
%ADD10C,0.025*% |
|||
|
|||
G04 Crosshairs to be on 0,0 * |
|||
X-500Y0D02* |
|||
G54D10* |
|||
X500Y0D01* |
|||
X0Y-500D02* |
|||
G54D10* |
|||
X0Y500D01* |
|||
|
|||
M02* |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue