14DIALOG_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 )
16 this->SetSizeHints( wxSize( 480,-1 ), wxDefaultSize );
18 m_sizer =
new wxBoxSizer( wxVERTICAL );
21 bSizer6 =
new wxBoxSizer( wxVERTICAL );
23 m_lblWelcome =
new wxStaticText(
this, wxID_ANY,
_(
"Welcome to KiCad %s!"), wxDefaultPosition, wxDefaultSize, 0 );
25 m_lblWelcome->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD,
false, wxEmptyString ) );
30 bSizer6->Add( 0, 0, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
32 m_staticText2 =
new wxStaticText(
this, wxID_ANY,
_(
"How would you like to configure KiCad?"), wxDefaultPosition, wxDefaultSize, 0 );
36 m_btnPrevVer =
new wxRadioButton(
this, wxID_ANY,
_(
"Import settings from a previous version at:"), wxDefaultPosition, wxDefaultSize, 0 );
37 bSizer6->Add(
m_btnPrevVer, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
40 bSizer5 =
new wxBoxSizer( wxHORIZONTAL );
43 bSizer5->Add( 20, 0, 0, wxEXPAND, 5 );
45 m_cbPath =
new wxComboBox(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
46 bSizer5->Add(
m_cbPath, 1, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
51 bSizer5->Add(
m_btnCustomPath, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
54 bSizer6->Add( bSizer5, 1, wxEXPAND, 5 );
56 m_lblPathError =
new wxStaticText(
this, wxID_ANY,
_(
"The selected path does not contain valid KiCad settings!"), wxDefaultPosition, wxDefaultSize, 0 );
61 bSizer6->Add(
m_lblPathError, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 );
63 m_cbCopyLibraryTables =
new wxCheckBox(
this, wxID_ANY,
_(
"Import library configuration from previous version"), wxDefaultPosition, wxDefaultSize, 0 );
65 m_cbCopyLibraryTables->SetToolTip(
_(
"When checked, the symbol and footprint library tables from the previous version will be imported into this version") );
69 m_btnUseDefaults =
new wxRadioButton(
this, wxID_ANY,
_(
"Start with default settings"), wxDefaultPosition, wxDefaultSize, 0 );
73 m_sizer->Add( bSizer6, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 10 );
90 this->Centre( wxBOTH );
virtual void OnPathDefocused(wxFocusEvent &event)
wxButton * m_standardButtonsCancel
wxRadioButton * m_btnUseDefaults
DIALOG_MIGRATE_SETTINGS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Configure KiCad Settings Path"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER)
virtual void OnPrevVerSelected(wxCommandEvent &event)
STD_BITMAP_BUTTON * m_btnCustomPath
wxRadioButton * m_btnPrevVer
virtual void OnDefaultSelected(wxCommandEvent &event)
wxStaticText * m_lblPathError
wxStaticText * m_lblWelcome
wxButton * m_standardButtonsOK
wxStaticText * m_staticText2
~DIALOG_MIGRATE_SETTINGS_BASE()
wxStdDialogButtonSizer * m_standardButtons
virtual void OnChoosePath(wxCommandEvent &event)
wxCheckBox * m_cbCopyLibraryTables
virtual void OnPathChanged(wxCommandEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...