35 static const std::vector<VIA_PROTECTION_CONTROL> controls = {
87 for( idx = 0; idx < initial_finish_list.GetCount(); idx++ )
89 if( initial_finish_list[idx] == brd_stackup.
m_FinishType )
94 if( idx >= initial_finish_list.GetCount() )
95 idx = initial_finish_list.GetCount()-1;
100 ( this->*control.m_CheckBox )->SetValue(
m_brdSettings->*control.m_Setting );
128 const std::shared_ptr<NETCLASS>& netclass =
m_brdSettings->m_NetSettings->GetDefaultNetclass();
130 if( netclass->GetViaDrill() > 0 )
131 state.
m_PadRatio = (double) netclass->GetViaDiameter() / netclass->GetViaDrill();
134 state.*control.m_State = ( this->*control.m_CheckBox )->GetValue();
145 bool cleared =
false;
149 wxCheckBox* checkBox = this->*control.m_CheckBox;
151 if( !checkBox->IsEnabled() && checkBox->GetValue() )
153 checkBox->SetValue(
false );
182 const bool value = ( this->*control.m_CheckBox )->GetValue();
184 modified |= setting != value;
190 m_board->BumpDrillModelGeneration();
202 bool modified = aStackup.
m_FinishType != finish_list[finish];
BS_EDGE_CONNECTOR_CONSTRAINTS
Container for design settings for a BOARD object.
Manage layers needed to make a physical board.
bool m_EdgePlating
True if the edge board is plated.
BS_EDGE_CONNECTOR_CONSTRAINTS m_EdgeConnectorConstraints
If the board has edge connector cards, some constrains can be specified in job file: BS_EDGE_CONNECTO...
wxString m_FinishType
The name of external copper finish.
Information pertinent to a Pcbnew printed circuit board.
BOARD_DESIGN_SETTINGS & GetDesignSettings()
wxCheckBox * m_coverViasBack
wxCheckBox * m_plugViasBack
wxCheckBox * m_plugViasFront
wxChoice * m_choiceFinish
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)
wxCheckBox * m_coverViasFront
VIA_CROSS_SECTION_PREVIEW * m_viaPreview
wxCheckBox * m_tentViasFront
wxChoice * m_choiceEdgeConn
wxCheckBox * m_cbEgdesPlated
wxCheckBox * m_tentViasBack
void onViaProtectionChanged(wxCommandEvent &aEvent)
bool TransferDataFromWindow() override
~PANEL_SETUP_BOARD_FINISH()
void enableViaProtection()
Grey out the features that cannot be built with the ones selected.
BOARD_DESIGN_SETTINGS * m_brdSettings
void ImportSettingsFrom(BOARD *aBoard)
static const std::vector< VIA_PROTECTION_CONTROL > & viaProtectionControls()
PANEL_SETUP_BOARD_FINISH(wxWindow *aParentWindow, PCB_EDIT_FRAME *aFrame)
void SetStackup(const BOARD_STACKUP &aStackup, int aCopperLayerCount)
void synchronizeWithBoard()
The main frame for Pcbnew.
static int SetLayersFromStackup(STATE &aState, const BOARD_STACKUP &aStackup, int aCopperLayerCount)
Fill the layer depths and thicknesses from a stackup, or leave them empty when it does not match the ...
VIA_CROSS_SECTION_GEOMETRY::STATE STATE
bool PlugAllowed(bool aFilled)
A plug is a partial fill from one side. A filled hole has nothing left to plug.
bool CoverAllowed(bool aFilled, bool aTented, bool aPlugged)
A cover is a second coat over a tent, a plug or a fill.
bool CapAllowed(bool aFilled)
A cap is copper plated over a filled hole, so it needs the fill.
wxArrayString GetStandardCopperFinishes(bool aTranslate)
A via protection checkbox, the board setting it edits and the preview flag it drives.
std::optional< bool > m_CoverBack
std::optional< bool > m_Capped
std::optional< bool > m_PlugFront
std::optional< bool > m_PlugBack
std::optional< bool > m_CoverFront
std::optional< bool > m_TentFront
std::optional< bool > m_Filled
std::optional< bool > m_TentBack
double m_PadRatio
Pad diameter over hole diameter.
VIA_CROSS_SECTION_GEOMETRY::STATE STATE