26 #ifndef _VFN_WX_REFINABLE_OBJ_H_ 
   27 #define _VFN_WX_REFINABLE_OBJ_H_ 
   36 #include "ObjCryst/wxCryst/wxCryst.h" 
   39 #include "ObjCryst/RefinableObj/RefinableObj.h" 
   48                                                 const string &message,
int &);
 
   52                                                       wxWindow*parent, 
const string &message,
 
   63                     const bool enableFixButton=
true, 
const bool enableLimitedButton=
true);
 
   69       void OnEnter(wxCommandEvent & WXUNUSED(event));
 
   71       void OnText(wxCommandEvent & WXUNUSED(event));
 
   80       virtual void CrystUpdate(
const bool updateUI=
false,
const bool mutexlock=
false);
 
   81       virtual void UpdateUI(
const bool mutexlock=
false);
 
   92       wxCheckBox *mpButtonFix;
 
   93       wxCheckBox *mpButtonLimited;
 
  100    DECLARE_EVENT_TABLE()
 
  111       void OnUpdateUI(wxUpdateUIEvent & WXUNUSED(event));
 
  115       void OnChoice(wxCommandEvent & WXUNUSED(event));
 
  116       virtual void CrystUpdate(
const bool updateUI=
false,
const bool mutexlock=
false);
 
  117       virtual void UpdateUI(
const bool mutexlock=
false);
 
  128    DECLARE_EVENT_TABLE()
 
  151       virtual void CrystUpdate(
const bool updateUI=
false,
const bool mutexlock=
false);
 
  152       virtual void UpdateUI(
const bool mutexlock=
false);
 
  154       void OnMenuSave(wxCommandEvent & WXUNUSED(event));
 
  155       void OnMenuLoad(wxCommandEvent & WXUNUSED(event));
 
  156       void OnMenuFixAllPar(wxCommandEvent & WXUNUSED(event));
 
  157       void OnMenuUnFixAllPar(wxCommandEvent & WXUNUSED(event));
 
  158       void OnMenuParRandomize(wxCommandEvent & WXUNUSED(event));
 
  159       virtual void OnUpdateUI(wxUpdateUIEvent& event);
 
  164    DECLARE_EVENT_TABLE()
 
  168 #endif //_VFN_WX_REFINABLE_OBJ_H_ 
T * WXDialogChooseFromRegistry(ObjRegistry< T > ®, wxWindow *parent, const string &message, int &choice)
This function allows to pick up one object in a registry. 
void Revert()
After a user entry, this allows to go back to the last value, if for some reason the entry was reject...
void OnToggleLimited(wxCommandEvent &WXUNUSED(event))
Toggle the 'limited' status of the parameter. 
WX representation of a RefObj option. This displays the names of the different choices. 
A field for a RefinablePar. 
void OnPopupMenuChoice(wxCommandEvent &event)
Opens the popu menu, to allow changing limits. 
void OnToggleFix(wxCommandEvent &WXUNUSED(event))
Toggle the 'fixed' status of the parameter. 
RefinablePar & GetRefPar()
Get the RefinablePar associated to this field. 
This displays all components of a ObjCryst++ Registry. 
This is the abstract base class for all fields, wether they contain a floating-point parameter...
wxString mFormat
Format to be used, default = _T("%8f") 
Generic Refinable Object. 
Abstract base class for all objects in wxCryst. 
void OnPopupMenu(wxMouseEvent &event)
Opens the popu menu, to allow changing limits. 
virtual void UpdateUI(const bool mutexlock=false)
Update the User Interface, if necessary. 
virtual void CrystUpdate(const bool updateUI=false, const bool mutexlock=false)
Get new values to be displayed from the underlying object, and raise flag if an UI update is necessar...
void OnText(wxCommandEvent &WXUNUSED(event))
Records when text is entered (either from self-updating or user input) 
void Revert()
After a user entry, this allows to go back to the last value, if for some reason the entry was reject...
~WXFieldRefPar()
When a new value is entered (must type it and then hit the 'enter' key). 
virtual void CrystUpdate(const bool updateUI=false, const bool mutexlock=false)
Get new values to be displayed from the underlying object, and raise flag if an UI update is necessar...
Base class for all displayed ObjCryst objects (with a title, and a sizer to stack objects)...
virtual void ValidateUserInput()
This function shall be called when a new value has been entered. 
virtual void UpdateUI(const bool mutexlock=false)
Update the User Interface, if necessary. 
void SetFormat(const wxString &format)
Set Format. 
The base wxCryst class for all RefinableObj objects. 
The namespace which includes all objects (crystallographic and algorithmic) in ObjCryst++. 
virtual void SetToolTip(const wxString &tip)
Set tooltip for this window. It will be activated when going over the choice field. 
Generic class for parameters of refinable objects. 
void OnChoice(wxCommandEvent &WXUNUSED(event))
When a new value is entered. 
virtual bool OnChangeName(const int id)
When a WXFieldName has been changed by the user, it is handled here. 
virtual void ValidateUserInput()
Does nothing. Any user input is directly validated (OnChoice). 
virtual void SetToolTip(const wxString &tip)
Set tooltip for this window. It will be activated when going over the entry field. 
virtual void UpdateUI(const bool mutexlock=false)
Update the User Interface, if necessary. 
virtual void CrystUpdate(const bool updateUI=false, const bool mutexlock=false)
Get new values to be displayed from the underlying object, and raise flag if an UI update is necessar...
virtual bool OnChangeName(const int id)
When a WXFieldName has been changed by the user, it is handled here. 
Our own local menu bar, using buttons and Popup menus.