27 m_materialList( aMaterialList )
45 wxMessageBox(
_(
"Incorrect value for Epsilon R" ) );
51 wxMessageBox(
_(
"Incorrect value for Loss Tangent" ) );
63 dummy.m_EpsilonR = 1.0;
64 dummy.m_LossTangent = 0.0;
118 int idx =
event.GetIndex();
135 int idx =
event.GetIndex();
137 switch( event.GetKeyCode() )
149 m_lcMaterials->SetItemState(
next, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED );
Class DIALOG_DIELECTRIC_MATERIAL_BASE.
wxTextCtrl * m_tcEpsilonR
wxTextCtrl * m_tcMaterial
wxListCtrl * m_lcMaterials
void onListItemSelected(wxListEvent &event) override
void onListKeyDown(wxListEvent &event) override
~DIALOG_DIELECTRIC_MATERIAL()
DIALOG_DIELECTRIC_MATERIAL(wxWindow *aParent, DIELECTRIC_SUBSTRATE_LIST &aMaterialList)
DIELECTRIC_SUBSTRATE GetSelectedSubstrate()
DIELECTRIC_SUBSTRATE_LIST & m_materialList
The list of available materials.
bool TransferDataFromWindow() override
bool TransferDataToWindow() override
void SetupStandardButtons(std::map< int, wxString > aLabels={})
void DeleteSubstrate(int aIdx)
Delete the specified item in the substrate list.
DIELECTRIC_SUBSTRATE * GetSubstrate(int aIdx)
std::vector< FAB_LAYER_COLOR > dummy
wxString FormatLossTangent()
wxString FormatEpsilonR()