80 Commits

Author SHA1 Message Date
Seth Hillbrand
e346139301 Add more parent safety checks
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21317
2025-08-23 14:14:05 -07:00
David Rees
fce444a227
calc/galvanic: Improved list of electrochemical materials and added dynamic text contrast
- Added additional materials to the galvanic table
- Improved with ITU-R BT.709 dynamic text contrast calculation for better readability
- Improved inline comments and electrochemical annotations
2025-06-04 20:50:26 +10:00
JamesJCode
aac9731852 Refactor PCB calcs to common library, and add coupled stripline
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16863
2025-04-25 23:27:52 +01:00
JamesJCode
2483ab4d7a Add calculation of unit propagation delay to PCB calculator 2025-04-20 13:04:04 +01:00
Fabien Corona
81428e14a6 iec60664-1 : preferred values 2025-03-01 08:27:42 +01:00
Ian McInerney
ce5f3f642e Use existing string for ohm-meter units 2025-01-02 23:51:38 +00:00
Andrea Greco
49b949cec7 Transmission Line: Add measure unit to Rho constant
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19312
2025-01-02 22:44:15 +00: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
527e2e8027 Unify Trace/Track usage
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19329
2024-12-19 15:55:26 -08:00
Jan Wichmann
09389a437f Correct error in the tolerance calculation for 3 terminal type voltage regulators
Use Iadj max value for calculating max error
2024-10-18 19:34:47 +00:00
Fabien Corona
4c57d748ab calculator: avoid copy of cable names 2024-10-17 12:45:24 +02:00
Ian McInerney
c7d280dfa1 Always use black text in PCB calculator E-series table
The white text in dark mode is too washed out on the cell colors to be
visible. Since we already purposely subdue the colors in dark mode, the
easiest fix is to just always use black text.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17033
2024-04-01 22:00:10 +01:00
Jan Wichmann
66d8f5cae4 pcb_calculator: Feature Calculation of voltage regulator with tolerances 2024-03-20 12:59:36 +00:00
Wayne Stambaugh
92c2ddf77a Do not parent dialogs to non top level windows in panels or widgets. 2024-02-03 10:40:28 -05:00
Wayne Stambaugh
2b1bf369f2 Do not parent file or directory dialogs to panels.
Parenting dialogs to child windows of top level windows is most likely
not defined behavior.  It's also likely that this behavior varies across
platforms so it' best not to risk doing it.  wxWidgets does not check if
the dialog parent is actually a top level window.  There may be other
places we are doing this with our message dialogs so we should do an
audit.
2024-02-02 09:20:36 -05:00
Ian McInerney
6c9e716573 More spelling and grammar fixes 2024-01-10 16:42:47 +00:00
Ian McInerney
e7746d3bc8 Fix spelling mistakes 2024-01-10 16:17:07 +00:00
Jeff Young
3fd81fe7c0 Only generate event on setting current value.
(And do it last.)
2024-01-04 14:35:08 +00:00
Jeff Young
559bef0ea6 Switch default thicknesses to um.
Also fix a bug where resetting the values doesn't work if
the thickness units were changed because it tries to keep
the old width values which are then re-scaled to the reset
thickness units.  Probably better to just reset the widths
too, as it's potentially less confusing.
2024-01-04 14:35:08 +00:00
Wayne Stambaugh
8687d5092f String and dialog layout fixes. 2023-12-13 11:49:34 -05: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
jean-pierre charras
79fb832b9e pcb_calculator, PANEL_GALVANIC_CORROSION: store selection in config.
Other minor cosmetic enhancement.
2023-10-21 20:42:35 +02:00
Bartek Wacławik
ac9a863496 Implement new resistor substitution algorithm
Significantly improves performance of the tool.  Also corrects an mistake in the formula for computing relative errors
2023-09-22 21:43:09 +00:00
Alex Shvartzkop
1decd31baf Vertically center wxGrid cells by default. 2023-09-18 17:15:34 +03: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
aris-kimi
ce58208d77 Add missing licence lines in iec60664 and naming update 2023-07-23 14:12:03 +00:00
Steve Bollinger
a318c57d77 Move E-series resistor selector table out of resistor value
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14627
2023-06-26 23:21:40 +00:00
jean-pierre charras
f3eac6a12f pcb_calculator, transmission lines: some fixes:
- ensure settings are correctly saved after change in dialog
- make reinit to defaults working
- cosmetic enhancement
2023-06-14 11:59:43 +02:00
Alex Shvartzkop
730cf80960 Fix paddings in PCB calculator UI on GTK.
Also fixes instances of wxEXPAND | wxALIGN_CENTER_*
2023-06-14 10:37:03 +03:00
Jeff Young
86210541fc Clean up clearance page of calculator. 2023-06-10 11:15:03 +01:00
jean-pierre charras
8a1220128b pcb_calculator: fix a message and Coverity warnings 2023-06-08 09:51:59 +02:00
jean-pierre charras
072bfe4bc6 pcb_calculator, panel iec60664: remove incorrect/useless tooltips. 2023-06-07 18:49:58 +02:00
jean-pierre charras
00317cf67a pcb_calculator, panel iec60664: better look, better code and fix typos. 2023-06-07 18:21:09 +02:00
jean-pierre charras
47c0c7b3b7 pcb_calculator: add iec60664 electrical spacing panel.
From patches from by Fabien Corona and Aris_kimi
2023-06-07 12:01:30 +02:00
Alex
d945b76c65 Center calculator grid cells, sync font styles with fbp.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14743
2023-06-05 15:14:10 +03:00
jean-pierre charras
ed6a56cb57 pcb_calculator, panel_cable_size.*: enhancement: allow setting current density.
Fixes #14802
https://gitlab.com/kicad/code/kicad/-/issues/14802
2023-05-24 13:17:25 +02:00
jean-pierre charras
ef89495420 pcb_calculator, panel_cable_size.*: code cleanup. No actual change. 2023-05-24 10:25:52 +02:00
jean-pierre charras
edb9a19a65 pcb_calculator: add missing code to save Regulator Panel settings. 2023-04-24 09:11:03 +02:00
aris-kimi
0f5ee38ee2 Corrosion table update 2023-03-02 22:25:48 +00:00
Jeff Young
f5f98f0174 Simplify code. 2023-01-28 10:42:24 +00:00
aris-kimi
d3e513a366 Add complementary color for the alternative polarity in Corrosion table 2023-01-23 11:36:06 +00:00
Jeff Young
3af9c658e6 Don't specify fonts in wxFormBuilder. It only leads to pain.
Fixes https://gitlab.com/kicad/code/kicad/issues/13547
2023-01-18 12:28:07 +00:00
Jeff Young
5e0064c21e More layout optimizations for PCB Calculator. 2022-12-29 18:09:40 +00:00
Jeff Young
6fc662c254 More class : filename consistency. 2022-12-29 18:05:57 +00:00
Jeff Young
5ce75eeb3a Fix more collapsing text controls on Mac. 2022-12-29 18:05:57 +00:00
Jeff Young
c0e0cbceb0 Move eseries helper class to common.
Also improves some terminology for english-speakers.

Also substitues [] vector access (which creates empty elements) over
at() (which throws if the item is not found).
2022-12-29 18:05:57 +00:00
jean-pierre charras
1d87ed6454 pcb_calculator, PANEL_ATTENUATORS: minor fix: disable R3 settings when not in use. 2022-10-17 07:32:30 +02:00
jean-pierre charras
6f7730a34f pcb_calculator, panel_corrosion.cpp: fix typos and clean code.
Make material names translatable.
2022-10-03 20:17:32 +02:00
aris-kimi
788ecd91cd Corrosion table update 2022-10-03 18:03:03 +00:00
aris-kimi
71c1bc4c1d Some minor fixes 2022-09-27 21:21:04 +00:00