KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_board_finish_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
13
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 )
15{
16 wxBoxSizer* bMainSizer;
17 bMainSizer = new wxBoxSizer( wxVERTICAL );
18
19 wxBoxSizer* bMargins;
20 bMargins = new wxBoxSizer( wxVERTICAL );
21
22 m_cbEgdesPlated = new wxCheckBox( this, wxID_ANY, _("Plated board edge"), wxDefaultPosition, wxDefaultSize, 0 );
23 bMargins->Add( m_cbEgdesPlated, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
24
25 wxFlexGridSizer* fgSizer2;
26 fgSizer2 = new wxFlexGridSizer( 0, 2, 5, 0 );
27 fgSizer2->SetFlexibleDirection( wxBOTH );
28 fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
29
30 m_staticTextFinish = new wxStaticText( this, wxID_ANY, _("Copper finish:"), wxDefaultPosition, wxDefaultSize, 0 );
31 m_staticTextFinish->Wrap( -1 );
32 fgSizer2->Add( m_staticTextFinish, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
33
34 wxArrayString m_choiceFinishChoices;
35 m_choiceFinish = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceFinishChoices, 0 );
36 m_choiceFinish->SetSelection( 0 );
37 fgSizer2->Add( m_choiceFinish, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL, 2 );
38
39 m_staticTextEdgeConn = new wxStaticText( this, wxID_ANY, _("Edge card connectors:"), wxDefaultPosition, wxDefaultSize, 0 );
40 m_staticTextEdgeConn->Wrap( -1 );
41 fgSizer2->Add( m_staticTextEdgeConn, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
42
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 );
46 m_choiceEdgeConn->SetSelection( 0 );
47 m_choiceEdgeConn->SetToolTip( _("Options for edge card connectors.") );
48
49 fgSizer2->Add( m_choiceEdgeConn, 0, wxEXPAND, 2 );
50
51
52 bMargins->Add( fgSizer2, 0, wxEXPAND|wxALL, 10 );
53
54
55 bMargins->Add( 0, 5, 0, wxEXPAND, 5 );
56
57 m_viaProtectionHint = new wxStaticText( this, wxID_ANY, _("Settings for Vias with Protection Features Set to \"From rules\":"), wxDefaultPosition, wxDefaultSize, 0 );
58 m_viaProtectionHint->Wrap( -1 );
59 bMargins->Add( m_viaProtectionHint, 0, wxTOP|wxRIGHT|wxLEFT, 8 );
60
61 m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
62 bMargins->Add( m_staticline1, 0, wxEXPAND|wxALL, 3 );
63
64 wxBoxSizer* bViaProtectionCtrls;
65 bViaProtectionCtrls = new wxBoxSizer( wxHORIZONTAL );
66
67 wxFlexGridSizer* fgViaProtection;
68 fgViaProtection = new wxFlexGridSizer( 0, 3, 5, 0 );
69 fgViaProtection->SetFlexibleDirection( wxBOTH );
70 fgViaProtection->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
71
72 m_fillViasLabel = new wxStaticText( this, wxID_ANY, _("Fill vias:"), wxDefaultPosition, wxDefaultSize, 0 );
73 m_fillViasLabel->Wrap( -1 );
74 fgViaProtection->Add( m_fillViasLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
75
76 m_fillVias = new wxCheckBox( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
77 m_fillVias->SetToolTip( _("Filled: the hole is completely filled.") );
78
79 fgViaProtection->Add( m_fillVias, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
80
81
82 fgViaProtection->Add( 0, 0, 1, wxEXPAND, 5 );
83
84 m_capViasLabel = new wxStaticText( this, wxID_ANY, _("Cap vias:"), wxDefaultPosition, wxDefaultSize, 0 );
85 m_capViasLabel->Wrap( -1 );
86 fgViaProtection->Add( m_capViasLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
87
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.") );
90
91 fgViaProtection->Add( m_capVias, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
92
93
94 fgViaProtection->Add( 0, 0, 1, wxEXPAND, 5 );
95
96 m_plugViasLabel = new wxStaticText( this, wxID_ANY, _("Plug vias:"), wxDefaultPosition, wxDefaultSize, 0 );
97 m_plugViasLabel->Wrap( -1 );
98 fgViaProtection->Add( m_plugViasLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
99
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.") );
102
103 fgViaProtection->Add( m_plugViasFront, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
104
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.") );
107
108 fgViaProtection->Add( m_plugViasBack, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
109
110 m_tentViasLabel = new wxStaticText( this, wxID_ANY, _("Tent vias:"), wxDefaultPosition, wxDefaultSize, 0 );
111 m_tentViasLabel->Wrap( -1 );
112 fgViaProtection->Add( m_tentViasLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
113
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.") );
116
117 fgViaProtection->Add( m_tentViasFront, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
118
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.") );
121
122 fgViaProtection->Add( m_tentViasBack, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
123
124 m_coverViasLabel = new wxStaticText( this, wxID_ANY, _("Cover vias:"), wxDefaultPosition, wxDefaultSize, 0 );
125 m_coverViasLabel->Wrap( -1 );
126 fgViaProtection->Add( m_coverViasLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
127
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.") );
130
131 fgViaProtection->Add( m_coverViasFront, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
132
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.") );
135
136 fgViaProtection->Add( m_coverViasBack, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
137
138
139 bViaProtectionCtrls->Add( fgViaProtection, 0, wxALIGN_CENTER_VERTICAL, 5 );
140
141 wxBoxSizer* bSizerPreview;
142 bSizerPreview = new wxBoxSizer( wxVERTICAL );
143
144 m_viaPreview = new VIA_CROSS_SECTION_PREVIEW( this, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), 0 );
145 m_viaPreview->SetMinSize( wxSize( 240,120 ) );
146 m_viaPreview->SetMaxSize( wxSize( 240,120 ) );
147
148 bSizerPreview->Add( m_viaPreview, 0, wxRIGHT|wxLEFT, 20 );
149
150
151 bViaProtectionCtrls->Add( bSizerPreview, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 20 );
152
153
154 bMargins->Add( bViaProtectionCtrls, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
155
156
157 bMainSizer->Add( bMargins, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
158
159
160 this->SetSizer( bMainSizer );
161 this->Layout();
162 bMainSizer->Fit( this );
163}
164
const char * name
PANEL_SETUP_BOARD_FINISH_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
VIA_CROSS_SECTION_PREVIEW * m_viaPreview
Draws a cross section of a via from its protection and machining settings.
#define _(s)