Marek Roszko
9a890cdba9
Kick the wildcards and file exts into a static class, export it from kicommon
2 years ago
Ian McInerney
85f62c1fde
Rename all schematic IO plugins
2 years ago
Ian McInerney
d8b47d18d3
Initial rename of file plugin infrastructure components to IO
2 years ago
Mike Williams
42e0f7c94e
kicad-cli: wxS fix and doc string change
2 years ago
Mike Williams
eb5e327086
kicad-cli: support * wildcard in BOM export
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/16086
2 years ago
Mike Williams
5734a55515
kicad-cli: correctly label non-existent fields
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/16085
2 years ago
Seth Hillbrand
6633eadfc8
Enclose wxCHECK* macros in braces
The macros are if/else statements without enclosing structures which
leads to unexpected evaluation when expanding in an existing conditional
that does not have braces already.
2 years ago
Wayne Stambaugh
30ba1b8007
Coverity warning fix.
This fixes all of the warnings cause by using std::weak_ptr objects when
recursing the symbol inheritance tree to retrieve the root symbol. The
issue is that the weak pointers are not guaranteed to be valid for each
recursion because the lock will go out of scope. Using a std::shared_ptr
object will ensure the lock is valid until it goes out of scope.
2 years ago
Jeff Young
3e4d5d776d
Add --exclude-pdf-property-popups to schematic plotting CLI.
2 years ago
Wayne Stambaugh
b5eee9dd7e
Coverity warning fixes.
2 years ago
Wayne Stambaugh
5d6ef69726
Coding policy and Doxygen comment fixes.
2 years ago
jean-pierre charras
a60411b159
Fix a few compil and Coverity minor warnings.
2 years ago
Marek Roszko
5759823ca0
Move JOB_EXPORT_SCH_PLOT to kicommon horribly pending further refactor of plotting
2 years ago
Matthias Breithaupt
be9e4c79ee
CLI: Sanitize filename when exporting symbol as svg
When using symbol names as filenames, invalid characters and
characters that might be mis-interpreted (e.g. '/') have to be
removed from the name to prevent unexpected behavior.
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/15751
2 years ago
Mike Williams
9541e45502
BOM Exporter: allow using presets from the command line
2 years ago
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.
2 years ago
jean-pierre charras
cbcaaa001c
fix some Coverity and compil warnings.
2 years ago
Marek Roszko
f357e79f77
Add --define-var / -D to the cli opts for some commands
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15437
2 years ago
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
2 years ago
Wayne Stambaugh
e4feb8826b
Coverity issue fixes.
2 years ago
Wayne Stambaugh
1026596964
Allow symbols to be derived from other derived symbols.
[CHANGED] Symbols can now be derived from other derived symbols removing
the requirement to derive from root symbols.
2 years ago
Marek Roszko
5d001d4858
ADDED: ERC over cli....mostly
2 years ago
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.
2 years ago
Mike Williams
7d9f791518
kicad-cli: sch bom export: fix inability to disable grouping
Just set --group-by default to "" (No default grouping), and drop the
additional --group option. Also fix the exclude DNP option.
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/15246
2 years ago
Mike Williams
265720ec65
BOM Export: add DNP to Group By * defaults
Closer to the BOM export scripts we are trying to replace, and gives the
user a clue that fields with variables names are way to export other
data.
2 years ago
Mike Williams
7cb8d3d1c9
Schematic fields: implement fields with variables as names
Special case that always fills in the value with the value of the
variable
2 years ago
Roberto Fernandez Bautista
3d1b96d6ca
Cleanup jobs handlers (+Fix build)
2 years ago
Roberto Fernandez Bautista
3f758711fd
Use external REPORTER for EESCHEMA_JOBS_HANDLER / PCB_JOBS_HANDLER
3 years ago
Marek Roszko
c2d56eefb9
Fix blank symbol svg export file names
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14857
2 years ago
Jeff Young
e7d4b4aefc
Simplify previous fix to not include new strings.
3 years ago
jean-pierre charras
1d5158dbaf
Try to fix a compil issue.
3 years ago
jean-pierre charras
7b36e5f755
Do not mark empty strings for translation: empty strings are not allowed.
3 years ago
Jeff Young
8cd1f8d905
Support for De Morgan variants in symbol plotting CLI.
3 years ago
Jeff Young
4e420f3cf6
Formatting.
3 years ago
Mike Williams
c5cc313da9
Symbol Fields Table: BOM presets saved in JSON settings
3 years ago
Mike Williams
753ae21fd4
BOM Generator: wire up to kicad-cli
3 years ago
Salvador E. Tropea
7e3f1b1a00
Adds the missing plot formats to `kicad-cli sch export`
3 years ago
jean-pierre charras
31be74b8b3
Fix a few Coverity warnings
3 years ago
Marek Roszko
aacc9746e3
Yeet the last of wxSize/wxPoint to stop leaking gdicmn everywhere
3 years ago
Marek Roszko
f28339ded8
Hookup the skip drawingsheet arg
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13703
3 years ago
Marek Roszko
fb57eac5f9
Add \n to report for cli
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13704
3 years ago
Marek Roszko
a9cb8e9a8d
Fix worksheets not loading in cli
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13489
3 years ago
Marek Roszko
4b0b9a36bf
Load custom drawing sheets in the cli export
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13489
3 years ago
Marek Roszko
9f71e9af03
Add arg to plot hidden symbol pins in cli
3 years ago
Marek Roszko
c514f6f094
Handle alias symbols in cli svg export
3 years ago
Marek Roszko
c57e6db79a
Turn off plotting hidden fields in the svg export cli
3 years ago
Marek Roszko
e056c96c10
Feed the sym svg export absolute paths for source lib
3 years ago
Marek Roszko
6eedbe4a14
Allow taking hidden fields into account for symbol unit bounding box
Even the GUI export of svg wasn't taking fields into account which rendered the fields regardless of status
3 years ago
Marek Roszko
f1f5fff072
Add cli export of symbols from kicad libraries
3 years ago
jean-pierre charras
0098dfa6dc
Ensure exported spice netlist contains all spice directives found in schematic
3 years ago