Alex Shvartzkop
045f65608a
Add VECTOR2L to Swig.
2024-04-23 23:37:45 +03:00
Seth Hillbrand
fc93c63a19
Revert "Remove trailing zeros from all values"
...
This reverts commit abd0388794
.
2024-04-23 11:08:14 -07:00
Alex Shvartzkop
865e3a9f3c
Improvements when working closer to 32-bit integer limits.
...
- Changes BOX2 size to extended coordinates.
- Adds BOX2ISafe to construct a BOX2I that will fit in int32.
- Adds more checks.
- Safer computations.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17670
2024-04-23 16:34:07 +00:00
Jeff Young
e8be782687
Mostly clean-up, but also bug fixes with bounding boxes.
2024-04-22 11:16:14 +01:00
Alex Shvartzkop
2babd574be
Refactor autosave prefix into FILEEXT.
2024-04-22 04:06:04 +03:00
Alex Shvartzkop
c68e3ceb44
ADDED: Export inner PCB copper layers to STEP / BREP / GLTF.
...
Also adds options to exclude board body and components.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16855
2024-04-22 03:39:46 +03:00
Alex Shvartzkop
41c4bd58ba
Fix warnings.
2024-04-20 20:09:17 +03:00
Jeff Young
95136494b3
RIP LIB_PIN.
2024-04-20 12:10:31 +01:00
Seth Hillbrand
3435c6ebee
Prevent double-entry into footprint load
...
Avoids double-clicking on the footprint library symbol crashing due to
overwriting the global footprint table by multiple instances
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17040
2024-04-19 17:21:18 -07:00
Seth Hillbrand
abd0388794
Remove trailing zeros from all values
...
If we are showing a value to the end user, we should avoid unneeded
precision
2024-04-18 18:21:13 -07:00
Seth Hillbrand
d8b6e28890
Excise the remaining unused ifdef EESCHEMA
...
Common units are now shared between programs, so we need a different way
other than compile definitions to choose how many digits to display.
2024-04-18 18:21:13 -07:00
Alex Shvartzkop
cd2925d3d7
ADDED: Fuse Shapes option for STEP/BREP/GLTF export.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17777
2024-04-19 03:43:26 +03:00
Seth Hillbrand
2ca8abd7f1
Add locale information to the Version Info
2024-04-18 12:41:31 -07:00
Seth Hillbrand
d2701323a8
Don't sort on lost references
...
The arraystring reference is lost when we don't keep the wxFileName
variable in scope.
This also adds removing invalid paths and checking for correct version
before sorting
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17749
2024-04-17 11:35:50 -07:00
Wayne Stambaugh
d79619edd1
Minor net navigator improvements.
...
Ignore bus member connection subgraphs. They do not have a valid net
name nor do they contain schematic items. This prevents empty nodes
from being added to the tree. They can be reintroduced in the future
if someone wants to pursue it.
Freeze the wxTreeCtrl while populating it and thaw when done to prevent
any unnecessary repainting.
Add profiling to test how long it takes to rebuild the net navigator.
The recently added populate the navigator with all nets when no net
is highlighted has exposed some potential performances issues with some
versions of wxWidgets on certain platforms. Namely wxWidgets 3.2.4 on
Linux GTK.
Fix an issue where a sheet name change would not update the highlighted
net navigator resulting in a stale human readable sheet path.
Prevent the highlighted net navigator from being rebuilt twice when
loading a schematic. SCH_EDIT_FRAME::RefreshNetNavigator() was being
called from both SCH_EDIT_FRAME::UpdateHierarchyNavigator() and
SCH_EDIT_FRAME::RecalculateConnectivity().
Add a new trace helper "KICAD_UI_PROFILE" to show trace output when
profiling user interface performance. It's used in the net navigator
profiling mentioned above.
Reuse PROF_TIMER::Show() to generate string for PROF_TIMER::to_string().
2024-04-17 14:31:50 -04:00
Alex Shvartzkop
d98d7f9017
ADDED: Support 3D shape export in BREP format.
...
BREP doesn't support colors or label names,
but is much faster to write/read compared to STEP.
2024-04-17 17:31:10 +03:00
Jeff Young
d761b4f22f
RIP LIB_TEXTBOX and LIB_SHAPE.
2024-04-16 16:31:16 +01:00
Jeff Young
3efe504dcc
Collapse LIB_TEXT into SCH_TEXT.
2024-04-16 16:31:16 +01:00
aris-kimi
66bb49e2da
Silence some GCC warnings
2024-04-16 11:11:50 +00:00
Mike Williams
ea904c9fb1
Symbol Fields Table: configurable excluded from BOM filtering
...
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/17747
2024-04-15 13:08:04 -04:00
Marek Roszko
2a3b597ab9
Strip out no longer needed links on the top executables
...
Not needed due to kicommon
2024-04-14 07:52:02 -04:00
Alex Shvartzkop
ab531a33d9
Tweak GRID_CELL_STC_EDITOR offset on GTK.
2024-04-14 01:19:55 +03:00
Alex Shvartzkop
affcfed677
Fix some warnings.
2024-04-14 01:19:39 +03:00
Alex Shvartzkop
76b7cdd128
Improve grid cell editors appearance.
2024-04-13 23:26:01 +03:00
Marek Roszko
d7685a40ee
More lambda updates to explicit capture
2024-04-13 15:09:34 -04:00
Marek Roszko
c1afade6f9
Silence the assert in NUMERIC_EVALUATOR on windows due to unicode
...
The reality is we parsing potentially unicode strings, char by char with the ascii functions like isdigit.
It's kind of broken already but at least I can make the assert go away lol
2024-04-13 15:05:09 -04:00
Jon Evans
02ec894b83
Remove LIB types from API for now
...
All with the possible exception of LIB_SYMBOL are going away
2024-04-13 15:03:34 -04:00
Jeff Young
d77eae3e7e
Collapse LIB_FIELD into SCH_FIELD.
2024-04-13 15:42:13 +01:00
Marek Roszko
aa8f449d48
Remove extraneous struct keyword
2024-04-13 09:56:25 -04:00
Marek Roszko
0ce227fa92
Can't use forward declare with std::vector
...
Not allowed per C++ standard
See https://github.com/llvm/llvm-project/issues/57700
2024-04-13 08:22:20 -04:00
Marek Roszko
89dd8e1166
Move the PARAM_LIST<> specializations for BOM to bom_settings
2024-04-13 07:59:25 -04:00
Marek Roszko
b2115445cc
Make screenCenter a VECTOR2D for now to silence c++ 20 build error
2024-04-12 21:55:19 -04:00
Alex Shvartzkop
1516aaf163
Improve custom grid cell editors' margins on MSW.
2024-04-13 03:54:04 +03:00
Alex Shvartzkop
aa51cc5167
Remove macOS size tweak in custom grid cell editors.
...
Since the text field now has the no-border flag, it shouldn't be needed.
2024-04-13 03:54:04 +03:00
Marek Roszko
953c285ff0
fmt::format wants an actual constexpr format string under c++20
2024-04-12 20:04:52 -04:00
Marek Roszko
9e3865ed01
Remove wchar mixed into ostream output
2024-04-12 20:00:38 -04:00
Marek Roszko
d8343a97dd
explicit wx_str comparison
2024-04-12 19:59:43 -04:00
Marek Roszko
4a3018615b
Be explicit with lazy_ctor captures
2024-04-12 19:56:02 -04:00
Marek Roszko
24a790a7dc
Don't compare against the wrong type
...
Technically this is still wrong because of doubles..
2024-04-12 19:53:26 -04:00
Marek Roszko
5087c076c1
Lambda capture this for a callafter
2024-04-12 19:52:42 -04:00
Alex Shvartzkop
49dcd5f4fc
Fix default cell alignment and FBP file for Configure Paths dialog.
2024-04-11 00:48:48 +03:00
Alex Shvartzkop
5d22c1adee
Make grid cell editors with extra button consistent with normal text cell editors.
2024-04-11 00:47:27 +03:00
Jeff Young
5abc7145da
Fold LIB_ITEM into SCH_ITEM.
2024-04-08 10:24:50 +01:00
Jon Evans
7baccba01c
Coverity fixes
2024-04-05 08:16:29 -04:00
Jon Evans
aff2d5c0d3
Factor out SHAPE_LINE_CHAIN utilities
2024-04-04 18:55:58 -04:00
Jeff Young
92910d5d0f
Factor common parts of SCH_ & LIB_SYMBOL into SYMBOL.
2024-04-04 13:18:55 +01:00
Jeff Young
bf2b3b0b0f
Deconflict some LIB_TREE_ITEM APIs so they can remain non-const.
...
(The non-const is required by FOOTPRINT_INFO, which must load
footrpints to get some of the data.)
2024-04-04 13:18:55 +01:00
Jon Evans
9c113b25a4
Allow turning the API server on/off at runtime
2024-04-03 22:04:11 -04:00
Marek Roszko
e0b913cc65
Get rid of code path that has been unreachable for many years
2024-04-03 19:54:07 -04:00
Jon Evans
75b61956e9
Fix Windows name collision
2024-04-02 20:06:36 -04:00