KiCad PCB EDA Suite
dialog_get_footprint_by_name_base.cpp
Go to the documentation of this file.
1
2// 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
12DIALOG_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 wxGridBagSizer* gbSizer1;
23 gbSizer1 = new wxGridBagSizer( 0, 0 );
24 gbSizer1->SetFlexibleDirection( wxBOTH );
25 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
26 gbSizer1->SetEmptyCellSize( wxSize( -1,12 ) );
27
28 m_staticTextRef = new wxStaticText( this, wxID_ANY, _("Reference designator:"), wxDefaultPosition, wxDefaultSize, 0 );
29 m_staticTextRef->Wrap( -1 );
30 gbSizer1->Add( m_staticTextRef, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
31
32 m_SearchTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 200,-1 ), 0 );
33 gbSizer1->Add( m_SearchTextCtrl, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxEXPAND|wxTOP|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
34
35 m_multipleHint = new wxStaticText( this, wxID_ANY, _("(specify multiple items separated by spaces for successive placement)"), wxDefaultPosition, wxDefaultSize, 0 );
36 m_multipleHint->Wrap( -1 );
37 gbSizer1->Add( m_multipleHint, wxGBPosition( 1, 0 ), wxGBSpan( 1, 2 ), wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
38
39 m_staticTextRef1 = new wxStaticText( this, wxID_ANY, _("Available footprints:"), wxDefaultPosition, wxDefaultSize, 0 );
40 m_staticTextRef1->Wrap( -1 );
41 gbSizer1->Add( m_staticTextRef1, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
42
43 wxArrayString m_choiceFpListChoices;
44 m_choiceFpList = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceFpListChoices, 0 );
45 m_choiceFpList->SetSelection( 0 );
46 gbSizer1->Add( m_choiceFpList, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
47
48
49 bSizerUpper->Add( gbSizer1, 1, wxEXPAND|wxALL, 5 );
50
51
52 bSizerMain->Add( bSizerUpper, 1, wxEXPAND, 5 );
53
54 m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
55 bSizerMain->Add( m_staticline1, 0, wxALL|wxEXPAND, 5 );
56
57 m_sdbSizer = new wxStdDialogButtonSizer();
58 m_sdbSizerOK = new wxButton( this, wxID_OK );
59 m_sdbSizer->AddButton( m_sdbSizerOK );
60 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
61 m_sdbSizer->AddButton( m_sdbSizerCancel );
62 m_sdbSizer->Realize();
63
64 bSizerMain->Add( m_sdbSizer, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
65
66
67 this->SetSizer( bSizerMain );
68 this->Layout();
69 bSizerMain->Fit( this );
70
71 this->Centre( wxBOTH );
72
73 // Connect Events
74 this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_GET_FOOTPRINT_BY_NAME_BASE::onClose ) );
75 m_choiceFpList->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_GET_FOOTPRINT_BY_NAME_BASE::OnSelectFootprint ), NULL, this );
76}
77
79{
80 // Disconnect Events
81 this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_GET_FOOTPRINT_BY_NAME_BASE::onClose ) );
82 m_choiceFpList->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_GET_FOOTPRINT_BY_NAME_BASE::OnSelectFootprint ), NULL, this );
83
84}
DIALOG_GET_FOOTPRINT_BY_NAME_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Get and Move Footprint"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnSelectFootprint(wxCommandEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:83
#define _(s)