KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_global_lib_table_config_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12DIALOG_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, _("dummy"), 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, _("dummy"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
29 m_defaultRb->SetValue( true );
30 m_defaultRb->SetToolTip( _("dummy") );
31
32 bSizer2->Add( m_defaultRb, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
33
34 m_customRb = new wxRadioButton( this, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
35 m_customRb->SetToolTip( _("dummy") );
36
37 bSizer2->Add( m_customRb, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
38
39 m_emptyRb = new wxRadioButton( this, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
40 m_emptyRb->SetToolTip( _("dummy") );
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, _("dummy"), 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_sdbSizer1 = new wxStdDialogButtonSizer();
57 m_sdbSizer1OK = new wxButton( this, wxID_OK );
58 m_sdbSizer1->AddButton( m_sdbSizer1OK );
59 m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
60 m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
61 m_sdbSizer1->Realize();
62
63 bSizer2->Add( m_sdbSizer1, 1, wxEXPAND|wxTOP, 5 );
64
65
66 bSizer1->Add( bSizer2, 1, wxALL|wxEXPAND, 5 );
67
68
69 this->SetSizer( bSizer1 );
70 this->Layout();
71 bSizer1->Fit( this );
72
73 this->Centre( wxBOTH );
74
75 // Connect Events
76 m_defaultRb->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_GLOBAL_LIB_TABLE_CONFIG_BASE::onUpdateDefaultSelection ), NULL, this );
77 m_filePicker1->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_GLOBAL_LIB_TABLE_CONFIG_BASE::onUpdateFilePicker ), NULL, this );
78}
79
81{
82 // Disconnect Events
83 m_defaultRb->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_GLOBAL_LIB_TABLE_CONFIG_BASE::onUpdateDefaultSelection ), NULL, this );
84 m_filePicker1->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_GLOBAL_LIB_TABLE_CONFIG_BASE::onUpdateFilePicker ), NULL, this );
85
86}
virtual void onUpdateFilePicker(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|wxCLOSE_BOX|wxRESIZE_BORDER)
virtual void onUpdateDefaultSelection(wxUpdateUIEvent &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)