14PANEL_SETUP_BOARD_FINISH_BASE::PANEL_SETUP_BOARD_FINISH_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) : wxPanel( parent, id, pos, size, style,
name )
16 wxBoxSizer* bMainSizer;
17 bMainSizer =
new wxBoxSizer( wxVERTICAL );
20 bMargins =
new wxBoxSizer( wxVERTICAL );
22 m_cbEgdesPlated =
new wxCheckBox(
this, wxID_ANY,
_(
"Plated board edge"), wxDefaultPosition, wxDefaultSize, 0 );
25 wxFlexGridSizer* fgSizer2;
26 fgSizer2 =
new wxFlexGridSizer( 0, 2, 5, 0 );
27 fgSizer2->SetFlexibleDirection( wxBOTH );
28 fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
30 m_staticTextFinish =
new wxStaticText(
this, wxID_ANY,
_(
"Copper finish:"), wxDefaultPosition, wxDefaultSize, 0 );
34 wxArrayString m_choiceFinishChoices;
35 m_choiceFinish =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceFinishChoices, 0 );
37 fgSizer2->Add(
m_choiceFinish, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL, 2 );
39 m_staticTextEdgeConn =
new wxStaticText(
this, wxID_ANY,
_(
"Edge card connectors:"), wxDefaultPosition, wxDefaultSize, 0 );
43 wxString m_choiceEdgeConnChoices[] = {
_(
"None"),
_(
"Yes"),
_(
"Yes, bevelled") };
44 int m_choiceEdgeConnNChoices =
sizeof( m_choiceEdgeConnChoices ) /
sizeof( wxString );
45 m_choiceEdgeConn =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceEdgeConnNChoices, m_choiceEdgeConnChoices, 0 );
52 bMargins->Add( fgSizer2, 0, wxEXPAND|wxALL, 10 );
55 bMargins->Add( 0, 5, 0, wxEXPAND, 5 );
57 m_viaProtectionHint =
new wxStaticText(
this, wxID_ANY,
_(
"Settings for Vias with Protection Features Set to \"From rules\":"), wxDefaultPosition, wxDefaultSize, 0 );
61 m_staticline1 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
64 wxBoxSizer* bViaProtectionCtrls;
65 bViaProtectionCtrls =
new wxBoxSizer( wxHORIZONTAL );
67 wxFlexGridSizer* fgViaProtection;
68 fgViaProtection =
new wxFlexGridSizer( 0, 3, 5, 0 );
69 fgViaProtection->SetFlexibleDirection( wxBOTH );
70 fgViaProtection->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
72 m_fillViasLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Fill vias:"), wxDefaultPosition, wxDefaultSize, 0 );
74 fgViaProtection->Add(
m_fillViasLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
76 m_fillVias =
new wxCheckBox(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
77 m_fillVias->SetToolTip(
_(
"Filled: the hole is completely filled.") );
79 fgViaProtection->Add(
m_fillVias, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
82 fgViaProtection->Add( 0, 0, 1, wxEXPAND, 5 );
84 m_capViasLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Cap vias:"), wxDefaultPosition, wxDefaultSize, 0 );
86 fgViaProtection->Add(
m_capViasLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
88 m_capVias =
new wxCheckBox(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
89 m_capVias->SetToolTip(
_(
"Capped: copper is plated over the filled hole, giving a flat solderable surface.") );
91 fgViaProtection->Add(
m_capVias, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
94 fgViaProtection->Add( 0, 0, 1, wxEXPAND, 5 );
96 m_plugViasLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Plug vias:"), wxDefaultPosition, wxDefaultSize, 0 );
98 fgViaProtection->Add(
m_plugViasLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
100 m_plugViasFront =
new wxCheckBox(
this, wxID_ANY,
_(
"front"), wxDefaultPosition, wxDefaultSize, 0 );
101 m_plugViasFront->SetToolTip(
_(
"Plugged: the hole is partly filled from this side.") );
103 fgViaProtection->Add(
m_plugViasFront, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
105 m_plugViasBack =
new wxCheckBox(
this, wxID_ANY,
_(
"back"), wxDefaultPosition, wxDefaultSize, 0 );
106 m_plugViasBack->SetToolTip(
_(
"Plugged: the hole is partly filled from this side.") );
108 fgViaProtection->Add(
m_plugViasBack, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
110 m_tentViasLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Tent vias:"), wxDefaultPosition, wxDefaultSize, 0 );
112 fgViaProtection->Add(
m_tentViasLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
114 m_tentViasFront =
new wxCheckBox(
this, wxID_ANY,
_(
"front"), wxDefaultPosition, wxDefaultSize, 0 );
115 m_tentViasFront->SetToolTip(
_(
"Tented: vias are covered with solder mask.\nNot tented: vias are not covered with solder mask.") );
117 fgViaProtection->Add(
m_tentViasFront, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
119 m_tentViasBack =
new wxCheckBox(
this, wxID_ANY,
_(
"back"), wxDefaultPosition, wxDefaultSize, 0 );
120 m_tentViasBack->SetToolTip(
_(
"Tented: vias are covered with solder mask.\nNot tented: vias are not covered with solder mask.") );
122 fgViaProtection->Add(
m_tentViasBack, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
124 m_coverViasLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Cover vias:"), wxDefaultPosition, wxDefaultSize, 0 );
126 fgViaProtection->Add(
m_coverViasLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
128 m_coverViasFront =
new wxCheckBox(
this, wxID_ANY,
_(
"front"), wxDefaultPosition, wxDefaultSize, 0 );
129 m_coverViasFront->SetToolTip(
_(
"Covered: a second coat is applied over the via on this side.") );
131 fgViaProtection->Add(
m_coverViasFront, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
133 m_coverViasBack =
new wxCheckBox(
this, wxID_ANY,
_(
"back"), wxDefaultPosition, wxDefaultSize, 0 );
134 m_coverViasBack->SetToolTip(
_(
"Covered: a second coat is applied over the via on this side.") );
136 fgViaProtection->Add(
m_coverViasBack, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
139 bViaProtectionCtrls->Add( fgViaProtection, 0, wxALIGN_CENTER_VERTICAL, 5 );
141 wxBoxSizer* bSizerPreview;
142 bSizerPreview =
new wxBoxSizer( wxVERTICAL );
148 bSizerPreview->Add(
m_viaPreview, 0, wxRIGHT|wxLEFT, 20 );
151 bViaProtectionCtrls->Add( bSizerPreview, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 20 );
154 bMargins->Add( bViaProtectionCtrls, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
157 bMainSizer->Add( bMargins, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
160 this->SetSizer( bMainSizer );
162 bMainSizer->Fit(
this );