2016-08-11 12:41:42 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2019-11-07 08:47:12 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Oct 26 2018)
|
2016-08-11 12:41:42 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
2017-12-26 14:38:45 +00:00
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
2016-08-11 12:41:42 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "dialog_signal_list_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2016-08-20 15:25:51 +00:00
|
|
|
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 )
|
2016-08-11 12:41:42 +00:00
|
|
|
{
|
2016-08-20 15:25:51 +00:00
|
|
|
this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
|
2019-11-07 08:47:12 +00:00
|
|
|
|
2016-08-11 12:41:42 +00:00
|
|
|
wxBoxSizer* bSizer6;
|
|
|
|
bSizer6 = new wxBoxSizer( wxVERTICAL );
|
2019-11-07 08:47:12 +00:00
|
|
|
|
|
|
|
m_signals = new wxListBox( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, NULL, wxLB_EXTENDED|wxLB_NEEDED_SB|wxLB_SORT );
|
2016-08-20 15:25:51 +00:00
|
|
|
m_signals->SetMinSize( wxSize( 450,400 ) );
|
2019-11-07 08:47:12 +00:00
|
|
|
|
2020-08-17 22:34:02 +00:00
|
|
|
bSizer6->Add( m_signals, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizer2;
|
|
|
|
bSizer2 = new wxBoxSizer( wxVERTICAL );
|
2019-11-07 08:47:12 +00:00
|
|
|
|
|
|
|
m_staticText1 = new wxStaticText( this, wxID_ANY, _("Add signal by name:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticText1->Wrap( -1 );
|
2020-08-17 22:34:02 +00:00
|
|
|
bSizer2->Add( m_staticText1, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
2019-11-07 08:47:12 +00:00
|
|
|
|
|
|
|
m_signalEntry = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
|
2020-08-17 22:34:02 +00:00
|
|
|
bSizer2->Add( m_signalEntry, 0, wxALL|wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizer6->Add( bSizer2, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
|
2019-11-07 08:47:12 +00:00
|
|
|
|
2016-08-11 12:41:42 +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();
|
2019-11-07 08:47:12 +00:00
|
|
|
|
2016-08-20 15:25:51 +00:00
|
|
|
bSizer6->Add( m_sdbSizer, 0, wxEXPAND|wxALL, 5 );
|
2019-11-07 08:47:12 +00:00
|
|
|
|
|
|
|
|
2016-08-11 12:41:42 +00:00
|
|
|
this->SetSizer( bSizer6 );
|
|
|
|
this->Layout();
|
2017-12-26 14:38:45 +00:00
|
|
|
bSizer6->Fit( this );
|
2019-11-07 08:47:12 +00:00
|
|
|
|
2016-08-11 12:41:42 +00:00
|
|
|
this->Centre( wxBOTH );
|
2019-11-07 08:47:12 +00:00
|
|
|
|
2016-08-11 12:41:42 +00:00
|
|
|
// Connect Events
|
|
|
|
m_signals->Connect( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler( DIALOG_SIGNAL_LIST_BASE::onSignalAdd ), NULL, this );
|
2019-11-07 08:47:12 +00:00
|
|
|
m_signalEntry->Connect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( DIALOG_SIGNAL_LIST_BASE::onSignalAdd ), NULL, this );
|
2016-08-11 12:41:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_SIGNAL_LIST_BASE::~DIALOG_SIGNAL_LIST_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
|
|
|
m_signals->Disconnect( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler( DIALOG_SIGNAL_LIST_BASE::onSignalAdd ), NULL, this );
|
2019-11-07 08:47:12 +00:00
|
|
|
m_signalEntry->Disconnect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( DIALOG_SIGNAL_LIST_BASE::onSignalAdd ), NULL, this );
|
|
|
|
|
2016-08-11 12:41:42 +00:00
|
|
|
}
|