14DIALOG_MICROVIA_STACK_BASE::DIALOG_MICROVIA_STACK_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
16 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
18 wxBoxSizer* bMainSizer;
19 bMainSizer =
new wxBoxSizer( wxVERTICAL );
21 wxFlexGridSizer* fgSizer;
22 fgSizer =
new wxFlexGridSizer( 0, 3, 5, 5 );
23 fgSizer->AddGrowableCol( 1 );
24 fgSizer->SetFlexibleDirection( wxBOTH );
25 fgSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
27 m_startLayerLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Start layer:"), wxDefaultPosition, wxDefaultSize, 0 );
35 fgSizer->Add( 0, 0, 1, wxEXPAND, 5 );
37 m_endLayerLabel =
new wxStaticText(
this, wxID_ANY,
_(
"End layer:"), wxDefaultPosition, wxDefaultSize, 0 );
45 fgSizer->Add( 0, 0, 1, wxEXPAND, 5 );
47 m_typeLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Type:"), wxDefaultPosition, wxDefaultSize, 0 );
51 wxString m_typeChoiceChoices[] = {
_(
"Stacked"),
_(
"Staggered") };
52 int m_typeChoiceNChoices =
sizeof( m_typeChoiceChoices ) /
sizeof( wxString );
53 m_typeChoice =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_typeChoiceNChoices, m_typeChoiceChoices, 0 );
58 fgSizer->Add( 0, 0, 1, wxEXPAND, 5 );
60 m_viaSizeLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Via diameter:"), wxDefaultPosition, wxDefaultSize, 0 );
64 m_viaSizeCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
67 m_viaSizeUnit =
new wxStaticText(
this, wxID_ANY,
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
71 m_viaDrillLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Via hole:"), wxDefaultPosition, wxDefaultSize, 0 );
75 m_viaDrillCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
78 m_viaDrillUnit =
new wxStaticText(
this, wxID_ANY,
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
82 m_useNetclass =
new wxCheckBox(
this, wxID_ANY,
_(
"Use netclass values"), wxDefaultPosition, wxDefaultSize, 0 );
86 fgSizer->Add( 0, 0, 1, wxEXPAND, 5 );
89 fgSizer->Add( 0, 0, 1, wxEXPAND, 5 );
91 m_filled =
new wxCheckBox(
this, wxID_ANY,
_(
"Copper-filled"), wxDefaultPosition, wxDefaultSize, 0 );
92 fgSizer->Add(
m_filled, 0, wxALL, 5 );
94 m_capped =
new wxCheckBox(
this, wxID_ANY,
_(
"Capped"), wxDefaultPosition, wxDefaultSize, 0 );
95 fgSizer->Add(
m_capped, 0, wxALL, 5 );
98 fgSizer->Add( 0, 0, 1, wxEXPAND, 5 );
100 m_pitchLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Pitch:"), wxDefaultPosition, wxDefaultSize, 0 );
104 m_pitchCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
107 m_pitchUnit =
new wxStaticText(
this, wxID_ANY,
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
112 bMainSizer->Add( fgSizer, 1, wxALL|wxEXPAND, 5 );
124 this->SetSizer( bMainSizer );
126 bMainSizer->Fit(
this );
128 this->Centre( wxBOTH );