KiCad PCB EDA Suite
PANEL_TRANSLINE_BASE Class Referenceabstract

Class PANEL_TRANSLINE_BASE. More...

#include <panel_transline_base.h>

Inheritance diagram for PANEL_TRANSLINE_BASE:
CALCULATOR_PANEL PANEL_TRANSLINE

Public Member Functions

 PANEL_TRANSLINE_BASE (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(724, 460), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
 
 ~PANEL_TRANSLINE_BASE ()
 
virtual void LoadSettings (PCB_CALCULATOR_SETTINGS *aCfg)=0
 Load the settings into the panel. More...
 
virtual void SaveSettings (PCB_CALCULATOR_SETTINGS *aCfg)=0
 Save the settings from the panel. More...
 
virtual void ThemeChanged ()=0
 Update UI elements of the panel when the theme changes to ensure the images and fonts/colors are appropriate for the new theme. More...
 

Protected Member Functions

virtual void OnTranslineSelection (wxCommandEvent &event)
 
virtual void OnTranslineEpsilonR_Button (wxCommandEvent &event)
 
virtual void OnTranslineTanD_Button (wxCommandEvent &event)
 
virtual void OnTranslineRho_Button (wxCommandEvent &event)
 
virtual void OnTranslineAnalyse (wxCommandEvent &event)
 
virtual void OnTranslineSynthetize (wxCommandEvent &event)
 
virtual void OnTransLineResetButtonClick (wxCommandEvent &event)
 

Protected Attributes

wxRadioBox * m_TranslineSelection
 
wxStaticBitmap * m_translineBitmap
 
wxStaticText * m_EpsilonR_label
 
wxTextCtrl * m_Value_EpsilonR
 
wxButton * m_button_EpsilonR
 
wxStaticText * m_TanD_label
 
wxTextCtrl * m_Value_TanD
 
wxButton * m_button_TanD
 
wxStaticText * m_Rho_label
 
wxTextCtrl * m_Value_Rho
 
wxButton * m_button_Rho
 
wxStaticText * m_substrate_prm4_label
 
wxTextCtrl * m_Substrate_prm4_Value
 
UNIT_SELECTOR_LENm_SubsPrm4_choiceUnit
 
wxStaticText * m_substrate_prm5_label
 
wxTextCtrl * m_Substrate_prm5_Value
 
UNIT_SELECTOR_LENm_SubsPrm5_choiceUnit
 
wxStaticText * m_substrate_prm6_label
 
wxTextCtrl * m_Substrate_prm6_Value
 
UNIT_SELECTOR_LENm_SubsPrm6_choiceUnit
 
wxStaticText * m_substrate_prm7_label
 
wxTextCtrl * m_Substrate_prm7_Value
 
UNIT_SELECTOR_LENm_SubsPrm7_choiceUnit
 
wxStaticText * m_substrate_prm8_label
 
wxTextCtrl * m_Substrate_prm8_Value
 
UNIT_SELECTOR_LENm_SubsPrm8_choiceUnit
 
wxStaticText * m_substrate_prm9_label
 
wxTextCtrl * m_Substrate_prm9_Value
 
UNIT_SELECTOR_LENm_SubsPrm9_choiceUnit
 
wxStaticText * m_Frequency_label
 
wxTextCtrl * m_Value_Frequency_Ctrl
 
UNIT_SELECTOR_FREQUENCYm_choiceUnit_Frequency
 
wxStaticBitmap * m_bmCMicrostripZoddZeven
 
wxStaticText * m_phys_prm1_label
 
wxTextCtrl * m_Phys_prm1_Value
 
UNIT_SELECTOR_LENm_choiceUnit_Param1
 
wxRadioButton * m_radioBtnPrm1
 
wxStaticText * m_phys_prm2_label
 
wxTextCtrl * m_Phys_prm2_Value
 
UNIT_SELECTOR_LENm_choiceUnit_Param2
 
wxRadioButton * m_radioBtnPrm2
 
wxStaticText * m_phys_prm3_label
 
wxTextCtrl * m_Phys_prm3_Value
 
UNIT_SELECTOR_LENm_choiceUnit_Param3
 
wxBitmapButton * m_bpButtonAnalyze
 
wxButton * m_AnalyseButton
 
wxButton * m_SynthetizeButton
 
wxBitmapButton * m_bpButtonSynthetize
 
wxStaticText * m_elec_prm1_label
 
wxTextCtrl * m_Elec_prm1_Value
 
UNIT_SELECTOR_RESISTORm_choiceUnit_ElecPrm1
 
wxStaticText * m_elec_prm2_label
 
wxTextCtrl * m_Elec_prm2_Value
 
UNIT_SELECTOR_RESISTORm_choiceUnit_ElecPrm2
 
wxStaticText * m_elec_prm3_label
 
wxTextCtrl * m_Elec_prm3_Value
 
UNIT_SELECTOR_ANGLEm_choiceUnit_ElecPrm3
 
wxStaticText * m_left_message1
 
wxStaticText * m_Message1
 
wxStaticText * m_left_message2
 
wxStaticText * m_Message2
 
wxStaticText * m_left_message3
 
wxStaticText * m_Message3
 
wxStaticText * m_left_message4
 
wxStaticText * m_Message4
 
wxStaticText * m_left_message5
 
wxStaticText * m_Message5
 
wxStaticText * m_left_message6
 
wxStaticText * m_Message6
 
wxStaticText * m_left_message7
 
wxStaticText * m_Message7
 
wxStaticText * m_left_message8
 
wxStaticText * m_Message8
 
wxButton * m_buttonTransLineReset
 

Detailed Description

Class PANEL_TRANSLINE_BASE.

Definition at line 45 of file panel_transline_base.h.

Constructor & Destructor Documentation

◆ PANEL_TRANSLINE_BASE()

PANEL_TRANSLINE_BASE::PANEL_TRANSLINE_BASE ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize( 724,460 ),
long  style = wxTAB_TRAVERSAL,
const wxString &  name = wxEmptyString 
)

Definition at line 14 of file panel_transline_base.cpp.

14  : CALCULATOR_PANEL( parent, id, pos, size, style, name )
15 {
16  wxBoxSizer* bSizeTransline;
17  bSizeTransline = new wxBoxSizer( wxHORIZONTAL );
18 
19  wxBoxSizer* bLeftSizer;
20  bLeftSizer = new wxBoxSizer( wxVERTICAL );
21 
22  wxString m_TranslineSelectionChoices[] = { _("Microstrip Line"), _("Coplanar wave guide"), _("Coplanar wave guide w/ ground plane"), _("Rectangular Waveguide"), _("Coaxial Line"), _("Coupled Microstrip Line"), _("Stripline"), _("Twisted Pair") };
23  int m_TranslineSelectionNChoices = sizeof( m_TranslineSelectionChoices ) / sizeof( wxString );
24  m_TranslineSelection = new wxRadioBox( this, wxID_ANY, _("Transmission Line Type"), wxDefaultPosition, wxDefaultSize, m_TranslineSelectionNChoices, m_TranslineSelectionChoices, 1, wxRA_SPECIFY_COLS );
25  m_TranslineSelection->SetSelection( 0 );
26  bLeftSizer->Add( m_TranslineSelection, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 5 );
27 
28 
29  bLeftSizer->Add( 0, 5, 0, wxEXPAND, 5 );
30 
31  m_translineBitmap = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
32  bLeftSizer->Add( m_translineBitmap, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 10 );
33 
34 
35  bSizeTransline->Add( bLeftSizer, 0, wxEXPAND, 5 );
36 
37  wxBoxSizer* bMiddleSizer;
38  bMiddleSizer = new wxBoxSizer( wxVERTICAL );
39 
40  wxStaticBoxSizer* sbSubstrateBoxSizer;
41  sbSubstrateBoxSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Substrate Parameters") ), wxVERTICAL );
42 
43  wxFlexGridSizer* fgSizerSubstPrms;
44  fgSizerSubstPrms = new wxFlexGridSizer( 9, 3, 3, 0 );
45  fgSizerSubstPrms->AddGrowableCol( 1 );
46  fgSizerSubstPrms->SetFlexibleDirection( wxBOTH );
47  fgSizerSubstPrms->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
48 
49  m_EpsilonR_label = new wxStaticText( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("Er:"), wxDefaultPosition, wxDefaultSize, 0 );
50  m_EpsilonR_label->Wrap( -1 );
51  fgSizerSubstPrms->Add( m_EpsilonR_label, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
52 
53  wxBoxSizer* bSizer441;
54  bSizer441 = new wxBoxSizer( wxHORIZONTAL );
55 
56  m_Value_EpsilonR = new wxTextCtrl( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
57  bSizer441->Add( m_Value_EpsilonR, 1, wxEXPAND|wxLEFT, 5 );
58 
59  m_button_EpsilonR = new wxButton( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("..."), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
60  bSizer441->Add( m_button_EpsilonR, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
61 
62 
63  fgSizerSubstPrms->Add( bSizer441, 1, wxEXPAND, 5 );
64 
65 
66  fgSizerSubstPrms->Add( 0, 0, 1, wxEXPAND, 5 );
67 
68  m_TanD_label = new wxStaticText( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("Tan delta:"), wxDefaultPosition, wxDefaultSize, 0 );
69  m_TanD_label->Wrap( -1 );
70  fgSizerSubstPrms->Add( m_TanD_label, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
71 
72  wxBoxSizer* bSizer442;
73  bSizer442 = new wxBoxSizer( wxHORIZONTAL );
74 
75  m_Value_TanD = new wxTextCtrl( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
76  bSizer442->Add( m_Value_TanD, 1, wxEXPAND|wxLEFT, 5 );
77 
78  m_button_TanD = new wxButton( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("..."), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
79  bSizer442->Add( m_button_TanD, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
80 
81 
82  fgSizerSubstPrms->Add( bSizer442, 1, wxEXPAND, 5 );
83 
84 
85  fgSizerSubstPrms->Add( 0, 0, 1, wxEXPAND, 5 );
86 
87  m_Rho_label = new wxStaticText( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("Rho:"), wxDefaultPosition, wxDefaultSize, 0 );
88  m_Rho_label->Wrap( -1 );
89  m_Rho_label->SetToolTip( _("Specific resistance in ohms * meters") );
90 
91  fgSizerSubstPrms->Add( m_Rho_label, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxLEFT, 5 );
92 
93  wxBoxSizer* bSizer443;
94  bSizer443 = new wxBoxSizer( wxHORIZONTAL );
95 
96  m_Value_Rho = new wxTextCtrl( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
97  bSizer443->Add( m_Value_Rho, 1, wxEXPAND|wxLEFT, 5 );
98 
99  m_button_Rho = new wxButton( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("..."), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
100  bSizer443->Add( m_button_Rho, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
101 
102 
103  fgSizerSubstPrms->Add( bSizer443, 1, wxEXPAND, 5 );
104 
105 
106  fgSizerSubstPrms->Add( 0, 0, 1, wxEXPAND, 5 );
107 
108  m_substrate_prm4_label = new wxStaticText( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("H:"), wxDefaultPosition, wxDefaultSize, 0 );
109  m_substrate_prm4_label->Wrap( -1 );
110  fgSizerSubstPrms->Add( m_substrate_prm4_label, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxLEFT, 5 );
111 
112  m_Substrate_prm4_Value = new wxTextCtrl( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
113  fgSizerSubstPrms->Add( m_Substrate_prm4_Value, 0, wxRIGHT|wxLEFT|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
114 
115  wxArrayString m_SubsPrm4_choiceUnitChoices;
116  m_SubsPrm4_choiceUnit = new UNIT_SELECTOR_LEN( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_SubsPrm4_choiceUnitChoices, 0 );
117  m_SubsPrm4_choiceUnit->SetSelection( 0 );
118  fgSizerSubstPrms->Add( m_SubsPrm4_choiceUnit, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
119 
120  m_substrate_prm5_label = new wxStaticText( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("H_t:"), wxDefaultPosition, wxDefaultSize, 0 );
121  m_substrate_prm5_label->Wrap( -1 );
122  fgSizerSubstPrms->Add( m_substrate_prm5_label, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxLEFT, 5 );
123 
124  m_Substrate_prm5_Value = new wxTextCtrl( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
125  fgSizerSubstPrms->Add( m_Substrate_prm5_Value, 0, wxRIGHT|wxLEFT|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
126 
127  wxArrayString m_SubsPrm5_choiceUnitChoices;
128  m_SubsPrm5_choiceUnit = new UNIT_SELECTOR_LEN( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_SubsPrm5_choiceUnitChoices, 0 );
129  m_SubsPrm5_choiceUnit->SetSelection( 0 );
130  fgSizerSubstPrms->Add( m_SubsPrm5_choiceUnit, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
131 
132  m_substrate_prm6_label = new wxStaticText( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("T:"), wxDefaultPosition, wxDefaultSize, 0 );
133  m_substrate_prm6_label->Wrap( -1 );
134  fgSizerSubstPrms->Add( m_substrate_prm6_label, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxLEFT, 5 );
135 
136  m_Substrate_prm6_Value = new wxTextCtrl( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
137  fgSizerSubstPrms->Add( m_Substrate_prm6_Value, 0, wxRIGHT|wxLEFT|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
138 
139  wxArrayString m_SubsPrm6_choiceUnitChoices;
140  m_SubsPrm6_choiceUnit = new UNIT_SELECTOR_LEN( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_SubsPrm6_choiceUnitChoices, 0 );
141  m_SubsPrm6_choiceUnit->SetSelection( 0 );
142  fgSizerSubstPrms->Add( m_SubsPrm6_choiceUnit, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
143 
144  m_substrate_prm7_label = new wxStaticText( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("Rough:"), wxDefaultPosition, wxDefaultSize, 0 );
145  m_substrate_prm7_label->Wrap( -1 );
146  fgSizerSubstPrms->Add( m_substrate_prm7_label, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxLEFT, 5 );
147 
148  m_Substrate_prm7_Value = new wxTextCtrl( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
149  fgSizerSubstPrms->Add( m_Substrate_prm7_Value, 0, wxRIGHT|wxLEFT|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
150 
151  wxArrayString m_SubsPrm7_choiceUnitChoices;
152  m_SubsPrm7_choiceUnit = new UNIT_SELECTOR_LEN( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_SubsPrm7_choiceUnitChoices, 0 );
153  m_SubsPrm7_choiceUnit->SetSelection( 0 );
154  fgSizerSubstPrms->Add( m_SubsPrm7_choiceUnit, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
155 
156  m_substrate_prm8_label = new wxStaticText( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("Insulator mu:"), wxDefaultPosition, wxDefaultSize, 0 );
157  m_substrate_prm8_label->Wrap( -1 );
158  fgSizerSubstPrms->Add( m_substrate_prm8_label, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxLEFT, 5 );
159 
160  m_Substrate_prm8_Value = new wxTextCtrl( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
161  fgSizerSubstPrms->Add( m_Substrate_prm8_Value, 0, wxEXPAND|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
162 
163  wxArrayString m_SubsPrm8_choiceUnitChoices;
164  m_SubsPrm8_choiceUnit = new UNIT_SELECTOR_LEN( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_SubsPrm8_choiceUnitChoices, 0 );
165  m_SubsPrm8_choiceUnit->SetSelection( 0 );
166  fgSizerSubstPrms->Add( m_SubsPrm8_choiceUnit, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
167 
168  m_substrate_prm9_label = new wxStaticText( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("Conductor mu:"), wxDefaultPosition, wxDefaultSize, 0 );
169  m_substrate_prm9_label->Wrap( -1 );
170  fgSizerSubstPrms->Add( m_substrate_prm9_label, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 );
171 
172  m_Substrate_prm9_Value = new wxTextCtrl( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
173  fgSizerSubstPrms->Add( m_Substrate_prm9_Value, 0, wxRIGHT|wxLEFT|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
174 
175  wxArrayString m_SubsPrm9_choiceUnitChoices;
176  m_SubsPrm9_choiceUnit = new UNIT_SELECTOR_LEN( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_SubsPrm9_choiceUnitChoices, 0 );
177  m_SubsPrm9_choiceUnit->SetSelection( 0 );
178  fgSizerSubstPrms->Add( m_SubsPrm9_choiceUnit, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
179 
180 
181  sbSubstrateBoxSizer->Add( fgSizerSubstPrms, 1, wxEXPAND|wxBOTTOM, 5 );
182 
183 
184  bMiddleSizer->Add( sbSubstrateBoxSizer, 0, wxEXPAND|wxBOTTOM, 5 );
185 
186  wxStaticBoxSizer* sbCmpPrmsSizer;
187  sbCmpPrmsSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Component Parameters") ), wxVERTICAL );
188 
189  wxFlexGridSizer* fgSizeCmpPrms;
190  fgSizeCmpPrms = new wxFlexGridSizer( 1, 3, 0, 0 );
191  fgSizeCmpPrms->AddGrowableCol( 1 );
192  fgSizeCmpPrms->SetFlexibleDirection( wxBOTH );
193  fgSizeCmpPrms->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
194 
195  m_Frequency_label = new wxStaticText( sbCmpPrmsSizer->GetStaticBox(), wxID_ANY, _("Frequency:"), wxDefaultPosition, wxDefaultSize, 0 );
196  m_Frequency_label->Wrap( -1 );
197  fgSizeCmpPrms->Add( m_Frequency_label, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 );
198 
199  m_Value_Frequency_Ctrl = new wxTextCtrl( sbCmpPrmsSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
200  fgSizeCmpPrms->Add( m_Value_Frequency_Ctrl, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
201 
202  wxArrayString m_choiceUnit_FrequencyChoices;
203  m_choiceUnit_Frequency = new UNIT_SELECTOR_FREQUENCY( sbCmpPrmsSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnit_FrequencyChoices, 0 );
204  m_choiceUnit_Frequency->SetSelection( 0 );
205  fgSizeCmpPrms->Add( m_choiceUnit_Frequency, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
206 
207 
208  sbCmpPrmsSizer->Add( fgSizeCmpPrms, 0, wxEXPAND|wxBOTTOM, 5 );
209 
210 
211  bMiddleSizer->Add( sbCmpPrmsSizer, 0, wxEXPAND|wxTOP, 5 );
212 
213  wxBoxSizer* bSizerHelpBitmaps;
214  bSizerHelpBitmaps = new wxBoxSizer( wxVERTICAL );
215 
216  m_bmCMicrostripZoddZeven = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
217  bSizerHelpBitmaps->Add( m_bmCMicrostripZoddZeven, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 10 );
218 
219 
220  bMiddleSizer->Add( bSizerHelpBitmaps, 1, wxALIGN_CENTER_HORIZONTAL, 5 );
221 
222 
223  bSizeTransline->Add( bMiddleSizer, 1, wxALL|wxEXPAND, 5 );
224 
225  wxBoxSizer* bRightSizer;
226  bRightSizer = new wxBoxSizer( wxVERTICAL );
227 
228  wxStaticBoxSizer* btranslineRightSizer;
229  btranslineRightSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Physical Parameters") ), wxVERTICAL );
230 
231  wxFlexGridSizer* fgSizerPhysPrms;
232  fgSizerPhysPrms = new wxFlexGridSizer( 4, 4, 3, 0 );
233  fgSizerPhysPrms->AddGrowableCol( 1 );
234  fgSizerPhysPrms->SetFlexibleDirection( wxBOTH );
235  fgSizerPhysPrms->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
236 
237  m_phys_prm1_label = new wxStaticText( btranslineRightSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
238  m_phys_prm1_label->Wrap( -1 );
239  fgSizerPhysPrms->Add( m_phys_prm1_label, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 );
240 
241  m_Phys_prm1_Value = new wxTextCtrl( btranslineRightSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
242  fgSizerPhysPrms->Add( m_Phys_prm1_Value, 0, wxRIGHT|wxLEFT|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
243 
244  wxArrayString m_choiceUnit_Param1Choices;
245  m_choiceUnit_Param1 = new UNIT_SELECTOR_LEN( btranslineRightSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnit_Param1Choices, 0 );
246  m_choiceUnit_Param1->SetSelection( 0 );
247  fgSizerPhysPrms->Add( m_choiceUnit_Param1, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
248 
249  m_radioBtnPrm1 = new wxRadioButton( btranslineRightSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
250  fgSizerPhysPrms->Add( m_radioBtnPrm1, 0, wxALIGN_CENTER_VERTICAL, 5 );
251 
252  m_phys_prm2_label = new wxStaticText( btranslineRightSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
253  m_phys_prm2_label->Wrap( -1 );
254  fgSizerPhysPrms->Add( m_phys_prm2_label, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 );
255 
256  m_Phys_prm2_Value = new wxTextCtrl( btranslineRightSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
257  fgSizerPhysPrms->Add( m_Phys_prm2_Value, 0, wxRIGHT|wxLEFT|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
258 
259  wxArrayString m_choiceUnit_Param2Choices;
260  m_choiceUnit_Param2 = new UNIT_SELECTOR_LEN( btranslineRightSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnit_Param2Choices, 0 );
261  m_choiceUnit_Param2->SetSelection( 0 );
262  fgSizerPhysPrms->Add( m_choiceUnit_Param2, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
263 
264  m_radioBtnPrm2 = new wxRadioButton( btranslineRightSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
265  fgSizerPhysPrms->Add( m_radioBtnPrm2, 0, wxALIGN_CENTER_VERTICAL, 5 );
266 
267  m_phys_prm3_label = new wxStaticText( btranslineRightSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
268  m_phys_prm3_label->Wrap( -1 );
269  fgSizerPhysPrms->Add( m_phys_prm3_label, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 );
270 
271  m_Phys_prm3_Value = new wxTextCtrl( btranslineRightSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
272  fgSizerPhysPrms->Add( m_Phys_prm3_Value, 0, wxRIGHT|wxLEFT|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
273 
274  wxArrayString m_choiceUnit_Param3Choices;
275  m_choiceUnit_Param3 = new UNIT_SELECTOR_LEN( btranslineRightSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnit_Param3Choices, 0 );
276  m_choiceUnit_Param3->SetSelection( 0 );
277  fgSizerPhysPrms->Add( m_choiceUnit_Param3, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
278 
279 
280  fgSizerPhysPrms->Add( 0, 0, 0, 0, 5 );
281 
282 
283  btranslineRightSizer->Add( fgSizerPhysPrms, 0, wxEXPAND|wxBOTTOM, 5 );
284 
285 
286  bRightSizer->Add( btranslineRightSizer, 0, wxALL|wxEXPAND, 5 );
287 
288  wxBoxSizer* btranslineButtonsSizer;
289  btranslineButtonsSizer = new wxBoxSizer( wxVERTICAL );
290 
291  wxBoxSizer* bSizerButtons;
292  bSizerButtons = new wxBoxSizer( wxHORIZONTAL );
293 
294  m_bpButtonAnalyze = new wxBitmapButton( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
295  bSizerButtons->Add( m_bpButtonAnalyze, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
296 
297  m_AnalyseButton = new wxButton( this, wxID_ANY, _("Analyze"), wxDefaultPosition, wxDefaultSize, 0 );
298  bSizerButtons->Add( m_AnalyseButton, 0, wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
299 
300  m_SynthetizeButton = new wxButton( this, wxID_ANY, _("Synthesize"), wxDefaultPosition, wxDefaultSize, 0 );
301  bSizerButtons->Add( m_SynthetizeButton, 0, wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
302 
303  m_bpButtonSynthetize = new wxBitmapButton( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
304  bSizerButtons->Add( m_bpButtonSynthetize, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
305 
306 
307  btranslineButtonsSizer->Add( bSizerButtons, 0, wxALIGN_CENTER_HORIZONTAL, 5 );
308 
309 
310  bRightSizer->Add( btranslineButtonsSizer, 0, wxALIGN_CENTER_HORIZONTAL, 5 );
311 
312  wxStaticBoxSizer* sbElectricalResultsSizer;
313  sbElectricalResultsSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Electrical Parameters") ), wxVERTICAL );
314 
315  wxFlexGridSizer* fgSizerResults;
316  fgSizerResults = new wxFlexGridSizer( 3, 3, 3, 0 );
317  fgSizerResults->AddGrowableCol( 1 );
318  fgSizerResults->SetFlexibleDirection( wxBOTH );
319  fgSizerResults->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
320 
321  m_elec_prm1_label = new wxStaticText( sbElectricalResultsSizer->GetStaticBox(), wxID_ANY, _("Z:"), wxDefaultPosition, wxDefaultSize, 0 );
322  m_elec_prm1_label->Wrap( -1 );
323  fgSizerResults->Add( m_elec_prm1_label, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxLEFT, 5 );
324 
325  m_Elec_prm1_Value = new wxTextCtrl( sbElectricalResultsSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
326  fgSizerResults->Add( m_Elec_prm1_Value, 0, wxRIGHT|wxLEFT|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
327 
328  wxArrayString m_choiceUnit_ElecPrm1Choices;
329  m_choiceUnit_ElecPrm1 = new UNIT_SELECTOR_RESISTOR( sbElectricalResultsSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnit_ElecPrm1Choices, 0 );
330  m_choiceUnit_ElecPrm1->SetSelection( 0 );
331  fgSizerResults->Add( m_choiceUnit_ElecPrm1, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
332 
333  m_elec_prm2_label = new wxStaticText( sbElectricalResultsSizer->GetStaticBox(), wxID_ANY, _("Z:"), wxDefaultPosition, wxDefaultSize, 0 );
334  m_elec_prm2_label->Wrap( -1 );
335  fgSizerResults->Add( m_elec_prm2_label, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxLEFT, 5 );
336 
337  m_Elec_prm2_Value = new wxTextCtrl( sbElectricalResultsSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
338  fgSizerResults->Add( m_Elec_prm2_Value, 0, wxEXPAND|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
339 
340  wxArrayString m_choiceUnit_ElecPrm2Choices;
341  m_choiceUnit_ElecPrm2 = new UNIT_SELECTOR_RESISTOR( sbElectricalResultsSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnit_ElecPrm2Choices, 0 );
342  m_choiceUnit_ElecPrm2->SetSelection( 0 );
343  fgSizerResults->Add( m_choiceUnit_ElecPrm2, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
344 
345  m_elec_prm3_label = new wxStaticText( sbElectricalResultsSizer->GetStaticBox(), wxID_ANY, _("Angle:"), wxDefaultPosition, wxDefaultSize, 0 );
346  m_elec_prm3_label->Wrap( -1 );
347  fgSizerResults->Add( m_elec_prm3_label, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 );
348 
349  m_Elec_prm3_Value = new wxTextCtrl( sbElectricalResultsSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
350  fgSizerResults->Add( m_Elec_prm3_Value, 0, wxEXPAND|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
351 
352  wxArrayString m_choiceUnit_ElecPrm3Choices;
353  m_choiceUnit_ElecPrm3 = new UNIT_SELECTOR_ANGLE( sbElectricalResultsSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnit_ElecPrm3Choices, 0 );
354  m_choiceUnit_ElecPrm3->SetSelection( 0 );
355  fgSizerResults->Add( m_choiceUnit_ElecPrm3, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
356 
357 
358  sbElectricalResultsSizer->Add( fgSizerResults, 0, wxEXPAND|wxBOTTOM, 5 );
359 
360 
361  bRightSizer->Add( sbElectricalResultsSizer, 0, wxEXPAND|wxALL, 5 );
362 
363  wxStaticBoxSizer* sbMessagesSizer;
364  sbMessagesSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Results") ), wxVERTICAL );
365 
366  wxFlexGridSizer* fgSizerTranslResults;
367  fgSizerTranslResults = new wxFlexGridSizer( 8, 2, 0, 0 );
368  fgSizerTranslResults->AddGrowableCol( 1 );
369  fgSizerTranslResults->SetFlexibleDirection( wxBOTH );
370  fgSizerTranslResults->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
371 
372  m_left_message1 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
373  m_left_message1->Wrap( -1 );
374  fgSizerTranslResults->Add( m_left_message1, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 );
375 
376  m_Message1 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
377  m_Message1->Wrap( -1 );
378  fgSizerTranslResults->Add( m_Message1, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
379 
380  m_left_message2 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
381  m_left_message2->Wrap( -1 );
382  fgSizerTranslResults->Add( m_left_message2, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 );
383 
384  m_Message2 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
385  m_Message2->Wrap( -1 );
386  fgSizerTranslResults->Add( m_Message2, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
387 
388  m_left_message3 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
389  m_left_message3->Wrap( -1 );
390  fgSizerTranslResults->Add( m_left_message3, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 );
391 
392  m_Message3 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
393  m_Message3->Wrap( -1 );
394  fgSizerTranslResults->Add( m_Message3, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
395 
396  m_left_message4 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
397  m_left_message4->Wrap( -1 );
398  fgSizerTranslResults->Add( m_left_message4, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 );
399 
400  m_Message4 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
401  m_Message4->Wrap( -1 );
402  fgSizerTranslResults->Add( m_Message4, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
403 
404  m_left_message5 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
405  m_left_message5->Wrap( -1 );
406  fgSizerTranslResults->Add( m_left_message5, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxALIGN_RIGHT, 5 );
407 
408  m_Message5 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
409  m_Message5->Wrap( -1 );
410  fgSizerTranslResults->Add( m_Message5, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
411 
412  m_left_message6 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
413  m_left_message6->Wrap( -1 );
414  fgSizerTranslResults->Add( m_left_message6, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 );
415 
416  m_Message6 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
417  m_Message6->Wrap( -1 );
418  fgSizerTranslResults->Add( m_Message6, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
419 
420  m_left_message7 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
421  m_left_message7->Wrap( -1 );
422  fgSizerTranslResults->Add( m_left_message7, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 );
423 
424  m_Message7 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
425  m_Message7->Wrap( -1 );
426  fgSizerTranslResults->Add( m_Message7, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
427 
428  m_left_message8 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
429  m_left_message8->Wrap( -1 );
430  fgSizerTranslResults->Add( m_left_message8, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxLEFT|wxRIGHT, 5 );
431 
432  m_Message8 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
433  m_Message8->Wrap( -1 );
434  fgSizerTranslResults->Add( m_Message8, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
435 
436 
437  sbMessagesSizer->Add( fgSizerTranslResults, 1, wxEXPAND, 5 );
438 
439 
440  bRightSizer->Add( sbMessagesSizer, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
441 
442  m_buttonTransLineReset = new wxButton( this, wxID_ANY, _("Reset to Defaults"), wxDefaultPosition, wxDefaultSize, 0 );
443  bRightSizer->Add( m_buttonTransLineReset, 0, wxALIGN_RIGHT|wxALL, 5 );
444 
445 
446  bSizeTransline->Add( bRightSizer, 1, wxEXPAND, 5 );
447 
448 
449  this->SetSizer( bSizeTransline );
450  this->Layout();
451 
452  // Connect Events
453  m_TranslineSelection->Connect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineSelection ), NULL, this );
454  m_button_EpsilonR->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineEpsilonR_Button ), NULL, this );
455  m_button_TanD->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineTanD_Button ), NULL, this );
456  m_button_Rho->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineRho_Button ), NULL, this );
457  m_bpButtonAnalyze->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineAnalyse ), NULL, this );
458  m_AnalyseButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineAnalyse ), NULL, this );
459  m_SynthetizeButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineSynthetize ), NULL, this );
460  m_bpButtonSynthetize->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineSynthetize ), NULL, this );
461  m_buttonTransLineReset->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTransLineResetButtonClick ), NULL, this );
462 }
virtual void OnTranslineTanD_Button(wxCommandEvent &event)
wxStaticText * m_left_message5
virtual void OnTranslineRho_Button(wxCommandEvent &event)
wxTextCtrl * m_Substrate_prm6_Value
wxStaticText * m_left_message4
UNIT_SELECTOR_ANGLE * m_choiceUnit_ElecPrm3
wxStaticText * m_EpsilonR_label
wxTextCtrl * m_Substrate_prm7_Value
virtual void OnTranslineEpsilonR_Button(wxCommandEvent &event)
wxStaticText * m_elec_prm2_label
wxRadioBox * m_TranslineSelection
wxStaticBitmap * m_translineBitmap
wxTextCtrl * m_Substrate_prm4_Value
wxStaticText * m_left_message7
wxTextCtrl * m_Substrate_prm5_Value
wxBitmapButton * m_bpButtonAnalyze
virtual void OnTranslineAnalyse(wxCommandEvent &event)
wxStaticText * m_substrate_prm7_label
UNIT_SELECTOR_LEN * m_SubsPrm6_choiceUnit
UNIT_SELECTOR_FREQUENCY * m_choiceUnit_Frequency
wxRadioButton * m_radioBtnPrm1
wxStaticText * m_left_message8
wxStaticText * m_Frequency_label
UNIT_SELECTOR_RESISTOR * m_choiceUnit_ElecPrm1
wxStaticText * m_phys_prm3_label
wxBitmapButton * m_bpButtonSynthetize
wxTextCtrl * m_Value_Frequency_Ctrl
#define _(s)
wxStaticText * m_substrate_prm8_label
wxStaticText * m_substrate_prm4_label
wxStaticText * m_phys_prm1_label
wxTextCtrl * m_Substrate_prm9_Value
wxRadioButton * m_radioBtnPrm2
UNIT_SELECTOR_LEN * m_SubsPrm7_choiceUnit
wxStaticBitmap * m_bmCMicrostripZoddZeven
UNIT_SELECTOR_LEN * m_SubsPrm9_choiceUnit
UNIT_SELECTOR_LEN * m_SubsPrm5_choiceUnit
virtual void OnTranslineSynthetize(wxCommandEvent &event)
CALCULATOR_PANEL(wxWindow *aParent, wxWindowID aId, const wxPoint &aPos, const wxSize &aSize, long aStyle, const wxString &aName)
virtual void OnTransLineResetButtonClick(wxCommandEvent &event)
const char * name
Definition: DXF_plotter.cpp:56
virtual void OnTranslineSelection(wxCommandEvent &event)
wxStaticText * m_elec_prm1_label
wxStaticText * m_elec_prm3_label
UNIT_SELECTOR_LEN * m_choiceUnit_Param3
wxStaticText * m_left_message6
UNIT_SELECTOR_LEN * m_choiceUnit_Param2
wxTextCtrl * m_Substrate_prm8_Value
wxStaticText * m_phys_prm2_label
UNIT_SELECTOR_LEN * m_SubsPrm8_choiceUnit
wxStaticText * m_substrate_prm5_label
wxStaticText * m_substrate_prm6_label
wxStaticText * m_left_message2
UNIT_SELECTOR_LEN * m_choiceUnit_Param1
wxStaticText * m_left_message3
UNIT_SELECTOR_RESISTOR * m_choiceUnit_ElecPrm2
wxStaticText * m_left_message1
wxStaticText * m_substrate_prm9_label
UNIT_SELECTOR_LEN * m_SubsPrm4_choiceUnit

References _, m_AnalyseButton, m_bmCMicrostripZoddZeven, m_bpButtonAnalyze, m_bpButtonSynthetize, m_button_EpsilonR, m_button_Rho, m_button_TanD, m_buttonTransLineReset, m_choiceUnit_ElecPrm1, m_choiceUnit_ElecPrm2, m_choiceUnit_ElecPrm3, m_choiceUnit_Frequency, m_choiceUnit_Param1, m_choiceUnit_Param2, m_choiceUnit_Param3, m_elec_prm1_label, m_Elec_prm1_Value, m_elec_prm2_label, m_Elec_prm2_Value, m_elec_prm3_label, m_Elec_prm3_Value, m_EpsilonR_label, m_Frequency_label, m_left_message1, m_left_message2, m_left_message3, m_left_message4, m_left_message5, m_left_message6, m_left_message7, m_left_message8, m_Message1, m_Message2, m_Message3, m_Message4, m_Message5, m_Message6, m_Message7, m_Message8, m_phys_prm1_label, m_Phys_prm1_Value, m_phys_prm2_label, m_Phys_prm2_Value, m_phys_prm3_label, m_Phys_prm3_Value, m_radioBtnPrm1, m_radioBtnPrm2, m_Rho_label, m_SubsPrm4_choiceUnit, m_SubsPrm5_choiceUnit, m_SubsPrm6_choiceUnit, m_SubsPrm7_choiceUnit, m_SubsPrm8_choiceUnit, m_SubsPrm9_choiceUnit, m_substrate_prm4_label, m_Substrate_prm4_Value, m_substrate_prm5_label, m_Substrate_prm5_Value, m_substrate_prm6_label, m_Substrate_prm6_Value, m_substrate_prm7_label, m_Substrate_prm7_Value, m_substrate_prm8_label, m_Substrate_prm8_Value, m_substrate_prm9_label, m_Substrate_prm9_Value, m_SynthetizeButton, m_TanD_label, m_translineBitmap, m_TranslineSelection, m_Value_EpsilonR, m_Value_Frequency_Ctrl, m_Value_Rho, m_Value_TanD, OnTranslineAnalyse(), OnTranslineEpsilonR_Button(), OnTransLineResetButtonClick(), OnTranslineRho_Button(), OnTranslineSelection(), OnTranslineSynthetize(), and OnTranslineTanD_Button().

◆ ~PANEL_TRANSLINE_BASE()

PANEL_TRANSLINE_BASE::~PANEL_TRANSLINE_BASE ( )

Definition at line 464 of file panel_transline_base.cpp.

465 {
466  // Disconnect Events
467  m_TranslineSelection->Disconnect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineSelection ), NULL, this );
468  m_button_EpsilonR->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineEpsilonR_Button ), NULL, this );
469  m_button_TanD->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineTanD_Button ), NULL, this );
470  m_button_Rho->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineRho_Button ), NULL, this );
471  m_bpButtonAnalyze->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineAnalyse ), NULL, this );
472  m_AnalyseButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineAnalyse ), NULL, this );
473  m_SynthetizeButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineSynthetize ), NULL, this );
474  m_bpButtonSynthetize->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineSynthetize ), NULL, this );
475  m_buttonTransLineReset->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTransLineResetButtonClick ), NULL, this );
476 
477 }
virtual void OnTranslineTanD_Button(wxCommandEvent &event)
virtual void OnTranslineRho_Button(wxCommandEvent &event)
virtual void OnTranslineEpsilonR_Button(wxCommandEvent &event)
wxRadioBox * m_TranslineSelection
wxBitmapButton * m_bpButtonAnalyze
virtual void OnTranslineAnalyse(wxCommandEvent &event)
wxBitmapButton * m_bpButtonSynthetize
virtual void OnTranslineSynthetize(wxCommandEvent &event)
virtual void OnTransLineResetButtonClick(wxCommandEvent &event)
virtual void OnTranslineSelection(wxCommandEvent &event)

References m_AnalyseButton, m_bpButtonAnalyze, m_bpButtonSynthetize, m_button_EpsilonR, m_button_Rho, m_button_TanD, m_buttonTransLineReset, m_SynthetizeButton, m_TranslineSelection, OnTranslineAnalyse(), OnTranslineEpsilonR_Button(), OnTransLineResetButtonClick(), OnTranslineRho_Button(), OnTranslineSelection(), OnTranslineSynthetize(), and OnTranslineTanD_Button().

Member Function Documentation

◆ LoadSettings()

virtual void CALCULATOR_PANEL::LoadSettings ( PCB_CALCULATOR_SETTINGS aCfg)
pure virtualinherited

Load the settings into the panel.

Parameters
aCfgis the settings structure to load from

Implemented in PANEL_REGULATOR, PANEL_ATTENUATORS, PANEL_COLOR_CODE, PANEL_TRANSLINE, PANEL_BOARD_CLASS, PANEL_ELECTRICAL_SPACING, PANEL_E_SERIE, PANEL_TRACK_WIDTH, and PANEL_VIA_SIZE.

◆ OnTranslineAnalyse()

virtual void PANEL_TRANSLINE_BASE::OnTranslineAnalyse ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in PANEL_TRANSLINE.

Definition at line 130 of file panel_transline_base.h.

130 { event.Skip(); }

Referenced by PANEL_TRANSLINE_BASE(), and ~PANEL_TRANSLINE_BASE().

◆ OnTranslineEpsilonR_Button()

virtual void PANEL_TRANSLINE_BASE::OnTranslineEpsilonR_Button ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in PANEL_TRANSLINE.

Definition at line 127 of file panel_transline_base.h.

127 { event.Skip(); }

Referenced by PANEL_TRANSLINE_BASE(), and ~PANEL_TRANSLINE_BASE().

◆ OnTransLineResetButtonClick()

virtual void PANEL_TRANSLINE_BASE::OnTransLineResetButtonClick ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in PANEL_TRANSLINE.

Definition at line 132 of file panel_transline_base.h.

132 { event.Skip(); }

Referenced by PANEL_TRANSLINE_BASE(), and ~PANEL_TRANSLINE_BASE().

◆ OnTranslineRho_Button()

virtual void PANEL_TRANSLINE_BASE::OnTranslineRho_Button ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in PANEL_TRANSLINE.

Definition at line 129 of file panel_transline_base.h.

129 { event.Skip(); }

Referenced by PANEL_TRANSLINE_BASE(), and ~PANEL_TRANSLINE_BASE().

◆ OnTranslineSelection()

virtual void PANEL_TRANSLINE_BASE::OnTranslineSelection ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in PANEL_TRANSLINE.

Definition at line 126 of file panel_transline_base.h.

126 { event.Skip(); }

Referenced by PANEL_TRANSLINE_BASE(), and ~PANEL_TRANSLINE_BASE().

◆ OnTranslineSynthetize()

virtual void PANEL_TRANSLINE_BASE::OnTranslineSynthetize ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in PANEL_TRANSLINE.

Definition at line 131 of file panel_transline_base.h.

131 { event.Skip(); }

Referenced by PANEL_TRANSLINE_BASE(), and ~PANEL_TRANSLINE_BASE().

◆ OnTranslineTanD_Button()

virtual void PANEL_TRANSLINE_BASE::OnTranslineTanD_Button ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in PANEL_TRANSLINE.

Definition at line 128 of file panel_transline_base.h.

128 { event.Skip(); }

Referenced by PANEL_TRANSLINE_BASE(), and ~PANEL_TRANSLINE_BASE().

◆ SaveSettings()

virtual void CALCULATOR_PANEL::SaveSettings ( PCB_CALCULATOR_SETTINGS aCfg)
pure virtualinherited

Save the settings from the panel.

Parameters
aCfgis the settings structure to save to

Implemented in PANEL_REGULATOR, PANEL_ATTENUATORS, PANEL_COLOR_CODE, PANEL_TRANSLINE, PANEL_BOARD_CLASS, PANEL_ELECTRICAL_SPACING, PANEL_E_SERIE, PANEL_TRACK_WIDTH, and PANEL_VIA_SIZE.

◆ ThemeChanged()

virtual void CALCULATOR_PANEL::ThemeChanged ( )
pure virtualinherited

Update UI elements of the panel when the theme changes to ensure the images and fonts/colors are appropriate for the new theme.

Implemented in PANEL_REGULATOR, PANEL_ATTENUATORS, PANEL_COLOR_CODE, PANEL_TRANSLINE, PANEL_BOARD_CLASS, PANEL_ELECTRICAL_SPACING, PANEL_E_SERIE, PANEL_TRACK_WIDTH, and PANEL_VIA_SIZE.

Member Data Documentation

◆ m_AnalyseButton

wxButton* PANEL_TRANSLINE_BASE::m_AnalyseButton
protected

Definition at line 95 of file panel_transline_base.h.

Referenced by PANEL_TRANSLINE_BASE(), and ~PANEL_TRANSLINE_BASE().

◆ m_bmCMicrostripZoddZeven

wxStaticBitmap* PANEL_TRANSLINE_BASE::m_bmCMicrostripZoddZeven
protected

◆ m_bpButtonAnalyze

wxBitmapButton* PANEL_TRANSLINE_BASE::m_bpButtonAnalyze
protected

◆ m_bpButtonSynthetize

wxBitmapButton* PANEL_TRANSLINE_BASE::m_bpButtonSynthetize
protected

◆ m_button_EpsilonR

wxButton* PANEL_TRANSLINE_BASE::m_button_EpsilonR
protected

Definition at line 54 of file panel_transline_base.h.

Referenced by PANEL_TRANSLINE_BASE(), and ~PANEL_TRANSLINE_BASE().

◆ m_button_Rho

wxButton* PANEL_TRANSLINE_BASE::m_button_Rho
protected

Definition at line 60 of file panel_transline_base.h.

Referenced by PANEL_TRANSLINE_BASE(), and ~PANEL_TRANSLINE_BASE().

◆ m_button_TanD

wxButton* PANEL_TRANSLINE_BASE::m_button_TanD
protected

Definition at line 57 of file panel_transline_base.h.

Referenced by PANEL_TRANSLINE_BASE(), and ~PANEL_TRANSLINE_BASE().

◆ m_buttonTransLineReset

wxButton* PANEL_TRANSLINE_BASE::m_buttonTransLineReset
protected

Definition at line 123 of file panel_transline_base.h.

Referenced by PANEL_TRANSLINE_BASE(), and ~PANEL_TRANSLINE_BASE().

◆ m_choiceUnit_ElecPrm1

UNIT_SELECTOR_RESISTOR* PANEL_TRANSLINE_BASE::m_choiceUnit_ElecPrm1
protected

◆ m_choiceUnit_ElecPrm2

UNIT_SELECTOR_RESISTOR* PANEL_TRANSLINE_BASE::m_choiceUnit_ElecPrm2
protected

◆ m_choiceUnit_ElecPrm3

UNIT_SELECTOR_ANGLE* PANEL_TRANSLINE_BASE::m_choiceUnit_ElecPrm3
protected

◆ m_choiceUnit_Frequency

UNIT_SELECTOR_FREQUENCY* PANEL_TRANSLINE_BASE::m_choiceUnit_Frequency
protected

◆ m_choiceUnit_Param1

UNIT_SELECTOR_LEN* PANEL_TRANSLINE_BASE::m_choiceUnit_Param1
protected

◆ m_choiceUnit_Param2

UNIT_SELECTOR_LEN* PANEL_TRANSLINE_BASE::m_choiceUnit_Param2
protected

◆ m_choiceUnit_Param3

UNIT_SELECTOR_LEN* PANEL_TRANSLINE_BASE::m_choiceUnit_Param3
protected

◆ m_elec_prm1_label

wxStaticText* PANEL_TRANSLINE_BASE::m_elec_prm1_label
protected

◆ m_Elec_prm1_Value

wxTextCtrl* PANEL_TRANSLINE_BASE::m_Elec_prm1_Value
protected

◆ m_elec_prm2_label

wxStaticText* PANEL_TRANSLINE_BASE::m_elec_prm2_label
protected

◆ m_Elec_prm2_Value

wxTextCtrl* PANEL_TRANSLINE_BASE::m_Elec_prm2_Value
protected

◆ m_elec_prm3_label

wxStaticText* PANEL_TRANSLINE_BASE::m_elec_prm3_label
protected

◆ m_Elec_prm3_Value

wxTextCtrl* PANEL_TRANSLINE_BASE::m_Elec_prm3_Value
protected

◆ m_EpsilonR_label

wxStaticText* PANEL_TRANSLINE_BASE::m_EpsilonR_label
protected

◆ m_Frequency_label

wxStaticText* PANEL_TRANSLINE_BASE::m_Frequency_label
protected

◆ m_left_message1

wxStaticText* PANEL_TRANSLINE_BASE::m_left_message1
protected

◆ m_left_message2

wxStaticText* PANEL_TRANSLINE_BASE::m_left_message2
protected

◆ m_left_message3

wxStaticText* PANEL_TRANSLINE_BASE::m_left_message3
protected

◆ m_left_message4

wxStaticText* PANEL_TRANSLINE_BASE::m_left_message4
protected

◆ m_left_message5

wxStaticText* PANEL_TRANSLINE_BASE::m_left_message5
protected

◆ m_left_message6

wxStaticText* PANEL_TRANSLINE_BASE::m_left_message6
protected

◆ m_left_message7

wxStaticText* PANEL_TRANSLINE_BASE::m_left_message7
protected

◆ m_left_message8

wxStaticText* PANEL_TRANSLINE_BASE::m_left_message8
protected

◆ m_Message1

wxStaticText* PANEL_TRANSLINE_BASE::m_Message1
protected

◆ m_Message2

wxStaticText* PANEL_TRANSLINE_BASE::m_Message2
protected

◆ m_Message3

wxStaticText* PANEL_TRANSLINE_BASE::m_Message3
protected

◆ m_Message4

wxStaticText* PANEL_TRANSLINE_BASE::m_Message4
protected

◆ m_Message5

wxStaticText* PANEL_TRANSLINE_BASE::m_Message5
protected

◆ m_Message6

wxStaticText* PANEL_TRANSLINE_BASE::m_Message6
protected

◆ m_Message7

wxStaticText* PANEL_TRANSLINE_BASE::m_Message7
protected

◆ m_Message8

wxStaticText* PANEL_TRANSLINE_BASE::m_Message8
protected

◆ m_phys_prm1_label

wxStaticText* PANEL_TRANSLINE_BASE::m_phys_prm1_label
protected

◆ m_Phys_prm1_Value

wxTextCtrl* PANEL_TRANSLINE_BASE::m_Phys_prm1_Value
protected

◆ m_phys_prm2_label

wxStaticText* PANEL_TRANSLINE_BASE::m_phys_prm2_label
protected

◆ m_Phys_prm2_Value

wxTextCtrl* PANEL_TRANSLINE_BASE::m_Phys_prm2_Value
protected

◆ m_phys_prm3_label

wxStaticText* PANEL_TRANSLINE_BASE::m_phys_prm3_label
protected

◆ m_Phys_prm3_Value

wxTextCtrl* PANEL_TRANSLINE_BASE::m_Phys_prm3_Value
protected

◆ m_radioBtnPrm1

wxRadioButton* PANEL_TRANSLINE_BASE::m_radioBtnPrm1
protected

◆ m_radioBtnPrm2

wxRadioButton* PANEL_TRANSLINE_BASE::m_radioBtnPrm2
protected

◆ m_Rho_label

wxStaticText* PANEL_TRANSLINE_BASE::m_Rho_label
protected

◆ m_SubsPrm4_choiceUnit

UNIT_SELECTOR_LEN* PANEL_TRANSLINE_BASE::m_SubsPrm4_choiceUnit
protected

◆ m_SubsPrm5_choiceUnit

UNIT_SELECTOR_LEN* PANEL_TRANSLINE_BASE::m_SubsPrm5_choiceUnit
protected

◆ m_SubsPrm6_choiceUnit

UNIT_SELECTOR_LEN* PANEL_TRANSLINE_BASE::m_SubsPrm6_choiceUnit
protected

◆ m_SubsPrm7_choiceUnit

UNIT_SELECTOR_LEN* PANEL_TRANSLINE_BASE::m_SubsPrm7_choiceUnit
protected

◆ m_SubsPrm8_choiceUnit

UNIT_SELECTOR_LEN* PANEL_TRANSLINE_BASE::m_SubsPrm8_choiceUnit
protected

◆ m_SubsPrm9_choiceUnit

UNIT_SELECTOR_LEN* PANEL_TRANSLINE_BASE::m_SubsPrm9_choiceUnit
protected

◆ m_substrate_prm4_label

wxStaticText* PANEL_TRANSLINE_BASE::m_substrate_prm4_label
protected

◆ m_Substrate_prm4_Value

wxTextCtrl* PANEL_TRANSLINE_BASE::m_Substrate_prm4_Value
protected

◆ m_substrate_prm5_label

wxStaticText* PANEL_TRANSLINE_BASE::m_substrate_prm5_label
protected

◆ m_Substrate_prm5_Value

wxTextCtrl* PANEL_TRANSLINE_BASE::m_Substrate_prm5_Value
protected

◆ m_substrate_prm6_label

wxStaticText* PANEL_TRANSLINE_BASE::m_substrate_prm6_label
protected

◆ m_Substrate_prm6_Value

wxTextCtrl* PANEL_TRANSLINE_BASE::m_Substrate_prm6_Value
protected

◆ m_substrate_prm7_label

wxStaticText* PANEL_TRANSLINE_BASE::m_substrate_prm7_label
protected

◆ m_Substrate_prm7_Value

wxTextCtrl* PANEL_TRANSLINE_BASE::m_Substrate_prm7_Value
protected

◆ m_substrate_prm8_label

wxStaticText* PANEL_TRANSLINE_BASE::m_substrate_prm8_label
protected

◆ m_Substrate_prm8_Value

wxTextCtrl* PANEL_TRANSLINE_BASE::m_Substrate_prm8_Value
protected

◆ m_substrate_prm9_label

wxStaticText* PANEL_TRANSLINE_BASE::m_substrate_prm9_label
protected

◆ m_Substrate_prm9_Value

wxTextCtrl* PANEL_TRANSLINE_BASE::m_Substrate_prm9_Value
protected

◆ m_SynthetizeButton

wxButton* PANEL_TRANSLINE_BASE::m_SynthetizeButton
protected

Definition at line 96 of file panel_transline_base.h.

Referenced by PANEL_TRANSLINE_BASE(), and ~PANEL_TRANSLINE_BASE().

◆ m_TanD_label

wxStaticText* PANEL_TRANSLINE_BASE::m_TanD_label
protected

◆ m_translineBitmap

wxStaticBitmap* PANEL_TRANSLINE_BASE::m_translineBitmap
protected

◆ m_TranslineSelection

wxRadioBox* PANEL_TRANSLINE_BASE::m_TranslineSelection
protected

◆ m_Value_EpsilonR

wxTextCtrl* PANEL_TRANSLINE_BASE::m_Value_EpsilonR
protected

◆ m_Value_Frequency_Ctrl

wxTextCtrl* PANEL_TRANSLINE_BASE::m_Value_Frequency_Ctrl
protected

◆ m_Value_Rho

wxTextCtrl* PANEL_TRANSLINE_BASE::m_Value_Rho
protected

◆ m_Value_TanD

wxTextCtrl* PANEL_TRANSLINE_BASE::m_Value_TanD
protected

The documentation for this class was generated from the following files: