Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File 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 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).

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, ...).


Protected Attributes

double mValue
wxCheckBox * mpButtonFix
wxTextCtrl * mpField
RefinableParmpRefPar
double mValueOld
wxMenu * mpPopUpMenu

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 Wed Nov 14 19:48:38 2001 for ObjCryst++ by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001