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

ObjCryst::WXCrystObj Class Reference

Base class for all displayed ObjCryst objects (with a title, and a sizer to stack objects). More...

#include <wxCryst.h>

Inheritance diagram for ObjCryst::WXCrystObj::

ObjCryst::WXCrystObjBasic ObjCryst::WXOptimizationObj ObjCryst::WXRefinableObj ObjCryst::WXRegistry ObjCryst::WXMonteCarloObj ObjCryst::WXCrystal ObjCryst::WXDiffractionSingleCrystal ObjCryst::WXPowderPattern ObjCryst::WXPowderPatternBackground ObjCryst::WXPowderPatternDiffraction ObjCryst::WXScatterer ObjCryst::WXScatteringPowerAtom List of all members.

Public Methods

 WXCrystObj (wxWindow *parent, int orient=wxHORIZONTAL, bool showName=true)
 Constructor, with a.

virtual ~WXCrystObj ()
bool Layout ()
 Fix the Layout of the window, resize if necessary.

void OnToggleCollapse (wxCommandEvent &WXUNUSED(event))
 Only display the title, and collapse everything else. changed, so it is pretty useless so far... More...

virtual bool OnChangeName (const int id)=0
 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).

virtual void CrystUpdate ()
 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.

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.

WXFieldNamempWXTitle
 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.


Detailed Description

Base class for all displayed ObjCryst objects (with a title, and a sizer to stack objects).

A button (which should be used to collapse the object) is used to create an indentation for the sub-objects.

Todo:
Allow the objects to be collabsable. The difficulty is that even if the object is not shown, it is not removed by the Sizer as long as it is not deleted... Needs some testing ! Otherwise it would also be possible to delete and re-create sub-objects when collapsing, but that would be more difficult.


Member Function Documentation

void ObjCryst::WXCrystObj::OnToggleCollapse wxCommandEvent &WXUNUSED(event)   
 

Only display the title, and collapse everything else. changed, so it is pretty useless so far...

Bug:
: the windows do collapse, but the size of the window is not


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