7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-14 02:59:34 +00:00
Commit Graph

9865 Commits

Author SHA1 Message Date
Mike Williams
2c99bc6c6d new feature: Schematic Design Blocks
Added to advanced config, default to off.
EnableDesignBlocks=1 in kicad_advanced to test

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/2263
2024-09-05 08:35:49 -04:00
Alex Shvartzkop
36019314e9 Make simulation reporter warnings non-fatal.
Adds REPORTER::HasMessageOfSeverity for WX_STRING_REPORTER,
which allows us to show simulation warnings and fail only if there's errors.

Also fixes a crash when SPICE_GENERATOR_KIBIS throws an IO_ERROR.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18143
2024-09-05 05:59:35 +03:00
Alex Shvartzkop
16d9fa7f25 Fix compatibility with EasyEDA/LCEDA Pro v2.2.26
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18620
2024-09-05 05:59:35 +03:00
Seth Hillbrand
6c9980fca0 Leave full path in WS Editor draw list
Truncating the path leads to differences between viewing ${FILEPATH} and
printing/plotting ${FILEPATH}.  The variable does not appear to be used
elsewhere
2024-09-04 12:58:01 -07:00
Jeff Young
94f995c49e Reduce dependency on dynamic_cast.
(Especially where it is no-worky on MacOS.)

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17245
2024-09-04 17:24:49 +01:00
Marek Roszko
89a3b7baa5 Move some things starting from reporter to kicommon 2024-09-02 21:15:14 -04:00
Alex Shvartzkop
88272a59b7 Fix MSVC build. 2024-08-29 04:57:13 +03:00
Jeff Young
3441861988 Make arrow keys respect grid overrides. 2024-08-28 19:54:23 +01:00
Seth Hillbrand
86c0aec468 Move zone connection filler out of AC
New algorithm to prevent zone fills that are smaller than the minimum
copper width.
2024-08-28 09:04:51 -07:00
John Beard
b043f334de Update font when needed on italic/bold change
When the italic or bold nature is changed, text using outline fonts may
need to change its font. Add this to the SetItalic/SetBold functions.

Also add a counterpart SetItalicFlag function (following SetBoldFlag)
when you only need to set the flag (e.g. when importing or changing
everything in the text properties dialog).

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/18592
2024-08-28 13:49:36 +01:00
John Beard
1fb2d7fe26 Pcbnew: Snap to graphic/track intersections
Relates-To: https://gitlab.com/kicad/code/kicad/-/issues/2329
2024-08-28 13:49:36 +01:00
John Beard
0818ee1770 Pcbnew/FPedit: Add snap anchor type indicators
This allows to see what the current snap point is, which is useful when
zoomed in, or the point is like the corner of a rounded pad where it's
"in free space" and might not be immediately obvious.
2024-08-28 13:49:36 +01:00
John Beard
410e200f80 Newstroke: neaten some Chinese characters.
Many characters have doubled-up or broken
strokes. There are thousands, but fix a few of the most
common ones (e.g. numbers, colours, a few electronic
terms)
2024-08-28 13:49:35 +01:00
John Beard
38daf2e2fa Newstroke: Upgrade symbol library files
This results in much re-ordering and reformatting of the libraries due
to cosmetic changes in the output filter. But there is no graphical
changes.
2024-08-28 13:49:34 +01:00
Mark Roszko
c19aa8170b Revert "Move some things starting from reporter to kicommon"
This reverts commit 3d893254e9
2024-08-28 01:21:40 +00:00
Marek Roszko
3d893254e9 Move some things starting from reporter to kicommon 2024-08-27 20:33:08 -04:00
Ian McInerney
a9e115925a Fix compilation with Boost 1.86
Boost 1.86 removed the boost::random dependency from boost::uuid, so
we need to include those headers on our own now to use the random
mersenne twister implementation.
2024-08-27 11:49:28 +01:00
jean-pierre charras
513d659ce8 Fix incorrect flip for graphic segments.
For some obscure reason, the end points of segments were swapped.
Note graphic RECTANGLE shapes have still an issue when flipped, but this
is a very different issue.
2024-08-26 19:37:23 +02:00
Dhinesh
11e749ad2b Fixed issue where the final segment of the dashed style was not finishing properly
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18335
2024-08-26 06:54:36 -07:00
jean-pierre charras
ae001d7e19 RENDER_SETTINGS: try a slightly modified dot calculation. 2024-08-25 16:30:08 +02:00
jean-pierre charras
04a6dca960 RENDER_SETTINGS: fix issue when using dotted lines.
At some levels, these lines (drawn as dots) were not visible.
They are now drawn as short lines.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16757
2024-08-24 20:45:20 +02:00
Jeff Young
0ec445e7cb Formatting. 2024-08-22 13:44:27 -06:00
Jeff Young
b549c4feec Drawing sheet can't share glyph cache entries with editors.
(They use different internal units.)

Also fixes a fialure of CAIRO_GAL to reset the fill
and stroke after drawing outline glyphs.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18579
2024-08-22 12:23:21 -06:00
Seth Hillbrand
e0fc7b2b88 Some fixes for DXF import
In order to find elements, we need to have bbox correctly set.  ::min()
for doubles, just gives the smallest positive value.  So negative placed
graphics don't trigger the right bbox and they get nopped out of
existence.

Similarly, following the advice from @msteinbeck, we elevate the degree
of the spline before converting it to beziers in order to properly
represent in KiCad

Fixes https://gitlab.com/kicad/code/kicad/-/issues/11153
2024-08-21 16:24:13 -07:00
Dhinesh
d9cf5e8278 Draw closer approx to dashed circles/arcs
Segments divided into smaller parts to achieve the curve

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18335
2024-08-21 14:43:46 -07:00
Seth Hillbrand
7214ef1f14 Remove basic masking class map_string_utf8
This is just std::map<std::string, UTF8>, using the class just masks
what it is and adds unclear functions.
2024-08-19 11:51:13 -07:00
Marek Roszko
9eae3330ca Use std::array for rstring and elems 2024-08-18 22:04:00 -04:00
Marek Roszko
b101c1a0c3 Enum class ELEM. 2024-08-18 21:09:37 -04:00
Marek Roszko
58e3c5bb6b Rename Type() to ProjectElementType() for _ELEM children 2024-08-18 20:30:45 -04:00
Jeff Young
535aca7a8d Remove redundant tooltips.
Also fixes grammar and capitalisation in a few tooltips.

Also standardises some terminology, such as
"Add" vs "Draw"/"Place" and "Assignment" vs "Association".

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17694
2024-08-18 17:18:07 -06:00
Jeff Young
01332a2cb5 ADDED: plotting options for DNP footprints
Also removes the plot-fp-refs, plot-fp-values and
plot fp-text overrides from the GUI, but leaves
them as job arguments.

(Note that the job arguments also separate out
sketching DNP graphics and plotting the 'X', which
the GUI does not.)

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18056
2024-08-18 10:02:14 -06:00
Marek Roszko
eb10d478f2 Fix build conflict with new jobs system 2024-08-17 17:29:45 -04:00
Mark Roszko
f389390c0c Disconnect events in ~ACTION_TOOLBAR 2024-08-16 11:11:20 +00:00
Mark Roszko
869a3ee21f Unbind events in KISTATUSBAR destructor 2024-08-16 02:21:37 +00:00
Mark Roszko
2f7f6c48ca Add missing unbinds to STD_BITMAP_BUTTON 2024-08-16 02:15:31 +00:00
Mark Roszko
62cb5e3130 Disconnect events used in EDA_BASE_FRAME 2024-08-16 02:06:18 +00:00
Mark Roszko
6641183d09 Undo errant bind removal 2024-08-16 01:55:54 +00:00
Mark Roszko
64977cbcc8 Unbind BITMAP_BUTTON events during destruct 2024-08-16 01:40:54 +00:00
Jeff Young
67a0253c66 m_filter is subtractive, and so must be run for each term
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18181
2024-08-14 21:22:39 -06:00
Jeff Young
79ec93da4c Ensure that EDA_PATTERN_MATCH_RELATIONAL is thread-safe.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18548
2024-08-14 15:46:25 -06:00
Seth Hillbrand
a724b3d8b1 Handle DXF files with out of bounds values
First, ensure that we calculate the bbox of the imported elements.

If the total BBOX is outside our allowed value, refused to import.  This
needs to be scaled or addressed in an external editor

If the bbox fits, then make sure that we clamp it such that the largest
element is still within our bounds

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18523
2024-08-14 13:06:18 -07:00
JamesJCode
00f89ae28e Respect system dark / light theme if common settings not available 2024-08-14 01:15:46 +01:00
Tomasz Wlostowski
54e5632a42 multichannel: put MC tool behind an ADVANCED_CFG flag 2024-08-13 22:50:26 +02:00
Tomasz Wlostowski
9963b9dd9f TOOL_INTERACTIVE: only create the context menu when we are running in GUI mode
TOOL_MENU::m_menu was unconditionally created by the TOOL_INTERACTIVE constructor, resulting in crashes if
we wanted to run the TOOLs in headless  mode, e.g. in unit tests. This commits makes
the creation of the menu object dependent on Pgm::IsGui().
2024-08-13 22:50:26 +02:00
Tomasz Wlostowski
7315d8e47b common: COMMIT now throws an assertion if an item is added/deleted multiple times 2024-08-13 22:50:26 +02:00
Tomasz Wlostowski
7b784a5986 common: update PCB file format keyword with placement rule areas 2024-08-13 22:50:25 +02:00
JamesJCode
19d5d21f23 Move netclass highlighting style to application-level setting
Also includes bugfix whereby wires, junctions, and bus entries
were not subject to override of local colors.
2024-08-12 23:52:01 +01:00
JamesJCode
ea482e8d15 Revert NET_SETTING schema increment 2024-08-12 22:40:12 +01:00
JamesJCode
6371b15aa4 Implement highlighting style for netclass colors 2024-08-12 21:39:07 +01:00
JamesJCode
d95901d981 Fix import netclass colors to PCB for new default netclass position 2024-08-12 19:53:36 +01:00