1678 Commits

Author SHA1 Message Date
Mark Roszko
016d937bc0 Rename JOBSET_OUTPUT_TMP_PATH to JOBSET_OUTPUT_WORK_PATH 2025-06-16 16:06:16 +00:00
Mark Roszko
dad1c4ec86 Allow running jobsets in cli by description (and uuid)
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20033


(cherry picked from commit 2d327d9d7302c867064f07d04a38fb39acdd4c33)

Co-authored-by: Marek Roszko <mark.roszko@gmail.com>
2025-06-06 23:04:51 +00:00
Mark Roszko
f48b1758e5 Set an env var when running jobs that points to the temp folder for the jobset output
(cherry picked from commit ba63b07a5e8455fb6202d70babf4d041ad6e1fa0)

Co-authored-by: Marek Roszko <mark.roszko@gmail.com>
2025-06-06 02:52:00 +00:00
Mark Roszko
835c939153 Fix kicad-cli pcb export pdf --mode-multipage
So it generates one PDF instead of multiple PDFs


(cherry picked from commit c519a6b827065add55619e6a6013847a5136c89c)

Co-authored-by: Salvador E. Tropea <salvador@inti.gob.ar>
2025-06-03 11:42:09 +00:00
Alex Shvartzkop
6a003b94d6 Unset PCM button to avoid crash on close. 2025-05-29 12:28:29 +03:00
Marek Roszko
9d07784835 Show [read-only] in the title bar based on the project's state 2025-05-24 16:10:52 -04:00
Seth Hillbrand
13442a8f91 Import Altium Projects
Handle Altium project file format

Parse individual schematic files and layout files
Create top-level schematic file
Link imported UUIDs between schematic symbol and footprints based on
refdes
Create KiCad project
Map Altium layout layers between KiCad

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

(cherry picked from commit e81956f292f06719b6984d3a86e7493435f49805)
2025-05-22 10:09:02 -07:00
Jeff Young
67debb8257 Move STEP exporter error reporting to REPORTER interface.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20738

(cherry picked from commit e69c80f09d05442d66eb7f2f49c9c6e3cc276902)
2025-05-07 13:43:40 +01:00
JamesJCode
1215b0c304 Add char_traits<T> specialisations for wxUniChar and NANODBC_SQLCHAR
when building on Apple with Clang >= 17.

These specialisations are not strictly required by the C++ standard,
and have been removed from LLVM.

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

(cherry picked from commit a5be581b1b73294f52d85854b571c4959767f20b)
2025-04-23 23:42:05 +01:00
Wayne Stambaugh
a4f71ae3ee Use schematic editor default font setting for plot job.
When the user does not define a font on the CLI or when plotting from a
job set, use the current schematic editor default font setting rather than
always defaulting to the "KiCad Font".

Set the --default-font CLI setting to an empty string so the the schematic
editor default font setting will be used.  Setting the --default-font CLI
option will override the schematic editor default font setting.

(cherry picked from commit f0f6b5a09be9c781a956fd2f1de52dd16eea0515)
2025-04-19 13:06:31 -04:00
jean-pierre charras
cf66d47b74 Fix kicad-cli pcb export gerbers --output argument type in help.
It is a directory name, not a filename

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

(cherry picked from commit e6240f9fbf2fa932aaac0760b465e18d45e96e4f)
2025-04-17 11:34:33 +02:00
Seth Hillbrand
d8903534b7 Remove TreeControl call from thread
On Windows, this may use SendMessageW, forcing a wait for UI in the
thread

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

(cherry picked from commit 3d29fae7a92be91bddda92f776bc59a1a5014526)
2025-04-07 17:06:22 -07:00
Jeff Young
d05fe64d41 Remove shadowed type (DRILL_MARKS).
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20522

(cherry picked from commit 6e566b281909f0c341f8b7e24123acb3b46bbbf3)
2025-03-31 20:00:47 +01:00
Wayne Stambaugh
cae665cd76 Update default schematic when creating a new project.
Adding the missing default page number ("1") allows the CLI plotting and
printing by page number to work correctly even if the schematic hasn't been
saved in the schematic editor.

This also adds a default new schematic UUID and embedded font setting.

Use the fancy new file formatting style.

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

(cherry picked from commit 1b40ddaba5c4e6e244c885f7b6f01279ae4382eb)
2025-03-30 06:48:32 -04:00
Jeff Young
a9adc64f3e Move layer arg parsing up so we can handle user-defined layer names.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18773

(cherry picked from commit 1333c4c305400cd63d4d789d9317c4d9f77feb55)
2025-03-29 21:24:31 +00:00
Seth Hillbrand
579c08155f Update tree based on elements not map
Rather than updating the tree with all elements in the map (some of
which may have changed), we iterate over the tree and set those elements
that we find in the map.  This ensures that all elements updated in the
tree exist there
2025-03-26 13:10:10 -07:00
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 f83e607e6e5a83cb487ab51155d2d38445b50bb5)
2025-03-24 11:58:57 -07:00
Seth Hillbrand
bf0bd05c75 Fix some regressions in git handling
Set default to rebase for pull
Update error string on auth failure
Improve trace logging

(cherry picked from commit b8225ba2d62e01dd94837d6ddd9570486e7d93b5)
2025-03-23 10:53:44 -07:00
Seth Hillbrand
e1436d3597 Fix inheritance for git_common
Avoids repo type pointer issues when casting from void

(cherry picked from commit 676dd4ceec4dc3d3e0c921c93147561f03915683)
2025-03-16 18:04:47 -07:00
Seth Hillbrand
6104651613 Adjust git handling
- Utilize scoped deletion for individual git_*_free() calls
- Protect against multiple usage when updating icons
- Reduce frequency of git update calls

(cherry picked from commit 26c331a83704bcc1f221e67fe6757a07dc9e920b)
2025-03-16 18:03:16 -07:00
Graham Keeth
38dcfdc350 capitalize Git in display strings
(cherry picked from commit 68869f6439b6e600db18cf13d0a464f9567e541e)
2025-03-14 16:54:45 -07:00
Jeff Young
12fcf31dc5 Fix failure to increment job number.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20034

(cherry picked from commit 2304d108790d97124d5b4b09b4a401f2a2afa043)
2025-03-13 16:55:32 +00:00
Jeff Young
6aa274bc0d Formatting.
(cherry picked from commit 52648497b2c226a31cb15e6d259dbdeba258933f)
2025-03-06 16:15:23 +00:00
Jeff Young
0d9daa372e Keep user-defined common layers order.
(And use it when plotting.)

(And don't shadow it with a second variable.)

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20214
2025-03-04 23:37:02 +00:00
Jeff Young
9025f04f20 Button margins.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20207
2025-03-04 12:39:33 +00:00
Mark Roszko
622a3f5bad Restore the page size mode behavior
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20014


(cherry picked from commit b6743653f32d73f1e1cf4e04d22142003738c555)

Co-authored-by: Marek Roszko <mark.roszko@gmail.com>
2025-03-04 04:16:07 +00:00
Jeff Young
66bf97bc0f Fix SCH plot to PDF for jobsets.
(Fix for CLI bug #19522 broke it for jobsets.)
2025-03-03 20:39:06 +00:00
Jeff Young
42a18ad3b6 Fix job run-log sizing issues.
wxLIST_AUTOSIZE_USEHEADER doesn't work on
some
platforms, and using OnSize was having seizures
on Mac.
2025-03-03 20:19:50 +00:00
Jeff Young
afd35001cb Fix job run log sizing issues.
wxLIST_AUTOSIZE_USEHEADER doesn't work on
several platforms, and dynamic sizing of the
list columns falls apart on Mac.
2025-03-03 19:23:38 +00:00
Jeff Young
cbc964fb94 Jobset Output -> Destination.
(cherry picked from commit d8cdb69831b1625646331cfbc9d2ad84d4658b7a)
2025-03-03 18:36:14 +00:00
Jeff Young
97b0e6d403 Persist some missing jobset arguments.
Also adds some missing CLI arguments.

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

(cherry picked from commit b0eef3ee289fc90cc7e79d0a2b31698b40ab13dc)
2025-03-02 19:28:01 +00:00
Jeff Young
89226575c6 Deprecate (instead of remove) --plot-invisible-text
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20171

(cherry picked from commit 307798ac9278fde062c31639e6f1baaa37ebf003)
2025-03-02 19:27:52 +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 b0fe4df3c565027801cbbac56c6ee0da254bd74a)
(cherry picked from commit 0acdabd1eb1a2d5ab9b6aa9f71df31c8cf088de8)
(cherry picked from commit eaa1e6d59464e8356d24afd1d29148335010f67a)
2025-03-02 16:13:11 +01:00
Jeff Young
ae96cf1715 Provide easier on-ramp for jobsets.
1) Perform initial save of new jobset.
2) Add default output folder to new jobset.

(cherry picked from commit 26871b56f072b013009dd04456b26b558c823c56)
2025-03-02 09:10:21 +00:00
Jeff Young
203ddb7b47 Code brevity.
(cherry picked from commit f951497a4fdf47e7c839f71df7a1b06660540ec9)
2025-03-01 22:23:30 +00:00
Jeff Young
0ec82b65be Formatting; code brevity.
(cherry picked from commit 481e46796809cdef9db5388cc765d4fb3ea4b8ac)
2025-03-01 22:18:35 +00:00
Jeff Young
09c63ea1ec Consistent spacing.
(cherry picked from commit ef75f63f101eaef57ff9db6c8fd43cc664449797)
2025-03-01 22:18:31 +00:00
Seth Hillbrand
3f984704be Prevent fetch without repo
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20152

(cherry picked from commit 18ac99d838136735b69e12ad21b1f1333a4eafe3)
2025-02-28 08:35:58 -08:00
Seth Hillbrand
c7afa8ce87 Fix windows build
(cherry picked from commit 9211136953289f09c0caf98fb59780d473036ae8)
2025-02-26 18:15:44 -08: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 5027a562e4d2845fa0b0c3d7d78b3925a406965a)
2025-02-26 16:17:49 -08:00
Seth Hillbrand
8d1f1fd4f5 Fix git flicker on Windows
(cherry picked from commit aa1baec06230ba066c3a548dd6dcdb6c25ac6c5c)
2025-02-26 16:17:43 -08:00
Jon Evans
377476df1d Fix export SVG mode logic
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20089


(cherry picked from commit 52e86303c0b324469f6b7b5fcd5f4336069f2095)

Co-authored-by: Jon Evans <jon@craftyjon.com>
2025-02-26 22:31:44 +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 2c54ab277b0081f2fa41ac2925c5d37106c8f611)
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 3525731a4eebc47a82bd96499687f8dd7eacf8eb)

Co-authored-by: Jon Evans <jon@craftyjon.com>
2025-02-23 23:07:30 +00:00
Connor Goss
870807fbad Add IPC-D-356 Export to kicad-cli
ADDED: Added IPC-D-356 exporting to kicad-cli.

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

(cherry picked from commit 5a5759c41adc401095d65418dda877076bff7849)
2025-02-22 13:01:22 -08:00
Jon Evans
8a3086652a Added enum COL_ORDER for jobset panel's columns
(cherry picked from commit ee614161d71c68174055086ff072e2b22783f0c0)

Co-authored-by: Dmitry Rezvanov <dmitry.rezvanov@yandex.ru>
2025-02-22 14:07:51 +00:00
Jon Evans
2103f303b7 Fixed description column number in PANEL_JOBSET::OnGridCellChange.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20030


(cherry picked from commit 0c2a5b72ec111ea201cd68189c5f5bc2d58e5e52)

Co-authored-by: Dmitry Rezvanov <dmitry.rezvanov@yandex.ru>
2025-02-22 14:07:42 +00:00
Jeff Young
a60f0b3782 MOVED subtract-mask-from-silk to general section.
(Was Gerber-specific.)

(cherry picked from commit 80e7698131bd0bb4f21a02d66bec3e60292c1daa)
2025-02-20 13:37:25 +00:00
Jeff Young
7cc2b47d2e REMOVED force-plot-invisible-items.
It's dangerous as the router and DRC will have been
run without regard to invisible items.

(See #19420.)

(cherry picked from commit 4fa02690f820a4ca3517dfe5344b4da48a078f0e)
2025-02-20 13:37:22 +00:00
Jeff Young
93fdd52d14 IPC-2581 has a hyphen in it.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19770

(cherry picked from commit 40daacbeebe18b6b0c22612cd9a6961666700ff9)
2025-02-20 13:14:17 +00:00