12DIALOG_DIELECTRIC_MATERIAL_BASE::DIALOG_DIELECTRIC_MATERIAL_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
14 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
16 wxBoxSizer* bSizerMain;
17 bSizerMain =
new wxBoxSizer( wxVERTICAL );
19 wxBoxSizer* bSizerUpper;
20 bSizerUpper =
new wxBoxSizer( wxVERTICAL );
22 wxBoxSizer* bSizerNewItem;
23 bSizerNewItem =
new wxBoxSizer( wxHORIZONTAL );
25 wxFlexGridSizer* fgSizerNewDielectric;
26 fgSizerNewDielectric =
new wxFlexGridSizer( 2, 3, 0, 5 );
27 fgSizerNewDielectric->AddGrowableCol( 0 );
28 fgSizerNewDielectric->SetFlexibleDirection( wxBOTH );
29 fgSizerNewDielectric->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
31 m_staticTexMaterial =
new wxStaticText(
this, wxID_ANY,
_(
"Name:"), wxDefaultPosition, wxDefaultSize, 0 );
35 m_staticTextEpsilonR =
new wxStaticText(
this, wxID_ANY,
_(
"Epsilon R:"), wxDefaultPosition, wxDefaultSize, 0 );
39 m_staticTextLossTg =
new wxStaticText(
this, wxID_ANY,
_(
"Loss Tan:"), wxDefaultPosition, wxDefaultSize, 0 );
43 m_tcMaterial =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
46 fgSizerNewDielectric->Add(
m_tcMaterial, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
48 m_tcEpsilonR =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
49 fgSizerNewDielectric->Add(
m_tcEpsilonR, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
51 m_tcLossTg =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
52 fgSizerNewDielectric->Add(
m_tcLossTg, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
55 bSizerNewItem->Add( fgSizerNewDielectric, 1, 0, 5 );
58 bSizerUpper->Add( bSizerNewItem, 0, wxEXPAND, 5 );
60 m_staticText =
new wxStaticText(
this, wxID_ANY,
_(
"Common materials:"), wxDefaultPosition, wxDefaultSize, 0 );
62 bSizerUpper->Add(
m_staticText, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
64 m_lcMaterials =
new wxListCtrl(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL );
68 bSizerMain->Add( bSizerUpper, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 10 );
77 bSizerMain->Add(
m_sdbSizer, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
80 this->SetSizer( bSizerMain );
82 bSizerMain->Fit(
this );
84 this->Centre( wxBOTH );
wxTextCtrl * m_tcEpsilonR
wxStaticText * m_staticText
~DIALOG_DIELECTRIC_MATERIAL_BASE()
DIALOG_DIELECTRIC_MATERIAL_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Dielectric Material Characteristics"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxTextCtrl * m_tcMaterial
wxStdDialogButtonSizer * m_sdbSizer
virtual void onListKeyDown(wxListEvent &event)
wxStaticText * m_staticTexMaterial
wxButton * m_sdbSizerCancel
wxStaticText * m_staticTextLossTg
wxStaticText * m_staticTextEpsilonR
wxListCtrl * m_lcMaterials
virtual void onListItemSelected(wxListEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...