#include "TEveWindowEditor.h"
#include "TEveWindow.h"
#include "TVirtualPad.h"
#include "TColor.h"
#include "TGLabel.h"
#include "TGButton.h"
#include "TGNumberEntry.h"
#include "TGColorSelect.h"
#include "TGDoubleSlider.h"
ClassImp(TEveWindowEditor);
TEveWindowEditor::TEveWindowEditor(const TGWindow *p, Int_t width, Int_t height,
UInt_t options, Pixel_t back) :
TGedFrame(p, width, height, options | kVerticalFrame, back),
fM(0),
fShowTitleBar(0)
{
MakeTitle("TEveWindow");
fShowTitleBar = new TGCheckButton(this, "Show title-bar");
AddFrame(fShowTitleBar);
fShowTitleBar->Connect("Clicked()", "TEveWindowEditor", this,
"DoShowTitleBar()");
}
void TEveWindowEditor::SetModel(TObject* obj)
{
fM = dynamic_cast<TEveWindow*>(obj);
fShowTitleBar->SetState(fM->GetShowTitleBar() ? kButtonDown : kButtonUp);
}
void TEveWindowEditor::DoShowTitleBar()
{
fM->SetShowTitleBar(fShowTitleBar->IsOn());
Update();
}
Last change: Tue Dec 2 08:46:02 2008
Last generated: 2008-12-02 08:46
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.