KiCad PCB EDA Suite
dialog_migrate_buses_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Dec 1 2018)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 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 )
13 {
14  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
15 
16  wxBoxSizer* main_sizer;
17  main_sizer = new wxBoxSizer( wxVERTICAL );
18 
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 );
20  m_staticText5->Wrap( 480 );
21  main_sizer->Add( m_staticText5, 0, wxALL|wxEXPAND, 5 );
22 
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 );
24  m_staticText7->Wrap( 480 );
25  m_staticText7->SetMinSize( wxSize( -1,60 ) );
26 
27  main_sizer->Add( m_staticText7, 0, wxALL|wxEXPAND, 5 );
28 
29  m_migration_list = new wxListView( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_HRULES|wxLC_REPORT|wxLC_SINGLE_SEL|wxLC_VRULES );
30  m_migration_list->SetMinSize( wxSize( 460,100 ) );
31 
32  main_sizer->Add( m_migration_list, 1, wxALL|wxEXPAND, 5 );
33 
34  m_staticText6 = new wxStaticText( this, wxID_ANY, _("Proposed new name:"), wxDefaultPosition, wxDefaultSize, 0 );
35  m_staticText6->Wrap( -1 );
36  main_sizer->Add( m_staticText6, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
37 
38  wxBoxSizer* bSizer7;
39  bSizer7 = new wxBoxSizer( wxHORIZONTAL );
40 
41  m_cb_new_name = new wxComboBox( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
42  m_cb_new_name->SetMinSize( wxSize( 300,-1 ) );
43  m_cb_new_name->SetMaxSize( wxSize( 460,-1 ) );
44 
45  bSizer7->Add( m_cb_new_name, 1, wxALL|wxEXPAND, 5 );
46 
47  m_btn_accept = new wxButton( this, wxID_ANY, _("Accept Name"), wxDefaultPosition, wxDefaultSize, 0 );
48  bSizer7->Add( m_btn_accept, 0, wxALL, 5 );
49 
50 
51  main_sizer->Add( bSizer7, 0, wxEXPAND, 5 );
52 
53  m_sdbSizer = new wxStdDialogButtonSizer();
54  m_sdbSizerOK = new wxButton( this, wxID_OK );
55  m_sdbSizer->AddButton( m_sdbSizerOK );
56  m_sdbSizer->Realize();
57 
58  main_sizer->Add( m_sdbSizer, 0, wxEXPAND|wxALL, 5 );
59 
60 
61  this->SetSizer( main_sizer );
62  this->Layout();
63  main_sizer->Fit( this );
64 
65  this->Centre( wxBOTH );
66 }
67 
69 {
70 }
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:83
#define _(s)
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