Seth Hillbrand
8760519a87
Ensure that we are not calculating self-collision
...
Ratsnest may have connections from a zone to two different items. This
should be avoided as we never want to draw the ratsnest line with the
same element as start and finish
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17763
2024-04-14 13:50:01 -07: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
jean-pierre charras
c6f4157689
msys2: fix a link issue in Eeschema after changes from 89dd8e1
.
2024-04-14 09:18:32 +02: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
c1dc4e1d47
Fix build error on Linux/clang.
2024-04-14 00:37:44 +03:00
Alex Shvartzkop
76b7cdd128
Improve grid cell editors appearance.
2024-04-13 23:26:01 +03:00
Marek Roszko
94847e89c3
Static cast some more enum usage
2024-04-13 15:15:39 -04:00
Marek Roszko
7d68e19afa
enum * double is deprecated
2024-04-13 15:14:39 -04: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
14762e3d54
Handle layers for label fields.
2024-04-13 19:53:58 +01:00
Jeff Young
d77eae3e7e
Collapse LIB_FIELD into SCH_FIELD.
2024-04-13 15:42:13 +01:00
Jeff Young
c241796968
Minor improvements to readability.
2024-04-13 15:40:08 +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
eb38932d26
Fix capture lambda
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17757
2024-04-13 07:47:02 -04:00
Marek Roszko
c05ae0b32e
Fix another lambda capture
2024-04-12 23:37:38 -04:00
Marek Roszko
262d94964f
Lets try C++20
2024-04-12 23:32:18 -04:00
Marek Roszko
af2c52cf0a
Remove wxT() that gets fed to ostream in boost and causes compile error
2024-04-12 23:06:23 -04:00
Marek Roszko
96cdfc7fa7
Update equality overloads for C++20
...
C++20 added new reverse and rewritten candidates. This can confuse the compiler because it'll test both A==B and B==A for overloads.
Because we were defining parent class equality overloads, A==B and B==A was considered ambigious due to both being compatible in casting.
So we needed to add explicit child class equality operator overloads
2024-04-12 23:05:58 -04:00
Marek Roszko
7a67151a22
Update lamba capture
2024-04-12 23:03:29 -04:00
Marek Roszko
1607729cf7
Silence deprecation warning about enum * fp type
2024-04-12 22:55:43 -04:00
Marek Roszko
dbd98f1ce0
Explicit lambda capture
2024-04-12 22:54:59 -04:00
Marek Roszko
e3777758d9
Silence enum operation warning
2024-04-12 22:54:42 -04:00
Marek Roszko
8fb4901d4b
Fix more utf8 comparisons
2024-04-12 22:53:25 -04:00
Marek Roszko
c042b51be9
Fix another deprecated lambda capture
2024-04-12 22:49:50 -04:00
Marek Roszko
161cfbacd4
constexpr the let user{} format string
2024-04-12 22:48:34 -04:00
Marek Roszko
0675c62a24
Update two more lambda capture
2024-04-12 22:42:31 -04:00
Marek Roszko
e6be29daa0
Fix another UTF8 to wxString comparison
2024-04-12 22:38:38 -04:00
Marek Roszko
5e3396561d
Fix some layer id enum colliding warnings
...
C++20 under MSVC does not like seeing enum values between two enums getting operated on.
static cast to int fixes it for what we are trying to do anyway
2024-04-12 21:55:19 -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
41fc1411eb
Use explicit this capture in COLLECTOR m_inspector lambda
2024-04-12 20:03:07 -04:00
Marek Roszko
9e3865ed01
Remove wchar mixed into ostream output
2024-04-12 20:00:38 -04:00
Marek Roszko
cd886a19d3
Partially update the json validator
2024-04-12 20:00:12 -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
Seth Hillbrand
6c17e275fb
Revert "Re-enforce ordering"
...
This reverts commit b22fcf70cd
.
2024-04-12 14:14:06 -07:00
Seth Hillbrand
531a8b9db9
Revert "Compare function should return int"
...
This reverts commit 7727982478
.
2024-04-12 14:13:55 -07:00
Seth Hillbrand
b22fcf70cd
Re-enforce ordering
...
Instances, pins and graphics have started to wander around the files.
Sorts instances before writing.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17737
2024-04-12 11:58:30 -07:00
Seth Hillbrand
7727982478
Compare function should return int
...
Returning boolean is promoted to int and confuses false with '0'
indicating that the elements are identical
2024-04-12 11:30:16 -07:00
Seth Hillbrand
f08cacb30f
Revert "Re-enforce ordering"
...
Unexpected element loss after save. Reverting to fix
This reverts commit f2f4890342
.
2024-04-12 10:34:11 -07:00
Seth Hillbrand
f2f4890342
Re-enforce ordering
...
Instances, pins and graphics have started to wander around the files.
Sorts instances before writing. Uses compare with std::set (not
std::multiset) to enfore lib item ordering
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17737
2024-04-12 10:08:46 -07:00