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 )
14 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
16 wxBoxSizer* bMainSizer;
17 bMainSizer =
new wxBoxSizer( wxVERTICAL );
19 m_lblInfo =
new wxStaticText(
this, wxID_ANY,
_(
"Pad names are restricted to 4 characters (including number)."), wxDefaultPosition, wxDefaultSize, 0 );
21 bMainSizer->Add(
m_lblInfo, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
24 bMainSizer->Add( 0, 0, 0, wxTOP|wxBOTTOM, 5 );
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 );
32 m_lblPadPrefix =
new wxStaticText(
this, wxID_ANY,
_(
"Pad name prefix:"), wxDefaultPosition, wxDefaultSize, 0 );
34 fgSizer->Add(
m_lblPadPrefix, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
36 m_padPrefix =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
47 m_lblPadStartNum =
new wxStaticText(
this, wxID_ANY,
_(
"First pad number:"), wxDefaultPosition, wxDefaultSize, 0 );
51 m_padStartNum =
new wxSpinCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 999, 1 );
54 m_lblPadNumStep =
new wxStaticText(
this, wxID_ANY,
_(
"Numbering step:"), wxDefaultPosition, wxDefaultSize, 0 );
58 m_padNumStep =
new wxSpinCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 999, 1 );
62 bMainSizer->Add( fgSizer, 1, wxEXPAND|wxALL, 5 );
74 this->SetSizer( bMainSizer );
76 bMainSizer->Fit(
this );
78 this->Centre( wxBOTH );
wxButton * m_stdButtonsCancel
wxStaticText * m_lblPadPrefix
wxSpinCtrl * m_padStartNum
wxStdDialogButtonSizer * m_stdButtons
wxSpinCtrl * m_padNumStep
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)
wxStaticText * m_lblPadStartNum
wxButton * m_stdButtonsOK
wxStaticText * m_lblPadNumStep
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...