2019-03-11 21:32:05 +00:00
///////////////////////////////////////////////////////////////////////////
2023-01-08 19:26:10 +00:00
// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
2019-03-11 21:32:05 +00:00
// http://www.wxformbuilder.org/
//
2019-04-22 07:34:28 +00:00
// PLEASE DO *NOT* EDIT THIS FILE!
2019-03-11 21:32:05 +00:00
///////////////////////////////////////////////////////////////////////////
# include "dialog_migrate_buses_base.h"
///////////////////////////////////////////////////////////////////////////
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 )
{
this - > SetSizeHints ( wxDefaultSize , wxDefaultSize ) ;
2019-04-22 07:34:28 +00:00
2019-03-11 21:32:05 +00:00
wxBoxSizer * main_sizer ;
main_sizer = new wxBoxSizer ( wxVERTICAL ) ;
2019-04-22 07:34:28 +00:00
m_staticText5 = new wxStaticText ( this , wxID_ANY , _ ( " This schematic has one or more buses with more than one label. \n This was allowed in previous KiCad versions but is no longer permitted. " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-03-11 21:32:05 +00:00
m_staticText5 - > Wrap ( 480 ) ;
2020-08-17 22:34:02 +00:00
main_sizer - > Add ( m_staticText5 , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 10 ) ;
2019-04-22 07:34:28 +00:00
2019-03-11 21:32:05 +00:00
m_staticText7 = new wxStaticText ( this , wxID_ANY , _ ( " Please select a new name for each of the buses below. \n A name has been suggested for you based on the labels attached to the bus. " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText7 - > Wrap ( 480 ) ;
2020-08-17 22:34:02 +00:00
main_sizer - > Add ( m_staticText7 , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 10 ) ;
2019-04-22 07:34:28 +00:00
2019-03-11 21:32:05 +00:00
m_migration_list = new wxListView ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLC_HRULES | wxLC_REPORT | wxLC_SINGLE_SEL | wxLC_VRULES ) ;
m_migration_list - > SetMinSize ( wxSize ( 460 , 100 ) ) ;
2019-04-22 07:34:28 +00:00
2020-08-17 22:34:02 +00:00
main_sizer - > Add ( m_migration_list , 1 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 10 ) ;
2019-04-22 07:34:28 +00:00
2019-03-11 21:32:05 +00:00
m_staticText6 = new wxStaticText ( this , wxID_ANY , _ ( " Proposed new name: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText6 - > Wrap ( - 1 ) ;
2020-08-17 22:34:02 +00:00
main_sizer - > Add ( m_staticText6 , 0 , wxTOP | wxRIGHT | wxLEFT , 10 ) ;
2019-04-22 07:34:28 +00:00
2019-03-11 21:32:05 +00:00
wxBoxSizer * bSizer7 ;
bSizer7 = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-04-22 07:34:28 +00:00
m_cb_new_name = new wxComboBox ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 , NULL , 0 ) ;
2019-03-11 21:32:05 +00:00
m_cb_new_name - > SetMinSize ( wxSize ( 300 , - 1 ) ) ;
m_cb_new_name - > SetMaxSize ( wxSize ( 460 , - 1 ) ) ;
2019-04-22 07:34:28 +00:00
2020-08-17 22:34:02 +00:00
bSizer7 - > Add ( m_cb_new_name , 1 , wxALL | wxEXPAND | wxALIGN_CENTER_VERTICAL , 5 ) ;
2019-04-22 07:34:28 +00:00
2019-03-11 21:32:05 +00:00
m_btn_accept = new wxButton ( this , wxID_ANY , _ ( " Accept Name " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-08-17 22:34:02 +00:00
bSizer7 - > Add ( m_btn_accept , 0 , wxALIGN_CENTER_VERTICAL | wxTOP | wxBOTTOM | wxRIGHT , 5 ) ;
2019-04-22 07:34:28 +00:00
2020-08-17 22:34:02 +00:00
main_sizer - > Add ( bSizer7 , 0 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2019-04-22 07:34:28 +00:00
m_sdbSizer = new wxStdDialogButtonSizer ( ) ;
m_sdbSizerOK = new wxButton ( this , wxID_OK ) ;
m_sdbSizer - > AddButton ( m_sdbSizerOK ) ;
m_sdbSizer - > Realize ( ) ;
main_sizer - > Add ( m_sdbSizer , 0 , wxEXPAND | wxALL , 5 ) ;
2019-03-11 21:32:05 +00:00
this - > SetSizer ( main_sizer ) ;
this - > Layout ( ) ;
main_sizer - > Fit ( this ) ;
2019-04-22 07:34:28 +00:00
2019-03-11 21:32:05 +00:00
this - > Centre ( wxBOTH ) ;
}
DIALOG_MIGRATE_BUSES_BASE : : ~ DIALOG_MIGRATE_BUSES_BASE ( )
{
}