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

ObjCryst::WXFieldParBase Class Reference

A field for a parameter. This is a an abstract bas class, which can handle events (the real classes to use is the templated WXFieldPar class). If the parameter is a RefinablePar, use WXFieldRefPar. More...

#include <wxCryst.h>

Inheritance diagram for ObjCryst::WXFieldParBase::

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

Public Methods

 WXFieldParBase (wxWindow *parent, const string &label, const int field_id, const int hsize=50)
 Constructor.

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

virtual void CrystUpdate ()=0
 This gets a new value from the parameter.

virtual void Revert ()=0
 Revert to the previous value.


Protected Methods

virtual void ReadNewValue ()=0
 Reads the new value when the Enter key is hit.

virtual void ApplyNewValue ()=0
 Apply a new value.


Protected Attributes

wxTextCtrl * mpField
 The field in which the value is written.


Detailed Description

A field for a parameter. This is a an abstract bas class, which can handle events (the real classes to use is the templated WXFieldPar class). If the parameter is a RefinablePar, use WXFieldRefPar.


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