41 TEXT_CTRL_EVAL( wxWindow* aParent, wxWindowID aId,
const wxString& aValue = wxEmptyString,
42 const wxPoint& aPos = wxDefaultPosition,
const wxSize& aSize = wxDefaultSize,
43 long aStyle = 0,
const wxValidator& aValidator = wxDefaultValidator,
44 const wxString& aName = wxTextCtrlNameStr );
61 void SetValue(
const wxString& aValue )
override;
66 wxString GetFormula()
const;
74 bool RestoreFormula(
const wxString& aFormula );
void onTextFocusLost(wxFocusEvent &aEvent)
NUMERIC_EVALUATOR m_eval
Numeric expression evaluator.
virtual ~TEXT_CTRL_EVAL()
void onTextEnter(wxCommandEvent &aEvent)
std::optional< std::function< void(TEXT_CTRL_EVAL *aCtrl)> > m_customEval
void SetCustomEval(std::function< void(TEXT_CTRL_EVAL *aCtrl)> aCustomEval)
TEXT_CTRL_EVAL(wxWindow *aParent, wxWindowID aId, const wxString &aValue=wxEmptyString, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxDefaultSize, long aStyle=0, const wxValidator &aValidator=wxDefaultValidator, const wxString &aName=wxTextCtrlNameStr)
void DeferToBinder()
Leave evaluation to a UNIT_BINDER bound to this control.
void onTextFocusGet(wxFocusEvent &aEvent)