Alex
58b03b0a1c
Small optimizations.
3 years ago
Alex
f75266d130
Keep selection order in SCH->PCB cross-selection.
3 years ago
Mikolaj Wielgus
e27969217c
Add missing virtual destructor in SPICE_GENERATOR
3 years ago
Mikolaj Wielgus
e4865ce543
Excise wxString from simulation
3 years ago
Jeff Young
fc10db25ba
Netclass directive and label conversion improvements.
1) Copy label fields when converting.
2) Don't assume netclass directive should be net name -- this is very
unlikely.
3) Don't show font controls in Netclass Directive Properties dialog --
there's no basic text associated witha Directive Label.
3 years ago
jean-pierre charras
b6663a1c41
minor fixes.
3 years ago
Jeff Young
8eb68ee472
Add pin/unpin context menu to Symbol Chooser and Footprint Chooser.
Also moves some more code down into common so it can be shared.
Fixes https://gitlab.com/kicad/code/kicad/issues/12384
3 years ago
jean-pierre charras
78087597cd
Avoid including plotters/plotter.h in many files.
It avoid a large rebuild when modifying the plot code.
3 years ago
Mikolaj Wielgus
0e0c4df4da
Fix build with -DKICAD_SPICE=OFF
3 years ago
jean-pierre charras
f851526c67
Plotters: make virtual void PLOTTER::Arc() using arc angles protected.
Using arc angles to plot an arc is really error prone due to different
options between plotters, and angles defined in Kicad, using this version of
arc plotting from Kicad is no longer allowed in Kicad code.
3 years ago
jean-pierre charras
fd4cd17f4f
fix a compil warning
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
jean-pierre charras
bbaf5a21c2
Eeschema: fix a plot issue with arcs.
Arcs are really error prone, due to different Y axis orientation, and geometry transforms.
Probably we should remove plot and print functions using arc angles as parameters
that are a can of worms.
Fixes #12465
https://gitlab.com/kicad/code/kicad/issues/12465
3 years ago
Mikolaj Wielgus
2bf6791352
Sim: Move SIM_LIBRARY_SPICE parsing facilities to a new class
This leaves SIM_LIBRARY_SPICE very small, but it will grow larger later.
3 years ago
Jeff Young
30a4d3d2de
Coverity fixes.
3 years ago
Seth Hillbrand
4b20eb9cb0
Remove debugging code
3 years ago
Seth Hillbrand
e0f7c3b057
Properly handle non-connected labels in ERC
All labels need to be attached to a net that has at least 2 pins in
order for this to be a valid net. To check for the existing pins, we
need to interate over all subgraphs in the net, counting pins
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
jean-pierre charras
5990595619
When adding a bitmap, do not clone it during moving.
Cloning is not necessary, and is memory consuming.
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
Mikolaj Wielgus
8599323dce
Sim: Move Spice model parsing to a separate class hierarchy
Roughly analogous to the SPICE_GENERATOR hierarchy.
3 years ago
Mikolaj Wielgus
0efc1149af
Sim: Create a common base class for models sourced from Spice libs
3 years ago
Marek Roszko
63295cfb9e
Remove unused vars
3 years ago
Mikolaj Wielgus
3b94624e90
Commit forgotten files
I must stop forgetting to commit new and renamed files.
3 years ago
Mikolaj Wielgus
a8d7a845b6
Sim: Rename SIM_MODEL_SPICE to SIM_MODEL_RAW_SPICE
3 years ago
Mikolaj Wielgus
4128a5533f
Sim LTspice compat: Ignore mfg, icrating, vceo, type params
3 years ago
Mikolaj Wielgus
dcb3f16fbc
Sim: Don't use long type in SIM_VALUE
3 years ago
Jeff Young
e6c8cf0f03
Don't escape spaces in bus groups and transfer hyperlinks.
Fixes https://gitlab.com/kicad/code/kicad/issues/12451
Fixes https://gitlab.com/kicad/code/kicad/issues/12452
3 years ago
Mikolaj Wielgus
15b5b48992
Sim: More descriptive parsing errors in all Spice parsers
In my previous commit, which changed Spice parsing errors to be more
descriptive, I forgot to apply this to all invocations of the Spice
parser. This commit corrects that.
3 years ago
Mikolaj Wielgus
5fa0a1a064
Sim: Output more descriptive parsing errors
3 years ago
Marek Roszko
5f85c3b8b9
Fix everything loading DNP
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
61e11d6896
Strip out Mils2Iu
3 years ago
Marek Roszko
e6ed275c25
Repoint IU_PER_MILS
3 years ago
Marek Roszko
a8613ee80f
Combine Iu2Millimeter & remove PcbMm2iu
3 years ago
Seth Hillbrand
e0a6ff3f14
Don't hold on to the background print color option
When printing b/w we need to set the print background to off otherwise
we can inadvertently get backgrounds printing
3 years ago
Mikolaj Wielgus
d48ec3aa8c
Sim: Slightly simplify grammars
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
Jeff Young
2aa8facacd
Reconcile SPIN_STYLE and text alignment/rotation controls.
Fixes https://gitlab.com/kicad/code/kicad/issues/12443
3 years ago
Jeff Young
907cafef6d
Update font size before querying properties dependent on it (like the text margin).
Fixes https://gitlab.com/kicad/code/kicad/issues/12444
3 years ago
jean-pierre charras
dd1abcbee9
Fix a UTF8 convert issue in some BOM python scripts.
Fixes #12435
https://gitlab.com/kicad/code/kicad/issues/12435
3 years ago
Mikolaj Wielgus
545212eb13
Sim Window: Support dark theme
3 years ago
Mark Roszko
b00178adb3
Nuke base_units from orbit
3 years ago
Mikolaj Wielgus
4ae2225b6d
Sim: Replace all wxStrings with std::strings in SIM_VALUE
3 years ago
Mikolaj Wielgus
d19b2dbfe4
Sim Model Editor: Display error when failing to set parameter
3 years ago
Mikolaj Wielgus
ce3fe46751
Sim Window: Display latest netlist without having to run sim
Fixes https://gitlab.com/kicad/code/kicad/issues/11787
3 years ago