KiCad PCB EDA Suite
dialog_global_lib_table_config_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Jan 5 2019)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 DIALOG_GLOBAL_LIB_TABLE_CONFIG_BASE::DIALOG_GLOBAL_LIB_TABLE_CONFIG_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* bSizer1;
17  bSizer1 = new wxBoxSizer( wxHORIZONTAL );
18 
19  bSizer2 = new wxBoxSizer( wxVERTICAL );
20 
21  m_staticText1 = new wxStaticText( this, wxID_ANY, _("Temp"), wxDefaultPosition, wxDefaultSize, 0 );
22  m_staticText1->Wrap( 500 );
23  bSizer2->Add( m_staticText1, 0, wxALL, 5 );
24 
25 
26  bSizer2->Add( 0, 0, 0, wxALL|wxEXPAND, 5 );
27 
28  m_defaultRb = new wxRadioButton( this, wxID_ANY, _("temp1"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
29  m_defaultRb->SetValue( true );
30  m_defaultRb->SetToolTip( _("Temp") );
31 
32  bSizer2->Add( m_defaultRb, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
33 
34  m_customRb = new wxRadioButton( this, wxID_ANY, _("temp2"), wxDefaultPosition, wxDefaultSize, 0 );
35  m_customRb->SetToolTip( _("Temp") );
36 
37  bSizer2->Add( m_customRb, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
38 
39  m_emptyRb = new wxRadioButton( this, wxID_ANY, _("temp3"), wxDefaultPosition, wxDefaultSize, 0 );
40  m_emptyRb->SetToolTip( _("Temp") );
41 
42  bSizer2->Add( m_emptyRb, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
43 
44 
45  bSizer2->Add( 0, 0, 0, wxALL|wxEXPAND, 5 );
46 
47  m_staticText2 = new wxStaticText( this, wxID_ANY, _("temp"), wxDefaultPosition, wxDefaultSize, 0 );
48  m_staticText2->Wrap( -1 );
49  bSizer2->Add( m_staticText2, 0, wxALL, 5 );
50 
51  m_filePicker1 = new wxFilePickerCtrl( this, wxID_ANY, wxEmptyString, _("Select a file"), wxEmptyString, wxDefaultPosition, wxDefaultSize, wxFLP_DEFAULT_STYLE|wxFLP_FILE_MUST_EXIST|wxFLP_OPEN );
52  m_filePicker1->Enable( false );
53 
54  bSizer2->Add( m_filePicker1, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
55 
56  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
57  bSizer2->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
58 
59  m_sdbSizer1 = new wxStdDialogButtonSizer();
60  m_sdbSizer1OK = new wxButton( this, wxID_OK );
61  m_sdbSizer1->AddButton( m_sdbSizer1OK );
62  m_sdbSizer1->Realize();
63 
64  bSizer2->Add( m_sdbSizer1, 1, wxEXPAND, 5 );
65 
66 
67  bSizer1->Add( bSizer2, 1, wxALL|wxEXPAND, 5 );
68 
69 
70  this->SetSizer( bSizer1 );
71  this->Layout();
72  bSizer1->Fit( this );
73 
74  this->Centre( wxBOTH );
75 
76  // Connect Events
77  m_defaultRb->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_GLOBAL_LIB_TABLE_CONFIG_BASE::onUpdateDefaultSelection ), NULL, this );
78  m_filePicker1->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_GLOBAL_LIB_TABLE_CONFIG_BASE::onUpdateFilePicker ), NULL, this );
79 }
80 
82 {
83  // Disconnect Events
84  m_defaultRb->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_GLOBAL_LIB_TABLE_CONFIG_BASE::onUpdateDefaultSelection ), NULL, this );
85  m_filePicker1->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_GLOBAL_LIB_TABLE_CONFIG_BASE::onUpdateFilePicker ), NULL, this );
86 
87 }
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:84
virtual void onUpdateDefaultSelection(wxUpdateUIEvent &event)
DIALOG_GLOBAL_LIB_TABLE_CONFIG_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Configure Global Library Table"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER)
#define NULL
#define _(s)
Definition: 3d_actions.cpp:33
virtual void onUpdateFilePicker(wxUpdateUIEvent &event)