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
Seth Hillbrand
bc0302fafe
Replace RefDesCmp with better StrNumCmp
2021-09-01 11:48:01 -07:00
Seth Hillbrand
4cd9278041
Remove most wxFilepicker wildcards from translations
...
This prevents translation errors from preventing user actions such as
opening the correct file
2021-08-20 12:56:47 -07:00
jean-pierre charras
60c65c2a1d
Avoid loading python stuff when starting applications that do not use it.
...
It is useless, and debug is slightly easier (less constraints) at least on msys2
2021-08-17 19:48:55 +02:00
Jeff Young
95b87ba29a
Freshen microwave polygon dialog and remove a bunch of dead code.
2021-08-03 01:11:11 +01:00
Seth Hillbrand
6cd4d68d57
Add drop shadows to MacOS icons
...
Apple UI guidelines ask for small drop shadows on the icons. We add
these using ImageMagick when resizing
2021-07-30 20:55:34 -07:00
Seth Hillbrand
e7d8b1a975
Resize MacOS icons and script their creation
...
Creates a script that will fomat the MacOS icons at 80% of the total
size in line with Apple's guidelines.
Script requires Inkscape 1.0 and png2icns (available on Linux boxen)
Fixes https://gitlab.com/kicad/code/kicad/issues/7977
2021-07-30 20:28:14 -07:00
Seth Hillbrand
ad8acd328c
Expunge some remaining references to kicad-pcb
2021-07-30 20:27:45 -07:00
Jeff Young
6aaf4413b3
Fix kicad_string.h / string.cpp mismatch.
...
They don't define a KiCad string class, so the header file name was
somewhat misleading. But the fact that they didn't match definitely
made coding more difficult.
2021-07-29 16:03:25 +01:00
Wayne Stambaugh
37b200cb3e
Pass wxString objects by reference instead of on the stack.
2021-07-27 08:41:27 -04:00