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.

79 lines
3.2 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. // C++ code generated with wxFormBuilder (version Jun 27 2018)
  3. // http://www.wxformbuilder.org/
  4. //
  5. // PLEASE DO *NOT* EDIT THIS FILE!
  6. ///////////////////////////////////////////////////////////////////////////
  7. #include "dialog_get_footprint_by_name_base.h"
  8. ///////////////////////////////////////////////////////////////////////////
  9. DIALOG_GET_FOOTPRINT_BY_NAME_BASE::DIALOG_GET_FOOTPRINT_BY_NAME_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( wxDefaultSize, wxDefaultSize );
  12. wxBoxSizer* bSizerMain;
  13. bSizerMain = new wxBoxSizer( wxVERTICAL );
  14. wxBoxSizer* bSizerUpper;
  15. bSizerUpper = new wxBoxSizer( wxHORIZONTAL );
  16. wxFlexGridSizer* fgSizer1;
  17. fgSizer1 = new wxFlexGridSizer( 0, 2, 0, 0 );
  18. fgSizer1->SetFlexibleDirection( wxBOTH );
  19. fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
  20. m_staticTextRef = new wxStaticText( this, wxID_ANY, _("Reference:"), wxDefaultPosition, wxDefaultSize, 0 );
  21. m_staticTextRef->Wrap( -1 );
  22. fgSizer1->Add( m_staticTextRef, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
  23. m_SearchTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 200,-1 ), 0 );
  24. fgSizer1->Add( m_SearchTextCtrl, 0, wxEXPAND|wxALL|wxALIGN_CENTER_VERTICAL, 5 );
  25. m_staticTextRef1 = new wxStaticText( this, wxID_ANY, _("Available:"), wxDefaultPosition, wxDefaultSize, 0 );
  26. m_staticTextRef1->Wrap( -1 );
  27. fgSizer1->Add( m_staticTextRef1, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
  28. wxArrayString m_choiceFpListChoices;
  29. m_choiceFpList = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceFpListChoices, 0 );
  30. m_choiceFpList->SetSelection( 0 );
  31. fgSizer1->Add( m_choiceFpList, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
  32. bSizerUpper->Add( fgSizer1, 1, wxEXPAND, 5 );
  33. bSizerMain->Add( bSizerUpper, 1, wxEXPAND, 5 );
  34. m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
  35. bSizerMain->Add( m_staticline1, 0, wxALL|wxEXPAND, 5 );
  36. m_sdbSizer = new wxStdDialogButtonSizer();
  37. m_sdbSizerOK = new wxButton( this, wxID_OK );
  38. m_sdbSizer->AddButton( m_sdbSizerOK );
  39. m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
  40. m_sdbSizer->AddButton( m_sdbSizerCancel );
  41. m_sdbSizer->Realize();
  42. bSizerMain->Add( m_sdbSizer, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
  43. this->SetSizer( bSizerMain );
  44. this->Layout();
  45. bSizerMain->Fit( this );
  46. this->Centre( wxBOTH );
  47. // Connect Events
  48. this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_GET_FOOTPRINT_BY_NAME_BASE::onClose ) );
  49. m_choiceFpList->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_GET_FOOTPRINT_BY_NAME_BASE::OnSelectFootprint ), NULL, this );
  50. }
  51. DIALOG_GET_FOOTPRINT_BY_NAME_BASE::~DIALOG_GET_FOOTPRINT_BY_NAME_BASE()
  52. {
  53. // Disconnect Events
  54. this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_GET_FOOTPRINT_BY_NAME_BASE::onClose ) );
  55. m_choiceFpList->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_GET_FOOTPRINT_BY_NAME_BASE::OnSelectFootprint ), NULL, this );
  56. }