jean-pierre charras
93c631af44
drawing_stackup_table_tool: fix incorrect color of dielectric sublayers.
when a dielectric has sublayers, the printed color was always the main layer color.
3 years ago
Jeff Young
9724f6e736
Don't allow zone filling during other editing operations.
It's a very heavy op, and is likely to violate all manner of
assumptions the other ops make.
Fixes https://gitlab.com/kicad/code/kicad/issues/12736
3 years ago
Mike Williams
9304607624
TOOL_EVENT: make command string non-optional
We're getting segfaults in places where this isn't checked. Also, add
some asserts so we can catch bad tool push/pop.
Removes all uses of GetCommandStr() and makes it private.
3 years ago
Jeff Young
45d6b4a9fc
Readability improvements.
3 years ago
Marek Roszko
a8613ee80f
Combine Iu2Millimeter & remove PcbMm2iu
3 years ago
Mark Roszko
b00178adb3
Nuke base_units from orbit
3 years ago
Seth Hillbrand
b736460e71
Move optional access from value() to *operator
`value()` throws. Where we check for existence, we don't need to use
the throwing version and should just use the unprotected variant
3 years ago
Seth Hillbrand
f1261e71d4
Replace boost::optional with std::optional
3 years ago
Jeff Young
aa2ad3b44c
Move KICAD_T[] to std::initializer_list<KICAD_T>.
3 years ago
Jeff Young
6f49b57f9b
Cleanup & performance enhancements.
3 years ago
Jeff Young
f2fc78f380
Don't copy modifiers to prime events.
The modifiers go with the hotkey, not with the action.
Fixes https://gitlab.com/kicad/code/kicad/issues/11618
3 years ago
Seth Hillbrand
283aaff2df
Use board polygon instead of bbox for size
Board BBox uses the visible size of the board, which includes edge cut
thickness. This is not appropriate for the Board characteristics.
Using the outline polygon gives accurate results and falls back to a
bounding box in the case where the outline is invalid
Fixes https://gitlab.com/kicad/code/kicad/issues/10972
(cherry picked from commit 54f621c570
)
4 years ago
Jeff Young
34a9a165c9
More wide-string declarations.
4 years ago
Marek Roszko
a7ebfc31f9
Fix some leaking objects identified by PVS Studio V773
4 years ago
Jeff Young
86cb57f4a7
Cherry-pick TEXT_ATTRIBUTES and EDA_ANGLE from rockola/kicad-strokefont
4 years ago
Ian McInerney
8d71bdc3e1
Cleanup unit handling in the stackup drawing tool
4 years ago
jean-pierre charras
77f47b6e47
Avoid assertion in some cases.
4 years ago
jean-pierre charras
9f64850325
Drawing stackup table: fix a few issues and missing items.
Fixes #9243
https://gitlab.com/kicad/code/kicad/issues/9243
Fixes #9244
https://gitlab.com/kicad/code/kicad/issues/9244
4 years ago
Seth Hillbrand
140e4cbe28
Avoid assertion on 2-layer board
New boards may have INVALID_LAYER inbetween F_Cu and B_Cu in the
stackup. Skip these and any layer values beyond what we store currently
4 years ago
Seth Hillbrand
84864351c7
Fix units naming in stackup
We were not handling the new mils/inches division in stackup table
Fixes https://gitlab.com/kicad/code/kicad/issues/9210
4 years ago
Jeff Young
32e23d993e
Formatting.
4 years ago
Jeff Young
fdfecf5932
Don't push view control settings to the previous active tool.
See further comments in bug report.
Fixes https://gitlab.com/kicad/code/kicad/issues/9147
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
8fd83cbb95
Pass wxPoint objects by reference instead of on the stack.
4 years ago
Wayne Stambaugh
cf00319c85
More NULL expunging.
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
Fabien Corona
95ab53d119
pcbnew: fix missing layer names and missing layers in stackup table
4 years ago
luz paz
f968fc8719
Fix source comment / documentation typos
4 years ago
Marek Roszko
10e60acf34
Clean up including of board_design_settings.h
4 years ago
Ian McInerney
4f05262705
Cleanup includes in board.h and footprint.h
4 years ago
Ian McInerney
23f8851409
Remove pcb_group include from board header
4 years ago
jean-pierre charras
cb451dc4b2
Pcbnew: Fix memory leaks and fix inefficient code.
5 years ago
jean-pierre charras
a1b4bcc210
Refinements (add icons to menuitems and better help strings)
5 years ago
jean-pierre charras
c763b0088e
Fix some issues in drawing_stackup_table_tool.cpp
5 years ago
jean-pierre charras
3ba7fc0cc2
Move board stackup table drawing code from drawing_tool.cpp to drawing_stackup_table_tool.cpp
This avoid a too large drawing_tool.cpp file.
Remove also values in internal units and convert them to mm.
5 years ago