KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_enum_pads_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.0.0-0-g0efcecf)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12DIALOG_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 m_lblPadNumStep = new wxStaticText( this, wxID_ANY, _("Numbering step:"), wxDefaultPosition, wxDefaultSize, 0 );
55 m_lblPadNumStep->Wrap( -1 );
56 fgSizer->Add( m_lblPadNumStep, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
57
58 m_padNumStep = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 999, 1 );
59 fgSizer->Add( m_padNumStep, 0, wxALL|wxEXPAND, 5 );
60
61
62 bMainSizer->Add( fgSizer, 1, wxEXPAND|wxALL, 5 );
63
64 m_stdButtons = new wxStdDialogButtonSizer();
65 m_stdButtonsOK = new wxButton( this, wxID_OK );
66 m_stdButtons->AddButton( m_stdButtonsOK );
67 m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
68 m_stdButtons->AddButton( m_stdButtonsCancel );
69 m_stdButtons->Realize();
70
71 bMainSizer->Add( m_stdButtons, 0, wxEXPAND|wxALL, 5 );
72
73
74 this->SetSizer( bMainSizer );
75 this->Layout();
76 bMainSizer->Fit( this );
77
78 this->Centre( wxBOTH );
79}
80
82{
83}
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)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
#define _(s)