KiCad PCB EDA Suite
dialog_enum_pads_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Nov 22 2017)
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  #ifdef __WXGTK__
38  if ( !m_padPrefix->HasFlag( wxTE_MULTILINE ) )
39  {
40  m_padPrefix->SetMaxLength( 4 );
41  }
42  #else
43  m_padPrefix->SetMaxLength( 4 );
44  #endif
45  fgSizer->Add( m_padPrefix, 0, wxALL|wxEXPAND, 5 );
46 
47  m_lblPadStartNum = new wxStaticText( this, wxID_ANY, _("First pad number:"), wxDefaultPosition, wxDefaultSize, 0 );
48  m_lblPadStartNum->Wrap( -1 );
49  fgSizer->Add( m_lblPadStartNum, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
50 
51  m_padStartNum = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 999, 1 );
52  fgSizer->Add( m_padStartNum, 0, wxALL|wxEXPAND, 5 );
53 
54 
55  bMainSizer->Add( fgSizer, 1, wxEXPAND|wxALL, 5 );
56 
57  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
58  bMainSizer->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
59 
60  m_stdButtons = new wxStdDialogButtonSizer();
61  m_stdButtonsOK = new wxButton( this, wxID_OK );
62  m_stdButtons->AddButton( m_stdButtonsOK );
63  m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
64  m_stdButtons->AddButton( m_stdButtonsCancel );
65  m_stdButtons->Realize();
66 
67  bMainSizer->Add( m_stdButtons, 0, wxEXPAND|wxALL, 5 );
68 
69 
70  this->SetSizer( bMainSizer );
71  this->Layout();
72  bMainSizer->Fit( this );
73 
74  this->Centre( wxBOTH );
75 }
76 
78 {
79 }
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:70
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(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)