30 const wxString& aLabel,
long long int aDefaultValue ) :
32 m_unit_binder( aParent, m_label, m_textCtrl, m_unit_label, true )
52 const wxString& aLabelX,
const wxString& aLabelY,
53 const VECTOR2I& aDefaultValue,
bool aShowResetButt ) :
55 m_unit_binder_x( aParent, m_labelX, m_textCtrlX, m_unitsX, true ),
56 m_unit_binder_y( aParent, m_labelY, m_textCtrlY, m_unitsY, true )
void SetInitialFocus(wxWindow *aWindow)
Sets the window (usually a wxTextCtrl) that should be focused when the dialog is shown.
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...
The base class for create windows for drawing purpose.
virtual void SetValue(long long int aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.
void SetCoordType(ORIGIN_TRANSFORMS::COORD_TYPES_T aCoordType)
Set the current origin transform mode.
Class WX_PT_ENTRY_DIALOG_BASE.
UNIT_BINDER m_unit_binder_x
WX_PT_ENTRY_DIALOG(EDA_DRAW_FRAME *aParent, const wxString &aCaption, const wxString &aLabelX, const wxString &aLabelY, const VECTOR2I &aDefaultValue, bool aShowResetButt)
VECTOR2I GetValue()
Return the value in internal units.
void ResetValues(wxCommandEvent &event) override
UNIT_BINDER m_unit_binder_y
Class WX_UNIT_ENTRY_DIALOG_BASE.
UNIT_BINDER m_unit_binder
WX_UNIT_ENTRY_DIALOG(EDA_DRAW_FRAME *aParent, const wxString &aCaption, const wxString &aLabel, long long int aDefaultValue)
int GetValue()
Return the value in internal units.
VECTOR2< int32_t > VECTOR2I