Commit Graph

6934 Commits

Author SHA1 Message Date
Seth Hillbrand 151d745922 Enable/disable git tracking in user prefs
Don't require advanced config for people who want to disable

(cherry picked from commit f83e607e6e)
2025-03-24 11:58:57 -07:00
Seth Hillbrand 49d8fc900f Map a full hierarchy during PDF plotting
Re-create the schematic hierarchy in PDF plots to ease navigation
relative to the on screen schematic

Fixes https://gitlab.com/kicad/code/kicad/-/issues/12154

(cherry picked from commit 4a3b33df4e)
2025-03-14 16:51:18 -07:00
Jon Evans 028721f3ed Don't use size events for persistence
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20060


(cherry picked from commit 95e6ca44c6)

Co-authored-by: Jon Evans <jon@craftyjon.com>
2025-03-11 22:37:29 -04:00
Jon Evans b837dc1d3b Fix build with protobuf 30
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20300


(cherry picked from commit 5774338af2)

Co-authored-by: Jon Evans <jon@craftyjon.com>
2025-03-11 17:33:47 -04:00
Jeff Young aee836d722 Don't disable first internal layer in footprint editor.
It's used as a proxy for all internal layers.

Also fixes LAYER_RANGE_ITERATOR so that it works with an odd
number of copper layers.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20246
2025-03-11 18:41:35 +00:00
Jeff Young 1de9a83ff0 Printing is not zoom-specific.
(Some of these items don't currently get printed, but
there's no sense in leaving a latent bug around in case
we ever change our minds.)

(cherry picked from commit 877c6bce89)
2025-03-07 19:00:10 +00:00
JamesJCode cbe22a23b8 Enable use of double properties in DRC rules expression parser
Also fixes name clash with Orientation property for footprints

(cherry picked from commit 671d84562b)
2025-03-06 15:41:40 +00:00
Jeff Young f7eb925bfe An arbitrary layer flip can not be done without the board.
(User-defined layers can be sided or not.)

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20169

(cherry picked from commit 9856cb2210)
2025-03-05 18:01:09 +00:00
Jeff Young 46ef12ff4d Implement severity checking for CLI_REPORTER.
(cherry picked from commit 699fd2b3ac)
2025-03-05 11:56:48 +00:00
jean-pierre charras 2504195e6e Fix a collision with a Windows define and our use of the same var name.
We use IN for INCH as units, but IN is defined in a Windows header

(cherry picked from commit b0fe4df3c5)
(cherry picked from commit 0acdabd1eb)
(cherry picked from commit eaa1e6d594)
2025-03-02 16:13:11 +01:00
Jeff Young e44e3ae25e Windows compiler doesn't like the trailing ','? 2025-03-02 10:49:59 +00:00
Jeff Young 203ddb7b47 Code brevity.
(cherry picked from commit f951497a4f)
2025-03-01 22:23:30 +00:00
Jon Evans 41c3607512 Fix 9.0 formatting of fields
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20166
2025-03-01 08:53:32 -05:00
Seth Hillbrand cc2ca441fa Adjust git timing parameters
Move most of the update firing to the file system watcher (except for
windows network shares that still need timed updated).  Gate the repo
status for sync

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20133

(cherry picked from commit 5027a562e4)
2025-02-26 16:17:49 -08:00
Jon Evans b707b305ac API: Add board origin setter/getter
See https://gitlab.com/kicad/code/kicad-python/-/issues/20


(cherry picked from commit 5cec2fac9d)

Co-authored-by: Jon Evans <jon@craftyjon.com>
2025-02-26 01:14:01 +00:00
Seth Hillbrand 038b927cfa Thread git checks
Push the git checks from the main thread into child threads to prevent
resource contention in some cases where Windows machines might have many
files in git that are _also_ being managed by Google Drive

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20078

(cherry picked from commit 2c54ab277b)
2025-02-25 16:09:56 -08:00
Jon Evans 0fccad7183 PCM: Prompt to enable IPC API when required
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20062


(cherry picked from commit 3525731a4e)

Co-authored-by: Jon Evans <jon@craftyjon.com>
2025-02-23 23:07:30 +00:00
Seth Hillbrand b135491d35 Allow sim models to reference embedded files
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20024

(cherry picked from commit 157c7422b0)
2025-02-22 14:54:38 -08:00
Seth Hillbrand a844554443 Quiet down the Exclude from Sim marks in Schematic
The big grey X and dimming the component made it look like the component
was no longer a part of the circuit, rather than just being excluded for
a single purpose.

The changes the display to make a more subtle grey outline with an icon
in the corner to indicate that this refers to simulation.

(cherry picked from commit 878cf768d6)
2025-02-22 13:01:16 -08:00
Jon Evans a153e4fc63 Enhance library pinning functionality to support pin/unpin multiple libraries in the library editor
(cherry picked from commit c7aaf8b6e1)

Co-authored-by: Dmitry Rezvanov <26044988+Misaka0x2730@users.noreply.github.com>
2025-02-22 15:45:55 +00:00
Jeff Young 1ec7051f97 Fix comment.
(cherry picked from commit a00aeb7876)
2025-02-20 13:49:37 +00:00
Jeff Young a60307340f Finish eradication of visibility flag on text items.
Import/read previously-hidden symbol/footprint
text items as hidden fields.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19875

(cherry picked from commit 5edae8250d)
2025-02-20 13:18:23 +00:00
Jeff Young 58b8e9736d Fix bugs in library existence checking, and add for symbol libs.
(cherry picked from commit 2a1b93a254)
2025-02-20 13:17:37 +00:00
Jeff Young a1dd583696 LIB_TREE_MODEL_ADAPTER is not symbol-specific.
(cherry picked from commit 4a35468301)
2025-02-20 13:17:31 +00:00
Jeff Young f6148f10e1 ADDED: support naked hyperlinks in tablecells and textboxes.
Also fix flickering due to IS_ROLLOVER flag getting
nuked.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18832

(cherry picked from commit 072d8d55fe)
2025-02-20 12:57:16 +00:00
Eli Hughes fa75fb40be Fix crash in HTTP libraries if server doesn't return a description
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19963
2025-02-15 19:32:21 +00:00
Jon Evans 667bafc8bb Restore accidentally-removed schematic parity code from CLI
This will need a better fix later

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19929
2025-02-15 12:52:59 -05:00
Jon Evans 5426bfcdcd Don't autosave future formats of project settings
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19910

(cherry picked from commit 7d689e0c61)
2025-02-10 19:20:56 -05:00
Jon Evans 290dc417d9 API: Change macOS raise mechanism
Other mechanism didn't work universally
2025-02-10 17:55:24 -05:00
Jeff Young bf4c10923f Save search & design block panel heights/widths.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19845
2025-02-10 11:22:57 +00:00
JamesJCode 6bc77195bd Move net inspector bulk update threshold to advanced config 2025-02-09 16:46:18 +00:00
Jon Evans 2dc6175fcd HTTP libraries: follow redirects from server 2025-02-09 10:27:25 -05:00
Ian McInerney 78a935c315 Remove unused files 2025-02-07 14:02:13 +00:00
Jon Evans 1911cfe61b Fix footprint defaults setting storage after layer ID changes
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19873
2025-02-07 08:40:43 -05:00
jean-pierre charras 69c6412b43 Revert "fix commit 4ef2853a on non Windows platforms"
This reverts commit e587e5029c.

Revert "Print dlgs: add panel printer to select the current printer. Windows only"

This reverts commit 4ef2853ae5.
2025-02-06 14:27:30 +01:00
jean-pierre charras 4ef2853ae5 Print dlgs: add panel printer to select the current printer. Windows only
Other platforms natively show the available printers.
2025-02-06 12:29:18 +01:00
Seth Hillbrand 28b2e656e5 Work around (maybe) wx wrapping issue
wx infobar generic will wrap text, changing the stored label data on
instantiation.  Since we might expand the infobar later, this presents
an issue as the newlines are then baked into the string.

We do two things here: keep a copy of the original string to make sure
that we can reset it on update and do a hard calculation of the minimum
height for the infobar to ensure we are displaying the full text string

Fixes https://gitlab.com/kicad/code/kicad/issues/19799
2025-02-03 13:31:24 -06:00
Ian McInerney 59a4cc2e4b Default to 4 user defined layers 2025-02-02 23:09:08 +00:00
Jeff Young 72a59c547c Formatting and better use of common code. 2025-02-02 15:00:52 +00:00
Jeff Young 8874f137fa Read hotkeys from disk after they change.
(Otherwise we'll write the old versions back out
when closing one app.)

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19612
2025-02-01 20:01:13 +00:00
Seth Hillbrand 56ca054c0d Add new table icon
Replace a couple uses of the old spreadsheet
2025-02-01 09:53:12 -06:00
Jeff Young 5dc8e9a5de Formatting. 2025-02-01 11:38:07 +00:00
jean-pierre charras bc25044e78 Eeschema, advanced_config: enable Cairo to export to clipboard by default. 2025-01-31 19:31:43 +01:00
Mark Roszko 50e2a12e17 Fix palette icon scaling on Windows, also extend KiBitmapBundle because we use bundles wrong
wxBitmapBundle assumes the smallest bitmap added is the intended "original" size for a particular use case.
And generally that is probably true. However, we re-use icons in some places where we intend for them to start at 16
or start at 24. This is problematic when GetPreferredBitmapSizeFor is called for calculations because it'll return the
16*scale number instead of 24*scale number. So let's just allow passing in a min height restriction to KiBitmapBundle
for when we reuse bitmaps.
2025-01-31 10:37:00 -05:00
John Beard 636c6c4efb Eeschema/pcbnew: fix pasted image saving
The m_imageData buffer in the BITMAP_BASE is an
internal implementation - the public API to persist the
data to a stream appears to be SaveImageData - so use that,
which hides the implementation (and generates the image data
"live" when needed).

Remove the public access to the m_imageData buffer as it isn't
needed for public use, and also is misleading.

Also break out the formatting of the data into KICAD_FORMAT,
as it's currently replicated in eeschema/pcb/pagelayout
formatting code.

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/19772
2025-01-31 23:01:07 +08:00
Jeff Young a5d643cbaa Formatting. 2025-01-30 13:02:07 +00:00
Jeff Young 9083c9e6ab Remove dead code. 2025-01-29 20:54:33 +00:00
Jeff Young 8bdc7f108b Report errors when library is missing. 2025-01-29 20:54:33 +00:00
Seth Hillbrand c436207659 Update new bitmaps
Forgot to commit the bitmap_info previously
Updated the jobset to be usable for new and open forms
Added remaining icon references
2025-01-29 09:33:31 -06:00
Seth Hillbrand 683be91b60 Adding new icons 2025-01-29 05:42:57 -06:00