12DIALOG_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 )
14 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
16 wxBoxSizer* main_sizer;
17 main_sizer =
new wxBoxSizer( wxVERTICAL );
19 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 );
21 main_sizer->Add(
m_staticText5, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
23 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 );
25 main_sizer->Add(
m_staticText7, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
27 m_migration_list =
new wxListView(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_HRULES|wxLC_REPORT|wxLC_SINGLE_SEL|wxLC_VRULES );
32 m_staticText6 =
new wxStaticText(
this, wxID_ANY,
_(
"Proposed new name:"), wxDefaultPosition, wxDefaultSize, 0 );
34 main_sizer->Add(
m_staticText6, 0, wxTOP|wxRIGHT|wxLEFT, 10 );
37 bSizer7 =
new wxBoxSizer( wxHORIZONTAL );
39 m_cb_new_name =
new wxComboBox(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
43 bSizer7->Add(
m_cb_new_name, 1, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
45 m_btn_accept =
new wxButton(
this, wxID_ANY,
_(
"Accept Name"), wxDefaultPosition, wxDefaultSize, 0 );
46 bSizer7->Add(
m_btn_accept, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
49 main_sizer->Add( bSizer7, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
56 main_sizer->Add(
m_sdbSizer, 0, wxEXPAND|wxALL, 5 );
59 this->SetSizer( main_sizer );
61 main_sizer->Fit(
this );
63 this->Centre( wxBOTH );
wxListView * m_migration_list
wxStaticText * m_staticText6
wxStaticText * m_staticText7
DIALOG_MIGRATE_BUSES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Migrate Buses"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE)
wxStdDialogButtonSizer * m_sdbSizer
wxComboBox * m_cb_new_name
wxStaticText * m_staticText5
~DIALOG_MIGRATE_BUSES_BASE()
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...