Commit Graph

42 Commits

Author SHA1 Message Date
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
Fabien Corona c6090a44d6 PCB calculator: add galvanic corrosion chart 2022-09-27 21:21:04 +00:00
jean-pierre charras b6663a1c41 minor fixes. 2022-09-21 15:49:50 +02:00
aris-kimi 6b2427f858 Calculator Tools: minor fix
Remove wxEXPAND from Board Classes panel table
2022-09-13 22:05:32 +03:00
jean-pierre charras d4feb59ed9 OPENGL_GAL, draw bitmap: Rebuild the bitmap cache if the bitmap itself was rotated.
Fixes #12378
https://gitlab.com/kicad/code/kicad/issues/12378
Fix also a Coverity warning.
2022-09-08 12:00:43 +02:00
aris-kimi ed47c47ec2 Add more unit selectors, temperature and material coefficient
to Calculator Tools/ Cable size

Fix some previous leftovers from 086ebe0f1d

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/12129
2022-09-07 23:16:57 +00:00
aris-kimi 086ebe0f1d Add conductor material selection to cable calculator
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/12082
2022-07-27 15:11:33 +00:00
jean-pierre charras 4d48376eae Fix some warnings detected by PVS-STUDIO (not used vars) 2022-07-26 16:00:14 +02:00
jean-pierre charras d4ed387eb1 Pcb_calculator, PANEL_CABLE_SIZE: fix 2 incorrect displayed values.
Voltage drop and Dissipated power units are mV and mW, but the displayed
values were Volt and Watt.
2022-07-25 09:54:54 +02:00
jean-pierre charras 493b42588a Pcb_calculator, PANEL_CABLE_SIZE: fix some issues created by non initialized vars. 2022-07-25 08:58:31 +02:00
luz paz 79fa911e0e Fix various typos
Found via `codespell -q 3 -S *.po,./thirdparty,./Documentation/changelogs -L aactual,acount,aline,alocation,alog,anormal,anumber,aother,apoints,aparent,aray,ba,busses,dout,einstance,leaded,modul,ontext,ot,overide,serie,te,,tesselate,tesselator,tht`
2022-07-21 16:31:41 +00:00
jean-pierre charras fed2049df5 pcb_calculator: fix a cosmetic issue in PANEL_WAVELENGTH.
Fixes #12020
https://gitlab.com/kicad/code/kicad/issues/12020
2022-07-20 08:43:06 +02:00
Marek Roszko 33c89667fe Emplace the cable size list 2022-07-16 15:26:58 -04:00
Seth Hillbrand 56895db84c Fix missing overrides 2022-07-06 16:05:32 -07:00
Fabien Corona 81108ed106 ADDED: pcb_calculator: wavelength panel 2022-07-06 18:28:59 +00:00
jean-pierre charras ef2d0c6438 pcb_calculator/calculator_panels/panel_cable_size: avoid a too large size.
Replace a wxGridSizer by a wxFlexGridSize to avoid too large column sizes
when not needed.
2022-06-22 21:03:07 +02:00
Seth Hillbrand d34e896708 Fix missing overrides 2022-06-21 16:43:15 -07:00
Fabien Corona 33d3618738 ADDED: PCB calculator fusing current
Fixes https://gitlab.com/kicad/code/kicad/-/issues/9297
2022-06-21 23:34:36 +00:00
Fabien Corona 69f25f35a8 ADDED: pcb_calculator cable size
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/9298
2022-06-16 22:04:45 +00:00
jean-pierre charras 285d1f4fae pcb_calculator: change a string to facilitate a translation. 2022-06-03 18:48:01 +02:00
Seth Hillbrand 428970eb13 PCB_Calculator: Fix coupled microstrip diff Z
bffff6c1bf was well-meaning but mistook Zodd for Zsingle.  2*Zodd is the
appropriate value for differential impedance
2021-11-07 17:07:50 -08:00
Mikolaj Wielgus a3707ad365 Minor editorial changes to PCB calculator, part 2
Don't use substripts in HTML  if there is just a number in the
subscript: "R1", not "R<sub>1</sub>", except for characteristic
impedance. And of course still use "Z<sub>in</sub>", not "Zin".

This is also consistent with the images.
2021-11-01 00:09:46 +00:00
Mikolaj Wielgus 2fa9aefde2 Minor editorial changes in PCB calculator, part 1 2021-10-23 13:56:07 +00:00
jean-pierre charras 84e83fc743 pcb_calculator, eserie rework and add E24 serie.
Numerous enhancements in code.
2021-10-15 11:16:27 +02:00
Ian McInerney 8a11e89d0f Fix the type-based pcb_calculator GetCalculator implementation
ix the problem with the original template-based implementation to limit
the amount of things that could be forgotten by new panel creators
(since we can't just have a static fail method warning about things
beinf forgotten).

This reverts commit a92516bcd2.
2021-10-12 13:37:11 +01:00
Ian McInerney 708050aa55 pcb_calculator: Some code cleaning 2021-10-10 16:26:23 +01:00
Ian McInerney bd0fb5ca89 pcb_calculator: Update bitmaps on color code panel when theme changes
They aren't actually different between light and dark currently, but
this brings it inline with all other bitmaps.
2021-10-10 16:26:23 +01:00
jean-pierre charras a92516bcd2 Pcb_calculator: fix not working GetCalculator() template.
Use now wxWidgets functions to find a calculator panel.
Fixes #9358
https://gitlab.com/kicad/code/kicad/issues/9358
2021-10-10 14:16:11 +02:00
jean-pierre charras 2662433374 Pcb calculator panels: ensure sizer are correctly updated.
On wxWidgets 3.0, SetSizeHints must be called once the panel is fully populated.
On wxWidgets 3.1.5, SetSizeHints is not mandatory but can be called to ensure
right sizes once the panel is fully populated.
2021-10-09 09:07:18 +02:00
Ian McInerney c14bdf7fe0 pcb_calculator: Update panel images/text when system theme changes 2021-10-08 17:31:21 +01:00
Ian McInerney 1f4955a632 Reorganize the pcb_calculator directory to make it more logical 2021-10-08 15:44:44 +01:00