#include <wxRefinableObj.h>
Inheritance diagram for ObjCryst::WXFieldRefPar::
Public Methods | |
WXFieldRefPar (wxWindow *parent, const string &label, RefinablePar *refpar, const int hsize=50) | |
void | OnUpdateUI (wxUpdateUIEvent &WXUNUSED(event)) |
UpdateUI does not grab new values in the underlying object, but only updates the values which have been supplied. | |
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 | 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. | |
void | CrystUpdate () |
This gets a new value from the RefinablePar, and then posts an OnUpdateUI event. (never immediately update the GUI). | |
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, ...). | |
Protected Attributes | |
double | mValue |
wxCheckBox * | mpButtonFix |
wxTextCtrl * | mpField |
RefinablePar * | mpRefPar |
double | mValueOld |
wxMenu * | mpPopUpMenu |