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 )
14 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
16 wxBoxSizer* bSizerMain;
17 bSizerMain =
new wxBoxSizer( wxVERTICAL );
19 wxBoxSizer* bSizerUpper;
20 bSizerUpper =
new wxBoxSizer( wxHORIZONTAL );
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 ) );
28 m_staticTextRef =
new wxStaticText(
this, wxID_ANY,
_(
"Reference designator:"), wxDefaultPosition, wxDefaultSize, 0 );
30 gbSizer1->Add(
m_staticTextRef, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
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 );
35 m_multipleHint =
new wxStaticText(
this, wxID_ANY,
_(
"(specify multiple items separated by spaces for successive placement)"), wxDefaultPosition, wxDefaultSize, 0 );
37 gbSizer1->Add(
m_multipleHint, wxGBPosition( 1, 0 ), wxGBSpan( 1, 2 ), wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
39 m_staticTextRef1 =
new wxStaticText(
this, wxID_ANY,
_(
"Available footprints:"), wxDefaultPosition, wxDefaultSize, 0 );
41 gbSizer1->Add(
m_staticTextRef1, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
43 wxArrayString m_choiceFpListChoices;
44 m_choiceFpList =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceFpListChoices, 0 );
46 gbSizer1->Add(
m_choiceFpList, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
49 bSizerUpper->Add( gbSizer1, 1, wxEXPAND|wxALL, 5 );
52 bSizerMain->Add( bSizerUpper, 1, wxEXPAND, 5 );
61 bSizerMain->Add(
m_sdbSizer, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxTOP, 5 );
64 this->SetSizer( bSizerMain );
66 bSizerMain->Fit(
this );
68 this->Centre( wxBOTH );
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...