40 m_trackWidth( aParent, m_trackWidthLabel, m_trackWidthText, m_trackWidthUnits,
minSize ),
41 m_viaDiameter( aParent, m_viaDiameterLabel, m_viaDiameterText, m_viaDiameterUnits,
minSize ),
42 m_viaDrill( aParent, m_viaDrillLabel, m_viaDrillText, m_viaDrillUnits,
minSize ),
43 m_settings( aSettings )
54 if( !wxDialog::TransferDataFromWindow() )
59 DisplayError( GetParent(),
_(
"Via hole size must be smaller than via diameter" ) );
75 if( !wxDialog::TransferDataToWindow() )
constexpr EDA_IU_SCALE pcbIUScale
Container for design settings for a BOARD object.
int GetCustomTrackWidth() const
void SetCustomTrackWidth(int aWidth)
Sets custom width for track (i.e.
int GetCustomViaDrill() const
void SetCustomViaSize(int aSize)
Set custom size for via diameter (i.e.
void SetCustomViaDrill(int aDrill)
Sets custom size for via drill (i.e.
int GetCustomViaSize() const
void SetupStandardButtons(std::map< int, wxString > aLabels={})
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
Class DIALOG_TRACK_VIA_SIZE_BASE.
wxTextCtrl * m_viaDrillText
UNIT_BINDER m_viaDiameter
DIALOG_TRACK_VIA_SIZE(EDA_DRAW_FRAME *aParent, BOARD_DESIGN_SETTINGS &aSettings)
Constructor.
bool TransferDataToWindow() override
BOARD_DESIGN_SETTINGS & m_settings
bool TransferDataFromWindow() override
The base class for create windows for drawing purpose.
virtual long long int GetValue()
Return the current value in Internal Units.
virtual void SetValue(long long int aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.
void DisplayError(wxWindow *aParent, const wxString &aText, int aDisplayTime)
Display an error or warning message box with aMessage.
This file is part of the common library.
const int minSize
Push and Shove router track width and via size dialog.