Seth Hillbrand
7fe83993cf
Be smarter about releasing lockfiles
If KiCad crashes or exits without deleting the lockfile, don't show the
warning message unless we are not the one who locked it or there are
other KiCad instances running locally.
This should catch 99% of the cases where the message is shown
incorrectly. There may be some corner cases where the lock file is
created on a network drive using two different machines with the same
name and same user but these cases should be (famous last words)
sufficiently rare as to not be observed in practice
2 years ago
Seth Hillbrand
f7f67c6d53
Sort the bus alias set by name
If we place pointers in a set, they are sorted by the pointer value in
memory, not the data, so we need a custom comparator
Fixes https://gitlab.com/kicad/code/kicad/-/issues/11890
2 years ago
Jeff Young
e4b262d6e1
Fixed-y-scale bug fixes.
Default dialog to SPICE command.
Any of the three axis locks must lock the plotWindow Y axis (otherwise
locking Y2 but not Y1 doesn't preclude zooming).
2 years ago
Jeff Young
06f19aa761
Implement y axis locking for secondary y axes.
Still a bit of a work-in-progress.
Also fixes some bugs with formatting of measurements and cursor values.
2 years ago
Jeff Young
9c08d4febe
ADDED support for simulation plot margins and GUI for Y axis locking.
2 years ago
Jeff Young
65f66755ee
Reduce overhead for unused code.
2 years ago
Jeff Young
764913207c
Read legend position from workbook.
2 years ago
jean-pierre charras
a586bbc3ea
Symbol editor, DIALOG_FIELD_PROPERTIES: fix missing initialization of font.
In Symbol editor, tying to change the font of a field did nothing.
2 years ago
jean-pierre charras
3a4f3cb0b8
Minor Coverity and compil warnings fixes.
2 years ago
Jeff Young
30928796bd
Repair new switch-based Global Update Text & Graphics.
We were forgetting to handle wire and bus labels.
2 years ago
Jon Evans
24a3816a34
EDA_TEXT Orientation property shouldn't be exposed to schematics
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15140
2 years ago
jean-pierre charras
58a9b75883
Eechema: Do Not Place markers: add a specific setting for their color.
Previously, the color was the ERROR ERC marker color.
Now they have a specific color.
2 years ago
Jeff Young
eaa3543d67
Beautify DNP symbols.
Make sure the 'X' is centered over the body, not the body + pins.
2 years ago
Jeff Young
89e2cb0b85
Use loaded colours for DNP symbol.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15203
2 years ago
Jeff Young
a16033f624
Fix logic errors in DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem().
(We can't exit out if it doesn't match a particular type as we haven't
checked the other types yet. Use a switch to prevent this.)
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15206
2 years ago
Jeff Young
7f3839a179
Minor cleanup.
2 years ago
Jeff Young
63c83b3aed
Remove dead code, and some formatting cleanup.
2 years ago
Jeff Young
5419055acb
We no longer need activate actions with RunSynchronousAction.
2 years ago
Jeff Young
537d6bdb75
Don't destroy ERC dialog twice.
(And some other cleanup.)
2 years ago
Jeff Young
a09a5cb641
More undo cleanup.
The symbol editor has few enough items that it will still be performant
if we always send a selected-item-modifed event. (As it turns out we
were doing that anyway as the check for child-modified flags didn't
also check for selected.)
2 years ago
Roberto Fernandez Bautista
cf0b719a4a
Fix some unreachable code msvc warnings
2 years ago
Jeff Young
89780d353a
Pick up snapped item's line properties.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15192
2 years ago
Jeff Young
1218f61d0a
Implement undo/redo for footprint children.
Our special-cases to handle the fact that we didn't do this had far
outgrown the code necessary to actually handle it.
2 years ago
Marek Roszko
3233bbe0ba
Make exported date time strings use ISO8601 format
Also rename the function to be explicit on its result format
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15185
2 years ago
Jeff Young
24e9cf4fd8
Improve self-documentation of sim workbook.
2 years ago
Jeff Young
041bd2a54f
JSON bools can be read straight up; no need to compare to "true".
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15197
2 years ago
Jeff Young
3aa479cd54
Fix typo.
2 years ago
Jeff Young
593b77be8c
Fix typo.
2 years ago
Jeff Young
cbf685ad76
Clear owner of old watcher before resetting std::unique_ptr.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15173
2 years ago
Jeff Young
054252ccbe
Move sim workbook to json.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15197
2 years ago
Jeff Young
ff044cd0cf
Mostly a terminology update...
... but also makes DIALOG_SIM_COMMAND and SIMULATOR_REPORTER a bit
more simulator-agnostic.
2 years ago
Jeff Young
8d2c744349
More error messages for reading workbook files.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15197
2 years ago
Jeff Young
c4179cb996
Correctly initialize New Simulation Command dialog.
2 years ago
Jeff Young
5f8583cd25
Try both ends to see if one is a wire.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15178
2 years ago
Jeff Young
964e42a611
ADDED text-based pole-zero analyses.
2 years ago
Jeff Young
841b693c91
Add pole-zero command parsing and printing.
2 years ago
Jeff Young
2e89c735c0
Fix buffer overrun.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15187
2 years ago
Josue Huaroto
4cad021ef4
Add Open preferences folder button in Preferences Dialog
2 years ago
Sergio Costas
181ae7f450
Change all bare isnan calls into std::isnan
2 years ago
Mike Williams
cfa0d4bfb7
Symbol Fields Table: handle missing fields better
Treat missing ones as empty, unless they are a named variable field and
then resolve the field.
2 years ago
Mike Williams
e26dcbece4
Symbol Fields Table: add item number support
2 years ago
Mike Williams
265720ec65
BOM Export: add DNP to Group By * defaults
Closer to the BOM export scripts we are trying to replace, and gives the
user a clue that fields with variables names are way to export other
data.
2 years ago
Mike Williams
7cb8d3d1c9
Schematic fields: implement fields with variables as names
Special case that always fills in the value with the value of the
variable
2 years ago
Alex Shvartzkop
89a9eee174
LTspice import: fix Mac path variable shadowing.
2 years ago
Jeff Young
0a28956cf8
Replace misssing "if" stmt and make outer "if" catch all cases of log scales.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15174
2 years ago
Alex Shvartzkop
f8f7b84f13
LTspice import: add LTspice 17.1 Windows library path.
2 years ago
Alex Shvartzkop
c652abecff
LTspice import: don't scan input file directory recursively.
2 years ago
Alex Shvartzkop
2266ba78c5
LTspice import: much faster library path scanning.
2 years ago
Alex Shvartzkop
32fdb231b2
LTspice import: fill symbol rectangles with body color when needed.
2 years ago
Alex Shvartzkop
568a461080
LTspice import: Fix multiline text alignment.
2 years ago