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.
2023-02-22 01:44:06 +00:00
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
2023-02-12 16:30:37 -05:00
Jeff Young
f5f98f0174
Simplify code.
2023-01-28 10:42:24 +00:00
Jeff Young
7ca951c89a
Fix grammar error.
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
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.
2023-01-08 13:15:33 -05:00
Marek Roszko
8ab9934143
Use our own cmake module path variable to avoid conflicting with the main ones listy functional
2023-01-03 19:18:16 -05: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
8c324f1fc8
Fix a missing include.
...
Fixes #13216
https://gitlab.com/kicad/code/kicad/issues/13216
2022-12-20 12:46:19 +01:00
Alexander Dewing
02325130fa
Initial arm64 work
2022-12-09 23:48:31 +00:00
Simon Richter
4f1c2573f1
PCB Calculator cleanups
2022-12-09 00:51:24 +00:00
jean-pierre charras
9501f4303d
Rename CreateWindow to CreateKiWindow to avoid a collision name with a windows header
...
No code change, but it fix an issue specific to msys2 that bother me when
trying to fix issues with wx 3.0.x version
2022-11-08 12:31:07 +01:00
Huanyin Liu
c64b4b8179
Update the formulas for Tee and Pi Attenuators
...
This makes clear that we are utilizing the voltage attenuation formula while keeping the correct formulation as it is implemented in the code
Fixes https://gitlab.com/kicad/code/kicad/-/issues/12659
2022-10-19 15:49:09 +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
ecd7eca63a
splitter_formula.md: replace double spaces at eol (not very visible) by <br>
...
It should avoid issues in translated strings.
Fixes #12656
https://gitlab.com/kicad/code/kicad/issues/12656
2022-10-15 09:28:13 +02:00
Marek Roszko
d6f8ca9a2e
Patch out the install for argparse
2022-10-12 23:17:05 -04:00
Mark Roszko
fb8a4c10f7
Shove kicad2step into pcbnew itself with a new cli
2022-10-04 01:53:37 +00: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
Alex
dc07ab9df1
Replace PROF_COUNTER with PROF_TIMER in some conditional places.
2022-09-27 14:07:47 +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
aris-kimi
026cca1768
Calculator tools: Normalize regulator naming
...
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/12333
2022-09-08 16:17:32 +00: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
759069f487
Fix unit conversion
...
ohm/1000feet
2022-07-27 15:11:33 +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
Marek Roszko
1e4d0aa1c0
Add missing header for MSVC due to 81108ed106
2022-07-06 18:04:43 -04:00
Fabien Corona
81108ed106
ADDED: pcb_calculator: wavelength panel
2022-07-06 18:28:59 +00:00
Ian McInerney
b51d8c9825
Introduce new CMake variable to store kiface install location
2022-06-22 23:40:25 +01: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
Marek Roszko
1bf361e216
Rename the pcb calculator window to match the title in kicad launcher
2022-05-07 15:36:49 -04:00
jean-pierre charras
ca8b96f247
pcb_calculator: expand treebook at start to show the full list of pages.
2022-03-20 10:00:34 +01:00
Marek Roszko
b69f179560
Just spell out Transmission Lines fully in the calculator
2022-02-20 21:31:54 -05:00
Seth Hillbrand
098e8f7d9b
Revert "cmake: adding KICAD_MACOSX_APP_BUNDLE option"
...
This reverts commit ea9f960cc1
.
Reverted for updates as this currently breaks kicad-mac-builder
2022-01-31 15:57:56 -08:00
Davide Gerhard
ea9f960cc1
cmake: adding KICAD_MACOSX_APP_BUNDLE option
...
ADDED: with cmake KICAD_MACOSX_APP_BUNDLE option the user can disable
the macOS app bundle creation when compiling on macOS. This permit to
use/install KiCad like any other *nix platform (/usr/bin, /usr/share,
ecc.). By default, cmake build the app bundle.
2022-01-28 15:49:37 -08:00
Fabien Corona
8282130bbe
PCB_calculator: use treebook
2022-01-27 20:54:57 +00:00
Jeff Young
e21fa31f64
Rip out rest of macHack architecture.
2022-01-03 22:09:56 +00:00
jean-pierre charras
0e801c9be9
fix missing line breaks in .md file
2021-12-31 10:38:50 +01:00
jean-pierre charras
96c3ce14e4
Fix not displayed html char (&sdot replaced by ·) (perhaps Windows specific)
...
Fixes #10152
https://gitlab.com/kicad/code/kicad/issues/10152
2021-12-29 08:52:56 +01:00
Marek Roszko
3f711b8958
Add win32 VERSION_INFO resource blocks for the DLLs
2021-12-28 23:54:27 -05:00
Jeff Young
c3552a940a
Make sure standard OK/Cancel buttons respond to current language.
...
Fixes https://gitlab.com/kicad/code/kicad/issues/9635
2021-12-24 18:13:11 +00: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
jean-pierre charras
e558f2cabd
Fix typo
2021-11-04 18:20:30 +01:00
J RB
f3ca0f16e6
updated Z0 to accepted value, update ZTEM10 <-> a calc/synth as per #9146
2021-11-03 21:03:28 +00:00
jean-pierre charras
4fe9f01eb0
Update a few demos
2021-11-01 18:36:53 +01: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
jean-pierre charras
0f93999e14
fix a very minor issue in units.h but it does not change anything in current code
...
(this code is not in use currently)
Fixes #9492
https://gitlab.com/kicad/code/kicad/issues/9492
2021-10-30 10:06:28 +02:00
jean-pierre charras
908e892ab8
Fix issues in translatable strings in .md files:
...
- replace "⋅" not displayed on Windows (for some reason) by "·"
- replace the double space at end of lines by the tag <br>
A translatable string cannot ends by 2 spaces, because they are not really visible
2021-10-23 17:52:58 +02:00
Mikolaj Wielgus
2fa9aefde2
Minor editorial changes in PCB calculator, part 1
2021-10-23 13:56:07 +00:00
jean-pierre charras
62ddc269ca
update eserie_help.md (source of eserie_help.h) from changes in eserie_help.h
2021-10-23 15:00:16 +02:00
Jeff Young
febfe39cc4
Improve e-series help text.
...
Fixes https://gitlab.com/kicad/code/kicad/issues/9349
2021-10-22 22:47:12 +01: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
288a94f5aa
pcb_calculator: Remove form builder main window
...
The form builder window only contained the notebook control, so it was
basically pointless. This removes the base frame and instead makes
PCB_CALCULATOR_FRAME inherit directly from KIWAY_PLAYER.
2021-10-08 18:28:10 +01:00
Ian McInerney
0a1a181798
pcb_calculator: Move calculator panels to a registration architecture
...
This simplifies operations that touch every panel and is a bit neater.
2021-10-08 18:13:41 +01: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
Ian McInerney
79a1eff988
pcb_calculaotr: Change attenuators to only have image name instead of the image
...
Otherwise regenerating the bitmap for light/dark changes would be more
difficult.
2021-10-08 15:28:09 +01:00
Mikolaj Wielgus
faad5ee1ce
Use system text and background colors in PCB calculator
...
wxHtmlWindow forces white background and black text. Force it back to
system settings.
2021-10-07 19:09:42 +00:00
jean-pierre charras
a74851bb5d
pcb_calculator rework: move transline panel to its own files panel_transline_xx
...
also a small code cleanup
2021-10-05 18:43:07 +02:00
jean-pierre charras
813fd8ee0a
try to fix a compil issue on Linux that does not happen on my computer, round 2.
2021-10-05 17:30:22 +02:00
jean-pierre charras
a04ae6f13e
try to fix a compil issue on Linux that does not happen on my computer.
2021-10-05 17:17:29 +02:00
jean-pierre charras
d161d7431e
pcb_calculator rework: move eseries panel to its own files panel_eserie_xx
2021-10-05 13:48:37 +02:00
jean-pierre charras
187c685c64
pcb_calculator rework: move board class panel to its own files panel_board_class_xx
2021-10-05 11:00:11 +02:00
jean-pierre charras
c7faeeabea
pcb_calculator rework: move electrical spacing panel to its own files panel_electrical_spacing_xx
2021-10-05 10:20:44 +02:00
jean-pierre charras
f446d23deb
pcb_calculator rework: move track width panel to its own files panel_track_width_xx
2021-10-05 08:41:22 +02:00
jean-pierre charras
3ac0b46798
pcb_calculator rework: move via size panel to its own files panel_via_size_xx
2021-10-04 16:32:38 +02:00
jean-pierre charras
5b5e9102bb
pcb_calculator rework: move color code panel to its own files panel_color_code_xx
2021-10-04 15:02:57 +02:00
jean-pierre charras
78ddb1408f
pcb_calculator/eserie.*: fix some coding style issues.
...
No actual code change (I hope...)
2021-10-04 13:09:28 +02:00
jean-pierre charras
21d3662ed3
pcb_calculator rework: move attenuators panel to its own files panel_attenuators_xx
2021-10-04 10:25:33 +02:00
jean-pierre charras
0f48522342
pcb_calculator rework: move regulator panel to its own files panel_regulator_xx
...
also rename regulators_funct.cpp to panel_regulator.cpp
2021-10-03 18:09:20 +02:00
Jeff Young
2479e1d7b1
Improve common settings property grouping.
...
Also moves apply-icon-scaling-to-fonts to its own checkbox. (We used
to try to infer when to do it, but that turns out to be a rathole.)
2021-09-16 18:31:44 +01:00
Jeff Young
b84d1456d5
KIFACE_I -> KIFACE_BASE.
2021-09-14 23:45:14 +01:00
jean-pierre charras
b38592b1f6
pcb_calculator: minor enhancement: show formula used to calculate Zdiff
2021-09-12 17:07:23 +02:00
JonRB
bffff6c1bf
update PCB calculator Zdiff calc. Associated with #9077
...
adding new messages to the array
increasing the message count
add function and variable declaration
adding main functions
update UI layout to reflect changes
2021-09-12 13:08:41 +00:00
Jeff Young
9c78e4cf54
Mac needs different font size handling than MSW & GTK.
...
Mac already uses diverse font sizes (for instance, smaller fonts for
radio button groups), and the anti-aliasing is a lot better. The
other platforms need a more limited range of sizes.
Fixes https://gitlab.com/kicad/code/kicad/issues/8608
2021-09-11 23:40:31 +01:00
Jeff Young
fbee62fc15
Tie font size scaling to when automatic icon scaling fails.
...
It appears that SetSymbolicSize() and ConvertDialogToPixes() fail
under the same circumstances.
2021-09-11 15:29:51 +01:00
Jeff Young
7a822b55aa
Another round of changes to attempt to fix the GTK font size issue.
...
Fixes https://gitlab.com/kicad/code/kicad/issues/8608
2021-09-10 15:59:50 +01:00