Commit Graph

88 Commits

Author SHA1 Message Date
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
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
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 1f4955a632 Reorganize the pcb_calculator directory to make it more logical 2021-10-08 15:44:44 +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 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
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 3c1af1af74 Update selected tool string when language changes.
Fixes https://gitlab.com/kicad/code/kicad/issues/8813
2021-07-23 20:16:53 +01:00
Wayne Stambaugh 1a301d8eea Stop using wxDialog::EndModal() from inside dialogs.
Calling wxDialog::EndModal() directly from inside the dialog is a
potential bug if the dialog is shown in the modeless or window modal
(quasi-modal).  Use the internal button events where possible and
check for the appropriate mode before calling the correct end dialog
function.
2021-07-21 17:38:14 -04:00
luz paz f968fc8719 Fix source comment / documentation typos 2021-06-09 19:32:58 +00:00
Ian McInerney e5446f8d7d Remove wx/wx.h include from some pcb calculator headers 2021-06-03 01:39:08 +01:00
jean-pierre charras 8513ca974c Pcb_calculator: track width tool: make resistivity value read only.
The formula used to calculate the track width is valid only for copper tracks.
So the resistivity value displayed in the panel is only for info, and cannot
be modified.
2021-05-13 10:35:23 +02:00
jean-pierre charras fe5c2d30a3 PCB_CALCULATOR_FRAME_BASE: fix wxWidgets minor alerts.
Fixes #8374
https://gitlab.com/kicad/code/kicad/issues/8374
2021-05-06 08:58:26 +02:00
Jeff Young 34d3218f73 Translation cleanup.
Fixes https://gitlab.com/kicad/code/kicad/issues/6078
2021-02-21 23:13:13 +00: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
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 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
2021-02-14 12:15:26 +00:00
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.
2021-02-13 16:48:47 +00:00
Jeff Young 3f9841355d SVG-based regulator and attenuator bitmaps. 2021-02-13 16:48:47 +00:00
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
2021-02-12 22:08:19 +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
Michael Kavanagh a4ab596b8d Icons: use standard arrows in PCB Calculator 2021-01-04 17:41:09 +00:00
Jeff Young a207bd97bb Naming conventions. 2020-11-17 16:05:49 +00:00
Wayne Stambaugh c7926db553 More minor dialog layout improvements. 2020-11-16 07:29:07 -05:00
Wayne Stambaugh d8ffea881e Improve dialog static sizer box consistency.
Remove colons from the end of static sizer box labels from a few dialogs so
they are consistent with all dialogs.
2020-10-22 22:00:04 -04:00
Seth Hillbrand e0b439492f Unify temporary string -> dummy 2020-10-20 12:26:33 -07:00
Marek Roszko 3a88992f8e Split out the regulator dialog into unique file and fix filenames 2020-10-12 22:01:43 -04:00
Marek Roszko 2ade8031dc Clean up pcb_calculator includes a bit and rename files 2020-10-12 22:01:43 -04:00
Janvi 1b56e2e95d ADDED: E-Series Resistor Calculator
Fixes https://gitlab.com/kicad/code/kicad/issues/2155
2020-09-15 14:03:07 +00:00
Simon Richter 270aaec443 Rewrite FBP files generated with unreleased wxFB
These use a few features that are too new, causing errors when trying to
edit with a released version of wxFormBuilder.
2020-01-07 13:32:33 +00:00
Simon Richter b114dabbed Convert line endings in three FBP files 2020-01-07 13:32:33 +00:00
Dmitry Rezvanov 9c33620a0f PCB Calculator: Adding reset to defaults feature
NEW: Adds buttons to return default settings for
regulators, track width, via size and transmission line.

CHANGED: Fixes grammar mistake in file via.cpp, line 111.

Fixes: lp:1778116
* https://bugs.launchpad.net/kicad/+bug/1778116
2019-11-10 17:19:36 +00:00
jean-pierre charras 130d52dd80 Pcb Calculator: Via Calculator gives too low resistance values (100 times).
Fixes: lp:1844804
https://bugs.launchpad.net/kicad/+bug/1844804
2019-09-20 18:14:52 +02:00
jean-pierre charras 94022116a2 Pcb calculator: very minor fix: do not force a color in a wxHtmlWindow (use defaults) 2019-08-30 18:58:15 +02:00
Wayne Stambaugh e3e546f7d2 PCB calculator: fix regulator dialog layout.
Set default dialog size to -1,-1 to allow the dialog to size itself
properly to prevent the buttons in the standard dialog button sizer
from being truncated.

Fixes lp:1839695

https://bugs.launchpad.net/kicad/+bug/1839695
2019-08-12 09:30:46 -04:00
jean-pierre charras b15f039444 pcb_calculator: fix an issue in a dialog: Was not resizable.
All our dialogs are resizable.
2019-08-10 10:05:13 +02:00
jean-pierre charras 38f54b4372 pcb_calculator: Minor fixes in strings and tool tips 2019-05-03 10:44:29 +02:00
jean-pierre charras 460d1f2a15 pcb_calculator: code cleanup. Remove a few duplicate code. 2019-05-02 08:54:16 +02:00