KiCad PCB EDA Suite
dialog_enum_pads_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Mar 9 2015)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
9 
11 
12 DIALOG_ENUM_PADS_BASE::DIALOG_ENUM_PADS_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* bMainSizer;
17  bMainSizer = new wxBoxSizer( wxVERTICAL );
18 
19  m_lblInfo = new wxStaticText( this, wxID_ANY, _("Pad names are restricted to 4 characters (including number)."), wxDefaultPosition, wxDefaultSize, 0 );
20  m_lblInfo->Wrap( -1 );
21  bMainSizer->Add( m_lblInfo, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
22 
23 
24  bMainSizer->Add( 0, 0, 0, wxTOP|wxBOTTOM, 5 );
25 
26  wxFlexGridSizer* fgSizer;
27  fgSizer = new wxFlexGridSizer( 0, 2, 0, 0 );
28  fgSizer->AddGrowableCol( 1 );
29  fgSizer->SetFlexibleDirection( wxBOTH );
30  fgSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
31 
32  m_lblPadPrefix = new wxStaticText( this, wxID_ANY, _("Pad name prefix:"), wxDefaultPosition, wxDefaultSize, 0 );
33  m_lblPadPrefix->Wrap( -1 );
34  fgSizer->Add( m_lblPadPrefix, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
35 
36  m_padPrefix = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
37  m_padPrefix->SetMaxLength( 4 );
38  fgSizer->Add( m_padPrefix, 0, wxALL|wxEXPAND, 5 );
39 
40  m_lblPadStartNum = new wxStaticText( this, wxID_ANY, _("First pad number:"), wxDefaultPosition, wxDefaultSize, 0 );
41  m_lblPadStartNum->Wrap( -1 );
42  fgSizer->Add( m_lblPadStartNum, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
43 
44  m_padStartNum = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 999, 1 );
45  fgSizer->Add( m_padStartNum, 0, wxALL|wxEXPAND, 5 );
46 
47 
48  bMainSizer->Add( fgSizer, 1, wxEXPAND|wxALL, 5 );
49 
50  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
51  bMainSizer->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
52 
53  m_stdButtons = new wxStdDialogButtonSizer();
54  m_stdButtonsOK = new wxButton( this, wxID_OK );
55  m_stdButtons->AddButton( m_stdButtonsOK );
56  m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
57  m_stdButtons->AddButton( m_stdButtonsCancel );
58  m_stdButtons->Realize();
59 
60  bMainSizer->Add( m_stdButtons, 0, wxEXPAND|wxALL, 5 );
61 
62 
63  this->SetSizer( bMainSizer );
64  this->Layout();
65 
66  this->Centre( wxBOTH );
67 }
68 
70 {
71 }
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60
wxStdDialogButtonSizer * m_stdButtons
DIALOG_ENUM_PADS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Pad enumeration settings"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(340, 187), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)