Jeff Young
826541548c
Make sure mouse isn't captured when dialog is raised.
...
Fixes https://gitlab.com/kicad/code/kicad/issues/14685
(cherry picked from commit c016bea020
)
2023-05-06 11:29:01 +01:00
Jeff Young
e3adc76a72
Rewrite linebreaking algorithm.
...
Previous version was overly simplistic to deal correctly
with multiple spaces or textruns not separated by spaces.
Fixes https://gitlab.com/kicad/code/kicad/issues/14683
2023-05-05 22:32:03 +01:00
Wayne Stambaugh
2ae2d7ee1a
Verify parent symbol shared pointer is still valid in symbol editor.
...
(cherry picked from commit 51fd7ca5ed
)
2023-05-05 13:50:06 -04:00
Jeff Young
e28b50e8d6
Fix a bunch more issues with sheetpaths and allowExtraText.
...
A sheetpath is required to correctly resolve text variables.
Depending on currentSheet is rife with bugs.
There are many places where we do *not* want to be prepending
field names to the field values, such as netlisting,
building PDF hypertext menus, etc.
Also, Find/Replace needs to work on unresolved text, as
that's what we're going to display (and if replace nuked
your variable references you wouldn't be happy).
(cherry picked from commit b41d446f58
)
2023-05-05 18:02:59 +01:00
Wayne Stambaugh
9c78d86f58
Don't include power symbol pin when exporting netlist.
...
The netlist exporter was never updated to exclude symbols that are
tagged as power symbols. Only the legacy power symbol name prefix
('#') was used as the power symbol check. Power symbols no longer
require the '#' name prefix.
(cherry picked from commit fb6b8eaeea
)
2023-05-05 11:36:39 -04:00
Marek Roszko
a6b23a751e
Add env var to force logging on msw
...
(cherry picked from commit 18dd623122
)
2023-05-05 00:59:41 +00:00
Seth Hillbrand
34d5f1f9fe
Fix a28d590b9b
...
Needs to be static, so keep the reference from the associated symbol and
not the SCH_SYMBOL instance. Both will likely have the same prefix,
which is all we care about here
(cherry picked from commit 2cac992801
)
2023-05-04 15:53:15 -04:00
Seth Hillbrand
43ad15dc0e
Force not-on-board symbols to NONE priority
...
Symbols that are not on the board should not affect the arbitrary names
assigned to unlabeled nets.
(cherry picked from commit a28d590b9b
)
2023-05-04 15:52:57 -04:00
Jeff Young
d20147c79f
Use correct sheetpath when exporting netlist.
...
(cherry picked from commit c20ef06f56
)
2023-05-04 14:28:40 +01:00
Jeff Young
7cc014cf9e
Be careful of infobar outliving symbol.
...
Fixes https://gitlab.com/kicad/code/kicad/issues/14680
2023-05-04 11:52:02 +01:00
Jeff Young
9e735fc940
First <ESC> after an edit in a textEdit cancels the edit.
...
(Second will exit the dialog.)
Fixes https://gitlab.com/kicad/code/kicad/issues/14514
(cherry picked from commit a914f6e992
)
2023-05-04 11:52:02 +01:00
Jeff Young
4fecf6c50d
Add select-all to TEXT_ENTRY_TRICKS.
...
Fixes https://gitlab.com/kicad/code/kicad/issues/14237
Fixes https://gitlab.com/kicad/code/kicad/issues/13304
(cherry picked from commit 9252793fdb
)
2023-05-04 11:52:02 +01:00
Jeff Young
c31c14e46b
Don't call BuildInitialTrace() for entry gateways.
...
We're going to call it to connect the entry and target gateways
anyway, so all we need are gateways at 22.5 degrees to setup entry
at +/- 45 degrees from the current direction.
Fixes https://gitlab.com/kicad/code/kicad/issues/14324
Fixes https://gitlab.com/kicad/code/kicad/issues/12459
(cherry picked from commit 507a25f150
)
2023-05-04 11:52:02 +01:00
jean-pierre charras
349dbb98a6
bom_csv_grouped_by_value_with_fp.py: fix compatibility with python < 3.9
...
From master branch
2023-05-04 08:54:55 +02:00
Jeff Young
f4fa5bb0fc
Don't store resolved values in symbol fields table editor dataStore.
...
We're going to use the dataStore to update the symbol, so
if we store resolved values it will nuke any text variables
even if the field wasn't edited.
Not sure if the BOM generator has a separate resolve-variables
step or not. But it will need one as the code removed here
only worked for Values and Footprint fields anyway.
2023-05-04 00:08:18 +01:00
Seth Hillbrand
4cdf75dc72
Remove matching parents/neighbors in subgraphs
...
This ensures that when bus elements or labels matching bus elements are
removed that the stale neighbor/parent references are similarly removed
2023-05-03 13:35:51 -07:00
Seth Hillbrand
53eb39e033
Avoid NaNs when applying fillets
...
Segments that are inline with each other will create NaNs when
filleting. This double check prevents NaN points from being added to
the polygon
(cherry picked from commit b72c6e5cb0
)
2023-05-03 11:50:47 -07:00
Mark Roszko
57ae43890c
Update 5 files
...
- /eeschema/CMakeLists.txt
- /eeschema/eeschema.cpp
- /pcbnew/pcbnew.cpp
- /qa/qa_utils/pcb_test_frame.cpp
- /qa/unittests/eeschema/test_module.cpp
2023-05-03 17:32:55 +00:00
jean-pierre charras
1c59574cbf
FOOTPRINT_EDIT_FRAME: do not delete settings when closing the frame.
...
They now are read when starting kicad, and must be not deleted.
(cherry picked from commit 0c544f1f45
)
2023-05-03 17:27:28 +00:00
Seth Hillbrand
7ddef03aba
Initialize settings for SINGLE_TOP
...
(cherry picked from commit 82ba67db82
)
2023-05-03 17:26:57 +00:00
Seth Hillbrand
4258738b89
Remove extraneous symbol editor settings
...
(cherry picked from commit 2cd861dbd5
)
2023-05-03 17:26:26 +00:00
Seth Hillbrand
594864e117
Remove extraneous includes
...
(cherry picked from commit 892e4536b0
)
2023-05-03 17:26:13 +00:00
Seth Hillbrand
a5698ce480
Remove locks from settings
...
Settings should be initialized on start-up. This removes the option of
lazily loading the settings from file and instead requires all settings
needed to be loaded on KiFACE start before requesting data from the
settings object
(cherry picked from commit e6ab9a88ce
)
2023-05-03 17:25:17 +00:00
Seth Hillbrand
1a2c9011e6
Rework Copper Sliver check
...
Adds QA checks to copper sliver tests. Adds the following checks:
- Dot product between two arms (quickly avoids checks for >90°)
- Checks the sliver is convex (area test)
- Eliminates minor slivers with angles that are approximately 0 and ones
with the opposite side width beneath a configurable level
- Updates Clipper2 to fix a couple of jagged edges on inflate
- Adds simplify during zone fill inflation to limit jaggies
Fixes https://gitlab.com/kicad/code/kicad/issues/14549
(cherry picked from commit f7f52d77e4
)
2023-05-03 10:22:49 -07:00
Jeff Young
600ac72a3d
Add missing property to footprint texts table.
...
Fixes https://gitlab.com/kicad/code/kicad/issues/14357
2023-05-03 17:58:29 +01:00
jean-pierre charras
1118eed080
Use operator at() instead of [] to access a std::array item
...
It helps debug.
From Master branch
2023-05-03 17:21:36 +02:00
jean-pierre charras
e42c66bd0e
Pcbnew: fix crash when loading a file having vias on connected layers only.
...
It was due to an access out of bounds in a std::array
Fixes #14668
https://gitlab.com/kicad/code/kicad/issues/14668
2023-05-03 17:18:28 +02:00
Jeff Young
ff8fae377c
Pass aEvent by value.
...
It will have changed by the time CallAfter() is executed.
Fixes https://gitlab.com/kicad/code/kicad/issues/12475
2023-05-03 12:27:45 +01:00
Jeff Young
6931252ed9
Pull back more sheetPath fixes from master.
2023-05-03 12:04:46 +01:00
Mike Williams
ef8e549d86
PCB Search Pane: show Board Setup / Net Classes on net activation
...
(cherry picked from commit bc8f81b14d
)
2023-05-03 11:55:50 +01:00
Mike Williams
a5470029a8
PCB Search Pane: activate item opens properties dialog
...
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/12475
(cherry picked from commit 71b687622b
)
2023-05-03 11:55:14 +01:00
Mike Williams
13fb23d59d
Search Pane: add Activation (enter/double click) event support
...
(cherry picked from commit d915cb780e
)
2023-05-03 11:54:49 +01:00
Jeff Young
a3197578d6
Tighten lifecycle management of CN_ANCHOR/CN_ITEM.
...
In particular, when a CN_ITEM is freed set all its anchor's
item pointers to NULL. (The anchors have a separate
lifecycle due to being std::shared_ptrs.)
Hopefully fixes Sentry KICAD-KV.
(cherry picked from commit 0eac5c6748
)
2023-05-03 10:51:20 +01:00
Jeff Young
ebc14b35f5
Commenting and formatting.
2023-05-02 14:14:05 +01:00
jean-pierre charras
b0235a2805
3D viewer: use the right color theme (the one used in the board editor)
...
From Master branch
Fixes #14616
https://gitlab.com/kicad/code/kicad/issues/14616
2023-05-01 17:00:09 +02:00
jean-pierre charras
d0069e0e1d
specctra_export: fix unit conv PCB iu -> DSN
...
From Master branch, commit 28028c941e
Fixes #14656
https://gitlab.com/kicad/code/kicad/issues/14656
2023-04-30 20:58:12 +02:00
Jeff Young
878f136951
Extend Mac colour picker cursor fix to GTK.
...
(cherry picked from commit a3b741a126
)
2023-04-30 18:12:04 +01:00
Jeff Young
bf364bf74c
Go back to winner-takes-all lib-tree scoring algorithm.
...
(Because we sort alphabetically there's no way to see
what the second-highest scored item was.)
2023-04-30 12:32:19 +01:00
Jeff Young
03c2850c59
Record parent rule for DRC assertions.
...
(Particularly important if the rule specified a severity.)
Also fixes a bug looking up LSET layer names in the
GetStandardLayerNames array (which aren't the same).
https://forum.kicad.info/t/a-few-questions-about-custom-rules-syntax/40068/7
2023-04-29 21:17:56 +01:00
Jeff Young
4eddc7131d
Add Grid Settings to PL_EDITOR.
...
Fixes https://gitlab.com/kicad/code/kicad/issues/14612
2023-04-29 18:16:51 +01:00
Jeff Young
14be1935e8
Formatting and cleanup.
2023-04-29 18:14:24 +01:00
Jeff Young
f08029354a
Use wxFileName to resolve . and .. in documentation paths.
...
Fixes https://gitlab.com/kicad/code/kicad/issues/14564
(cherry picked from commit 08c773a0bf
)
2023-04-29 17:52:54 +01:00
Jeff Young
c18600b67f
Don't reset alpha when specified in hex value.
...
Also fixes a bug with colour picker cursor drawing on Mac.
Fixes https://gitlab.com/kicad/code/kicad/issues/14646
(cherry picked from commit a817b4c1ff
)
2023-04-29 17:52:50 +01:00
Jeff Young
2acc0a6844
Use Net() accessor uniformly; init hole parent in VIA::Clone()
...
Fixes https://gitlab.com/kicad/code/kicad/issues/14603
(cherry picked from commit 16e000f2b0
)
2023-04-28 18:33:27 +01:00
Lucas Dumont
8ffba3a52f
Update collide for hole
...
As hole don't keep track of the net, update the collide function to keep it working
(cherry picked from commit b1a4353c34
)
2023-04-28 16:20:31 +01:00
Jeff Young
0fb2f35b10
Fix sheetPath handling in SPICE model generation.
...
(cherry picked from commit d5cb100f72
)
2023-04-28 16:20:03 +01:00
Jeff Young
f8270b9cec
Tighten ownership model of PNS::ITEM.
...
In particular, ownership must be explicitly set. It is
no longer inherited through copy/clone/etc.
2023-04-28 11:03:24 +01:00
Jeff Young
d3311ee231
Implement better sheet-path awareness for label text var resolution.
...
(cherry picked from commit 4b0027a5d7
)
2023-04-28 01:02:58 +01:00
Jeff Young
21eb2c8dad
Simplify PNS::VIA construction.
...
(cherry picked from commit 9646e3c1c0
)
2023-04-28 00:33:27 +01:00
Jeff Young
a11fd7a792
Set currentSheet when exporting netlist.
...
Patch courtesy of Fernando Gomez.
(cherry picked from commit 5e21e94478
)
2023-04-26 18:20:34 +01:00