#include <wxCryst.h>
Inheritance diagram for ObjCryst::WXFieldParBase::
Public Methods | |
WXFieldParBase (wxWindow *parent, const string &label, const int field_id, const int hsize=50) | |
Constructor. | |
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). | |
virtual void | CrystUpdate ()=0 |
This gets a new value from the parameter. | |
virtual void | Revert ()=0 |
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 Methods | |
virtual void | ReadNewValue ()=0 |
Reads the new value when the Enter key is hit. | |
Protected Attributes | |
wxTextCtrl * | mpField |
The field in which the value is written. | |
bool | mIsSelfUpdating |
Set to true if the Field is being updated, so that no 'EVT_TEXT' is understood as user input. |