12EDA_LIST_DIALOG_BASE::EDA_LIST_DIALOG_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( wxSize( -1,-1 ), wxDefaultSize );
16 wxBoxSizer* bSizerMain;
17 bSizerMain =
new wxBoxSizer( wxVERTICAL );
20 bMargins =
new wxBoxSizer( wxVERTICAL );
22 m_listLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Items:"), wxDefaultPosition, wxDefaultSize, 0 );
26 m_listBox =
new wxListCtrl(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_HRULES|wxLC_REPORT|wxLC_SINGLE_SEL|wxLC_VRULES|wxBORDER_SIMPLE|wxVSCROLL );
27 m_listBox->SetMinSize( wxSize( 280,150 ) );
29 bMargins->Add(
m_listBox, 3, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
31 m_filterBox =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
32 bMargins->Add(
m_filterBox, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
35 bSizerMain->Add( bMargins, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
52 this->SetSizer( bSizerMain );
54 bSizerMain->Fit(
this );
56 this->Centre( wxBOTH );
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
wxBoxSizer * m_ButtonsSizer
virtual void onListItemActivated(wxListEvent &event)=0
wxStaticText * m_listLabel
virtual void textChangeInFilterBox(wxCommandEvent &event)=0
EDA_LIST_DIALOG_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxButton * m_sdbSizerCancel
virtual void onSize(wxSizeEvent &event)=0
wxStdDialogButtonSizer * m_sdbSizer