Commit Graph

1338 Commits

Author SHA1 Message Date
Alex Shvartzkop 7e2705e444 Revert "CLI: set default Gerber drill format to 4.5 mm."
This reverts commit a06d93a383.
2023-12-05 15:33:55 +03:00
Alex Shvartzkop ec06d5e475 Revert "CLI: set default Gerber precision to 4.5 mm."
This reverts commit 754a6dcd0a.
2023-12-05 15:33:55 +03:00
Alex Shvartzkop 0afc516107 CLI: fix strings in 3D export. 2023-12-05 13:56:01 +03:00
Alex Shvartzkop a06d93a383 CLI: set default Gerber drill format to 4.5 mm.
For compatibility with fabs.
2023-12-04 22:29:02 +03:00
Alex Shvartzkop 34b30d2586 "kicad-cli pcb export drill": hook up --gerber-precision.
7.0 commit: 5140fd7819
2023-12-04 22:10:03 +03:00
Alex Shvartzkop 754a6dcd0a CLI: set default Gerber precision to 4.5 mm.
Many fabs still don't work correctly with 4.6 mm precision Gerbers.
2023-12-04 09:52:31 +03:00
Seth Hillbrand 4bc055d5d0 Don't keep showing the same error message
When updating on a timer, if there is an error, just show it once and be
done
2023-12-01 09:27:26 -08:00
Marek Roszko d1ecf3790c Add generator version 2023-11-29 16:17:41 +00:00
Graham Keeth 1c881bcbb8 cli: fix some extra sch plot args
- DXF doesn't support background color
- HPGL doesn't support background color
- HPGL doesn't support color themes
- HPGL doesn't support black-and-white
2023-11-23 14:23:33 +00:00
Graham Keeth fa580601f2 cli: remove double-added args
--drawing-sheet and --define-var were already added in the parent class
2023-11-21 12:06:12 +00:00
Graham Keeth ab79977d9b cli: --exclude-pdf-property-popups is only for pdf 2023-11-21 12:06:12 +00:00
Wayne Stambaugh a309e24132 Don't copy hidden files and folders when creating project from template.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16093
2023-11-19 10:48:29 -05:00
Alex Shvartzkop 8dfad68d69 ADDED: option to optimize exported STEP files (disable pcurves) 2023-11-19 15:23:17 +03:00
Jon Evans fc40b48186 Don't free state images too early
SetImageList relies on the state images still being valid

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16022
2023-11-17 13:11:27 -05:00
Mike Williams 42e0f7c94e kicad-cli: wxS fix and doc string change 2023-11-15 12:21:30 -05:00
Mike Williams eb5e327086 kicad-cli: support * wildcard in BOM export
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/16086
2023-11-15 10:44:17 -05:00
Mike Williams 5734a55515 kicad-cli: correctly label non-existent fields
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/16085
2023-11-15 10:44:17 -05:00
Ian McInerney e72f563033 Fix capitalization of program name in PCM 2023-11-12 20:45:19 +00:00
Ian McInerney b2cc4b8310 Warn when installing PCM local package that is incompatible
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14243
2023-11-12 20:42:45 +00:00
Alex Shvartzkop c95ed281b8 Update STEP export strings/comments. 2023-11-09 20:06:21 +03:00
Ian McInerney dd933b7d0e Update CERN copyrights 2023-11-08 21:34:14 +00:00
jean-pierre charras 1bbe532021 Kicad Manager, project tree: use net file icon for spice netlist (.cir) files
Fixes #15777
https://gitlab.com/kicad/code/kicad/-/issues/15777
2023-11-06 18:53:10 +01:00
Alex Shvartzkop 847ab093c8 ADDED: Project chooser dialog for EasyEDA Pro import. 2023-10-30 09:35:27 +03:00
jean-pierre charras 06581c964b PROJECT_TREE_ITEM::Rename() make test for extension case insensitive.
File types are not case sensitive.
2023-10-29 20:04:45 +01:00
jean-pierre charras e334f11f12 kicad manager: fix broken Rename file command. 2023-10-29 18:34:28 +01:00
jean-pierre charras 7628879190 kicad manager: disable a printf used for debug. 2023-10-29 07:09:10 +01:00
Jon Evans fea29624cd Update comment 2023-10-28 15:37:19 -04:00
Jeff Young f6dc67dc3b Honour platform standards on MSW for files beginning with '.'.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14221
2023-10-28 18:24:25 +01:00
Ian McInerney 171458a27b Introduce action friendly names
Friendly names can be used to display action information that is clearer
in non-hierarchical contexts (e.g. not in menus).

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8075
2023-10-27 23:58:29 +01:00
Jon Evans a9ccb0f11e Avoid crash if events happen out of order on project manager start 2023-10-27 12:55:35 -04:00
Jon Evans 617a975b32 macOS: switch method to bring child processes to front
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14060
2023-10-24 17:27:33 -04:00
Jeff Young 435e3fab8d Support text variables in STEP export filename.
Also fixes some other file browser titles to match Kicad's overall style.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15927
2023-10-23 18:01:47 +01:00
Jon Evans 47e25d617e ADDED: Icon scaling for toolbars only
Unlike the old "icon scale" (that actually scaled all bitmaps)
this one actually changes the toolbar size while making use
of the new bitmap bundle functionality

Add more resolutions for all tool icon bitmaps

Wouldn't want Mark's eyes to bleed
2023-10-22 14:02:06 -04:00
Jon Evans eb5b3db063 Add bitmap bundle support to BITMAP_SCALE
Change a bunch of buttons and toolbars to use it

Fixes https://gitlab.com/kicad/code/kicad/-/issues/14119
2023-10-22 14:02:06 -04:00
Jeff Young 3e4d5d776d Add --exclude-pdf-property-popups to schematic plotting CLI. 2023-10-22 12:33:55 +01:00
jean-pierre charras f87065bf0b Fix compil issues on msys2 , gcc13 2023-10-21 08:40:08 +02:00
Seth Hillbrand 0142b197f7 Replace last iterator to fix MSW builds 2023-10-21 00:55:57 +02:00
Jon Evans 6c4a294c0a Fix uninitialized pointer in PROJECT_TREE 2023-10-20 12:47:49 -04:00
Seth Hillbrand dd4c2a6001 Fix project iteration for MSW 2023-10-20 18:39:15 +02:00
Seth Hillbrand d99641be40 ADDED: Git integration support
Adds support for project-based git integration, branch support, commit,
revert and updates

Fixes https://gitlab.com/kicad/code/kicad/issues/10441
2023-10-20 12:51:47 +00:00
Marek Roszko bee6e6be01 AddMenuLanguageList should live in EDA_BASE_FRAME, its only user 2023-10-16 19:49:52 -04:00
Marek Roszko 584757f2df Move the menu helpers to ui_common instead of sitting in bitmap for some reason 2023-10-16 19:40:46 -04:00
Jeff Young d5d07e64c9 Use IsShownOnScreen(), not IsShown(), if you really want to know if its visible. 2023-10-14 23:51:37 +01:00
Jon Evans 0b136ae0df CLI: Allow controlling layer order for multilayer plots 2023-10-11 00:18:58 +00:00
Marek Roszko 5759823ca0 Move JOB_EXPORT_SCH_PLOT to kicommon horribly pending further refactor of plotting 2023-10-02 20:48:26 -04:00
Marek Roszko e6c8fb6373 Unbind PANEL_PACKAGES_VIEW events in destructor 2023-10-01 22:03:59 -04:00
Marek Roszko b00871ad77 Unbind events in DIALOG_PCM destructor
Maybe fixes KICAD-KR
2023-10-01 20:20:18 -04:00
Jon Evans 26f2dbf524 CLI: Allow multiple define args 2023-09-28 16:57:41 -04:00
Marek Roszko 121ea99824 Move the settings path to PATHS to allow shifting other classes into kicommon 2023-09-23 20:06:58 -04:00
Mike Williams 9541e45502 BOM Exporter: allow using presets from the command line 2023-09-20 10:57:43 -04:00
Jon Evans d371bb06ae New macOS installation scripts
Replaces BundleUtilities that got broken by recent updates
and is basically unmaintained by cmake.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15376
2023-09-19 17:23:30 -04:00
Graham Keeth 5dc62368b0 CLI: parameterize whether export job inputs are directories or files 2023-09-19 01:47:41 +00:00
Alex Shvartzkop 1decd31baf Vertically center wxGrid cells by default. 2023-09-18 17:15:34 +03:00
Graham Keeth 8149522c34 CLI help string fixups 2023-09-15 23:07:19 +00:00
Marek Roszko 4ac5404822 Move HTML_WINDOW to widgets folder, also fix some fbps that were wrongly not edited
Somebody manually edited at least 3 files fixed here....so the fbps were wrong
2023-09-11 19:10:16 -04:00
Marek Roszko b5d5eb842a Start a kicommon shared lib 2023-09-09 18:04:50 -04:00
Marek Roszko 11de95778b Unwrap the FROM_UTF8 macro in favor of direct function
The extern just gets annoying to try to export the func later. We also yeet TO_UTF8 to string_utils.h for parity.
2023-09-09 00:10:57 -04:00
Marek Roszko ab1a6651a9 send multivector.h and sync_queue.h to core 2023-09-08 07:14:34 -04:00
Marek Roszko 6e04c2835a Remove unused header 2023-09-07 20:46:08 -04:00
Alex Shvartzkop 21ee65aa9c ADDED: Importers for EasyEDA (JLCEDA) Standard / Professional. 2023-09-07 11:02:40 +03:00
Alex Shvartzkop ebbc5fd4cb Remove unused method in kicad_manager_control.h. 2023-09-07 10:57:02 +03:00
Alex Shvartzkop 05a8e59884 Move wxString and std::optional JSON serializers to core header. 2023-09-07 10:57:02 +03:00
Marek Roszko 4d77fd48ef Shove thread_pool to core 2023-09-06 17:50:12 -04:00
jean-pierre charras cbcaaa001c fix some Coverity and compil warnings. 2023-09-05 20:30:08 +02:00
Marek Roszko f6951c3ce0 Hide the splash earlier in kicad 2023-09-04 08:34:14 -04:00
Marek Roszko fb8d52f19e kicad-cli: Remove -O for plot and add --pages to specify list of pages instead
--pages 1 is equivalent to -O

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15402
2023-09-03 09:18:11 -04:00
jean-pierre charras 3a630fc5ab Fix an obscure (but annoying) compil warning perhaps gcc 13 specific. 2023-09-01 20:21:44 +02:00
Marek Roszko aa0df6aaa4 Fill in more descriptions 2023-08-31 22:17:14 -04:00
Marek Roszko ab92d2891e Split the define var message across two lines 2023-08-31 22:09:52 -04:00
Marek Roszko 270c195df9 Sprinkle metavars into cli descriptions 2023-08-31 22:04:25 -04:00
Marek Roszko f357e79f77 Add --define-var / -D to the cli opts for some commands
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15437
2023-08-31 21:46:37 -04:00
Marek Roszko b542539546 Add --drawing-sheet arg for various cli commands for overriding the project sheet
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15438
2023-08-31 19:53:23 -04:00
Marek Roszko f869e3fb87 Fix stray arg input/output in 3d export 2023-08-31 19:04:05 -04:00
Marek Roszko df0c220f2b Some small reorg of the cli class base 2023-08-31 18:56:17 -04:00
Adam Simpkins 9b69d84688 kicad-cli: add option to control oval drill export behavior
Add an argument to "kicad-cli pcb export drill" to control the oval
holes drill mode for the excellon output format.

The Generate Drill Files GUI dialog recommends the newer "route"
behavior by default.  Previously this option was not exposed in
kicad-cli.  This commit does not change the default kicad-cli behavior,
but simply adds an argument to control it.
2023-08-31 13:57:05 -07:00
Marek Roszko d193334a10 Add vrml export to cli
Roughcut as the vrml exporter needs some loving

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15472
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13952
2023-08-24 20:39:21 -04:00
Seth Hillbrand db8e15ce88 Require wxWidgets 3.2
Removes old defines and work arounds for earlier wx versions and adds a
CMake requirement to use at least 3.2 (or the minimum matching wxPython
version)
2023-08-23 22:02:56 +00:00
Mark Roszko 5136ec07cf Add more cli command descriptions 2023-08-22 13:42:16 +00:00
Mark Roszko 3035bbd1d1 Add back some cli descriptions 2023-08-22 13:29:02 +00:00
Marek Roszko 5327b6878b Fix var naming for export 2023-08-21 21:56:51 -04:00
Marek Roszko 5eac1840a0 Drop the 3d command in favor of direct 2023-08-21 21:47:56 -04:00
Seth Hillbrand c6f071c542 Add "templates" and "scripts" as possible PCM dirs
Allows organizations to distribute custom templates and scripts to their users in TLDs
2023-08-21 11:17:02 -07:00
Marek Roszko b52b05ebbb Add zone export to step export
Mileage may vary on performance, decent enough for my board.
Warning, freecad chokes on boards with zones, but commerical tools are fine

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15234
2023-08-20 22:11:45 -04:00
Marek Roszko 50ac5db8d2 Add binary GLTF export option to kicad-cli
Not by any means finished
2023-08-19 16:47:42 -04:00
Marek Roszko 5870b4f373 Mini-refactor step to a generic "3d" cli option (step command still exists for now) 2023-08-19 16:47:41 -04:00
Marek Roszko c20cc24400 Rename export classes to match the scheme 2023-08-19 11:51:50 -04:00
Marek Roszko 32f0f05a98 Rename the export cli files to the cleaner structure 2023-08-19 11:46:18 -04:00
Jeff Young e30b05fcd0 Try not to forget file history and window state on a crash.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15343
2023-08-15 12:13:34 +01:00
Alex Shvartzkop 76e0d5981d Import system refactor for PCB plugins. 2023-08-15 05:26:12 +03:00
Marek Roszko 5d001d4858 ADDED: ERC over cli....mostly 2023-08-13 20:31:19 -04:00
Marek Roszko 14a0fa435c ADDED: DRC JSON report 2023-08-13 14:59:10 -04:00
Marek Roszko 64a7bad56e Use fn_str with std file streams
This uses the MSVC-only wchar_t overload
2023-08-13 14:59:10 -04:00
Marek Roszko 34a13cb0c5 Add more thread safety to background jobs
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15395
2023-08-11 22:37:43 -04:00
Marek Roszko 812143ac69 ADDED: Run PCB DRC via cli 2023-08-10 20:20:40 -04:00
Ian McInerney a3a701a95e Move preferences to an action instead of a wx event 2023-08-08 00:51:22 +01:00
Marek Roszko a0ebedc0ac Add a KICAD_TEST_NOTI env var for a fake notification on launch 2023-08-06 15:51:35 -04:00
jean-pierre charras f18feb2a46 kicad-cli, export plot PDF and SVG: add missing option --drill-shape-opt.
It allows pad/via holes to ber plotted at actual size, small size, or not.
This option exists in GUI, but was missing in kicad-cli.
2023-08-05 18:18:18 +02:00
Marek Roszko 5319316815 Enhance the status bar with background progress and notifications 2023-08-04 22:06:08 -04:00
Seth Hillbrand c38ed7044a ADDED: DNP flag for position file export
Adds ability to exclude footprints with DNP flag from position files in
dialog and cli

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15353
2023-08-04 11:02:54 -07:00
Mike Williams 25e391719e Fields Table: convert special strings like Quantity to named variables
Before, we did not actually prevent users from adding a field also named
Quantity to their symbols. This of course does not play nicely with the
assumptions that Quantity is a special column in the fields editor.

By making it a named variable, the user can safely add it to a symbol
and it will not be editable, and will also work in the fields table
editor as expected.
2023-08-01 10:55:32 -04:00