#include "TGeoGedFrame.h"
#include "TGeoTabManager.h"
#include "TGedEditor.h"
#include "TGTab.h"
#include "TVirtualPad.h"
ClassImp(TGeoGedFrame)
TGeoGedFrame::TGeoGedFrame(const TGWindow *p, Int_t width, Int_t height,
UInt_t options, Pixel_t back) :
TGedFrame(p, width, height, options, back),
fTab(0), fTabMgr(0), fPad(0)
{
fTab = fGedEditor->GetTab();
fPad = fGedEditor->GetPad();
fTabMgr = TGeoTabManager::GetMakeTabManager(fGedEditor);
}
void TGeoGedFrame::SetActive(Bool_t active)
{
if (active)
((TGCompositeFrame*)GetParent())->ShowFrame(this);
else
((TGCompositeFrame*)GetParent())->HideFrame(this);
if (fTab->IsEnabled(fTab->GetCurrent()))
fTab->SetTab(fTab->GetCurrent());
else
fTab->SetTab(0);
}
void TGeoGedFrame::Update()
{
if (fGedEditor) {
fGedEditor->Update();
} else {
fPad->Modified();
fPad->Update();
}
}
Last change: Wed Jun 25 08:44:29 2008
Last generated: 2008-06-25 08:44
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.