KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_get_footprint_by_name_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_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_sdbSizer = new wxStdDialogButtonSizer();
55 m_sdbSizerOK = new wxButton( this, wxID_OK );
56 m_sdbSizer->AddButton( m_sdbSizerOK );
57 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
58 m_sdbSizer->AddButton( m_sdbSizerCancel );
59 m_sdbSizer->Realize();
60
61 bSizerMain->Add( m_sdbSizer, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxTOP, 5 );
62
63
64 this->SetSizer( bSizerMain );
65 this->Layout();
66 bSizerMain->Fit( this );
67
68 this->Centre( wxBOTH );
69
70 // Connect Events
71 this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_GET_FOOTPRINT_BY_NAME_BASE::onClose ) );
72 m_choiceFpList->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_GET_FOOTPRINT_BY_NAME_BASE::OnSelectFootprint ), NULL, this );
73}
74
76{
77 // Disconnect Events
78 this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_GET_FOOTPRINT_BY_NAME_BASE::onClose ) );
79 m_choiceFpList->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_GET_FOOTPRINT_BY_NAME_BASE::OnSelectFootprint ), NULL, this );
80
81}
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:84
#define _(s)