|
Public Member Functions |
| WXFieldRefPar (wxWindow *parent, const string &label, RefinablePar *refpar, const int hsize=50, const bool enableFixButton=true, const bool enableLimitedButton=true) |
| ~WXFieldRefPar () |
| When a new value is entered (must type it and then hit the 'enter' key).
|
void | OnEnter (wxCommandEvent &WXUNUSED(event)) |
void | OnText (wxCommandEvent &WXUNUSED(event)) |
| Records when text is entered (either from self-updating or user input).
|
void | OnToggleFix (wxCommandEvent &WXUNUSED(event)) |
| Toggle the 'fixed' status of the parameter.
|
void | OnToggleLimited (wxCommandEvent &WXUNUSED(event)) |
| Toggle the 'limited' status of the parameter.
|
void | OnPopupMenu (wxMouseEvent &event) |
| Opens the popu menu, to allow changing limits.
|
void | OnPopupMenuChoice (wxCommandEvent &event) |
| Opens the popu menu, to allow changing limits.
|
virtual void | CrystUpdate (const bool updateUI=false, const bool mutexlock=false) |
| Get new values to be displayed from the underlying object, and raise flag if an UI update is necessary.
|
virtual void | UpdateUI (const bool mutexlock=false) |
| Update the User Interface, if necessary.
|
RefinablePar & | GetRefPar () |
| Get the RefinablePar associated to this field.
|
void | Revert () |
| After a user entry, this allows to go back to the last value, if for some reason the entry was rejected (because the object is currently busy, ...).
|
virtual void | ValidateUserInput () |
| This function shall be called when a new value has been entered.
|
Protected Attributes |
REAL | mValue |
wxCheckBox * | mpButtonFix |
wxCheckBox * | mpButtonLimited |
wxTextCtrl * | mpField |
RefinablePar * | mpRefPar |
REAL | mValueOld |
bool | mIsSelfUpdating |
This shows the 'human' value of the parameter, and allows the modification of the parameter. A button allows to fix/unfix the parameter.