Inheritance diagram for ObjCryst::WXCrystObj:
Public Methods | |
WXCrystObj (wxWindow *parent, int orient=wxHORIZONTAL, bool showName=true) | |
Constructor, with a. | |
bool | Layout () |
Fix the Layout of the window, resize if necessary. | |
void | OnToggleCollapse (wxCommandEvent &WXUNUSED(event)) |
Only display the title, and collapse everything else. | |
virtual bool | OnChangeName (const int id)=0 |
When a WXFieldName has been changed by the user, it is handled here. | |
virtual void | CrystUpdate () |
Get new values to be displayed from the underlying object, and raise flag if an UI update is necessary. | |
virtual void | UpdateUI () |
Update the User Interface, if necessary. | |
Protected Attributes | |
wxBoxSizer * | mpTopSizer |
Top sizer including the title and WXCrystObj::mpSizer. | |
wxBoxSizer * | mpSizer |
Sizer including all sub-objects. | |
WXFieldName * | mpWXTitle |
The title. | |
bool | mIsExpanded |
To be used for collapsing the sub-objects. | |
WXCrystObjBasicList | mList |
All windows but the title and collapse button are in this list. | |
wxButton * | mpCollapseButton |
The collapse button. |
A button (which should be used to collapse the object) is used to create an indentation for the sub-objects.
|
Get new values to be displayed from the underlying object, and raise flag if an UI update is necessary. The actual GUI update is not made here. UpdateUI() should be called separately, from the main thread. Implements ObjCryst::WXCrystObjBasic. Reimplemented in ObjCryst::WXCrystal, ObjCryst::WXDiffractionSingleCrystal, ObjCryst::WXOptimizationObj, ObjCryst::WXMolecule, ObjCryst::WXPowderPattern, and ObjCryst::WXRefinableObj. |
|
When a WXFieldName has been changed by the user, it is handled here. This returns true if the value has been handled (for inheritance purposes). Implemented in ObjCryst::WXCrystal, ObjCryst::WXOptimizationObj, ObjCryst::WXRegistry< T >, ObjCryst::WXRefinableObj, ObjCryst::WXScatteringPowerAtom, ObjCryst::WXScatteringPowerSphere, ObjCryst::WXRegistry< ZAtom >, ObjCryst::WXRegistry< ScatteringPower >, ObjCryst::WXRegistry< Scatterer >, and ObjCryst::WXRegistry< PowderPatternComponent >. |
|
Only display the title, and collapse everything else.
|