KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_dielectric_list_manager_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.0.0-0-g0efcecf-dirty)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
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 )
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 Tan:"), 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, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 10 );
69
70 m_sdbSizer = new wxStdDialogButtonSizer();
71 m_sdbSizerOK = new wxButton( this, wxID_OK );
72 m_sdbSizer->AddButton( m_sdbSizerOK );
73 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
74 m_sdbSizer->AddButton( m_sdbSizerCancel );
75 m_sdbSizer->Realize();
76
77 bSizerMain->Add( m_sdbSizer, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
78
79
80 this->SetSizer( bSizerMain );
81 this->Layout();
82 bSizerMain->Fit( this );
83
84 this->Centre( wxBOTH );
85
86 // Connect Events
87 m_lcMaterials->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( DIALOG_DIELECTRIC_MATERIAL_BASE::onListItemSelected ), NULL, this );
88 m_lcMaterials->Connect( wxEVT_COMMAND_LIST_KEY_DOWN, wxListEventHandler( DIALOG_DIELECTRIC_MATERIAL_BASE::onListKeyDown ), NULL, this );
89}
90
92{
93 // Disconnect Events
94 m_lcMaterials->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( DIALOG_DIELECTRIC_MATERIAL_BASE::onListItemSelected ), NULL, this );
95 m_lcMaterials->Disconnect( wxEVT_COMMAND_LIST_KEY_DOWN, wxListEventHandler( DIALOG_DIELECTRIC_MATERIAL_BASE::onListKeyDown ), NULL, this );
96
97}
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)
virtual void onListKeyDown(wxListEvent &event)
virtual void onListItemSelected(wxListEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
#define _(s)