45476 Commits

Author SHA1 Message Date
John Beard
520a7cf62c GAL: ViewGetLOD should not be able to change the VIEW
Make the VIEW* parameter const. Since PCB_TEXT does a null-check,
it's not very clear if this can ever be null (and if it is,
why don't the other VIEW_ITEMs check?), so don't make them
all references too at this time.

Also dereference a few pointers a bit earlier to make non-null
promises sooner rather than later.
2025-01-02 22:59:31 +08:00
John Beard
527faddbfd GAL: provide constants for LoD HIDE/SHOW and a scale helper
Saves a mishmash of local HIDE/SHOW defs along with various literals.

Also provide a function that computes the scale at which a given
IU size becomes (notionally) a certain size on screen. While this
is a simple division, it's a bit opaque in terms of meaning.

Also it means the divide by zero case can be more universally
defended-against, which has traditionally been a bug opportunity.
2025-01-02 22:59:31 +08:00
Ian McInerney
5705e928e1 Move dialog launch function into tool class
This makes it easier to find.
2025-01-02 14:51:30 +00:00
Ian McInerney
a2e115833c Cleanup UI for global edit tracks and pad dialog
* Don't hide the annular rings control - makes confusing UI
* Always show annular rings control - all boards must have >2 layers
  anyway
* Move into single column of choice boxes to be cleaner and take less
  monitor space

https://gitlab.com/kicad/code/kicad/-/issues/19457
2025-01-02 14:51:30 +00:00
Jeff Young
ba522e782d Remove AUTOPLACE_AUTOADDED.
Make autoplace in the symbol preview based on the global eeschema
flag instead.  (If they have it off, then they had better specify
field positions in the database library.)

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19247
2025-01-02 14:33:30 +00:00
Jeff Young
9ed3c8eb82 Naming consistency for jobs. 2025-01-02 13:20:31 +00:00
Marek Roszko
6aa25093da Add missing files from last commit 2025-01-02 06:48:28 -05:00
Jeff Young
76d4ef3971 Implement AutoplaceFields() for LIB_SYMBOL.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19247
2025-01-02 11:03:45 +00:00
Marek Roszko
1a0427a375 Add initial but not yet working correctly copy files job 2025-01-01 23:57:46 -05:00
Marek Roszko
aed82196f7 Set a default special execute output name if enabled 2025-01-01 23:57:46 -05:00
Seth Hillbrand
9a10d2ff54 Silence SWIG warnings
Expressly state which operator will work in Python (which doesn't really
know integers anyway)
2025-01-01 19:47:13 -08:00
Jon Evans
3364bd0a8b Plotter: Don't restrict via width query to copper layers
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19458
2025-01-01 18:11:27 -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
d8733b2d4f Happy New Year
For this year's resolution, we will streamline our copyright statements.
These are applied to files in the repository and are not needed
separately as part of the compiled about box
2025-01-01 14:12:04 -08:00
John Beard
ea12689e29 Pcbnew: also show clearance outlines in FP editor
Not having these shown makes it easy to accidentally
enable them without noticing.
2025-01-02 05:46:48 +08:00
Jon Evans
06e0e16336 API: Fix GetPadShapeAsPolygon to not re-use a SHAPE_POLY_SET
TransformShapeToPolygon appends instead of assigning
2025-01-01 16:34:30 -05:00
Jon Evans
b971ab22e2 Add new SWIG declaration for vector of PCB_FIELD* 2025-01-01 15:37:39 -05:00
Jeff Young
571648937f Probably don't need the no. column wide enough for 999 jobs. 2025-01-01 20:34:30 +00:00
Marek Roszko
5864d705c3 Partially fix running special execute
It was a early implementation that got forgotten about hah
2025-01-01 15:10:35 -05:00
Jeff Young
a3c29a1343 Allow resizing of Output Properties dialog.
Also fixes a bug where the GenDrill dialog returned a fixed
result.
2025-01-01 20:10:07 +00:00
Marek Roszko
7881fa68e9 Change output and special execute dialog to OK.
Fix special execute not adding to list
2025-01-01 14:52:53 -05:00
JamesJCode
96082a63a8 Add a new GAL layer for shape backgrounds
Fixes https://gitlab.com/kicad/code/kicad/-/issues/12393
2025-01-01 19:46:33 +00:00
Marek Roszko
65a2d95282 Gate against 0 width and height to the render job
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19443
2025-01-01 14:42:03 -05:00
Jeff Young
c5ae32c51c Auto-edit job properties and then description after creation. 2025-01-01 19:17:11 +00:00
Jeff Young
530a66a489 More job-specific option dialog titles. 2025-01-01 19:17:07 +00:00
Marek Roszko
2bc3d39934 Add a default output name for the render job if none is provided
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19448
2025-01-01 14:12:26 -05:00
Marek Roszko
72acbe1de4 Add missing options dialog title
https://gitlab.com/kicad/code/kicad/-/issues/19452
2025-01-01 14:04:33 -05:00
Marek Roszko
ea4aa6e277 ADd plot-invisible-text arg for cli plots
Part of https://gitlab.com/kicad/code/kicad/-/issues/13957
2025-01-01 13:53:47 -05:00
Marek Roszko
fb32eeb0ea Fix job output path for sch plots and netlist 2025-01-01 12:21:26 -05:00
John Beard
e9f8b2ba77 Pcbnew: apply same IPC rule in properties panel as in dialog
This means when you switch a pad to be roundable (round rect or
chamfered-with-round), you get the same behaviour as in the dialog
(and an IPC-compliant pad by default).

Also fixes the radius visibility in the properties panel for
chamfered pads (which can have radii).
2025-01-02 00:42:31 +08:00
John Beard
1f551ea0e4 Pcbnew: allow to set pad rounding size from properties panel
This can be useful when you have a defined rounding maximum
(e.g. for an IPC 0.25/0.25 rule) and makes the panel more
consistent with the properties dialog.
2025-01-02 00:42:31 +08:00
John Beard
84c7a1e82d Fix Python search on Linux 2025-01-02 00:42:31 +08:00
Jeff Young
d7eed69831 Job-specific option dialog titles. 2025-01-01 16:33:57 +00:00
Jeff Young
742dd0fc3a Fix selection after delete. 2025-01-01 16:33:57 +00:00
Jeff Young
97fb553c5f Moves output panel to flex-grid layout in an attempt to
fix platform differences in layout.
2025-01-01 16:33:57 +00:00
Jeff Young
f4ec6d2eaa Fix layout issues when plot dialog opened from job.
Also removes Open Directory button as in a job the filepath
will be relative to whichever Output it is placed in.

Also removes the Run DRC button when called from a job.
2025-01-01 16:33:57 +00:00
Jon Evans
34dad3aa79 Implement searching for Python on Windows 2025-01-01 11:32:41 -05:00
JamesJCode
3e1fd974dc Reorganise jobset menu entries
They were mixed in with the project open / close / new menu items
2025-01-01 16:10:12 +00:00
Jon Evans
feca4176c0 Prefer some built-in paths for Python interpreter 2025-01-01 11:08:27 -05:00
Jon Evans
9086c5694b Fix layout issue in plugin settings page 2025-01-01 10:54:59 -05:00
jean-pierre charras
11f94283ef STEP exporter: export solder mask on tracks having a solder mask option.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18881
2025-01-01 15:14:23 +01:00
jean-pierre charras
bbea339279 PANEL_SETUP_MASK_AND_PASTE_BASE: fix swapped widgets
Global textboxes solder paste clearance were swapped versus labels

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19442
2025-01-01 10:18:48 +01:00
Alex Shvartzkop
4d42d6b4fe Remove some hacks from template selector to fix sizing on Windows.
Related: https://gitlab.com/kicad/code/kicad/-/issues/19436
2025-01-01 12:28:24 +05:00
Marek Roszko
6c43c25b4c Move two things to kicommon 2025-01-01 00:14:34 -05:00
Marek Roszko
ae1dd1ed20 Fix dxf/svg job status 2024-12-31 23:14:58 -05:00
Marek Roszko
8f750baa79 Deprecate and support using the more normal "plot" logic for dxf and svg. 2024-12-31 23:10:24 -05:00
Marek Roszko
cad0e3fc27 Lets move the chunk of plot logic from dialog_plot and share it with the jobs handler
More factoring in V10. This is just because it's getting annoying really lol
2024-12-31 21:15:05 -05:00
Jon Evans
d8b8d8aa3c API: Add GetNetClassForNets; handle implicit netclasses 2024-12-31 17:51:19 -05:00
Wayne Stambaugh
151b1141f7 Increase minimum HTML panel height of the template selection dialog.
wxFormbuilder is not DPI aware so the previous height was a bit short on
high DPI displays.  The new height is a compromise which will be a bit tall
on standard DPI displays and a bit short on high DPI displays.
2024-12-31 17:27:26 -05:00
Jeff Young
fe06e13091 Don't distort shapes when aligning to grid.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18739
2024-12-31 22:23:00 +00:00