KiCad PCB EDA Suite
dialog_signal_list_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Oct 26 2018)
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_staticText1 = new wxStaticText( this, wxID_ANY, _("Add signal by name:"), wxDefaultPosition, wxDefaultSize, 0 );
25  m_staticText1->Wrap( -1 );
26  bSizer6->Add( m_staticText1, 0, wxALL, 5 );
27 
28  m_signalEntry = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
29  bSizer6->Add( m_signalEntry, 0, wxALL|wxEXPAND, 5 );
30 
31  m_sdbSizer = new wxStdDialogButtonSizer();
32  m_sdbSizerOK = new wxButton( this, wxID_OK );
33  m_sdbSizer->AddButton( m_sdbSizerOK );
34  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
35  m_sdbSizer->AddButton( m_sdbSizerCancel );
36  m_sdbSizer->Realize();
37 
38  bSizer6->Add( m_sdbSizer, 0, wxEXPAND|wxALL, 5 );
39 
40 
41  this->SetSizer( bSizer6 );
42  this->Layout();
43  bSizer6->Fit( this );
44 
45  this->Centre( wxBOTH );
46 
47  // Connect Events
48  m_signals->Connect( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler( DIALOG_SIGNAL_LIST_BASE::onSignalAdd ), NULL, this );
49  m_signalEntry->Connect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( DIALOG_SIGNAL_LIST_BASE::onSignalAdd ), NULL, this );
50 }
51 
53 {
54  // Disconnect Events
55  m_signals->Disconnect( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler( DIALOG_SIGNAL_LIST_BASE::onSignalAdd ), NULL, this );
56  m_signalEntry->Disconnect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( DIALOG_SIGNAL_LIST_BASE::onSignalAdd ), NULL, this );
57 
58 }
wxStdDialogButtonSizer * m_sdbSizer
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:83
virtual void onSignalAdd(wxCommandEvent &event)
#define NULL
#define _(s)
Definition: 3d_actions.cpp:33
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)