Marek Roszko
d6f8ca9a2e
Patch out the install for argparse
3 years ago
Mark Roszko
fb8a4c10f7
Shove kicad2step into pcbnew itself with a new cli
3 years ago
Ian McInerney
40ff7cb9bd
Fix some UI element spacing in settings panels
3 years ago
Ian McInerney
6b218ff764
Remove uneeded file pointer in gerbview code
3 years ago
Ian McInerney
eb2ea5bcd6
gerbview: Cleanup some unsigned comparisons that were extraneous
3 years ago
Jeff Young
7f34586c7e
Allow text variable resolution through properties in drawing sheet text.
Fixes https://gitlab.com/kicad/code/kicad/issues/12473
3 years ago
Jeff Young
30a4d3d2de
Coverity fixes.
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
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
f26a6f76e4
IUToMils should return int
It was already truncating even in old code...lets just clean this up
3 years ago
Marek Roszko
ece23d434b
Split up Double2Str to a format function to make its use case clear
3 years ago
Marek Roszko
3d5913c825
Remove convert_to_biu.h, merge contents to base_units.h
3 years ago
Marek Roszko
66e8931405
Remove IU_PER_MM thats standalone
3 years ago
Marek Roszko
7a5829f8d6
Move IU2Mils
3 years ago
Marek Roszko
e6ed275c25
Repoint IU_PER_MILS
3 years ago
Marek Roszko
a8613ee80f
Combine Iu2Millimeter & remove PcbMm2iu
3 years ago
Marek Roszko
ade5178c8c
Remove two common source files from gerbview
These are strangely already part of common but redeclared here
3 years ago
Seth Hillbrand
524b129c64
ADDED: Support for explicit DNP field
Dims elements shown as DNP. Adds property `dnp` to explicitly denote
parts that should not be populated. These parts are not included in X/Y
files
3 years ago
Mark Roszko
b00178adb3
Nuke base_units from orbit
3 years ago
lulu731
0180bcf90a
ADDED: Implement Drag and Drop
dropping files to Kicad manager :
*.kicad_pro, *.pro -> open project;
gerber and job files -> open in Gerbview editor;
Eagle and Cadstar files -> open project.
dropping file to schematic editor -> append schematic;
dropping library file to Symbol editor -> add library;
dropping board file to PCB editor -> append board;
dropping library or footprint file to Footprint editor -> add library or import footprint;
dropping ZIP file or gerber files to Gerbview editor -> open files;
dropping sheet file to Drawing Sheet editor -> open sheet.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/11638
3 years ago
jean-pierre charras
babffb230d
Revert "Gerber viewer: move layer colors with layers"
This reverts commit 75ed6b3ce7 .
It was a not really tested feature: It has a serious side effect: the color
settings are modified each time a .gbrjob is loaded (or loaded layers are sorted)
3 years ago
jean-pierre charras
a0d859c324
Gerbview: fix some issues related to color settings.
Now colors can be set both from the Layer manager and the
color settings panel, without loss of settings.
3 years ago
jean-pierre charras
6eb7c176a7
Gerbview: fix some issues (not all) related to color settings.
Some are old issues, probably related to Kicad code change.
3 years ago
Jeff Young
b95d9d660d
Move gerbview colors to preferences dialog.
3 years ago
jean-pierre charras
9626f0b66c
Gerbview: fix a minor but annoying issue about the drawing sheet color.
The color was not always the selected color but sometimes the default color.
3 years ago
jean-pierre charras
0b233d593a
Gerbview: fix missing pad shapes when exporting to Pcbnew.
3 years ago
Jeff Young
c30a557810
ADDED netclass assignment from PCB canvas.
Fixes https://gitlab.com/kicad/code/kicad/issues/5975
3 years ago
Jeff Young
9188838e50
RIP EDA_RECT.
3 years ago
Jeff Young
ebe9617e77
More EDA_RECT expungification, and an attempt to fix the python test.
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
Jeff Young
5679b9dbdc
Remove a few EDA_RECT instances.
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
jean-pierre charras
7768c8f119
Gerbview: fix a typo that breaks gerber items collector.
3 years ago
Marek Roszko
f0956e48f2
Make EDA_TEXT common
Since EDA_TEXT is a base class, we can just force the child classes to pass the correct iu scaled size
ALLOW_BOLD_THICKNESS removed because it's a pre-custom font holdover
3 years ago
Marek Roszko
9acc5ac7ea
base_screen became free of base_unitry awhile ago
3 years ago
Marek Roszko
bf964d8678
Commonize page_info by simply making the Iu scale a parameter on call.
3 years ago
Marek Roszko
d807ab3089
Fix unused var warnings
3 years ago
Seth Hillbrand
f1261e71d4
Replace boost::optional with std::optional
3 years ago
Marek Roszko
fc99b3ba95
Don't link gdiplus everywhere anymore
Tested on msys2 which is the only place it would have been buggy
CMake seems to share the gdiplus linkage with the other dependencies automatically now
3 years ago
Maciej Suminski
b7a734ad61
Stop passing the focus to the layer widget on layer change
Most often it is not needed, but with the Object Inspector in place,
it keeps deactivating the properties panel.
6 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
Seth Hillbrand
35ac39844f
Clean up some auto usage
Don't make new copies of shared_ptr if we can use references. Keep auto
usage down to hard-to-type-out sequences
3 years ago
Marek Roszko
a8505d9c76
SEARCH_RESULT -> INSPECT_RESULT
To fix the name squatting it's doing for future functionality
3 years ago
Mike Williams
aea89a632b
Gerber Viewer: fix high contrast mode, respect high cycle shortcut
3 years ago
Mike Williams
9911f3a943
Gerber Viewer: X2 mode paste layer above mask and silk
3 years ago
Mike Williams
23e2e57e09
Gerber Viewer: put drills/outlines/keep outs on top by default
For file extension sorting, this priorities drills/outlines/KOs.
For X2 sorting, this changes the default priority to make
unknown-priority layers on top since if they contain anything that can
be plotted, it's probably drill data.
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/10598
3 years ago
Mike Williams
75ed6b3ce7
Gerber viewer: move layer colors with layers
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/10600
3 years ago