KiCad PCB EDA Suite
dialog_dielectric_list_manager_base.cpp
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 
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  wxBoxSizer* bSizerNewItem;
23  bSizerNewItem = new wxBoxSizer( wxHORIZONTAL );
24 
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 );
30 
31  m_staticTexMaterial = new wxStaticText( this, wxID_ANY, _("Name:"), wxDefaultPosition, wxDefaultSize, 0 );
32  m_staticTexMaterial->Wrap( -1 );
33  fgSizerNewDielectric->Add( m_staticTexMaterial, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
34 
35  m_staticTextEpsilonR = new wxStaticText( this, wxID_ANY, _("Epsilon R:"), wxDefaultPosition, wxDefaultSize, 0 );
36  m_staticTextEpsilonR->Wrap( -1 );
37  fgSizerNewDielectric->Add( m_staticTextEpsilonR, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
38 
39  m_staticTextLossTg = new wxStaticText( this, wxID_ANY, _("Loss Tg:"), wxDefaultPosition, wxDefaultSize, 0 );
40  m_staticTextLossTg->Wrap( -1 );
41  fgSizerNewDielectric->Add( m_staticTextLossTg, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
42 
43  m_tcMaterial = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
44  m_tcMaterial->SetMinSize( wxSize( 150,-1 ) );
45 
46  fgSizerNewDielectric->Add( m_tcMaterial, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
47 
48  m_tcEpsilonR = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
49  fgSizerNewDielectric->Add( m_tcEpsilonR, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
50 
51  m_tcLossTg = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
52  fgSizerNewDielectric->Add( m_tcLossTg, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
53 
54 
55  bSizerNewItem->Add( fgSizerNewDielectric, 1, 0, 5 );
56 
57 
58  bSizerUpper->Add( bSizerNewItem, 0, wxEXPAND, 5 );
59 
60  m_staticText = new wxStaticText( this, wxID_ANY, _("Common materials:"), wxDefaultPosition, wxDefaultSize, 0 );
61  m_staticText->Wrap( -1 );
62  bSizerUpper->Add( m_staticText, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
63 
64  m_lcMaterials = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL );
65  bSizerUpper->Add( m_lcMaterials, 1, wxALL|wxEXPAND, 5 );
66 
67 
68  bSizerMain->Add( bSizerUpper, 1, wxEXPAND|wxRIGHT|wxLEFT, 10 );
69 
70  m_staticline = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
71  bSizerMain->Add( m_staticline, 0, wxEXPAND | wxALL, 5 );
72 
73  wxBoxSizer* bSizerBottom;
74  bSizerBottom = new wxBoxSizer( wxHORIZONTAL );
75 
76 
77  bSizerBottom->Add( 0, 0, 1, wxEXPAND, 5 );
78 
79  m_sdbSizer = new wxStdDialogButtonSizer();
80  m_sdbSizerOK = new wxButton( this, wxID_OK );
81  m_sdbSizer->AddButton( m_sdbSizerOK );
82  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
83  m_sdbSizer->AddButton( m_sdbSizerCancel );
84  m_sdbSizer->Realize();
85 
86  bSizerBottom->Add( m_sdbSizer, 0, wxALL, 5 );
87 
88 
89  bSizerMain->Add( bSizerBottom, 0, wxEXPAND, 5 );
90 
91 
92  this->SetSizer( bSizerMain );
93  this->Layout();
94  bSizerMain->Fit( this );
95 
96  this->Centre( wxBOTH );
97 
98  // Connect Events
99  m_lcMaterials->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( DIALOG_DIELECTRIC_MATERIAL_BASE::onListItemSelected ), NULL, this );
100 }
101 
103 {
104  // Disconnect Events
105  m_lcMaterials->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( DIALOG_DIELECTRIC_MATERIAL_BASE::onListItemSelected ), NULL, this );
106 
107 }
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:82
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)
#define _(s)
virtual void onListItemSelected(wxListEvent &event)