#include <wxCryst.h>
Inheritance diagram for ObjCryst::WXFieldName::
Public Methods | |
WXFieldName (wxWindow *parent, const string &label, WXCrystObj *owner, const int field_id, const int hsize=50, bool isEditable=true) | |
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 &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 | SetValue (const string &) |
This posts an UpdateUI event. | |
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. | |
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 | |
WXCrystObj * | mpWXObj |
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. |
Updating must be done by the WXCrystObj owner.