#include "TROOT.h"
#include "TClass.h"
#include "TVirtualPad.h"
#include "TGeoGedFrame.h"
#include "TGTab.h"
#include "TGLabel.h"
#include "TGComboBox.h"
#include "TGListBox.h"
#include "TGListTree.h"
#include "TGTextEntry.h"
#include "TGCanvas.h"
#include "TGMimeTypes.h"
#include "TGeoManager.h"
#include "TGeoShape.h"
#include "TGeoVolume.h"
#include "TGeoMedium.h"
#include "TGeoMaterial.h"
#include "TGeoMatrix.h"
#include "TGedEditor.h"
#include "TGeoTabManager.h"
TMap TGeoTabManager::fgEditorToMgrMap;
ClassImp(TGeoTabManager)
TGeoTabManager::TGeoTabManager(TGedEditor *ged)
{
fGedEditor = ged;
fPad = ged->GetPad();
fTab = ged->GetTab();
fVolume = 0;
fShapePanel = 0;
fMediumPanel = 0;
fMaterialPanel = 0;
fMatrixPanel = 0;
fVolumeTab = 0;
fgEditorToMgrMap.Add(ged, this);
}
TGeoTabManager::~TGeoTabManager()
{
fgEditorToMgrMap.Remove(fGedEditor);
if (fShapePanel) delete fShapePanel;
if (fMaterialPanel) delete fMaterialPanel;
if (fMatrixPanel) delete fMatrixPanel;
if (fMediumPanel) delete fMediumPanel;
}
void TGeoTabManager::Cleanup(TGCompositeFrame *frame)
{
TGFrameElement *el;
TList *list = frame->GetList();
Int_t nframes = list->GetSize();
TClass *cl;
for (Int_t i=0; i<nframes; i++) {
el = (TGFrameElement *)list->At(i);
cl = el->fFrame->IsA();
if (cl==TGCompositeFrame::Class() || cl==TGHorizontalFrame::Class() || cl==TGVerticalFrame::Class())
Cleanup((TGCompositeFrame*)el->fFrame);
}
frame->Cleanup();
}
void TGeoTabManager::GetShapeEditor(TGeoShape *shape)
{
if (!shape) return;
if (!fShapePanel) fShapePanel = new TGeoTransientPanel(fGedEditor, "Shape", shape);
else {
fShapePanel->SetModel(shape);
fShapePanel->Show();
}
}
void TGeoTabManager::GetVolumeEditor(TGeoVolume *volume)
{
if (!volume || !fVolumeTab) return;
GetEditors(TAttLine::Class());
GetEditors(TGeoVolume::Class());
fVolumeTab->MapSubwindows();
fVolumeTab->Layout();
SetModel(volume);
}
void TGeoTabManager::GetMatrixEditor(TGeoMatrix *matrix)
{
if (!matrix) return;
if (!fMatrixPanel) fMatrixPanel = new TGeoTransientPanel(fGedEditor, "Matrix", matrix);
else {
fMatrixPanel->SetModel(matrix);
fMatrixPanel->Show();
}
}
void TGeoTabManager::GetMediumEditor(TGeoMedium *medium)
{
if (!medium) return;
if (!fMediumPanel) fMediumPanel = new TGeoTransientPanel(fGedEditor, "Medium", medium);
else {
fMediumPanel->SetModel(medium);
fMediumPanel->Show();
}
}
void TGeoTabManager::GetMaterialEditor(TGeoMaterial *material)
{
if (!material) return;
TString name = "Material";
if (material->IsMixture()) name = "Mixture";
if (!fMaterialPanel) fMaterialPanel = new TGeoTransientPanel(fGedEditor, name.Data(), material);
else {
fMaterialPanel->SetModel(material);
fMaterialPanel->Show();
}
}
void TGeoTabManager::GetEditors(TClass *cl)
{
TClass *class2 = TClass::GetClass(Form("%sEditor",cl->GetName()));
if (class2 && class2->InheritsFrom(TGedFrame::Class())) {
TGFrameElement *fr;
TIter next(fVolumeTab->GetList());
while ((fr = (TGFrameElement *) next())) if (fr->fFrame->IsA() == class2) return;
TGClient *client = fGedEditor->GetClient();
TGWindow *exroot = (TGWindow*) client->GetRoot();
client->SetRoot(fVolumeTab);
TGedEditor::SetFrameCreator(fGedEditor);
TGedFrame* gfr = reinterpret_cast<TGedFrame*>(class2->New());
gfr->SetModelClass(cl);
TGedEditor::SetFrameCreator(0);
client->SetRoot(exroot);
fVolumeTab->AddFrame(gfr, new TGLayoutHints(kLHintsTop | kLHintsExpandX, 0, 0, 2, 2));
gfr->MapSubwindows();
}
}
TGeoTabManager *TGeoTabManager::GetMakeTabManager(TGedEditor *ged)
{
if (!ged) return NULL;
TPair *pair = (TPair*) fgEditorToMgrMap.FindObject(ged);
if (pair) {
return (TGeoTabManager*) pair->Value();
} else {
TGeoTabManager *tabmgr = new TGeoTabManager(ged);
return tabmgr;
}
}
Int_t TGeoTabManager::GetTabIndex() const
{
Int_t ntabs = fTab->GetNumberOfTabs();
TString tabname = "Volume";
TGTabElement *tel;
for (Int_t i=0; i<ntabs; i++) {
tel = fTab->GetTabTab(i);
if (tel && !strcmp(tel->GetString(),tabname.Data())) return i;
}
return 0;
}
void TGeoTabManager::MoveFrame(TGCompositeFrame *fr, TGCompositeFrame *p)
{
TList *list = p->GetList();
TIter next(list);
TGFrameElement *el = 0;
while ((el=(TGFrameElement*)next())) {
if (el->fFrame == fr) break;
}
if (el) {
list->Remove(el);
list->Add(el);
}
}
void TGeoTabManager::SetVolTabEnabled(Bool_t flag)
{
fTab->SetEnabled(GetTabIndex(), flag);
}
void TGeoTabManager::SetModel(TObject *model)
{
TGCompositeFrame *tab = fVolumeTab;
fVolume = (TGeoVolume*)model;
TGFrameElement *el;
TIter next(tab->GetList());
while ((el = (TGFrameElement *) next())) {
if ((el->fFrame)->InheritsFrom(TGedFrame::Class())) {
((TGedFrame *)(el->fFrame))->SetModel(model);
}
}
}
void TGeoTabManager::SetTab()
{
fTab->SetTab(GetTabIndex());
}
ClassImp(TGeoTreeDialog)
TObject *TGeoTreeDialog::fgSelectedObj = 0;
TObject *TGeoTreeDialog::GetSelected()
{
return fgSelectedObj;
}
TGeoTreeDialog::TGeoTreeDialog(TGFrame *caller, const TGWindow *main, UInt_t w, UInt_t h)
:TGTransientFrame(main, main, w, h)
{
fgSelectedObj = 0;
fCanvas = new TGCanvas(this, 100, 200, kSunkenFrame | kDoubleBorder);
fLT = new TGListTree(fCanvas->GetViewPort(), 100, 200);
fLT->Associate(this);
fCanvas->SetContainer(fLT);
AddFrame(fCanvas, new TGLayoutHints(kLHintsLeft | kLHintsExpandX | kLHintsExpandY, 2,2,2,2));
f1 = new TGCompositeFrame(this, 100, 10, kHorizontalFrame | kLHintsExpandX);
fObjLabel = new TGLabel(f1, "Selected: -none-");
Pixel_t color;
gClient->GetColorByName("#0000ff", color);
fObjLabel->SetTextColor(color);
fObjLabel->ChangeOptions(kSunkenFrame | kDoubleBorder);
f1->AddFrame(fObjLabel, new TGLayoutHints(kLHintsLeft | kLHintsExpandX | kLHintsExpandY, 2,2,2,2));
fClose = new TGTextButton(f1, "&Close");
fClose->Associate(this);
f1->AddFrame(fClose, new TGLayoutHints(kLHintsRight, 2,2,2,2));
AddFrame(f1, new TGLayoutHints(kLHintsBottom | kLHintsExpandX, 2,2,2,2));
Int_t ww = caller->GetWidth();
Window_t wdum;
Int_t ax, ay;
gVirtualX->TranslateCoordinates(caller->GetId(), main->GetId(), 0,0,ax,ay,wdum);
Move(ax + ww, ay);
SetWMPosition(ax, ay);
}
TGeoTreeDialog::~TGeoTreeDialog()
{
delete fClose;
delete fObjLabel;
delete f1;
delete fLT;
delete fCanvas;
}
void TGeoTreeDialog::DoSelect(TGListTreeItem *item)
{
static char name[256];
if (!item || !item->GetUserData()) {
fgSelectedObj = 0;
if (!strcmp(name, "Selected: -none-")) return;
sprintf(name,"Selected: -none-");
fObjLabel->SetText(name);
}
fgSelectedObj = (TObject *)item->GetUserData();
if (fgSelectedObj) {
sprintf(name, "Selected %s", fgSelectedObj->GetName());
fObjLabel->SetText(name);
}
}
ClassImp(TGeoVolumeDialog)
TGeoVolumeDialog::TGeoVolumeDialog(TGFrame *caller, const TGWindow *main, UInt_t w, UInt_t h)
:TGeoTreeDialog(caller, main, w, h)
{
BuildListTree();
ConnectSignalsToSlots();
MapSubwindows();
Layout();
SetWindowName("Volume dialog");
MapWindow();
gClient->WaitForUnmap(this);
}
void TGeoVolumeDialog::BuildListTree()
{
const TGPicture *pic_fld = gClient->GetPicture("folder_t.xpm");
const TGPicture *pic_fldo = gClient->GetPicture("ofolder_t.xpm");
const TGPicture *pic_file = gClient->GetPicture("mdi_default.xpm");
const TGPicture *pic_fileo = gClient->GetPicture("fileopen.xpm");
TGListTreeItem *parent_item=0;
TGeoVolume *parent_vol = gGeoManager->GetMasterVolume();
TGeoVolume *vol;
parent_item = fLT->AddItem(parent_item, "Volume hierarchy", pic_fldo, pic_fld);
parent_item->SetTipText("Select a volume from the existing hierarchy");
fLT->OpenItem(parent_item);
if (parent_vol) {
if (!parent_vol->GetNdaughters()) {
parent_item = fLT->AddItem(parent_item, parent_vol->GetName(), parent_vol, pic_fileo, pic_file);
parent_item->SetTipText("Master volume");
fLT->SetSelected(parent_item);
} else {
parent_item = fLT->AddItem(parent_item, parent_vol->GetName(), parent_vol, pic_fldo, pic_fld);
parent_item->SetTipText("Master volume");
fLT->SetSelected(parent_item);
}
}
parent_item = fLT->AddItem(NULL, "Other volumes", pic_fldo, pic_fld);
parent_item->SetTipText("Select a volume from the list of unconnected volumes");
TIter next1(gGeoManager->GetListOfVolumes());
Bool_t found = kFALSE;
while ((vol=(TGeoVolume*)next1())) {
if (vol->IsAdded()) continue;
fLT->AddItem(parent_item, vol->GetName(), vol, pic_fileo, pic_file);
found = kTRUE;
}
if (found) {
if (!parent_vol) fLT->SetSelected(parent_item->GetFirstChild());
}
}
void TGeoVolumeDialog::DoClose()
{
DeleteWindow();
}
void TGeoVolumeDialog::DoItemClick(TGListTreeItem *item, Int_t btn)
{
if (btn!=kButton1) return;
DoSelect(item);
if (!item || !item->GetUserData()) return;
const TGPicture *pic_fld = gClient->GetPicture("folder_t.xpm");
const TGPicture *pic_fldo = gClient->GetPicture("ofolder_t.xpm");
const TGPicture *pic_file = gClient->GetPicture("mdi_default.xpm");
const TGPicture *pic_fileo = gClient->GetPicture("fileopen.xpm");
TGeoVolume *parent_vol = (TGeoVolume*)item->GetUserData();
TGeoVolume *vol;
TGeoNode *crtnode;
TGListTreeItem *daughter_item;
Int_t i,j,ind,icopy;
Int_t nd = parent_vol->GetNdaughters();
for (i=0; i<nd; i++) {
icopy = 0;
crtnode = parent_vol->GetNode(i);
vol = crtnode->GetVolume();
ind = parent_vol->GetIndex(crtnode);
for (j=0; j<ind; j++) if (parent_vol->GetNode(j)->GetVolume() == vol) break;
if (i<ind) continue;
icopy++;
for (j=ind+1; j<nd; j++) if (parent_vol->GetNode(j)->GetVolume() == vol) icopy++;
daughter_item = fLT->AddItem(item, ((icopy>1)?Form("%s (%i)",vol->GetName(),icopy):vol->GetName()),
vol,((vol->GetNdaughters())?pic_fldo:pic_fileo), ((vol->GetNdaughters())?pic_fld:pic_file));
if (strlen(vol->GetTitle())) daughter_item->SetTipText(vol->GetTitle());
}
if (nd) gClient->NeedRedraw(fLT);
}
void TGeoVolumeDialog::ConnectSignalsToSlots()
{
fClose->Connect("Clicked()", "TGeoVolumeDialog", this, "DoClose()");
fLT->Connect("Clicked(TGListTreeItem *, Int_t)", "TGeoVolumeDialog", this,
"DoItemClick(TGListTreeItem *, Int_t)");
}
ClassImp(TGeoShapeDialog)
TGeoShapeDialog::TGeoShapeDialog(TGFrame *caller, const TGWindow *main, UInt_t w, UInt_t h)
:TGeoTreeDialog(caller, main, w, h)
{
BuildListTree();
ConnectSignalsToSlots();
MapSubwindows();
Layout();
SetWindowName("Shape dialog");
MapWindow();
gClient->WaitForUnmap(this);
}
void TGeoShapeDialog::BuildListTree()
{
const TGPicture *pic_fld = gClient->GetPicture("folder_t.xpm");
const TGPicture *pic_fldo = gClient->GetPicture("ofolder_t.xpm");
const TGPicture *pic_shape;
TGListTreeItem *parent_item=0;
TGeoShape *shape;
const char *shapename;
TString fld_name;
Int_t nshapes = gGeoManager->GetListOfShapes()->GetEntriesFast();
if (!nshapes) return;
for (Int_t i=0; i<nshapes; i++) {
shape = (TGeoShape*)gGeoManager->GetListOfShapes()->At(i);
shapename = shape->IsA()->GetName();
pic_shape = fClient->GetMimeTypeList()->GetIcon(shapename, kTRUE);
fld_name = shapename;
fld_name.Remove(0,4);
fld_name += " Shapes";
parent_item = fLT->FindChildByName(NULL, fld_name.Data());
if (!parent_item) {
parent_item = fLT->AddItem(NULL, fld_name.Data(), pic_fldo, pic_fld);
parent_item->SetTipText(Form("List of %s shapes",fld_name.Data()));
}
fLT->AddItem(parent_item, shape->GetName(), shape, pic_shape, pic_shape);
}
}
void TGeoShapeDialog::DoClose()
{
DeleteWindow();
}
void TGeoShapeDialog::DoItemClick(TGListTreeItem *item, Int_t btn)
{
if (btn!=kButton1) return;
DoSelect(item);
if (!item || !item->GetUserData()) return;
}
void TGeoShapeDialog::ConnectSignalsToSlots()
{
fClose->Connect("Clicked()", "TGeoShapeDialog", this, "DoClose()");
fLT->Connect("Clicked(TGListTreeItem *, Int_t)", "TGeoShapeDialog", this,
"DoItemClick(TGListTreeItem *, Int_t)");
}
ClassImp(TGeoMediumDialog)
TGeoMediumDialog::TGeoMediumDialog(TGFrame *caller, const TGWindow *main, UInt_t w, UInt_t h)
:TGeoTreeDialog(caller, main, w, h)
{
BuildListTree();
ConnectSignalsToSlots();
MapSubwindows();
Layout();
SetWindowName("Medium dialog");
MapWindow();
gClient->WaitForUnmap(this);
}
void TGeoMediumDialog::BuildListTree()
{
const TGPicture *pic_med = gClient->GetPicture("geomedium_t.xpm");;
TGeoMedium *med;
Int_t nmed = gGeoManager->GetListOfMedia()->GetSize();
if (!nmed) return;
for (Int_t i=0; i<nmed; i++) {
med = (TGeoMedium*)gGeoManager->GetListOfMedia()->At(i);
fLT->AddItem(NULL, med->GetName(), med, pic_med, pic_med);
}
}
void TGeoMediumDialog::DoClose()
{
DeleteWindow();
}
void TGeoMediumDialog::DoItemClick(TGListTreeItem *item, Int_t btn)
{
if (btn!=kButton1) return;
DoSelect(item);
if (!item || !item->GetUserData()) return;
}
void TGeoMediumDialog::ConnectSignalsToSlots()
{
fClose->Connect("Clicked()", "TGeoMediumDialog", this, "DoClose()");
fLT->Connect("Clicked(TGListTreeItem *, Int_t)", "TGeoMediumDialog", this,
"DoItemClick(TGListTreeItem *, Int_t)");
}
ClassImp(TGeoMaterialDialog)
TGeoMaterialDialog::TGeoMaterialDialog(TGFrame *caller, const TGWindow *main, UInt_t w, UInt_t h)
:TGeoTreeDialog(caller, main, w, h)
{
BuildListTree();
ConnectSignalsToSlots();
MapSubwindows();
Layout();
SetWindowName("Material dialog");
MapWindow();
gClient->WaitForUnmap(this);
}
void TGeoMaterialDialog::BuildListTree()
{
const TGPicture *pic_mat = gClient->GetPicture("geomaterial_t.xpm");;
TGeoMaterial *mat;
Int_t nmat = gGeoManager->GetListOfMaterials()->GetSize();
if (!nmat) return;
for (Int_t i=0; i<nmat; i++) {
mat = (TGeoMaterial*)gGeoManager->GetListOfMaterials()->At(i);
fLT->AddItem(NULL, mat->GetName(), mat, pic_mat, pic_mat);
}
}
void TGeoMaterialDialog::DoClose()
{
DeleteWindow();
}
void TGeoMaterialDialog::DoItemClick(TGListTreeItem *item, Int_t btn)
{
if (btn!=kButton1) return;
DoSelect(item);
if (!item || !item->GetUserData()) return;
}
void TGeoMaterialDialog::ConnectSignalsToSlots()
{
fClose->Connect("Clicked()", "TGeoMaterialDialog", this, "DoClose()");
fLT->Connect("Clicked(TGListTreeItem *, Int_t)", "TGeoMaterialDialog", this,
"DoItemClick(TGListTreeItem *, Int_t)");
}
ClassImp(TGeoMatrixDialog)
TGeoMatrixDialog::TGeoMatrixDialog(TGFrame *caller, const TGWindow *main, UInt_t w, UInt_t h)
:TGeoTreeDialog(caller, main, w, h)
{
BuildListTree();
ConnectSignalsToSlots();
MapSubwindows();
Layout();
SetWindowName("Matrix dialog");
MapWindow();
gClient->WaitForUnmap(this);
}
void TGeoMatrixDialog::BuildListTree()
{
const TGPicture *pic_tr = gClient->GetPicture("geotranslation_t.xpm");
const TGPicture *pic_rot = gClient->GetPicture("georotation_t.xpm");
const TGPicture *pic_combi = gClient->GetPicture("geocombi_t.xpm");
const TGPicture *pic;
TGListTreeItem *parent_item=0;
TGeoMatrix *matrix;
Int_t nmat = gGeoManager->GetListOfMatrices()->GetEntriesFast();
if (!nmat) return;
for (Int_t i=0; i<nmat; i++) {
matrix = (TGeoMatrix*)gGeoManager->GetListOfMatrices()->At(i);
if (matrix->IsIdentity()) continue;
if (!strcmp(matrix->IsA()->GetName(),"TGeoTranslation")) {
pic = pic_tr;
parent_item = fLT->FindChildByName(NULL, "Translations");
if (!parent_item) {
parent_item = fLT->AddItem(NULL, "Translations", pic, pic);
parent_item->SetTipText("List of translations");
}
} else if (!strcmp(matrix->IsA()->GetName(),"TGeoRotation")) {
pic = pic_rot;
parent_item = fLT->FindChildByName(NULL, "Rotations");
if (!parent_item) {
parent_item = fLT->AddItem(NULL, "Rotations", pic, pic);
parent_item->SetTipText("List of rotations");
}
} else if (!strcmp(matrix->IsA()->GetName(),"TGeoCombiTrans") ||
!strcmp(matrix->IsA()->GetName(),"TGeoHMatrix")) {
pic = pic_combi;
parent_item = fLT->FindChildByName(NULL, "Combined");
if (!parent_item) {
parent_item = fLT->AddItem(NULL, "Combined", pic, pic);
parent_item->SetTipText("List of combined transformations");
}
} else continue;
fLT->AddItem(parent_item, matrix->GetName(), matrix, pic, pic);
}
}
void TGeoMatrixDialog::DoClose()
{
DeleteWindow();
}
void TGeoMatrixDialog::DoItemClick(TGListTreeItem *item, Int_t btn)
{
if (btn!=kButton1) return;
DoSelect(item);
if (!item || !item->GetUserData()) return;
}
void TGeoMatrixDialog::ConnectSignalsToSlots()
{
fClose->Connect("Clicked()", "TGeoMatrixDialog", this, "DoClose()");
fLT->Connect("Clicked(TGListTreeItem *, Int_t)", "TGeoMatrixDialog", this,
"DoItemClick(TGListTreeItem *, Int_t)");
}
ClassImp(TGeoTransientPanel)
TGeoTransientPanel::TGeoTransientPanel(TGedEditor* ged, const char *name, TObject *obj)
:TGMainFrame(gClient->GetRoot(),175,20)
{
fGedEditor = ged;
fModel = obj;
fCan = new TGCanvas(this, 170, 100);
fTab = new TGTab(fCan->GetViewPort(), 10, 10);
fCan->SetContainer(fTab);
AddFrame(fCan, new TGLayoutHints(kLHintsExpandY | kLHintsExpandX));
fTab->Associate(fCan);
fTabContainer = fTab->AddTab(name);
fStyle = new TGCompositeFrame(fTabContainer, 110, 30, kVerticalFrame);
fTabContainer->AddFrame(fStyle, new TGLayoutHints(kLHintsTop | kLHintsExpandX,\
5, 0, 2, 2));
TString wname = name;
wname += " Editor";
SetWindowName(wname.Data());
SetModel(fModel);
fClose = new TGTextButton(this, "Close");
AddFrame(fClose, new TGLayoutHints(kLHintsBottom | kLHintsRight, 0,10,5,5));
MapSubwindows();
Layout();
Resize(fTabContainer->GetDefaultWidth()+30, fTabContainer->GetDefaultHeight()+65);
MapWindow();
gROOT->GetListOfCleanups()->Add(this);
fClose->Connect("Clicked()", "TGeoTransientPanel", this, "Hide()");
}
TGeoTransientPanel::~TGeoTransientPanel()
{
DeleteEditors();
delete fTab;
delete fCan;
gROOT->GetListOfCleanups()->Remove(this);
}
void TGeoTransientPanel::CloseWindow()
{
UnmapWindow();
gROOT->GetListOfCleanups()->Remove(this);
}
void TGeoTransientPanel::GetEditors(TClass *cl)
{
TClass *class2 = TClass::GetClass(Form("%sEditor",cl->GetName()));
if (class2 && class2->InheritsFrom(TGedFrame::Class())) {
TGFrameElement *fr;
TIter next(fStyle->GetList());
while ((fr = (TGFrameElement *) next()))
if (fr->fFrame->IsA() == class2) return;
TGClient *client = fGedEditor->GetClient();
TGWindow *exroot = (TGWindow*) client->GetRoot();
client->SetRoot(fStyle);
TGedEditor::SetFrameCreator(fGedEditor);
TGedFrame* gfr = reinterpret_cast<TGedFrame*>(class2->New());
gfr->SetModelClass(cl);
TGedEditor::SetFrameCreator(0);
client->SetRoot(exroot);
fStyle->AddFrame(gfr, new TGLayoutHints(kLHintsTop | kLHintsExpandX, 0, 0, 2, 2));
gfr->MapSubwindows();
}
}
void TGeoTransientPanel::SetModel(TObject *model)
{
if (!model) return;
fModel = model;
GetEditors(model->IsA());
TGFrameElement *el;
TIter next(fStyle->GetList());
while ((el = (TGFrameElement *) next())) {
if ((el->fFrame)->InheritsFrom(TGedFrame::Class())) {
((TGedFrame *)(el->fFrame))->SetModel(model);
}
}
Resize(fTabContainer->GetDefaultWidth()+30, fTabContainer->GetDefaultHeight()+65);
}
void TGeoTransientPanel::Hide()
{
UnmapWindow();
}
void TGeoTransientPanel::Show()
{
MapWindow();
}
void TGeoTransientPanel::DeleteEditors()
{
fStyle->Cleanup();
}