Marek Roszko
aaf776db9e
Point BEGIN_EVENT_TABLE at the correct base class, fix current lang indication
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17825
2024-04-30 22:47:53 -04:00
Marek Roszko
b4bfdf95d3
Explicitly add 48, 128, 256 to icon bundles for each app
2024-01-16 17:21:44 -05:00
Marek Roszko
bee6e6be01
AddMenuLanguageList should live in EDA_BASE_FRAME, its only user
2023-10-16 19:49:52 -04:00
Ian McInerney
a3a701a95e
Move preferences to an action instead of a wx event
2023-08-08 00:51:22 +01:00
Jeff Young
e77ff7e4e8
Allow PCBCalculator to respond to both Quit and Close.
2023-06-28 15:00:26 +01:00
jean-pierre charras
8712dac1a2
Minot fix: Honor Ctrl+Q hotkey in pl_editor and pcb_calculator
2023-06-28 08:56:40 +02:00
Steve Bollinger
a318c57d77
Move E-series resistor selector table out of resistor value
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14627
2023-06-26 23:21:40 +00:00
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
2023-06-16 15:37:58 +01:00
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).
2023-06-14 12:52:49 +01:00
Jeff Young
f5f98f0174
Simplify code.
2023-01-28 10:42:24 +00:00
Jeff Young
6fc662c254
More class : filename consistency.
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
aris-kimi
788ecd91cd
Corrosion table update
2022-10-03 18:03:03 +00:00
Fabien Corona
c6090a44d6
PCB calculator: add galvanic corrosion chart
2022-09-27 21:21:04 +00:00
Fabien Corona
81108ed106
ADDED: pcb_calculator: wavelength panel
2022-07-06 18:28:59 +00: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
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
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
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
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
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
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
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
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
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
Wayne Stambaugh
4c457b5ed3
More NULL expunging.
2021-07-18 14:31:55 -04:00
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
2021-06-29 18:27:58 +01:00
luz paz
f968fc8719
Fix source comment / documentation typos
2021-06-09 19:32:58 +00:00
Marek Roszko
551ddee29e
Kick wx.h out of pcb_calculator src
2021-06-07 18:38:51 -04:00
Jon Evans
b986797469
Move pcb calculator to new bitmap system
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/8324
2021-05-03 22:28:25 -04:00
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.
2021-03-11 08:37:35 -05:00
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
2021-03-10 14:07:57 +01:00
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
2021-02-20 16:22:55 +01:00
Jeff Young
29a1ded508
Fix degree symbol.
...
And then go on and do a boatload more fixes for correct units usage.
2021-02-15 18:37:10 +00:00