jean-pierre charras
89b1b69662
Gerbview: fix missing initialization of variables in bounding box calculations.
2 years ago
jean-pierre charras
72984c5c40
Gerbview: add refinements to option to set offset and rotation of layers.
Fix incorrect calculation of bounding boxes when the rotation is not n*90 deg.
2 years ago
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
Seth Hillbrand
19d0aceda3
Remove superfluous m_status variable
This used to be used to store information for the item similar to
m_state but it has been deprecated and no uses remained
3 years ago
jean-pierre charras
54b4f0e673
Gerbview: Aperture Macro: handle overwriting of variables
Gerbview did not handle redefinition of variable like $3 = $3 / 2
This redefinition is sometimes found in Gerber files.
This is a long standing issue now fixed.
Fixes #7222
https://gitlab.com/kicad/code/kicad/issues/7222
3 years ago
jean-pierre charras
00374f0a75
Gerbview: code refactor: change name of a member:
GERBER_DRAW_ITEM::m_Polygon -> m_ShapeAsPolygon
No actual code change.
3 years ago
jean-pierre charras
fa1591d021
Gerbview: code refactor: change name of a D_CODE member:
D_CODE::m_Shape -> m_ApertType (it is not a shape, it is a aperture type)
Fix also an outdated/incorrect comment
No actual code change.
3 years ago
jean-pierre charras
0d0c9aee3a
Gerbview: code refactor: change name and type of a member:
GERBER_DRAW_ITEM::m_Shape -> m_ShapeType of type GBR_BASIC_SHAPES
Minor coding style fix.
3 years ago
jean-pierre charras
098b03e17a
gerbview: Cleanup code. Remove useless or not working code.
3 years ago
jean-pierre charras
00d77f624a
Gerbview: fix coding style (better names for variable members is some classes).
(no actual change in code)
3 years ago
Jon Evans
c530bdb5a1
Rename GetSelectMenuText to GetItemDescription
This descriptive text is used for many more things than
just the select menu these days.
3 years ago
Jeff Young
366cad1f01
Uniformly translate "<no net>" message.
3 years ago
Jeff Young
64a6fc0fd4
Push UNITS_PROVIDER down into a low-level mixin.
This allows us to also construct cheap UNIT_PROVIDERs for specific
tasks when necessary.
3 years ago
Marek Roszko
a8613ee80f
Combine Iu2Millimeter & remove PcbMm2iu
3 years ago
Mark Roszko
b00178adb3
Nuke base_units from orbit
3 years ago
jean-pierre charras
0b233d593a
Gerbview: fix missing pad shapes when exporting to Pcbnew.
3 years ago
Jeff Young
9188838e50
RIP EDA_RECT.
3 years ago
Jeff Young
f17a865593
Move EDA_ITEM hitTest to BOX2I.
3 years ago
Jeff Young
2dc6300501
Move EDA_ITEM bounding boxes to BOX2I.
3 years ago
Marek Roszko
bf964d8678
Commonize page_info by simply making the Iu scale a parameter on call.
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
Jeff Young
f41af10007
Clean up hole shapes for safety (smart pointer) and consistency.
3 years ago
Jeff Young
4e3109a633
Wide string decls for gerbview.
4 years ago
Jeff Young
60bcfd1bf1
Bug fixes in arc & textbox printing.
Also removal of the no-longer-used clipping code from GR*.
4 years ago
Mike Williams
20788897ee
Gerbview: display Start and End position of drawable items
Originally written by Tarun Johar.
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/8426
4 years ago
Jeff Young
78385f7ab5
Clean some more tenths-of-degrees out of GerbView.
4 years ago
Jeff Young
3f98769a77
More EDA_ANGLE.
Includes bug fix for catastrophic error in Add() for converting to
radians.
Includes bug fixes for the fact that the pcbnew test can't seem to
find the ANGLE_* objects (getting all 0's instead).
4 years ago
Jeff Young
07013d00e1
More EDA_ANGLE.
4 years ago
Jeff Young
e048e51f5d
Improve SNR of EDA_ANGLE stuff.
4 years ago
Jeff Young
8f7d2dd06a
More VECTOR2D -> VECTOR2I and wxPoint cleanup.
4 years ago
Marek Roszko
c4c56de708
Neurotically update position wxPoint usages
4 years ago
Marek Roszko
347e03363a
Convert wxPoint/wxSize starting from EDA_RECT usages
4 years ago
Jeff Young
86cb57f4a7
Cherry-pick TEXT_ATTRIBUTES and EDA_ANGLE from rockola/kicad-strokefont
4 years ago
Jeff Young
4ba3937f8a
Cleanup.
4 years ago
jean-pierre charras
c504b5165d
Try to fix use of a non const method in a const method (created by commit 5abe257)
(not detected by my compil).
4 years ago
jean-pierre charras
5abe2572b9
Gerbview: fix incorrect bounding box of lines drawn with a rectangular aperture.
Fixes #9152
https://gitlab.com/kicad/code/kicad/issues/9152
4 years ago
Jeff Young
6aaf4413b3
Fix kicad_string.h / string.cpp mismatch.
They don't define a KiCad string class, so the header file name was
somewhat misleading. But the fact that they didn't match definitely
made coding more difficult.
4 years ago
Wayne Stambaugh
89b1fdabe9
Pass COLOR4D object by reference instead of on the stack.
4 years ago
Wayne Stambaugh
cb72da294a
More NULL expunging.
4 years ago
luz paz
f968fc8719
Fix source comment / documentation typos
5 years ago
Jon Evans
18037e2f65
Rework bitmap system to load from archived PNGs
Bitmaps are now identified by an enum class instead of by pointers.
Bitmap loading and caching is now handled by a class in common, and
we no longer compile most bitmaps into the binary, so there is no
longer a bitmaps static library.
Instead, bitmaps are archived to a .tar.gz file which is installed
in ${KICAD_DATA}/resources/images.tar.gz
The source PNGs are checked in to Git as the original CPP files were,
so that people can build without the required dependencies to convert
SVGs to PNGs.
Initial support is also added for dark theme icons, although this
is not yet exposed in the GUI.
Stubs are present for multi-resolution image resources, but this is
not fully-baked yet and could use some refinement.
5 years ago
Marek Roszko
9407e6dc83
Another set of color msgpanel items stripped
5 years ago
Marek Roszko
cbda1d7bf1
Remove more vestiges of old colored msg panel messages
5 years ago
Jeff Young
7bd31d5237
Naming conventions.
5 years ago
Marek Roszko
a785f70ea1
msgpanel is a widget, shove it to the right folder.
5 years ago
Marek Roszko
dbcb1ecdb7
Move TEXT_ANGLE defines to eda_text.
5 years ago
Marek Roszko
e928b2d8fd
Split EDA_UNITS out from common.
5 years ago
jean-pierre charras
539ac4c214
Remove a few include<wx/wx.h> in many files that do not actually use this include.
5 years ago