You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
2.3 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. // C++ code generated with wxFormBuilder (version Oct 26 2018)
  3. // http://www.wxformbuilder.org/
  4. //
  5. // PLEASE DO *NOT* EDIT THIS FILE!
  6. ///////////////////////////////////////////////////////////////////////////
  7. #include "dialog_signal_list_base.h"
  8. ///////////////////////////////////////////////////////////////////////////
  9. 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 )
  10. {
  11. this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
  12. wxBoxSizer* bSizer6;
  13. bSizer6 = new wxBoxSizer( wxVERTICAL );
  14. m_signals = new wxListBox( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, NULL, wxLB_EXTENDED|wxLB_NEEDED_SB|wxLB_SORT );
  15. m_signals->SetMinSize( wxSize( 450,400 ) );
  16. bSizer6->Add( m_signals, 1, wxALL|wxEXPAND, 5 );
  17. m_staticText1 = new wxStaticText( this, wxID_ANY, _("Add signal by name:"), wxDefaultPosition, wxDefaultSize, 0 );
  18. m_staticText1->Wrap( -1 );
  19. bSizer6->Add( m_staticText1, 0, wxALL, 5 );
  20. m_signalEntry = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
  21. bSizer6->Add( m_signalEntry, 0, wxALL|wxEXPAND, 5 );
  22. m_sdbSizer = new wxStdDialogButtonSizer();
  23. m_sdbSizerOK = new wxButton( this, wxID_OK );
  24. m_sdbSizer->AddButton( m_sdbSizerOK );
  25. m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
  26. m_sdbSizer->AddButton( m_sdbSizerCancel );
  27. m_sdbSizer->Realize();
  28. bSizer6->Add( m_sdbSizer, 0, wxEXPAND|wxALL, 5 );
  29. this->SetSizer( bSizer6 );
  30. this->Layout();
  31. bSizer6->Fit( this );
  32. this->Centre( wxBOTH );
  33. // Connect Events
  34. m_signals->Connect( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler( DIALOG_SIGNAL_LIST_BASE::onSignalAdd ), NULL, this );
  35. m_signalEntry->Connect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( DIALOG_SIGNAL_LIST_BASE::onSignalAdd ), NULL, this );
  36. }
  37. DIALOG_SIGNAL_LIST_BASE::~DIALOG_SIGNAL_LIST_BASE()
  38. {
  39. // Disconnect Events
  40. m_signals->Disconnect( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler( DIALOG_SIGNAL_LIST_BASE::onSignalAdd ), NULL, this );
  41. m_signalEntry->Disconnect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( DIALOG_SIGNAL_LIST_BASE::onSignalAdd ), NULL, this );
  42. }