2013-03-19 01:25:19 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2020-07-07 10:17:30 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Oct 26 2018)
|
2013-03-19 01:25:19 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
2017-12-26 14:38:45 +00:00
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
2013-03-19 01:25:19 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2020-07-07 10:17:30 +00:00
|
|
|
#include "eda_list_dialog_base.h"
|
2013-03-19 01:25:19 +00:00
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
EDA_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 )
|
|
|
|
{
|
2018-02-22 00:17:04 +00:00
|
|
|
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
|
2020-07-07 10:17:30 +00:00
|
|
|
|
2013-03-19 01:25:19 +00:00
|
|
|
wxBoxSizer* bSizerMain;
|
|
|
|
bSizerMain = new wxBoxSizer( wxVERTICAL );
|
2020-07-07 10:17:30 +00:00
|
|
|
|
2018-07-24 21:16:59 +00:00
|
|
|
wxBoxSizer* bMargins;
|
|
|
|
bMargins = new wxBoxSizer( wxVERTICAL );
|
2020-07-07 10:17:30 +00:00
|
|
|
|
2018-02-22 00:17:04 +00:00
|
|
|
m_listLabel = new wxStaticText( this, wxID_ANY, _("Items:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_listLabel->Wrap( -1 );
|
2018-07-24 21:16:59 +00:00
|
|
|
bMargins->Add( m_listLabel, 0, wxALL, 5 );
|
2020-07-07 10:17:30 +00:00
|
|
|
|
2021-06-26 23:33:12 +00:00
|
|
|
m_listBox = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_HRULES|wxLC_REPORT|wxLC_SINGLE_SEL|wxLC_VRULES|wxBORDER_SIMPLE|wxVSCROLL );
|
|
|
|
m_listBox->SetMinSize( wxSize( 280,150 ) );
|
2020-07-07 10:17:30 +00:00
|
|
|
|
2018-07-24 21:16:59 +00:00
|
|
|
bMargins->Add( m_listBox, 3, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
|
2020-07-07 10:17:30 +00:00
|
|
|
|
2018-07-24 21:16:59 +00:00
|
|
|
m_filterBox = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bMargins->Add( m_filterBox, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2020-07-07 10:17:30 +00:00
|
|
|
|
|
|
|
|
2021-06-26 23:33:12 +00:00
|
|
|
bSizerMain->Add( bMargins, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
|
2020-07-07 10:17:30 +00:00
|
|
|
|
2013-03-19 01:25:19 +00:00
|
|
|
m_sdbSizer = new wxStdDialogButtonSizer();
|
|
|
|
m_sdbSizerOK = new wxButton( this, wxID_OK );
|
|
|
|
m_sdbSizer->AddButton( m_sdbSizerOK );
|
|
|
|
m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
|
|
|
|
m_sdbSizer->AddButton( m_sdbSizerCancel );
|
|
|
|
m_sdbSizer->Realize();
|
2020-07-07 10:17:30 +00:00
|
|
|
|
2021-06-26 23:33:12 +00:00
|
|
|
bSizerMain->Add( m_sdbSizer, 0, wxEXPAND|wxALL, 5 );
|
2020-07-07 10:17:30 +00:00
|
|
|
|
|
|
|
|
2013-03-19 01:25:19 +00:00
|
|
|
this->SetSizer( bSizerMain );
|
|
|
|
this->Layout();
|
2017-12-26 14:38:45 +00:00
|
|
|
bSizerMain->Fit( this );
|
2020-07-07 10:17:30 +00:00
|
|
|
|
2013-03-19 01:25:19 +00:00
|
|
|
this->Centre( wxBOTH );
|
2020-07-07 10:17:30 +00:00
|
|
|
|
2013-03-19 01:25:19 +00:00
|
|
|
// Connect Events
|
|
|
|
m_listBox->Connect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( EDA_LIST_DIALOG_BASE::onListItemActivated ), NULL, this );
|
2018-07-24 21:16:59 +00:00
|
|
|
m_filterBox->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( EDA_LIST_DIALOG_BASE::textChangeInFilterBox ), NULL, this );
|
2013-03-19 01:25:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
EDA_LIST_DIALOG_BASE::~EDA_LIST_DIALOG_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
|
|
|
m_listBox->Disconnect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( EDA_LIST_DIALOG_BASE::onListItemActivated ), NULL, this );
|
2018-07-24 21:16:59 +00:00
|
|
|
m_filterBox->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( EDA_LIST_DIALOG_BASE::textChangeInFilterBox ), NULL, this );
|
2020-07-07 10:17:30 +00:00
|
|
|
|
2013-03-19 01:25:19 +00:00
|
|
|
}
|