KiCad PCB EDA Suite
dialog_dielectric_list_manager_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version v3.8.0)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 DIALOG_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 )
13 {
14  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
15 
16  wxBoxSizer* bSizerMain;
17  bSizerMain = new wxBoxSizer( wxVERTICAL );
18 
19  wxBoxSizer* bSizerUpper;
20  bSizerUpper = new wxBoxSizer( wxVERTICAL );
21 
22  m_staticTextNewDielectric = new wxStaticText( this, wxID_ANY, _("Dielectric material characteristics:"), wxDefaultPosition, wxDefaultSize, 0 );
23  m_staticTextNewDielectric->Wrap( -1 );
24  bSizerUpper->Add( m_staticTextNewDielectric, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
25 
26  wxBoxSizer* bSizerNewItem;
27  bSizerNewItem = new wxBoxSizer( wxHORIZONTAL );
28 
29  wxFlexGridSizer* fgSizerNewDielectric;
30  fgSizerNewDielectric = new wxFlexGridSizer( 2, 3, 0, 0 );
31  fgSizerNewDielectric->AddGrowableCol( 0 );
32  fgSizerNewDielectric->SetFlexibleDirection( wxBOTH );
33  fgSizerNewDielectric->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
34 
35  m_staticTexMaterial = new wxStaticText( this, wxID_ANY, _("Name:"), wxDefaultPosition, wxDefaultSize, 0 );
36  m_staticTexMaterial->Wrap( -1 );
37  fgSizerNewDielectric->Add( m_staticTexMaterial, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
38 
39  m_staticTextEpsilonR = new wxStaticText( this, wxID_ANY, _("Epsilon R:"), wxDefaultPosition, wxDefaultSize, 0 );
40  m_staticTextEpsilonR->Wrap( -1 );
41  fgSizerNewDielectric->Add( m_staticTextEpsilonR, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
42 
43  m_staticTextLossTg = new wxStaticText( this, wxID_ANY, _("Loss Tg:"), wxDefaultPosition, wxDefaultSize, 0 );
44  m_staticTextLossTg->Wrap( -1 );
45  fgSizerNewDielectric->Add( m_staticTextLossTg, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
46 
47  m_tcMaterial = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
48  fgSizerNewDielectric->Add( m_tcMaterial, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
49 
50  m_tcEpsilonR = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
51  fgSizerNewDielectric->Add( m_tcEpsilonR, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
52 
53  m_tcLossTg = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
54  fgSizerNewDielectric->Add( m_tcLossTg, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
55 
56 
57  bSizerNewItem->Add( fgSizerNewDielectric, 1, 0, 5 );
58 
59 
60  bSizerUpper->Add( bSizerNewItem, 0, wxEXPAND, 5 );
61 
62  m_staticText = new wxStaticText( this, wxID_ANY, _("Available materials:"), wxDefaultPosition, wxDefaultSize, 0 );
63  m_staticText->Wrap( -1 );
64  bSizerUpper->Add( m_staticText, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
65 
66  m_lcMaterials = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL );
67  bSizerUpper->Add( m_lcMaterials, 1, wxALL|wxEXPAND, 5 );
68 
69 
70  bSizerMain->Add( bSizerUpper, 1, wxEXPAND, 5 );
71 
72  m_staticline = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
73  bSizerMain->Add( m_staticline, 0, wxEXPAND | wxALL, 5 );
74 
75  wxBoxSizer* bSizerBottom;
76  bSizerBottom = new wxBoxSizer( wxHORIZONTAL );
77 
78 
79  bSizerBottom->Add( 0, 0, 1, wxEXPAND, 5 );
80 
81  m_sdbSizer = new wxStdDialogButtonSizer();
82  m_sdbSizerOK = new wxButton( this, wxID_OK );
83  m_sdbSizer->AddButton( m_sdbSizerOK );
84  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
85  m_sdbSizer->AddButton( m_sdbSizerCancel );
86  m_sdbSizer->Realize();
87 
88  bSizerBottom->Add( m_sdbSizer, 0, wxALL, 5 );
89 
90 
91  bSizerMain->Add( bSizerBottom, 0, wxEXPAND, 5 );
92 
93 
94  this->SetSizer( bSizerMain );
95  this->Layout();
96 
97  this->Centre( wxBOTH );
98 
99  // Connect Events
100  m_lcMaterials->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( DIALOG_DIELECTRIC_MATERIAL_BASE::onListItemSelected ), NULL, this );
101 }
102 
104 {
105  // Disconnect Events
106  m_lcMaterials->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( DIALOG_DIELECTRIC_MATERIAL_BASE::onListItemSelected ), NULL, this );
107 
108 }
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:83
#define NULL
virtual void onListItemSelected(wxListEvent &event)
#define _(s)
Definition: 3d_actions.cpp:33
DIALOG_DIELECTRIC_MATERIAL_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Dielectric Materials"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(581, 353), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)