Marek Roszko
71383c9c73
Fix warnings about sprintf use.
2 years ago
Wayne Stambaugh
8687d5092f
String and dialog layout fixes.
2 years ago
jean-pierre charras
b3893aed3d
pcb_calculator: use usual (not scientific) notation when numbers are not very small.
Values >= 0.001 are more readable than values >= 1e-3
2 years ago
jean-pierre charras
909619c8cc
pcb_calculator, MICROSTRIP::calcSynthesize(): fix incorrect init of a variable
It was initialized before other calculations, thus using a bad value.
2 years ago
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
2 years ago
jean-pierre charras
79fb832b9e
pcb_calculator, PANEL_GALVANIC_CORROSION: store selection in config.
Other minor cosmetic enhancement.
2 years ago
Marek Roszko
bee6e6be01
AddMenuLanguageList should live in EDA_BASE_FRAME, its only user
2 years ago
jean-pierre charras
f41734aa48
pcb_calculator/transline/stripline: add missing conv from log to db.
Fixes #15873
https://gitlab.com/kicad/code/kicad/-/issues/15873
2 years ago
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
2 years ago
Jon Evans
d371bb06ae
New macOS installation scripts
Replaces BundleUtilities that got broken by recent updates
and is basically unmaintained by cmake.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15376
2 years ago
Alex Shvartzkop
1decd31baf
Vertically center wxGrid cells by default.
2 years ago
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
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
Marek Roszko
bd3aca2887
Cleanup the kiface dll export declaration slightly
Why in the bloody world would you pass in the return type as part of the macro for export/import preprocessing
2 years ago
Marek Roszko
7505fd0f37
Profile can live in core
2 years ago
Marek Roszko
e665cbac20
Delete line with weird comment because its weird
We should fix it for reals
2 years ago
Marek Roszko
e944a61830
Nothing but the pcb calc will use eseries for the forseeable future
2 years ago
Marek Roszko
87513b4a04
Change the sentry dsn to be build time defined
We ultimately don't want people running personal builds to turn on sentry and start sending us crash logs we can't decipher
2 years ago
Ian McInerney
a3a701a95e
Move preferences to an action instead of a wx event
2 years ago
aris-kimi
ce58208d77
Add missing licence lines in iec60664 and naming update
2 years ago
Marek Roszko
3233bbe0ba
Make exported date time strings use ISO8601 format
Also rename the function to be explicit on its result format
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15185
2 years ago
Jeff Young
e77ff7e4e8
Allow PCBCalculator to respond to both Quit and Close.
2 years ago
jean-pierre charras
8712dac1a2
Minot fix: Honor Ctrl+Q hotkey in pl_editor and pcb_calculator
2 years ago
Steve Bollinger
a318c57d77
Move E-series resistor selector table out of resistor value
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14627
2 years ago
Jeff Young
75e78f9088
Move bitmap2cmp and pcb_calculator to tool framework.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/1939
Fixes https://gitlab.com/kicad/code/kicad/-/issues/7561
2 years ago
Jeff Young
46564055f4
More protection around an exceedingly dangerous hack.
The API is needed for wxFormBuilder, and I couldn't figure out any
way around it, but we can at least reduce the risk of someone calling
it accidentally (again).
2 years ago
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
2 years ago
Alex Shvartzkop
730cf80960
Fix paddings in PCB calculator UI on GTK.
Also fixes instances of wxEXPAND | wxALIGN_CENTER_*
2 years ago
Jeff Young
86210541fc
Clean up clearance page of calculator.
2 years ago
jean-pierre charras
8a1220128b
pcb_calculator: fix a message and Coverity warnings
2 years ago
jean-pierre charras
072bfe4bc6
pcb_calculator, panel iec60664: remove incorrect/useless tooltips.
2 years ago
jean-pierre charras
00317cf67a
pcb_calculator, panel iec60664: better look, better code and fix typos.
2 years ago
jean-pierre charras
47c0c7b3b7
pcb_calculator: add iec60664 electrical spacing panel.
From patches from by Fabien Corona and Aris_kimi
2 years ago
Alex
d945b76c65
Center calculator grid cells, sync font styles with fbp.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14743
2 years ago
jean-pierre charras
cd904dc2b9
pcb_calculator, panel_cable_size: commit missing changes.
2 years ago
jean-pierre charras
ed6a56cb57
pcb_calculator, panel_cable_size.*: enhancement: allow setting current density.
Fixes #14802
https://gitlab.com/kicad/code/kicad/-/issues/14802
2 years ago
jean-pierre charras
ef89495420
pcb_calculator, panel_cable_size.*: code cleanup. No actual change.
2 years ago
jean-pierre charras
edb9a19a65
pcb_calculator: add missing code to save Regulator Panel settings.
3 years ago
aris-kimi
0f5ee38ee2
Corrosion table update
3 years ago
aris-kimi
22bca5c2a0
Disable link maps by default and fix compile issue with lld linker
The link maps were actually disabled by default before
912f1d5cec , and required KICAD_MAKE_LINK_MAPS
to be provided to enable them. So switch back to disabling them by
default.
Also, The lld linker is unable to accept a single dash cref option, while
ld and gold can. Instead, use the double dash version that is supported
by all three.
xref: https://github.com/llvm/llvm-project/issues/60932
Co-authored-by: aris-kimi <aris_kimi@hotmail.com>
Co-authored-by: Ian McInerney <ian.s.mcinerney@ieee.org>
3 years ago
Ian McInerney
912f1d5cec
Modernize setting link map linker flags
3 years ago
Ian McInerney
bcb93e9aa7
Modernize setting of compiler definitions in CMake
add_compile_definitions was added in 3.12, and our minimum is now
greater than that.
3 years ago
Marek Roszko
4665823089
Turn on and fix MSVC compliance mode issues
We want /permissive- to enable debug performance improvements in MSVC 17.5+.
This flag is also default under C++20 so we'll have to deal with these compile issues anyway at some point in the future.
In particular, MSVC becomes pedantic about ternary types.
See https://learn.microsoft.com/en-us/cpp/build/reference/permissive-standards-conformance?view=msvc-170#ambiguous-conditional-operator-arguments
MSFT cites https://cplusplus.github.io/CWG/issues/1805.html
3 years ago
Jeff Young
f5f98f0174
Simplify code.
3 years ago
Jeff Young
7ca951c89a
Fix grammar error.
3 years ago
aris-kimi
d3e513a366
Add complementary color for the alternative polarity in Corrosion table
3 years ago
Jeff Young
3af9c658e6
Don't specify fonts in wxFormBuilder. It only leads to pain.
Fixes https://gitlab.com/kicad/code/kicad/issues/13547
3 years ago
Wayne Stambaugh
f28ea5e784
Remove standard dialog button static line separators.
For the sake of consistency across all dialogs and window that behave
like dialogs, remove the static line that separates the main part of
the dialog from the standard buttons. This only applies to windows
that have the standard button on the bottom of the frame.
This covers the 3D viewer, CvPcb, common, GerbView and KiCad dialogs.
3 years ago
Marek Roszko
8ab9934143
Use our own cmake module path variable to avoid conflicting with the main ones listy functional
3 years ago
Jeff Young
5e0064c21e
More layout optimizations for PCB Calculator.
3 years ago