jean-pierre charras
efdead2008
Gerbview: added (in Layers Manager) a new setting to adjust draw offset
and rotation of the active layer. This is a draw option only.
2 years ago
jean-pierre charras
9df65d7f54
Gerbview: code refactor: move APERTURE_MACRO defs from am_primitive to aperture_macro.
Some other code cleaning, but no actual code change.
3 years ago
Jeff Young
45d6b4a9fc
Readability improvements.
3 years ago
Marek Roszko
f26a6f76e4
IUToMils should return int
It was already truncating even in old code...lets just clean this up
3 years ago
Marek Roszko
3d5913c825
Remove convert_to_biu.h, merge contents to base_units.h
3 years ago
Marek Roszko
7a5829f8d6
Move IU2Mils
3 years ago
Marek Roszko
a8613ee80f
Combine Iu2Millimeter & remove PcbMm2iu
3 years ago
Jeff Young
4f0136db3b
Attempt to fix std::initializer_list lifetime issue.
3 years ago
Jeff Young
aa2ad3b44c
Move KICAD_T[] to std::initializer_list<KICAD_T>.
3 years ago
Marek Roszko
a8505d9c76
SEARCH_RESULT -> INSPECT_RESULT
To fix the name squatting it's doing for future functionality
3 years ago
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
10 years ago
jean-pierre charras
368bd1477b
Gerbview: serious code cleanup (with the serious help of Mark Roszko's work on Gerbview)
10 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