KiCad PCB EDA Suite
dialog_get_footprint_by_name_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Jun 17 2015)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
9 
11 
12 DIALOG_GET_FOOTPRINT_BY_NAME_BASE::DIALOG_GET_FOOTPRINT_BY_NAME_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( wxHORIZONTAL );
21 
22  wxFlexGridSizer* fgSizer1;
23  fgSizer1 = new wxFlexGridSizer( 0, 2, 0, 0 );
24  fgSizer1->SetFlexibleDirection( wxBOTH );
25  fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
26 
27  m_staticTextRef = new wxStaticText( this, wxID_ANY, _("Reference:"), wxDefaultPosition, wxDefaultSize, 0 );
28  m_staticTextRef->Wrap( -1 );
29  fgSizer1->Add( m_staticTextRef, 0, wxTOP|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
30 
31  m_SearchTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 200,-1 ), 0 );
32  m_SearchTextCtrl->SetMaxLength( 0 );
33  fgSizer1->Add( m_SearchTextCtrl, 0, wxEXPAND|wxALL|wxALIGN_CENTER_VERTICAL, 5 );
34 
35  m_staticTextRef1 = new wxStaticText( this, wxID_ANY, _("Available:"), wxDefaultPosition, wxDefaultSize, 0 );
36  m_staticTextRef1->Wrap( -1 );
37  fgSizer1->Add( m_staticTextRef1, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
38 
39  wxArrayString m_choiceFpListChoices;
40  m_choiceFpList = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceFpListChoices, 0 );
41  m_choiceFpList->SetSelection( 0 );
42  fgSizer1->Add( m_choiceFpList, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
43 
44 
45  bSizerUpper->Add( fgSizer1, 1, wxEXPAND, 5 );
46 
47 
48  bSizerMain->Add( bSizerUpper, 1, wxEXPAND, 5 );
49 
50  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
51  bSizerMain->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
52 
53  m_sdbSizer = new wxStdDialogButtonSizer();
54  m_sdbSizerOK = new wxButton( this, wxID_OK );
55  m_sdbSizer->AddButton( m_sdbSizerOK );
56  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
57  m_sdbSizer->AddButton( m_sdbSizerCancel );
58  m_sdbSizer->Realize();
59 
60  bSizerMain->Add( m_sdbSizer, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
61 
62 
63  this->SetSizer( bSizerMain );
64  this->Layout();
65 
66  this->Centre( wxBOTH );
67 
68  // Connect Events
69  this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_GET_FOOTPRINT_BY_NAME_BASE::onClose ) );
70  m_choiceFpList->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_GET_FOOTPRINT_BY_NAME_BASE::OnSelectFootprint ), NULL, this );
71 }
72 
74 {
75  // Disconnect Events
76  this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_GET_FOOTPRINT_BY_NAME_BASE::onClose ) );
77  m_choiceFpList->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_GET_FOOTPRINT_BY_NAME_BASE::OnSelectFootprint ), NULL, this );
78 
79 }
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60
DIALOG_GET_FOOTPRINT_BY_NAME_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Search for footprint"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(341, 176), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnSelectFootprint(wxCommandEvent &event)