#include <wxRefinableObj.h>
Inheritance diagram for ObjCryst::WXFieldRefPar::
Public Methods | |
WXFieldRefPar (wxWindow *parent, const string &label, RefinablePar *refpar, const int hsize=50) | |
void | OnEnter (wxCommandEvent &WXUNUSED(event)) |
When a new value is entered (must type it and then hit the 'enter' key). The Field reads the new value, and directly changes the RefinablePar value (contrary to what happens for WXFieldName)by using RefinablePar::SetHumanValue(). | |
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 | OnPopupMenu (wxCommandEvent &event) |
Opens the popu menu, to allow changing limits. | |
void | OnPopupMenuChoice (wxMenuEvent &event) |
Opens the popu menu, to allow changing limits. | |
virtual void | CrystUpdate () |
Get new values to be displayed from the underlying object, and raise flag if an UI update is necessary. The actual GUI update is not made here. UpdateUI() should be called separately, from the main thread. | |
virtual void | UpdateUI () |
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 |
wxTextCtrl * | mpField |
RefinablePar * | mpRefPar |
REAL | mValueOld |
wxMenu * | mpPopUpMenu |
bool | mIsSelfUpdating |