KiCad PCB EDA Suite
pcb_calculator_frame_base.h
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Oct 26 2018)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
8 #pragma once
9 
10 #include <wx/artprov.h>
11 #include <wx/xrc/xmlres.h>
12 #include <wx/intl.h>
15 class UNIT_SELECTOR_LEN;
18 
19 #include "widgets/unit_selector.h"
20 #include "kiway_player.h"
21 #include <wx/string.h>
22 #include <wx/menu.h>
23 #include <wx/gdicmn.h>
24 #include <wx/font.h>
25 #include <wx/colour.h>
26 #include <wx/settings.h>
27 #include <wx/stattext.h>
28 #include <wx/choice.h>
29 #include <wx/sizer.h>
30 #include <wx/bitmap.h>
31 #include <wx/image.h>
32 #include <wx/icon.h>
33 #include <wx/statbmp.h>
34 #include <wx/statbox.h>
35 #include <wx/radiobut.h>
36 #include <wx/textctrl.h>
37 #include <wx/button.h>
38 #include <wx/panel.h>
39 #include <wx/radiobox.h>
40 #include <wx/bmpbuttn.h>
41 #include <wx/html/htmlwin.h>
42 #include <wx/statline.h>
43 #include <wx/grid.h>
44 #include <wx/notebook.h>
45 #include <wx/frame.h>
46 
48 
49 
54 {
55  private:
56 
57  protected:
58  wxMenuBar* m_menubar;
59  wxNotebook* m_Notebook;
61  wxStaticText* m_staticTextRegType;
62  wxChoice* m_choiceRegType;
63  wxStaticBitmap* m_bitmapRegul4pins;
64  wxStaticBitmap* m_bitmapRegul3pins;
65  wxStaticText* m_RegulFormula;
66  wxRadioButton* m_rbRegulR1;
67  wxStaticText* m_labelRegultR1;
68  wxTextCtrl* m_RegulR1Value;
69  wxStaticText* m_r1Units;
70  wxRadioButton* m_rbRegulR2;
71  wxStaticText* m_labelRegultR2;
72  wxTextCtrl* m_RegulR2Value;
73  wxStaticText* m_r2Units;
74  wxRadioButton* m_rbRegulVout;
75  wxStaticText* m_labelVout;
76  wxTextCtrl* m_RegulVoutValue;
77  wxStaticText* m_unitsVout;
78  wxStaticText* m_labelVRef;
79  wxTextCtrl* m_RegulVrefValue;
80  wxStaticText* m_unitsVref;
81  wxStaticText* m_RegulIadjTitle;
82  wxTextCtrl* m_RegulIadjValue;
83  wxStaticText* m_IadjUnitLabel;
84  wxButton* m_buttonCalculate;
85  wxButton* m_buttonRegulReset;
86  wxStaticText* m_RegulMessage;
88  wxStaticText* m_staticTextRegFile;
90  wxButton* m_buttonDataFile;
91  wxButton* m_buttonEditItem;
92  wxButton* m_buttonAddItem;
93  wxButton* m_buttonRemoveItem;
96  wxStaticBitmap* m_attenuatorBitmap;
97  wxStaticText* m_attenuationLabel;
98  wxTextCtrl* m_AttValueCtrl;
99  wxStaticText* m_attUnit;
100  wxStaticText* m_attenuationZinLabel;
101  wxTextCtrl* m_ZinValueCtrl;
102  wxStaticText* m_attZinUnit;
103  wxStaticText* m_ZoutLabel;
104  wxTextCtrl* m_ZoutValueCtrl;
105  wxStaticText* m_attZoutUnit;
106  wxButton* m_buttonAlcAtt;
107  wxBitmapButton* m_bpButtonCalcAtt;
108  wxStaticText* m_attenuatorR1Label;
109  wxTextCtrl* m_Att_R1_Value;
110  wxStaticText* m_attR1Unit;
111  wxStaticText* m_attenuatorR2Label;
112  wxTextCtrl* m_Att_R2_Value;
113  wxStaticText* m_attR2Unit;
114  wxStaticText* m_attenuatorR3Label;
115  wxTextCtrl* m_Att_R3_Value;
116  wxStaticText* m_attR3Unit;
117  wxStaticText* m_staticTextAttMsg;
118  wxHtmlWindow* m_Attenuator_Messages;
119  wxHtmlWindow* m_panelAttFormula;
120  wxPanel* m_panelESeries;
121  wxStaticText* m_ESrequired;
122  wxTextCtrl* m_ResRequired;
123  wxStaticText* m_reqResUnits;
124  wxStaticText* m_ESrequired1;
125  wxTextCtrl* m_ResExclude1;
126  wxStaticText* m_exclude1Units;
127  wxStaticText* m_ESrequired11;
128  wxTextCtrl* m_ResExclude2;
129  wxStaticText* m_exclude2Units;
130  wxStaticLine* m_staticline6;
131  wxRadioButton* m_e1;
132  wxRadioButton* m_e3;
133  wxRadioButton* m_e6;
134  wxRadioButton* m_e12;
135  wxStaticText* m_ESerieSimpleSolution;
136  wxTextCtrl* m_ESeries_Sol2R;
137  wxStaticText* m_ESeriesSimpleErr;
138  wxTextCtrl* m_ESeriesError2R;
139  wxStaticText* m_ESeriesSimplePercent;
140  wxStaticText* m_ESerie3RSolution1;
141  wxTextCtrl* m_ESeries_Sol3R;
142  wxStaticText* m_ESeriesAltErr;
143  wxTextCtrl* m_ESeriesError3R;
144  wxStaticText* m_ESeriesAltPercent;
145  wxStaticText* m_ESeries4RSolution;
146  wxTextCtrl* m_ESeries_Sol4R;
147  wxStaticText* m_ESeriesAltErr1;
148  wxTextCtrl* m_ESeriesError4R;
149  wxStaticText* m_ESeriesAltPercent1;
150  wxStaticLine* m_staticline7;
152  wxHtmlWindow* m_panelESeriesHelp;
155  wxStaticText* m_staticText31;
156  wxStaticText* m_staticText34;
157  wxStaticText* m_staticText35;
158  wxStaticText* m_Band4Label;
159  wxStaticText* m_staticText37;
160  wxStaticText* m_staticText38;
161  wxStaticBitmap* m_Band1bitmap;
162  wxStaticBitmap* m_Band2bitmap;
163  wxStaticBitmap* m_Band3bitmap;
164  wxStaticBitmap* m_Band4bitmap;
165  wxStaticBitmap* m_Band_mult_bitmap;
166  wxStaticBitmap* m_Band_tol_bitmap;
168  wxRadioBox* m_TranslineSelection;
169  wxStaticBitmap* m_translineBitmap;
170  wxStaticText* m_EpsilonR_label;
171  wxTextCtrl* m_Value_EpsilonR;
172  wxButton* m_button_EpsilonR;
173  wxStaticText* m_TanD_label;
174  wxTextCtrl* m_Value_TanD;
175  wxButton* m_button_TanD;
176  wxStaticText* m_Rho_label;
177  wxTextCtrl* m_Value_Rho;
178  wxButton* m_button_Rho;
179  wxStaticText* m_substrate_prm4_label;
182  wxStaticText* m_substrate_prm5_label;
185  wxStaticText* m_substrate_prm6_label;
188  wxStaticText* m_substrate_prm7_label;
191  wxStaticText* m_substrate_prm8_label;
194  wxStaticText* m_substrate_prm9_label;
197  wxStaticText* m_Frequency_label;
200  wxStaticBitmap* m_bmCMicrostripZoddZeven;
201  wxFlexGridSizer* m_fgSizerZcomment;
202  wxStaticText* m_staticTextZdiff;
203  wxStaticText* m_staticTextZcommon;
204  wxStaticText* m_phys_prm1_label;
205  wxTextCtrl* m_Phys_prm1_Value;
207  wxRadioButton* m_radioBtnPrm1;
208  wxStaticText* m_phys_prm2_label;
209  wxTextCtrl* m_Phys_prm2_Value;
211  wxRadioButton* m_radioBtnPrm2;
212  wxStaticText* m_phys_prm3_label;
213  wxTextCtrl* m_Phys_prm3_Value;
215  wxBitmapButton* m_bpButtonAnalyze;
216  wxButton* m_AnalyseButton;
218  wxBitmapButton* m_bpButtonSynthetize;
219  wxStaticText* m_elec_prm1_label;
220  wxTextCtrl* m_Elec_prm1_Value;
222  wxStaticText* m_elec_prm2_label;
223  wxTextCtrl* m_Elec_prm2_Value;
225  wxStaticText* m_elec_prm3_label;
226  wxTextCtrl* m_Elec_prm3_Value;
228  wxStaticText* m_left_message1;
229  wxStaticText* m_Message1;
230  wxStaticText* m_left_message2;
231  wxStaticText* m_Message2;
232  wxStaticText* m_left_message3;
233  wxStaticText* m_Message3;
234  wxStaticText* m_left_message4;
235  wxStaticText* m_Message4;
236  wxStaticText* m_left_message5;
237  wxStaticText* m_Message5;
238  wxStaticText* m_left_message6;
239  wxStaticText* m_Message6;
240  wxStaticText* m_left_message7;
241  wxStaticText* m_Message7;
243  wxPanel* m_panelViaSize;
244  wxStaticText* m_staticTextHoleDia;
245  wxTextCtrl* m_textCtrlHoleDia;
250  wxStaticText* m_staticTextViaLength;
251  wxTextCtrl* m_textCtrlViaLength;
253  wxStaticText* m_staticTextViaPadDia;
254  wxTextCtrl* m_textCtrlViaPadDia;
259  wxStaticText* m_staticTextImpedance;
260  wxTextCtrl* m_textCtrlImpedance;
262  wxStaticText* m_staticAppliedCurrent;
265  wxStaticText* m_staticTextResistivity;
268  wxStaticText* m_viaResistivityUnits;
274  wxStaticText* m_viaTempUnits;
275  wxStaticText* m_staticTextRiseTime;
276  wxTextCtrl* m_textCtrlRiseTime;
278  wxStaticText* m_staticTextWarning;
279  wxStaticText* m_staticTextArea11;
280  wxStaticText* m_ViaResistance;
281  wxStaticText* m_viaResUnits;
282  wxStaticText* m_staticText65111;
283  wxStaticText* m_ViaVoltageDrop;
284  wxStaticText* m_staticText8411;
285  wxStaticText* m_staticText66111;
286  wxStaticText* m_ViaPowerLoss;
287  wxStaticText* m_staticText8311;
288  wxStaticText* m_staticText79211;
289  wxStaticText* m_ViaThermalResistance;
290  wxStaticText* m_viaThermalResUnits;
291  wxStaticText* m_staticTextAmpacity;
292  wxStaticText* m_ViaAmpacity;
294  wxStaticText* m_staticTextCapacitance;
295  wxStaticText* m_ViaCapacitance;
298  wxStaticText* m_RiseTimeOutput;
300  wxStaticText* m_staticTextInductance;
301  wxStaticText* m_Inductance;
303  wxStaticText* m_staticTextReactance;
304  wxStaticText* m_Reactance;
305  wxStaticText* m_viaReactanceUnits;
306  wxStaticBitmap* m_viaBitmap;
307  wxButton* m_buttonViaReset;
309  wxStaticText* m_staticTextCurrent;
310  wxTextCtrl* m_TrackCurrentValue;
311  wxStaticText* m_staticText62;
312  wxStaticText* m_staticText63;
313  wxTextCtrl* m_TrackDeltaTValue;
314  wxStaticText* m_trackTempUnits;
315  wxStaticText* m_staticText66;
316  wxTextCtrl* m_TrackLengthValue;
318  wxStaticText* m_staticText103;
319  wxTextCtrl* m_TWResistivity;
320  wxStaticText* m_resistivityUnits;
321  wxHtmlWindow* m_htmlWinFormulas;
322  wxStaticText* m_staticTextExtWidth;
323  wxTextCtrl* m_ExtTrackWidthValue;
325  wxStaticText* m_staticText65;
328  wxStaticLine* m_staticline3;
329  wxStaticLine* m_staticline4;
330  wxStaticLine* m_staticline5;
331  wxStaticText* m_staticTextArea;
332  wxStaticText* m_ExtTrackAreaValue;
333  wxStaticText* m_extTrackAreaUnitLabel;
334  wxStaticText* m_staticText651;
335  wxStaticText* m_ExtTrackResistValue;
336  wxStaticText* m_extTrackResUnits;
337  wxStaticText* m_staticText661;
338  wxStaticText* m_ExtTrackVDropValue;
339  wxStaticText* m_staticText83;
340  wxStaticText* m_staticText79;
341  wxStaticText* m_ExtTrackLossValue;
342  wxStaticText* m_staticText791;
343  wxStaticText* m_staticTextIntWidth;
344  wxTextCtrl* m_IntTrackWidthValue;
346  wxStaticText* m_staticText652;
349  wxStaticLine* m_staticline8;
350  wxStaticLine* m_staticline9;
351  wxStaticLine* m_staticline10;
352  wxStaticText* m_staticTextArea1;
353  wxStaticText* m_IntTrackAreaValue;
354  wxStaticText* m_intTrackAreaUnitLabel;
355  wxStaticText* m_staticText6511;
356  wxStaticText* m_IntTrackResistValue;
357  wxStaticText* m_intTrackResUnits;
358  wxStaticText* m_staticText6611;
359  wxStaticText* m_IntTrackVDropValue;
360  wxStaticText* m_staticText831;
361  wxStaticText* m_staticText792;
362  wxStaticText* m_IntTrackLossValue;
363  wxStaticText* m_staticText7911;
367  wxStaticLine* m_staticline2;
368  wxStaticText* m_staticText891;
374  wxStaticText* m_staticText88;
377  wxStaticText* m_staticTextBrdClass;
380 
381  // Virtual event handlers, overide them in your derived class
382  virtual void OnClosePcbCalc( wxCloseEvent& event ) { event.Skip(); }
383  virtual void OnUpdateUI( wxUpdateUIEvent& event ) { event.Skip(); }
384  virtual void OnRegulTypeSelection( wxCommandEvent& event ) { event.Skip(); }
385  virtual void OnRegulatorCalcButtonClick( wxCommandEvent& event ) { event.Skip(); }
386  virtual void OnRegulatorResetButtonClick( wxCommandEvent& event ) { event.Skip(); }
387  virtual void OnRegulatorSelection( wxCommandEvent& event ) { event.Skip(); }
388  virtual void OnDataFileSelection( wxCommandEvent& event ) { event.Skip(); }
389  virtual void OnEditRegulator( wxCommandEvent& event ) { event.Skip(); }
390  virtual void OnAddRegulator( wxCommandEvent& event ) { event.Skip(); }
391  virtual void OnRemoveRegulator( wxCommandEvent& event ) { event.Skip(); }
392  virtual void OnAttenuatorSelection( wxCommandEvent& event ) { event.Skip(); }
393  virtual void OnCalculateAttenuator( wxCommandEvent& event ) { event.Skip(); }
394  virtual void OnESeriesSelection( wxCommandEvent& event ) { event.Skip(); }
395  virtual void OnCalculateESeries( wxCommandEvent& event ) { event.Skip(); }
396  virtual void OnToleranceSelection( wxCommandEvent& event ) { event.Skip(); }
397  virtual void OnTranslineSelection( wxCommandEvent& event ) { event.Skip(); }
398  virtual void OnTranslineEpsilonR_Button( wxCommandEvent& event ) { event.Skip(); }
399  virtual void OnTranslineTanD_Button( wxCommandEvent& event ) { event.Skip(); }
400  virtual void OnTranslineRho_Button( wxCommandEvent& event ) { event.Skip(); }
401  virtual void OnTranslineAnalyse( wxCommandEvent& event ) { event.Skip(); }
402  virtual void OnTranslineSynthetize( wxCommandEvent& event ) { event.Skip(); }
403  virtual void OnTransLineResetButtonClick( wxCommandEvent& event ) { event.Skip(); }
404  virtual void OnViaCalculate( wxCommandEvent& event ) { event.Skip(); }
405  virtual void OnViaRho_Button( wxCommandEvent& event ) { event.Skip(); }
406  virtual void OnViaEpsilonR_Button( wxCommandEvent& event ) { event.Skip(); }
407  virtual void onUpdateViaCalcErrorText( wxUpdateUIEvent& event ) { event.Skip(); }
408  virtual void OnViaResetButtonClick( wxCommandEvent& event ) { event.Skip(); }
409  virtual void OnTWCalculateFromCurrent( wxCommandEvent& event ) { event.Skip(); }
410  virtual void OnTWParametersChanged( wxCommandEvent& event ) { event.Skip(); }
411  virtual void OnTWCalculateFromExtWidth( wxCommandEvent& event ) { event.Skip(); }
412  virtual void OnTWCalculateFromIntWidth( wxCommandEvent& event ) { event.Skip(); }
413  virtual void OnTWResetButtonClick( wxCommandEvent& event ) { event.Skip(); }
414  virtual void OnElectricalSpacingUnitsSelection( wxCommandEvent& event ) { event.Skip(); }
415  virtual void OnElectricalSpacingRefresh( wxCommandEvent& event ) { event.Skip(); }
416  virtual void OnBoardClassesUnitsSelection( wxCommandEvent& event ) { event.Skip(); }
417 
418 
419  public:
420 
421  PCB_CALCULATOR_FRAME_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("PCB Calculator"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER|wxFULL_REPAINT_ON_RESIZE|wxTAB_TRAVERSAL, const wxString& name = wxT("pcb_calculator") );
422 
424 
425 };
426 
virtual void OnRemoveRegulator(wxCommandEvent &event)
UNIT_SELECTOR_ANGLE * m_choiceUnit_ElecPrm3
A wxFrame capable of the OpenProjectFiles function, meaning it can load a portion of a KiCad project.
Definition: kiway_player.h:61
virtual void OnAttenuatorSelection(wxCommandEvent &event)
virtual void OnRegulatorResetButtonClick(wxCommandEvent &event)
UNIT_SELECTOR_LEN * m_TW_ExtTrackWidth_choiceUnit
UNIT_SELECTOR_LEN * m_TW_IntTrackWidth_choiceUnit
virtual void OnViaCalculate(wxCommandEvent &event)
UNIT_SELECTOR_LEN * m_SubsPrm8_choiceUnit
virtual void OnViaResetButtonClick(wxCommandEvent &event)
virtual void OnViaRho_Button(wxCommandEvent &event)
UNIT_SELECTOR_LEN * m_SubsPrm5_choiceUnit
virtual void OnTWParametersChanged(wxCommandEvent &event)
Class PCB_CALCULATOR_FRAME_BASE.
UNIT_SELECTOR_FREQUENCY * m_choiceUnit_Frequency
virtual void OnTranslineTanD_Button(wxCommandEvent &event)
virtual void OnRegulatorCalcButtonClick(wxCommandEvent &event)
PCB_CALCULATOR_FRAME_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("PCB Calculator"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER|wxFULL_REPAINT_ON_RESIZE|wxTAB_TRAVERSAL, const wxString &name=wxT("pcb_calculator"))
virtual void OnESeriesSelection(wxCommandEvent &event)
virtual void OnTranslineEpsilonR_Button(wxCommandEvent &event)
virtual void OnTWResetButtonClick(wxCommandEvent &event)
virtual void OnEditRegulator(wxCommandEvent &event)
virtual void OnElectricalSpacingUnitsSelection(wxCommandEvent &event)
virtual void OnCalculateAttenuator(wxCommandEvent &event)
virtual void OnRegulTypeSelection(wxCommandEvent &event)
UNIT_SELECTOR_LEN * m_choiceClearanceDia
UNIT_SELECTOR_LEN * m_choicePlatingThickness
virtual void OnAddRegulator(wxCommandEvent &event)
virtual void OnCalculateESeries(wxCommandEvent &event)
virtual void onUpdateViaCalcErrorText(wxUpdateUIEvent &event)
virtual void OnUpdateUI(wxUpdateUIEvent &event)
virtual void OnTransLineResetButtonClick(wxCommandEvent &event)
virtual void OnToleranceSelection(wxCommandEvent &event)
UNIT_SELECTOR_LEN * m_SubsPrm4_choiceUnit
UNIT_SELECTOR_RESISTOR * m_choiceUnit_ElecPrm2
UNIT_SELECTOR_RESISTOR * m_choiceUnit_ElecPrm1
UNIT_SELECTOR_THICKNESS * m_IntTrackThicknessUnit
UNIT_SELECTOR_LEN * m_SubsPrm7_choiceUnit
virtual void OnTWCalculateFromExtWidth(wxCommandEvent &event)
virtual void OnTranslineSelection(wxCommandEvent &event)
UNIT_SELECTOR_RESISTOR * m_choiceImpedance
const char * name
Definition: DXF_plotter.cpp:59
virtual void OnRegulatorSelection(wxCommandEvent &event)
virtual void OnTranslineSynthetize(wxCommandEvent &event)
UNIT_SELECTOR_LEN * m_SubsPrm9_choiceUnit
#define _(s)
Definition: 3d_actions.cpp:33
UNIT_SELECTOR_LEN * m_SubsPrm6_choiceUnit
virtual void OnClosePcbCalc(wxCloseEvent &event)
UNIT_SELECTOR_LEN * m_BoardClassesUnitsSelector
virtual void OnViaEpsilonR_Button(wxCommandEvent &event)
virtual void OnTWCalculateFromIntWidth(wxCommandEvent &event)
virtual void OnTranslineRho_Button(wxCommandEvent &event)
virtual void OnTranslineAnalyse(wxCommandEvent &event)
virtual void OnTWCalculateFromCurrent(wxCommandEvent &event)
UNIT_SELECTOR_LEN * m_ElectricalSpacingUnitsSelector
virtual void OnElectricalSpacingRefresh(wxCommandEvent &event)
virtual void OnDataFileSelection(wxCommandEvent &event)
UNIT_SELECTOR_LEN * m_TW_CuLength_choiceUnit
UNIT_SELECTOR_THICKNESS * m_ExtTrackThicknessUnit
virtual void OnBoardClassesUnitsSelection(wxCommandEvent &event)