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.
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...
wxStaticText * m_trackWidthLabel
wxStaticText * m_viaDrillUnits
wxTextCtrl * m_trackWidthText
wxTextCtrl * m_viaDiameterText
DIALOG_TRACK_VIA_SIZE_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Track and Via Dimensions"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxStaticText * m_viaDiameterLabel
wxStaticText * m_trackWidthUnits
wxStaticText * m_viaDiameterUnits
wxTextCtrl * m_viaDrillText
wxStaticText * m_viaDrillLabel
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.
void DisplayError(wxWindow *aParent, const wxString &aText)
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.