Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

ObjCryst::WXFieldRefPar Class Reference

A field for a RefinablePar. This shows the 'human' value of the parameter, and allows the modification of the parameter. A button allows to fix/unfix the parameter. More...

#include <wxRefinableObj.h>

Inheritance diagram for ObjCryst::WXFieldRefPar::

ObjCryst::WXField ObjCryst::WXCrystObjBasic List of all members.

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.

RefinableParGetRefPar ()
 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
RefinableParmpRefPar
REAL mValueOld
wxMenu * mpPopUpMenu
bool mIsSelfUpdating

Detailed Description

A field for a RefinablePar. This shows the 'human' value of the parameter, and allows the modification of the parameter. A button allows to fix/unfix the parameter.

Todo:
: allow acces to the parameters limits


The documentation for this class was generated from the following file:
Generated on Tue Feb 5 17:37:30 2002 for ObjCryst++ by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001