12DIALOG_TRACK_VIA_SIZE_BASE::DIALOG_TRACK_VIA_SIZE_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( wxSize( -1,-1 ), wxDefaultSize );
17 bSizes =
new wxBoxSizer( wxVERTICAL );
19 wxFlexGridSizer* fgSizer1;
20 fgSizer1 =
new wxFlexGridSizer( 0, 3, 0, 0 );
21 fgSizer1->AddGrowableCol( 1 );
22 fgSizer1->SetFlexibleDirection( wxBOTH );
23 fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
25 m_trackWidthLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Track width:"), wxDefaultPosition, wxDefaultSize, 0 );
27 fgSizer1->Add(
m_trackWidthLabel, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
29 m_trackWidthText =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
32 m_trackWidthUnits =
new wxStaticText(
this, wxID_ANY,
_(
"unit"), wxDefaultPosition, wxDefaultSize, 0 );
36 m_viaDiameterLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Via diameter:"), wxDefaultPosition, wxDefaultSize, 0 );
38 fgSizer1->Add(
m_viaDiameterLabel, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
40 m_viaDiameterText =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
43 m_viaDiameterUnits =
new wxStaticText(
this, wxID_ANY,
_(
"unit"), wxDefaultPosition, wxDefaultSize, 0 );
47 m_viaDrillLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Via hole:"), wxDefaultPosition, wxDefaultSize, 0 );
49 fgSizer1->Add(
m_viaDrillLabel, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
51 m_viaDrillText =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
54 m_viaDrillUnits =
new wxStaticText(
this, wxID_ANY,
_(
"unit"), wxDefaultPosition, wxDefaultSize, 0 );
59 bSizes->Add( fgSizer1, 1, wxEXPAND|wxALL, 10 );
61 m_staticline1 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
74 this->SetSizer( bSizes );
78 this->Centre( wxBOTH );
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
wxStaticText * m_trackWidthLabel
wxStaticText * m_viaDrillUnits
wxTextCtrl * m_trackWidthText
wxButton * m_stdButtonsOK
wxStaticLine * m_staticline1
wxTextCtrl * m_viaDiameterText
DIALOG_TRACK_VIA_SIZE_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Track and Via Dimensions"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxStaticText * m_viaDiameterLabel
wxStaticText * m_trackWidthUnits
wxButton * m_stdButtonsCancel
~DIALOG_TRACK_VIA_SIZE_BASE()
wxStaticText * m_viaDiameterUnits
wxStdDialogButtonSizer * m_stdButtons
wxTextCtrl * m_viaDrillText
wxStaticText * m_viaDrillLabel