Inheritance diagram for ObjCryst::WXCrystObj:
Public Member Functions | |
WXCrystObj (wxWindow *parent, int orient=wxHORIZONTAL, bool showName=true) | |
Constructor, with a. | |
virtual | ~WXCrystObj () |
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 (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 necessary. | |
virtual void | UpdateUI (const bool mutexlock=false) |
Update the User Interface, if necessary. | |
virtual void | OnEnable (wxUpdateUIEvent &event) |
virtual bool | Enable (bool enable) |
virtual void | BottomLayout (WXCrystObjBasic *pChild) |
Ask for a new Layout with recalculated size hints, because a child has been changed or added. | |
virtual void | AddChild (WXCrystObjBasic *pChild, bool doBottomLayout=true) |
Notify that a new children has been added, also adding it to the correct sizer (which can be the top sizer or not). | |
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.
|
Constructor, with a.
|
|
|
|
Notify that a new children has been added, also adding it to the correct sizer (which can be the top sizer or not).
Reimplemented from ObjCryst::WXCrystObjBasic. |
|
Ask for a new Layout with recalculated size hints, because a child has been changed or added.
Reimplemented from ObjCryst::WXCrystObjBasic. |
|
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, ObjCryst::WXPowderPatternBackground, and ObjCryst::WXRefinableObj. |
|
Reimplemented in ObjCryst::WXCrystal, and ObjCryst::WXMolecule. |
|
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::WXProfilePseudoVoigt, ObjCryst::WXProfileDoubleExponentialPseudoVoigt, 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.
|
|
Update the User Interface, if necessary.
Implements ObjCryst::WXCrystObjBasic. Reimplemented in ObjCryst::WXAtom, ObjCryst::WXCrystal, ObjCryst::WXDiffractionSingleCrystal, ObjCryst::WXOptimizationObj, ObjCryst::WXMolecule, ObjCryst::WXPowderPattern, ObjCryst::WXPowderPatternBackground, ObjCryst::WXPowderPatternDiffraction, ObjCryst::WXRefinableObj, ObjCryst::WXScatteringPowerAtom, and ObjCryst::WXScatteringPowerSphere. |
|
To be used for collapsing the sub-objects.
|
|
All windows but the title and collapse button are in this list.
|
|
The collapse button.
|
|
Sizer including all sub-objects.
|
|
Top sizer including the title and WXCrystObj::mpSizer.
|
|
The title.
|