jean-pierre charras
3fcd959757
Gerbview: minor cosmetic enhancement: show if the file is X1 or X2 format.
3 years ago
Jeff Young
4e3109a633
Wide string decls for gerbview.
4 years ago
Marek Roszko
ac715d2e51
Scoop up some more wxPoint instances
4 years ago
Jeff Young
4ba3937f8a
Cleanup.
4 years ago
jean-pierre charras
24a41559ca
Gerbview: select 360 deg circular mode (G75) as default
4 years ago
jean-pierre charras
210671b10a
Gerbview, Excellon reader: add preference to configure default coordinates format. In Excellon drill files, the coordinate format is not specified, and sometimes units and zero option are even not specified, so some drill files cannot be read. In Preferences, default setting options are now added to specify by hand missing info.
4 years ago
Mike Williams
f2241d25c6
Gerbview: implement ;FILE_FORMAT parsing
Apparently Altium likes to output drill files with a specific header
setting the number format
Fixes https://gitlab.com/kicad/code/kicad/-/issues/7519
4 years ago
luz paz
0446d35f0d
Fix source comment/doc typos (follow-up)
Found via `codespell -q 3 -S *.po,./thirdparty -L aactual,acount,aline,alocation,alog,anormal,anumber,aother,apoints,aparent,aray,dout,einstance,modul,ot,overide,serie,te,,tesselate,tesselator,tht`
4 years ago
luz paz
f968fc8719
Fix source comment / documentation typos
4 years ago
Ian McInerney
ecd9bf696e
Be consistent about using nullptr instead of 0
0 can be too easily overloaded into an int, so ensure we use nullptr
when we mean pointers.
5 years ago
Marek Roszko
b45eb56ddf
Cleanup some msg panel usage using the no longer support colors
The color was being passed to the aPadding param now.....
5 years ago
Marek Roszko
16e3e59495
Split out arrayDim and MIRROR templates from macros.h
These were not macros
5 years ago
Marek Roszko
e928b2d8fd
Split EDA_UNITS out from common.
5 years ago
Ian McInerney
ad29a2f3b4
Update more places to properly display mils
5 years ago
jean-pierre charras
04aa5519d0
Gerbview: code cleanup. Remove many include, now useless.
5 years ago
jean-pierre charras
d146839f0f
Gerbview: add a error message for invalid files missing G74 or G75 commands.
They are mandatory to read arc coordinates.
6 years ago
jean-pierre charras
7206b567ac
Gerbview: Gerber attributes display: fix incorrect attributes deletion.
The Gerber attribute deletion command (%TD,xxx) always cleared all attributes,
instead of clearing xxx attribute.
Therefore some attributes were not always displayed.
6 years ago
jean-pierre charras
8d649b5351
Gerbview: cleanup code.
Remove GERBER_FILE_IMAGE_LIST dependency to EDA_ITEM, useless.
GERBER_FILE_IMAGE: replace DLIST by std::deque to store gerber draw items.
Remove dead code
6 years ago
Mark Roszko
19ceb11ae7
Change more enums over to scoped enums
6 years ago
Mark Roszko
11ff16be4e
Switch to scoped enums
6 years ago
jean-pierre charras
c59fa1b672
Gerbview: Fix outdated warning message about missing D-Codes and old RS274D files.
RS274X Gerber files using only regions (polygons) can be valid, and are not old RS274D files
Now a warning is raised only if there are some missing D codes definitions
(RS274D file or broken RS274X file)
Remove unused var and add comments
Fixes: lp:1850821
https://bugs.launchpad.net/kicad/+bug/1850821
6 years ago
Jeff Young
c2662b0e11
Retire EDA_DRAW_PANEL and legacy_wx/EDA_DRAW_FRAME.
6 years ago
Seth Hillbrand
1e5ba6f1b1
Replace DIM() macro
The standard DIM() macro was not typesafe as it happily deferred errors
to runtime that can be caught at compile time. Replacing it with a
generic C++11 constexpr allows for typecasting, comparison and compile
time error checking.
7 years ago
jean-pierre charras
ecfe564f4d
Gerber viewer: Ensure arc interpolation is used only after a arc command.
Remove also non existing G command codes.
7 years ago
jean-pierre charras
4136aca221
Gerbview: Excellon drill files reader: add a better support of routing mode.
Previously, the M and G00, G01, G02 and G03 commands were read, but nothing was actually done.
The current support is a bit rough, but it allows reading some drill files with routing commands.
7 years ago
Jeff Young
a39fb03822
Remove some references to g_UserUnit
(cherry picked from commit 614d832)
8 years ago
jean-pierre charras
a0ac1a48c2
Gerbview: fix code after renaming files
8 years ago
jean-pierre charras
6255239b52
Gerbview: rename files class_xxx to xxx according to the class names of classes defined inside the files
8 years ago
Seth Hillbrand
5b2248fad8
gerbview: Corrects handling of %FSD statement
8 years ago
Jon Evans
915e51e1f0
GerbView GAL support part 1: changes to existing files
- New GAL draw layers for GerbView
- Improved bounding boxes for Gerber shapes
- Switched to use of SHAPE_POLY_SET for polygons
- Add GAL methods to support selection and rendering
- Add GUI support of editing GAL options
- Rename get/setActiveLayer to Get/SetActiveLayer to match convention
8 years ago
jean-pierre charras
b0bfbd4f41
Gerbview: remove analysis of fully outdated (and never used) gerber commands
8 years ago
jean-pierre charras
7909de6127
Gerbview: better management of d_codes list in toolbars.
9 years ago
jean-pierre charras
984146c37d
Gerbview: better support of advanced X2 attributes.
9 years ago
jean-pierre charras
947c73f23b
Gerbview: try to fix a crash (hard to reproduce) which someting happens when closing gerbview. Fix incorrect calculation of bounding boxes.
9 years ago
jean-pierre charras
f311230874
Gerbview: when running gerbview from a command line, if a filename is given, and if it is a .drl file, it is loaded as drill file (instead of a gerber file, which generate an error message).
Code refactor: remove useless class members, and move read gerber file and read excellon file from gerbview frame to the corresponding classes
9 years ago
jean-pierre charras
368bd1477b
Gerbview: serious code cleanup (with the serious help of Mark Roszko's work on Gerbview)
9 years ago
Simon Richter
96ec9db5d6
Add missing C++ stdlib headers
The GCC standard library headers often include other headers, which makes
some code compile that forgets to include several headers.
10 years ago
jean-pierre charras
3c0859686b
Gerbview: fix a stupid mistake I made in rev 6829 (crash when reading a gbr file). 3d path config dialog: make it resizable.
10 years ago
jean-pierre charras
130c6e3639
Gerbview: more code refactoring.
10 years ago
jean-pierre charras
3b379787bc
Gerbview: move gerber_file_image_list to a separate file
10 years ago
jean-pierre charras
8c8a1238f1
Gerbview: more code cleanup. Rename class GERBER_IMAGE GERBER_FILE_IMAGE, because it handles the gerber image and the gerber file info.
10 years ago
jean-pierre charras
1c21410f1f
Gerbview: code cleanup (with the help of Mark Roszko's work)
10 years ago
jean-pierre charras
75c551f305
Gerbview: accept embedded tool definition (i.e. select tool and define it in the same line, outside the header). A few minor other fixes.
10 years ago
jean-pierre charras
ac734ab54b
Gerbview: Avoid too long filenames in layer manager: the filename length is clamped to 30 chars.
10 years ago
jean-pierre charras
dbb78db7ef
Gerbview: Shows now in the Layer manager the filename of gerber or drill files loaded.
A fex minor compil warnng fixes
10 years ago
jean-pierre charras
ec17455d35
board_items_to_polygon_shape_transform.cpp: remove full duplicate code between DRAWSEGMENT and EDGE_MODULE, and fix incorrect conversion of DRAWSEGMENT polygon type to its polygonal shape.
Gerbview: better info from X2 filefunction attribute displayed in layer manager about copper layers
11 years ago
jean-pierre charras
10d67ffbd9
Fix some coverity warnings (not initialized members). Add comments. Better (more informative) title in dialog to download .pretty libs.
11 years ago
jean-pierre charras
30c7821ba2
Grebview: add info in layer manager for Excellon drill filles, similar to X2 file function info in X2 gerber files.
11 years ago
jean-pierre charras
555ce68efe
Gerbview: Add support for recent File Format Attribute metadata, both for X2 Gerber file format and X1 (R274X) format.
Pcbnew already uses this attribute when creating Gerber files.
Because Gerber files using this attribute identify the board layers stackup, Gerbview (if this attribute is defined) can sort gerber images stach up like the board.
(in layer manager, just right click to access to the sort menu)
11 years ago
jean-pierre charras
013296cb1a
Make gerbview compilable and working (does not use now layers and layer masks from Pcbnew).
Export to Pcbnew is broken, but it is a very rarely used feature. It will be fixed later.
11 years ago