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.

68 lines
2.8 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. // C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
  3. // http://www.wxformbuilder.org/
  4. //
  5. // PLEASE DO *NOT* EDIT THIS FILE!
  6. ///////////////////////////////////////////////////////////////////////////
  7. #include "dialog_migrate_buses_base.h"
  8. ///////////////////////////////////////////////////////////////////////////
  9. DIALOG_MIGRATE_BUSES_BASE::DIALOG_MIGRATE_BUSES_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* main_sizer;
  13. main_sizer = new wxBoxSizer( wxVERTICAL );
  14. m_staticText5 = new wxStaticText( this, wxID_ANY, _("This schematic has one or more buses with more than one label.\nThis was allowed in previous KiCad versions but is no longer permitted."), wxDefaultPosition, wxDefaultSize, 0 );
  15. m_staticText5->Wrap( 480 );
  16. main_sizer->Add( m_staticText5, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
  17. m_staticText7 = new wxStaticText( this, wxID_ANY, _("Please select a new name for each of the buses below.\nA name has been suggested for you based on the labels attached to the bus."), wxDefaultPosition, wxDefaultSize, 0 );
  18. m_staticText7->Wrap( 480 );
  19. main_sizer->Add( m_staticText7, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
  20. m_migration_list = new wxListView( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_HRULES|wxLC_REPORT|wxLC_SINGLE_SEL|wxLC_VRULES );
  21. m_migration_list->SetMinSize( wxSize( 460,100 ) );
  22. main_sizer->Add( m_migration_list, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
  23. m_staticText6 = new wxStaticText( this, wxID_ANY, _("Proposed new name:"), wxDefaultPosition, wxDefaultSize, 0 );
  24. m_staticText6->Wrap( -1 );
  25. main_sizer->Add( m_staticText6, 0, wxTOP|wxRIGHT|wxLEFT, 10 );
  26. wxBoxSizer* bSizer7;
  27. bSizer7 = new wxBoxSizer( wxHORIZONTAL );
  28. m_cb_new_name = new wxComboBox( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
  29. m_cb_new_name->SetMinSize( wxSize( 300,-1 ) );
  30. m_cb_new_name->SetMaxSize( wxSize( 460,-1 ) );
  31. bSizer7->Add( m_cb_new_name, 1, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
  32. m_btn_accept = new wxButton( this, wxID_ANY, _("Accept Name"), wxDefaultPosition, wxDefaultSize, 0 );
  33. bSizer7->Add( m_btn_accept, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
  34. main_sizer->Add( bSizer7, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
  35. m_sdbSizer = new wxStdDialogButtonSizer();
  36. m_sdbSizerOK = new wxButton( this, wxID_OK );
  37. m_sdbSizer->AddButton( m_sdbSizerOK );
  38. m_sdbSizer->Realize();
  39. main_sizer->Add( m_sdbSizer, 0, wxEXPAND|wxALL, 5 );
  40. this->SetSizer( main_sizer );
  41. this->Layout();
  42. main_sizer->Fit( this );
  43. this->Centre( wxBOTH );
  44. }
  45. DIALOG_MIGRATE_BUSES_BASE::~DIALOG_MIGRATE_BUSES_BASE()
  46. {
  47. }