KiCad PCB EDA Suite
dialog_migrate_buses_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Oct 26 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, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
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  main_sizer->Add( m_staticText7, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
26 
27  m_migration_list = new wxListView( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_HRULES|wxLC_REPORT|wxLC_SINGLE_SEL|wxLC_VRULES );
28  m_migration_list->SetMinSize( wxSize( 460,100 ) );
29 
30  main_sizer->Add( m_migration_list, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
31 
32  m_staticText6 = new wxStaticText( this, wxID_ANY, _("Proposed new name:"), wxDefaultPosition, wxDefaultSize, 0 );
33  m_staticText6->Wrap( -1 );
34  main_sizer->Add( m_staticText6, 0, wxTOP|wxRIGHT|wxLEFT, 10 );
35 
36  wxBoxSizer* bSizer7;
37  bSizer7 = new wxBoxSizer( wxHORIZONTAL );
38 
39  m_cb_new_name = new wxComboBox( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
40  m_cb_new_name->SetMinSize( wxSize( 300,-1 ) );
41  m_cb_new_name->SetMaxSize( wxSize( 460,-1 ) );
42 
43  bSizer7->Add( m_cb_new_name, 1, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
44 
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 );
47 
48 
49  main_sizer->Add( bSizer7, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
50 
51  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
52  main_sizer->Add( m_staticline1, 0, wxEXPAND|wxRIGHT|wxLEFT, 10 );
53 
54  m_sdbSizer = new wxStdDialogButtonSizer();
55  m_sdbSizerOK = new wxButton( this, wxID_OK );
56  m_sdbSizer->AddButton( m_sdbSizerOK );
57  m_sdbSizer->Realize();
58 
59  main_sizer->Add( m_sdbSizer, 0, wxEXPAND|wxALL, 5 );
60 
61 
62  this->SetSizer( main_sizer );
63  this->Layout();
64  main_sizer->Fit( this );
65 
66  this->Centre( wxBOTH );
67 }
68 
70 {
71 }
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:83
#define NULL
#define _(s)
Definition: 3d_actions.cpp:33
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