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