7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-18 00:29:10 +00:00
Commit Graph

83 Commits

Author SHA1 Message Date
Jon Evans
3bebf24015 Add another SWIG wrapper for BOX2I
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19485
2025-01-04 08:42:01 -05:00
Seth Hillbrand
0b2d4d4879 Revise Copyright statement to align with TLF
Recommendation is to avoid using the year nomenclature as this
information is already encoded in the git repo.  Avoids needing to
repeatly update.

Also updates AUTHORS.txt from current repo with contributor names
2025-01-01 14:12:04 -08:00
Seth Hillbrand
67c72cbb7a Add SWIG mirroring defs 2024-12-23 08:56:58 -08:00
Jon Evans
cbbcb5ae32 SWIG: Add Python-native add/sub for VECTOR2
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19308
2024-12-17 23:26:21 -05:00
Mike Williams
480dd6f26b swig: ignore std::optional overloads for netclasses 2024-11-07 09:32:45 -05:00
Mark Hämmerling
55d6a51b6f SWIG: Add typemaps for std::optional<int> and std::optional<double> 2024-11-03 13:46:12 +00:00
i404788
330150a6a6 Add ERROR_LOC to exports 2024-09-29 12:14:03 +00:00
qu1ck
ff15506d53 Fix LSEQ exports in swig
Need to keep it correctly inherited from BASE_SEQ to
be able to iterate over it and have index access
2024-08-03 16:13:59 +00:00
Alex Shvartzkop
045f65608a Add VECTOR2L to Swig. 2024-04-23 23:37:45 +03:00
Jon Evans
7aad7fcce6 Expose CORNER_STRATEGY to swig 2024-01-17 17:08:14 -05:00
Marek Roszko
aa0d39dfe4 Fix the moving truck leaving behind IO_ERROR and friends 2023-10-02 18:16:17 -04:00
Marek Roszko
4746bde4b3 gal as a shared lib, gaasl! 2023-09-26 22:31:31 -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
1a6d459fb1 Fix wrong path slash 2023-09-07 22:09:26 -04:00
Marek Roszko
5da88d1d0e Move UTF8 to core 2023-09-07 20:55:16 -04:00
Alex Shvartzkop
1b8abdfde7 ADDED: Basic STEP manipulation utils available to Python. 2023-09-07 10:57:02 +03:00
qu1ck
88062c5fc3 Add vector3 to swig
Fixes regression in 7.0 making fp 3d model offsets not accessible in
python

Fixes https://gitlab.com/kicad/code/kicad/-/issues/14179
2023-03-05 15:59:22 -08:00
Jon Evans
6948a0bebd Expose new netclass storage to SWIG
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13337
2023-02-11 09:50:24 -05:00
qu1ck
84ad38fd5d Add VECTOR2I_EXTENDED_TYPE template spec to swig
Allows access to Dot(), Cross() and other vector2i methods in python

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/9967
2022-12-31 18:52:07 +00:00
Jon Evans
995a153f27 Update nlohmann::json to 3.11.2
Also update json_schema_validator to match new deprecations
2022-11-05 10:53:57 -04:00
jean-pierre charras
efdb67aa64 Minor fixes. 2022-10-01 18:42:02 +02:00
jean-pierre charras
7d20418d6f Fix compil issues and warnings, especially in ibis code. 2022-09-28 09:55:00 +02:00
jean-pierre charras
97963a2bba Better after base_units.cpp changes in python stuff.
Move an include to kicad.i
2022-09-17 11:21:48 +02:00
Marek Roszko
3d5913c825 Remove convert_to_biu.h, merge contents to base_units.h 2022-09-16 21:09:28 -04:00
Jeff Young
9188838e50 RIP EDA_RECT. 2022-08-31 23:57:24 +01:00
jean-pierre charras
3857e68452 Python, swig: add definition of BOX2I 2022-08-31 17:18:46 +02:00
jean-pierre charras
a5283d91eb shape.i: disable a SWIG warning (warn 509) creating noise for this file. 2022-08-21 08:29:19 +02:00
jean-pierre charras
e37bb2e0c3 swig: disable a few warnings generated by pcb_shape.i, math.i and version.i 2022-03-09 17:29:29 +01:00
qu1ck
a041492736 SWIG mappings for all shapes 2022-02-16 20:58:52 +00:00
jean-pierre charras
1c8ba6dafc fix python QA tests to run with latest changes in eda_angle.h 2022-01-18 13:49:50 +01:00
qu1ck
356cddd474 Template for vector<VECTOR2I> in swig 2022-01-02 21:33:58 +00:00
Jeff Young
f221220fe2 Rename layer ids file.
It hasn't had anything to do with colors or visibility for some time
now.
2021-07-29 16:03:25 +01:00
Seth Hillbrand
3ca9e2d2b6 Add missing wxString* conversion
Python needs to know how to optionally convert to a wxString* for SWIG
to build out the interface.
2021-06-01 20:18:24 +00:00
Marek Roszko
6b18803221 Fix another typedef conflict 2021-06-01 20:18:24 +00:00
Seth Hillbrand
88e4b7f7c4 Update Python Helpers 2021-06-01 20:18:24 +00:00
Seth Hillbrand
81d58bcea9 Working python window 2021-06-01 20:18:24 +00:00
Jonathan Haas
55679be2e3 Fix some typos across the codebase 2021-04-05 16:15:25 +02:00
Marek Roszko
e928b2d8fd Split EDA_UNITS out from common. 2020-10-25 00:02:52 -04:00
Marek Roszko
68484e9b38 Nix some global richio.h 2020-10-24 08:44:03 -04:00
Marek Roszko
64484f5fc4 Split KIID out of common.h 2020-10-24 00:17:08 -04:00
Marek Roszko
4d5796fb9a Extract swig binding macros to their own header 2020-10-24 00:17:07 -04:00
jean-pierre charras
b907f79485 python wrap: fix undefined FILLED/SKETCH constants in pcbnew.py
Fixes 
https://gitlab.com/kicad/code/kicad/issues/6070
2020-10-21 13:23:06 +02:00
Seth Hillbrand
f8a4edb1c9 First pass renaming module to footprint
This is mostly in comments and the few remainin text strings that
reference module
2020-10-20 20:49:11 -07:00
Marek Roszko
b2e9f6987d Split base_struct into eda_item and eda_rect 2020-10-13 21:24:50 -04:00
Tomasz Wlostowski
5f6d171626 pcbnew: fix Python bindings compile error 2020-09-08 01:53:19 +02:00
qu1ck
1bb6d4e22c Fix pads python api compatibility
* Add GetCustomShapeAsPolygon() to swig wrapper
* Make shared_ptr<SHAPE_POLY_SET> usable for GetEffectivePolygon()

Fixes 
2020-08-10 03:22:24 +00:00
Jon Evans
c0aa6965de Migrate PcbNew project settings to new framework
Various architecture upgrades to support this.
Creating a BOARD now requires a valid PROJECT, which caused
some (mostly transparent) changes to the Python API internals.

ADDED: Project local settings file
CHANGED: Board design settings are no longer stored in PCB file
CHANGED: Net classes are no longer stored in PCB file
CHANGED: Importing board settings now reads boards, not just projects

Fixes https://gitlab.com/kicad/code/kicad/-/issues/2578
Fixes https://gitlab.com/kicad/code/kicad/-/issues/4070
2020-07-02 22:08:54 -04:00
Jon Evans
e59a3d981e Implement a new settings framework across all of KiCad
CHANGED: Settings are now stored in versioned sub-directories
ADDED: First-run dialog for migrating settings from a previous version
CHANGED: Settings are now stored as JSON files instead of wxConfig-style INI files
CHANGED: Color settings are now all stored in a separate settings file
CHANGED: The symbol editor and footprint editor now have their own settings files
CHANGED: Color settings are no longer exposed through BOARD object
CHANGED: Page layout editor now uses Eeschema's color scheme

Settings are now managed through a central SETTINGS_MANAGER held by PGM_BASE.
Existing settings will be migrated from the wxConfig format on first run of each application.
Per-application settings are now stored in one class for each application.
2020-02-19 23:44:56 -05:00
Jon Evans
8fb72d8290 ADDED: Expose GetBuildVersion and GetBuildDate to Python 2020-02-05 13:28:44 +01:00