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.

54 lines
2.2 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. // C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3)
  3. // http://www.wxformbuilder.org/
  4. //
  5. // PLEASE DO *NOT* EDIT THIS FILE!
  6. ///////////////////////////////////////////////////////////////////////////
  7. #include "dialog_import_choose_project_base.h"
  8. ///////////////////////////////////////////////////////////////////////////
  9. DIALOG_IMPORT_CHOOSE_PROJECT_BASE::DIALOG_IMPORT_CHOOSE_PROJECT_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. bSizerMain = new wxBoxSizer( wxVERTICAL );
  13. m_titleText = new wxStaticText( this, wxID_ANY, _("This project file contains multiple PCB+Schematic combinations.\nChoose which one should be imported to KiCad."), wxDefaultPosition, wxDefaultSize, 0 );
  14. m_titleText->Wrap( -1 );
  15. bSizerMain->Add( m_titleText, 0, wxALL, 5 );
  16. m_listCtrl = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_HRULES|wxLC_REPORT|wxLC_SINGLE_SEL|wxLC_VRULES );
  17. bSizerMain->Add( m_listCtrl, 1, wxALL|wxEXPAND, 5 );
  18. wxBoxSizer* bSizerBottom;
  19. bSizerBottom = new wxBoxSizer( wxHORIZONTAL );
  20. m_sdbSizer = new wxStdDialogButtonSizer();
  21. m_sdbSizerOK = new wxButton( this, wxID_OK );
  22. m_sdbSizer->AddButton( m_sdbSizerOK );
  23. m_sdbSizer->Realize();
  24. bSizerBottom->Add( m_sdbSizer, 1, wxEXPAND, 5 );
  25. bSizerMain->Add( bSizerBottom, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxTOP, 5 );
  26. this->SetSizer( bSizerMain );
  27. this->Layout();
  28. bSizerMain->Fit( this );
  29. // Connect Events
  30. this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_IMPORT_CHOOSE_PROJECT_BASE::onClose ) );
  31. m_listCtrl->Connect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( DIALOG_IMPORT_CHOOSE_PROJECT_BASE::onItemActivated ), NULL, this );
  32. }
  33. DIALOG_IMPORT_CHOOSE_PROJECT_BASE::~DIALOG_IMPORT_CHOOSE_PROJECT_BASE()
  34. {
  35. // Disconnect Events
  36. this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_IMPORT_CHOOSE_PROJECT_BASE::onClose ) );
  37. m_listCtrl->Disconnect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( DIALOG_IMPORT_CHOOSE_PROJECT_BASE::onItemActivated ), NULL, this );
  38. }