KiCad PCB EDA Suite
dialog_signal_list_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Jul 31 2016)
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 
37  this->Centre( wxBOTH );
38 
39  // Connect Events
40  m_signals->Connect( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler( DIALOG_SIGNAL_LIST_BASE::onSignalAdd ), NULL, this );
41 }
42 
44 {
45  // Disconnect Events
46  m_signals->Disconnect( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler( DIALOG_SIGNAL_LIST_BASE::onSignalAdd ), NULL, this );
47 
48 }
wxStdDialogButtonSizer * m_sdbSizer
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60
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(599, 419), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)