KiCad PCB EDA Suite
dialog_signal_list_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Nov 22 2017)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 DIALOG_SIGNAL_LIST_BASE::DIALOG_SIGNAL_LIST_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( wxSize( -1,-1 ), wxDefaultSize );
15 
16  wxBoxSizer* bSizer6;
17  bSizer6 = new wxBoxSizer( wxVERTICAL );
18 
19  m_signals = new wxListBox( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, NULL, wxLB_EXTENDED|wxLB_NEEDED_SB|wxLB_SORT );
20  m_signals->SetMinSize( wxSize( 450,400 ) );
21 
22  bSizer6->Add( m_signals, 1, wxALL|wxEXPAND, 5 );
23 
24  m_sdbSizer = new wxStdDialogButtonSizer();
25  m_sdbSizerOK = new wxButton( this, wxID_OK );
26  m_sdbSizer->AddButton( m_sdbSizerOK );
27  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
28  m_sdbSizer->AddButton( m_sdbSizerCancel );
29  m_sdbSizer->Realize();
30 
31  bSizer6->Add( m_sdbSizer, 0, wxEXPAND|wxALL, 5 );
32 
33 
34  this->SetSizer( bSizer6 );
35  this->Layout();
36  bSizer6->Fit( this );
37 
38  this->Centre( wxBOTH );
39 
40  // Connect Events
41  m_signals->Connect( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler( DIALOG_SIGNAL_LIST_BASE::onSignalAdd ), NULL, this );
42 }
43 
45 {
46  // Disconnect Events
47  m_signals->Disconnect( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler( DIALOG_SIGNAL_LIST_BASE::onSignalAdd ), NULL, this );
48 
49 }
wxStdDialogButtonSizer * m_sdbSizer
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:82
virtual void onSignalAdd(wxCommandEvent &event)
DIALOG_SIGNAL_LIST_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)