#include "TEveStraightLineSetEditor.h"
#include "TEveStraightLineSet.h"
#include "TVirtualPad.h"
#include "TColor.h"
#include "TGLabel.h"
#include "TGButton.h"
#include "TGNumberEntry.h"
#include "TGColorSelect.h"
#include "TGDoubleSlider.h"
ClassImp(TEveStraightLineSetEditor)
TEveStraightLineSetEditor::TEveStraightLineSetEditor(const TGWindow *p, Int_t width, Int_t height,
UInt_t options, Pixel_t back) :
TGedFrame(p, width, height, options | kVerticalFrame, back),
fM(0)
{
MakeTitle("TEveStraightLineSet");
TGHorizontalFrame* frame = new TGHorizontalFrame(this);
fRnrMarkers = new TGCheckButton(frame, "RnrMarkers");
frame->AddFrame(fRnrMarkers, new TGLayoutHints(kLHintsLeft, 1, 2, 1, 1));
fRnrMarkers->Connect
("Toggled(Bool_t)",
"TEveStraightLineSetEditor", this, "DoRnrMarkers()");
fRnrLines = new TGCheckButton(frame, "RnrLines");
frame->AddFrame(fRnrLines, new TGLayoutHints(kLHintsLeft, 2, 1, 1, 1));
fRnrLines->Connect
("Toggled(Bool_t)",
"TEveStraightLineSetEditor", this, "DoRnrLines()");
AddFrame(frame, new TGLayoutHints(kLHintsTop, 0, 0, 0, 0));
}
void TEveStraightLineSetEditor::SetModel(TObject* obj)
{
fM = dynamic_cast<TEveStraightLineSet*>(obj);
fRnrMarkers->SetState(fM->GetRnrMarkers() ? kButtonDown : kButtonUp);
fRnrLines->SetState(fM->GetRnrLines() ? kButtonDown : kButtonUp);
}
void TEveStraightLineSetEditor::DoRnrMarkers()
{
fM->SetRnrMarkers(fRnrMarkers->IsOn());
Update();
}
void TEveStraightLineSetEditor::DoRnrLines()
{
fM->SetRnrLines(fRnrLines->IsOn());
Update();
}
Last change: Wed Jun 25 08:38:08 2008
Last generated: 2008-06-25 08:38
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.