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

ObjCryst::WXFieldName Class Reference

A field with the name of a WXCrystObj. More...

#include <wxCryst.h>

Inheritance diagram for ObjCryst::WXFieldName::

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

Public Methods

 WXFieldName (wxWindow *parent, const string &label, WXCrystObj *owner, const int field_id, const int hsize=50, bool isEditable=true)
void OnEnter (wxCommandEvent &event)
 When a new value is entered (must type it and then hit the 'enter' key). The Field reads the new value, then forwards the event to its owner, who will take care of anything that must be done.

void OnText (wxCommandEvent &WXUNUSED(event))
 Records when text is entered (either from self-updating or user input).

void SetValue (const string &)
 This actually posts an UpdateUI event, so that it is safe to call it from a non-graphic thread.

const string GetValue () const
 Get the current name.

virtual void CrystUpdate ()
 This does nothing. Updates should be done by the owner in the particular case of names.

virtual void UpdateUI ()
 Update the User Interface, if necessary.

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

WXCrystObjmpWXObj
 The WXCrystObj whose name is shown here.

wxString mValue
 Last name displayed.

wxTextCtrl * mpField
 The text window.

wxString mValueOld
 Last name displayed, before the value was changed by the user. Not used yet, could be useful for undo.

bool mIsSelfUpdating
 Set to true if the Field is being updated, so that no 'EVT_TEXT' is understood as user input.


Detailed Description

A field with the name of a WXCrystObj.

Updating must be done by the WXCrystObj owner.


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