1119 Commits

Author SHA1 Message Date
Seth Hillbrand
6e2b20ed0e Update BS Threadpool to 5.0 2025-09-10 13:02:24 -07:00
Mark Roszko
b3de964eff Add fast_float for float parsing.
2x faster than both std::from_chars and strtod on Windows.

macOS will get to benefit from a modern from_chars impl too.
2025-08-29 21:48:24 -04:00
Mark Roszko
7115f9e716 Drop the FromChar in ConvertNotation 2025-08-28 18:27:06 -04:00
Jeff Young
eb6b2de648 Fix for the fix (for clang). 2025-08-28 13:20:20 +01:00
Mark Roszko
af852ea15d Protect from_chars from clang 2025-08-28 07:11:08 -04:00
Mark Roszko
b01c1f39c1 Add missing header 2025-08-28 01:22:08 +00:00
Mark Roszko
94d83773d0 Drop a LOCALE_IO via std::from_chars 2025-08-27 20:07:28 -04:00
JamesJCode
ee9e94df04 Don't assume SCH_SYMBOLs have a LIB_SYMBOL when resolving embedded files
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21497
2025-08-18 20:30:33 +01:00
dsa-t
1af8722b0f Disable ibeam cursor setter for search fields on non-OSX.
The ibeam cursor gets stuck on MSW when mouse leaves the field.


(cherry picked from commit 47381f3d90f08ca832dd1152d02fdaa01dc3a52a)

Co-authored-by: Alex Shvartzkop <dudesuchamazing@gmail.com>
2025-08-18 15:56:06 +03:00
Mark Roszko
5895c27f4a Rename Prj() on schematic to avoid conflict with global function 2025-08-07 23:21:41 -04:00
Jeff Young
8c85cd43f3 Copy c'tor / operator= safety.
Also fixes a memory leak of search pane handlers.
2025-08-02 22:04:53 +01:00
Seth Hillbrand
267b21d81c Added precompiled header support
- PCBNew
- Schematic Editor
- Common libs
2025-07-26 15:33:42 -07:00
Jeff Young
beb83e87ea Must use addParamsForWindow to init WINDOW_SETTINGs structs. 2025-07-17 16:26:50 +01:00
Jeff Young
b53b1cfd01 Debugging. 2025-07-14 13:17:53 +01:00
Jeff Young
ad83ad512a Debugging. 2025-07-12 16:24:55 +01:00
Jeff Young
0f19ed5f9f Shutdown safety. 2025-07-09 13:05:22 +01:00
Jeff Young
513bdadf81 Remove noisy assert. KICAD-6XH
We may need to support showing complex numbers at some
point, but as we don't today it's sort of moot.
2025-07-06 21:26:13 +01:00
Alex Shvartzkop
4a5039c2cf Remove some unused variables. 2025-07-02 16:48:26 +03:00
Alex Shvartzkop
84fd260fc0 Restore .h files generated from .md
Weblate translations don't work if these files are missing.
2025-06-30 07:05:22 +03:00
Alex Shvartzkop
50ce7d93fb Fix some warnings. 2025-06-30 06:52:16 +03:00
Tomasz Wlostowski
0256ccb6a6 router: TOPOLOGY::SimplifyLine() should not try to merge segments of differing widths
Note to self: likely a regression after adding aAllowSegmentSizeMismatch parameter (default = true) to AssembleLine(). We need to improve the simplification algorithm to take differing widths into account.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21078
2025-06-22 00:26:33 +02:00
Jeff Young
1bc60c32f0 Nullptr safety. 2025-06-15 21:45:09 +01:00
Jeff Young
18e107529a Don't force callers of GetAppSettings to implement exception processing. 2025-06-14 20:25:59 +01:00
Mike Williams
f4659b4c4f warnings: remove unused variables 2025-06-09 09:00:47 -04:00
aris-kimi
9c5b2c55fb Move simulation frame panel togglers to sch_actions and eechema.Simulator domain 2025-06-09 10:10:43 +01:00
Jeff Young
8968ff62e3 Remove dead code. 2025-06-08 16:33:05 +01:00
Jeff Young
530b4d683c Comments. 2025-06-08 16:33:05 +01:00
Jeff Young
0f9e858beb Add grammar for SkyWater .subckt parameters.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20220
2025-06-08 11:11:10 +01:00
Jeff Young
31c6c28882 Performance optimizations. 2025-06-06 18:25:20 +01:00
Jeff Young
c2591977b8 Minor performance optimizations. 2025-06-03 11:41:27 +01:00
Jeff Young
0ddb34e8b0 Nullptr safety. 2025-06-03 11:41:27 +01:00
Graham Keeth
6bb3fc39df Sim: correctly netlist AM/SFFM current sources
AM and SFFM current sources were being netlisted as voltage sources due
to the wrong prefix being added.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20994
2025-05-26 09:08:01 +00:00
Jeff Young
327cca9de5 Coverity fixes. 2025-05-25 20:01:18 +01:00
Jeff Young
42c68f1a16 Uniform application of recursion guards in simulation code. 2025-05-25 09:09:11 +01:00
Jeff Young
ed1b4f6e5a Better and more complete recursion guards.
(ie: ones that actually work.)

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20990
2025-05-24 22:39:03 +01:00
Mark Roszko
e97c920fbd Ensure symbol pins are sorted before infering spice pin mapping
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20590


(cherry picked from commit 2d8c805107213284eef0ed7f3f0c32db199988a5)

Co-authored-by: Marek Roszko <mark.roszko@gmail.com>
2025-05-24 18:41:57 +00:00
Jeff Young
61d36f9d29 Fix recursion issues with text variables.
1) Pass aDepth down through those versions of
CreateModel() which expand text variables

2) Be aware that unresolved text variables look
just like unexpanded text variables.
2025-05-24 18:30:30 +01:00
Mark Roszko
f3d445efc9 Prevent crash on failure to load ngspice's dll
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20695


(cherry picked from commit f35078cb293e44c81dfbf8563f01cfac4248e09a)

Co-authored-by: Marek Roszko <mark.roszko@gmail.com>
2025-05-24 04:17:28 +00:00
Jeff Young
f58fc0b952 Rewrite GROUP undo based on uuids.
This also removes the GROUP/UNGROUP-specific undo actions.

This also fixes a bunch of undo bugs when duplicating
group members, creating pins, etc.

This also fixes some undo bugs when dividing wires etc.

This also fixes some bugs with new sch items not
being created within an entered group.
2025-05-21 14:24:59 +01:00
Marek Roszko
e14dfdf4b0 Protect s_ModelInfoMap against multithreading init
Encountered in QA tests on windows. Probably also a issue during kicad use if you trigger a spice netlist export without previously doing any spice model editing
2025-04-30 20:47:54 -04:00
Jeff Young
b01fef5ca8 Update visibility flag when adding fields.
Also removes extra c'tor which fails to set the
ordinal.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20556
2025-04-26 16:37:36 +01:00
Jeff Young
524575a595 Allow embedded files to come from components
as well as parent containers, part II.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20210
2025-04-25 12:26:31 +01:00
Lucas Gerads
82003c8660 Simulator: Error checks for parsing ngspice intermediate file
- verify that the string "Values:" is actually found
- catch exceptions while parsing
- error messages
2025-04-07 15:48:34 -07:00
Seth Hillbrand
bccf365380 Isolate thread pool loops
Now that we are threading things in different frames, we need to watch
that we are not waiting for a process to complete in one frame while
working in another.  To accomplish this, we only wait for our own loop
results

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20572
2025-04-07 12:17:11 -07:00
jean-pierre charras
7bd4fa3fa6 Fix a Coverity and a compil minor warning 2025-03-26 13:19:00 +01:00
Lucas Gerads
313232c9f3 Simulator: Fix line offset in intermediate ngspice file
- Fixes issue #20268
- Replace the hard coded line numbers
- Search for "Value:" string instead
2025-03-13 18:29:56 -04:00
Jeff Young
5996cffabc EE -> SCH (no functional changes) 2025-03-13 13:15:47 +00:00
Jeff Young
7401b57fcb Warning messages for simulation tuning.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20274
2025-03-11 11:02:20 +00:00
Ian McInerney
85810510f4 Tweak toolbar settings a bit
* Manage the settings using the settings manager for better lifetimes
* Better architect the internals and JSON to make it easier to identify
  the various tool types
2025-02-28 01:57:37 +00:00
Ian McInerney
548334b4e2 Load toolbar configuration from settings 2025-02-28 01:57:37 +00:00