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, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
23 
24  wxBoxSizer* bSizer2;
25  bSizer2 = new wxBoxSizer( wxVERTICAL );
26 
27  m_staticText1 = new wxStaticText( this, wxID_ANY, _("Add signal by name:"), wxDefaultPosition, wxDefaultSize, 0 );
28  m_staticText1->Wrap( -1 );
29  bSizer2->Add( m_staticText1, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
30 
31  m_signalEntry = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
32  bSizer2->Add( m_signalEntry, 0, wxALL|wxEXPAND, 5 );
33 
34 
35  bSizer6->Add( bSizer2, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
36 
37  m_sdbSizer = new wxStdDialogButtonSizer();
38  m_sdbSizerOK = new wxButton( this, wxID_OK );
39  m_sdbSizer->AddButton( m_sdbSizerOK );
40  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
41  m_sdbSizer->AddButton( m_sdbSizerCancel );
42  m_sdbSizer->Realize();
43 
44  bSizer6->Add( m_sdbSizer, 0, wxEXPAND|wxALL, 5 );
45 
46 
47  this->SetSizer( bSizer6 );
48  this->Layout();
49  bSizer6->Fit( this );
50 
51  this->Centre( wxBOTH );
52 
53  // Connect Events
54  m_signals->Connect( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler( DIALOG_SIGNAL_LIST_BASE::onSignalAdd ), NULL, this );
55  m_signalEntry->Connect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( DIALOG_SIGNAL_LIST_BASE::onSignalAdd ), NULL, this );
56 }
57 
59 {
60  // Disconnect Events
61  m_signals->Disconnect( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler( DIALOG_SIGNAL_LIST_BASE::onSignalAdd ), NULL, this );
62  m_signalEntry->Disconnect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( DIALOG_SIGNAL_LIST_BASE::onSignalAdd ), NULL, this );
63 
64 }
wxStdDialogButtonSizer * m_sdbSizer
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:82
virtual void onSignalAdd(wxCommandEvent &event)
#define NULL
#define _(s)
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)