Jeff Young
f5f98f0174
Simplify code.
3 years ago
Jeff Young
6fc662c254
More class : filename consistency.
3 years ago
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).
3 years ago
aris-kimi
788ecd91cd
Corrosion table update
3 years ago
Fabien Corona
c6090a44d6
PCB calculator: add galvanic corrosion chart
4 years ago
Fabien Corona
81108ed106
ADDED: pcb_calculator: wavelength panel
3 years ago
Fabien Corona
33d3618738
ADDED: PCB calculator fusing current
Fixes https://gitlab.com/kicad/code/kicad/-/issues/9297
3 years ago
Fabien Corona
69f25f35a8
ADDED: pcb_calculator cable size
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/9298
3 years ago
Marek Roszko
1bf361e216
Rename the pcb calculator window to match the title in kicad launcher
4 years ago
jean-pierre charras
ca8b96f247
pcb_calculator: expand treebook at start to show the full list of pages.
4 years ago
Marek Roszko
b69f179560
Just spell out Transmission Lines fully in the calculator
4 years ago
Fabien Corona
8282130bbe
PCB_calculator: use treebook
4 years ago
Jeff Young
e21fa31f64
Rip out rest of macHack architecture.
4 years ago
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 .
4 years ago
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
4 years ago
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.
4 years ago
Ian McInerney
0a1a181798
pcb_calculator: Move calculator panels to a registration architecture
This simplifies operations that touch every panel and is a bit neater.
4 years ago
Ian McInerney
c14bdf7fe0
pcb_calculator: Update panel images/text when system theme changes
4 years ago
jean-pierre charras
a74851bb5d
pcb_calculator rework: move transline panel to its own files panel_transline_xx
also a small code cleanup
4 years ago
jean-pierre charras
d161d7431e
pcb_calculator rework: move eseries panel to its own files panel_eserie_xx
4 years ago
jean-pierre charras
187c685c64
pcb_calculator rework: move board class panel to its own files panel_board_class_xx
4 years ago
jean-pierre charras
c7faeeabea
pcb_calculator rework: move electrical spacing panel to its own files panel_electrical_spacing_xx
4 years ago
jean-pierre charras
f446d23deb
pcb_calculator rework: move track width panel to its own files panel_track_width_xx
4 years ago
jean-pierre charras
3ac0b46798
pcb_calculator rework: move via size panel to its own files panel_via_size_xx
4 years ago
jean-pierre charras
5b5e9102bb
pcb_calculator rework: move color code panel to its own files panel_color_code_xx
4 years ago
jean-pierre charras
21d3662ed3
pcb_calculator rework: move attenuators panel to its own files panel_attenuators_xx
4 years ago
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
4 years ago
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.)
4 years ago
Jeff Young
b84d1456d5
KIFACE_I -> KIFACE_BASE.
4 years ago
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
4 years ago
Jeff Young
fbee62fc15
Tie font size scaling to when automatic icon scaling fails.
It appears that SetSymbolicSize() and ConvertDialogToPixes() fail
under the same circumstances.
4 years ago
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
4 years ago
Wayne Stambaugh
4c457b5ed3
More NULL expunging.
4 years ago
Jeff Young
0c2ac9a711
Move GUI font code to common.
This also allows the Mac fixes for font facenames to be more
compartmentalized.
Fixes https://gitlab.com/kicad/code/kicad/issues/8657
4 years ago
luz paz
f968fc8719
Fix source comment / documentation typos
4 years ago
Marek Roszko
551ddee29e
Kick wx.h out of pcb_calculator src
4 years ago
Jon Evans
b986797469
Move pcb calculator to new bitmap system
Fixes https://gitlab.com/kicad/code/kicad/-/issues/8324
5 years ago
Jon Evans
18037e2f65
Rework bitmap system to load from archived PNGs
Bitmaps are now identified by an enum class instead of by pointers.
Bitmap loading and caching is now handled by a class in common, and
we no longer compile most bitmaps into the binary, so there is no
longer a bitmaps static library.
Instead, bitmaps are archived to a .tar.gz file which is installed
in ${KICAD_DATA}/resources/images.tar.gz
The source PNGs are checked in to Git as the original CPP files were,
so that people can build without the required dependencies to convert
SVGs to PNGs.
Initial support is also added for dark theme icons, although this
is not yet exposed in the GUI.
Stubs are present for multi-resolution image resources, but this is
not fully-baked yet and could use some refinement.
5 years ago
jean-pierre charras
2d609a795d
PCB_CALCULATOR_FRAME: fix missing calls to Layout() after widgets modifications.
Fixes #7858
https://gitlab.com/kicad/code/kicad/issues/7858
5 years ago
jean-pierre charras
41061b5cb1
pcb_calculateur: fix truncation of row labels of wxGrid
this column had a fixed width, that does not work for translated texts
or large fonts.
Fixes #7607
https://gitlab.com/kicad/code/kicad/issues/7607
5 years ago
Jeff Young
29a1ded508
Fix degree symbol.
And then go on and do a boatload more fixes for correct units usage.
5 years ago
Jeff Young
5afc56e285
Because we (evidently) didn't have enough display hacks....
Also adds back menubar, which appears to be required for cmd-Q on Mac.
5 years ago
Jeff Young
cb7add9280
Fix a few minor things in PCB Calc, and update units to SI.
Fixes https://gitlab.com/kicad/code/kicad/issues/7525
Fixes https://gitlab.com/kicad/code/kicad/issues/3435
5 years ago
Jeff Young
25f621e880
Fix a lot of GUI guideline issues in PCB Calculator.
Colons, capitalization, spacing, etc.
Also fixes another bitmap refresh bug on OSX.
5 years ago
Jeff Young
3f9841355d
SVG-based regulator and attenuator bitmaps.
5 years ago
Jeff Young
2773bcf35b
Use new SVG bitmaps for PCB Calculator.
They have transparent backgrouds so don't need the whiting out. They
also suffer from pixellation a lot less.
Fixes https://gitlab.com/kicad/code/kicad/issues/7491
5 years ago
Jeff Young
be6683b8b7
Fix cross-platform issue.
5 years ago
Jeff Young
55020ce2c7
Some more pcb calculator refresh hacks.
Also adjusts the spacing and decimal point in the E-series page.
Fixes https://gitlab.com/kicad/code/kicad/issues/5634
5 years ago
Jeff Young
9094ba8033
A veritable cornucopia of wxWidgets hacks for pcb calculator.
Most of these are display hacks because (at least on OSX) assigning
bitmaps or doing a layout before the controls are visible tends to
not work. There are also some layout cleanups and some layout hacks
(horizontal radio button groups, for instance, lay out on top of each
other on OSX).
Fixes https://gitlab.com/kicad/code/kicad/issues/7491
5 years ago
Michael Kavanagh
a4ab596b8d
Icons: use standard arrows in PCB Calculator
5 years ago