2020-01-13 01:44:19 +00:00
///////////////////////////////////////////////////////////////////////////
2024-01-23 03:03:42 +00:00
// C++ code generated with wxFormBuilder (version 4.0.0-0-g0efcecf)
2020-01-13 01:44:19 +00:00
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
2022-12-13 20:47:28 +00:00
# include "widgets/std_bitmap_button.h"
2020-01-13 01:44:19 +00:00
# include "dialog_migrate_settings_base.h"
///////////////////////////////////////////////////////////////////////////
DIALOG_MIGRATE_SETTINGS_BASE : : DIALOG_MIGRATE_SETTINGS_BASE ( wxWindow * parent , wxWindowID id , const wxString & title , const wxPoint & pos , const wxSize & size , long style ) : DIALOG_SHIM ( parent , id , title , pos , size , style )
{
2024-01-23 03:03:42 +00:00
this - > SetSizeHints ( wxSize ( 480 , - 1 ) , wxDefaultSize ) ;
2020-01-13 01:44:19 +00:00
m_sizer = new wxBoxSizer ( wxVERTICAL ) ;
wxBoxSizer * bSizer6 ;
bSizer6 = new wxBoxSizer ( wxVERTICAL ) ;
2021-01-04 12:28:05 +00:00
m_lblWelcome = new wxStaticText ( this , wxID_ANY , _ ( " Welcome to KiCad %s! " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-01-13 01:44:19 +00:00
m_lblWelcome - > Wrap ( - 1 ) ;
2023-01-08 18:15:20 +00:00
m_lblWelcome - > SetFont ( wxFont ( wxNORMAL_FONT - > GetPointSize ( ) , wxFONTFAMILY_DEFAULT , wxFONTSTYLE_NORMAL , wxFONTWEIGHT_BOLD , false , wxEmptyString ) ) ;
2020-01-13 01:44:19 +00:00
2020-03-05 02:47:28 +00:00
bSizer6 - > Add ( m_lblWelcome , 0 , wxALL | wxEXPAND , 5 ) ;
2020-01-13 01:44:19 +00:00
2020-05-27 10:24:39 +00:00
bSizer6 - > Add ( 0 , 0 , 0 , wxEXPAND | wxTOP | wxBOTTOM , 5 ) ;
2021-01-04 12:28:05 +00:00
m_staticText2 = new wxStaticText ( this , wxID_ANY , _ ( " How would you like to configure KiCad? " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-01-13 01:44:19 +00:00
m_staticText2 - > Wrap ( - 1 ) ;
2020-03-05 02:47:28 +00:00
bSizer6 - > Add ( m_staticText2 , 0 , wxALL | wxEXPAND , 5 ) ;
2020-01-13 01:44:19 +00:00
2021-01-04 12:28:05 +00:00
m_btnPrevVer = new wxRadioButton ( this , wxID_ANY , _ ( " Import settings from a previous version at: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-05-27 10:24:39 +00:00
bSizer6 - > Add ( m_btnPrevVer , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2020-01-13 01:44:19 +00:00
wxBoxSizer * bSizer5 ;
bSizer5 = new wxBoxSizer ( wxHORIZONTAL ) ;
2020-05-27 10:24:39 +00:00
bSizer5 - > Add ( 20 , 0 , 0 , wxEXPAND , 5 ) ;
2020-01-13 01:44:19 +00:00
m_cbPath = new wxComboBox ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 , NULL , 0 ) ;
2024-01-23 03:03:42 +00:00
bSizer5 - > Add ( m_cbPath , 1 , wxALIGN_CENTER_VERTICAL | wxTOP | wxBOTTOM | wxLEFT , 5 ) ;
2020-01-13 01:44:19 +00:00
2022-12-13 20:47:28 +00:00
m_btnCustomPath = new STD_BITMAP_BUTTON ( this , wxID_ANY , wxNullBitmap , wxDefaultPosition , wxDefaultSize , wxBU_AUTODRAW | 0 ) ;
2021-01-04 12:28:05 +00:00
m_btnCustomPath - > SetToolTip ( _ ( " Choose a different path " ) ) ;
2020-01-13 01:44:19 +00:00
2020-05-27 10:24:39 +00:00
bSizer5 - > Add ( m_btnCustomPath , 0 , wxALIGN_CENTER_VERTICAL | wxTOP | wxBOTTOM | wxRIGHT , 5 ) ;
2020-01-13 01:44:19 +00:00
bSizer6 - > Add ( bSizer5 , 1 , wxEXPAND , 5 ) ;
2021-01-04 12:28:05 +00:00
m_lblPathError = new wxStaticText ( this , wxID_ANY , _ ( " The selected path does not contain valid KiCad settings! " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-01-13 01:44:19 +00:00
m_lblPathError - > Wrap ( - 1 ) ;
m_lblPathError - > SetForegroundColour ( wxColour ( 255 , 43 , 0 ) ) ;
m_lblPathError - > Hide ( ) ;
bSizer6 - > Add ( m_lblPathError , 0 , wxALIGN_CENTER_HORIZONTAL | wxALL , 5 ) ;
2021-01-04 12:28:05 +00:00
m_cbCopyLibraryTables = new wxCheckBox ( this , wxID_ANY , _ ( " Import library configuration from previous version " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-09-25 00:54:31 +00:00
m_cbCopyLibraryTables - > SetValue ( true ) ;
2021-01-04 12:28:05 +00:00
m_cbCopyLibraryTables - > SetToolTip ( _ ( " When checked, the symbol and footprint library tables from the previous version will be imported into this version " ) ) ;
2020-09-25 00:54:31 +00:00
2020-11-29 00:58:28 +00:00
bSizer6 - > Add ( m_cbCopyLibraryTables , 0 , wxBOTTOM | wxRIGHT | wxLEFT , 23 ) ;
2020-09-25 00:54:31 +00:00
2021-01-04 12:28:05 +00:00
m_btnUseDefaults = new wxRadioButton ( this , wxID_ANY , _ ( " Start with default settings " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2020-11-29 00:58:28 +00:00
bSizer6 - > Add ( m_btnUseDefaults , 0 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2020-01-13 01:44:19 +00:00
2020-05-27 10:24:39 +00:00
m_sizer - > Add ( bSizer6 , 0 , wxEXPAND | wxLEFT | wxRIGHT | wxTOP , 10 ) ;
2020-01-13 01:44:19 +00:00
m_standardButtons = new wxStdDialogButtonSizer ( ) ;
m_standardButtonsOK = new wxButton ( this , wxID_OK ) ;
m_standardButtons - > AddButton ( m_standardButtonsOK ) ;
m_standardButtonsCancel = new wxButton ( this , wxID_CANCEL ) ;
m_standardButtons - > AddButton ( m_standardButtonsCancel ) ;
m_standardButtons - > Realize ( ) ;
m_standardButtons - > SetMinSize ( wxSize ( - 1 , 50 ) ) ;
2020-05-27 10:24:39 +00:00
m_sizer - > Add ( m_standardButtons , 0 , wxEXPAND | wxALL , 5 ) ;
2020-01-13 01:44:19 +00:00
this - > SetSizer ( m_sizer ) ;
this - > Layout ( ) ;
m_sizer - > Fit ( this ) ;
this - > Centre ( wxBOTH ) ;
// Connect Events
m_btnPrevVer - > Connect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_MIGRATE_SETTINGS_BASE : : OnPrevVerSelected ) , NULL , this ) ;
m_cbPath - > Connect ( wxEVT_COMMAND_COMBOBOX_SELECTED , wxCommandEventHandler ( DIALOG_MIGRATE_SETTINGS_BASE : : OnPathChanged ) , NULL , this ) ;
m_cbPath - > Connect ( wxEVT_KILL_FOCUS , wxFocusEventHandler ( DIALOG_MIGRATE_SETTINGS_BASE : : OnPathDefocused ) , NULL , this ) ;
m_cbPath - > Connect ( wxEVT_COMMAND_TEXT_ENTER , wxCommandEventHandler ( DIALOG_MIGRATE_SETTINGS_BASE : : OnPathChanged ) , NULL , this ) ;
m_btnCustomPath - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_MIGRATE_SETTINGS_BASE : : OnChoosePath ) , NULL , this ) ;
m_btnUseDefaults - > Connect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_MIGRATE_SETTINGS_BASE : : OnDefaultSelected ) , NULL , this ) ;
}
DIALOG_MIGRATE_SETTINGS_BASE : : ~ DIALOG_MIGRATE_SETTINGS_BASE ( )
{
// Disconnect Events
m_btnPrevVer - > Disconnect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_MIGRATE_SETTINGS_BASE : : OnPrevVerSelected ) , NULL , this ) ;
m_cbPath - > Disconnect ( wxEVT_COMMAND_COMBOBOX_SELECTED , wxCommandEventHandler ( DIALOG_MIGRATE_SETTINGS_BASE : : OnPathChanged ) , NULL , this ) ;
m_cbPath - > Disconnect ( wxEVT_KILL_FOCUS , wxFocusEventHandler ( DIALOG_MIGRATE_SETTINGS_BASE : : OnPathDefocused ) , NULL , this ) ;
m_cbPath - > Disconnect ( wxEVT_COMMAND_TEXT_ENTER , wxCommandEventHandler ( DIALOG_MIGRATE_SETTINGS_BASE : : OnPathChanged ) , NULL , this ) ;
m_btnCustomPath - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_MIGRATE_SETTINGS_BASE : : OnChoosePath ) , NULL , this ) ;
m_btnUseDefaults - > Disconnect ( wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEventHandler ( DIALOG_MIGRATE_SETTINGS_BASE : : OnDefaultSelected ) , NULL , this ) ;
}