23 #include "wx/wxprec.h"
31 #include "ObjCryst/wxCryst/wxScatterer.h"
51 WXScatterer::WXScatterer(wxWindow* parent, Scatterer *obj):
52 WXRefinableObj(parent,(RefinableObj*)obj),mpScatterer(obj)
54 VFN_DEBUG_MESSAGE(
"WXScatterer::WXScatterer()",6)
55 mpWXTitle->SetForegroundColour(wxColour(0,100,0));
57 wxBoxSizer* sizer=new wxBoxSizer(wxHORIZONTAL);
60 =mpScatterer->GetPar(mpScatterer->mXYZ.data()+0).WXCreate(this);
62 =mpScatterer->GetPar(mpScatterer->mXYZ.data()+1).WXCreate(this);
64 =mpScatterer->GetPar(mpScatterer->mXYZ.data()+2).WXCreate(this);
66 =mpScatterer->GetPar(&(mpScatterer->mOccupancy)).WXCreate(this);
67 dynamic_cast<WXField *> (pFieldX)->SetLabel("X R");
68 dynamic_cast<WXField *> (pFieldY)->SetLabel("Y R");
69 dynamic_cast<WXField *> (pFieldZ)->SetLabel("Z R");
70 dynamic_cast<WXField *> (pFieldPopu)->SetLabel("Occup R");
71 sizer->Add(pFieldX ,0,wxALIGN_CENTER);
72 sizer->Add(pFieldY ,0,wxALIGN_CENTER);
73 sizer->Add(pFieldZ ,0,wxALIGN_CENTER);
74 sizer->Add(pFieldPopu ,0,wxALIGN_CENTER);
76 mpSizer->Add(sizer,0,wxALIGN_LEFT);
80 mList.Add(pFieldPopu);
WXFieldName * mpWXTitle
The title.
WXCrystObjBasicList mList
All windows but the title and collapse button are in this list.
WXCrystObjBasic(wxWindow *parent)
Constructor.
wxBoxSizer * mpSizer
Sizer including all sub-objects.
The namespace which includes all objects (crystallographic and algorithmic) in ObjCryst++.