Commit Graph

24 Commits

Author SHA1 Message Date
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
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
Wayne Stambaugh 6b5d512b9f More header clean up. 2021-06-08 15:39:47 -04:00
Dominik Wernberger e2aa7be4b3 Added a lot of consts and refactored a few lines 2021-03-08 12:49:48 -08:00
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.
2021-02-14 12:15:26 +00:00
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
2021-02-12 13:53:29 +00:00
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
2021-02-12 13:53:29 +00:00
Marek Roszko cfdd105cdd Some more cleaning in pcb calculator 2020-10-12 22:01:44 -04:00
Marek Roszko 2ade8031dc Clean up pcb_calculator includes a bit and rename files 2020-10-12 22:01:43 -04:00
Renamed from pcb_calculator/pcb_calculator.h (Browse further)