// $Header$ #include "ITSModuleStepperEditor.h" #include #include #include #include #include #include #include #include #include #include using namespace Reve; using namespace Alieve; //______________________________________________________________________ // ITSModuleStepperEditor // ClassImp(ITSModuleStepperEditor) ITSModuleStepperEditor::ITSModuleStepperEditor(const TGWindow *p, Int_t width, Int_t height, UInt_t options, Pixel_t back) : TGedFrame(p, width, height, options | kVerticalFrame, back), fM(0), fStepper(0) { MakeTitle("ITSModuleStepper"); fStepper = new GridStepperSubEditor(this); fStepper->Connect("Changed()", "Alieve::ITSModuleStepperEditor", this, "UpdateStore()"); AddFrame(fStepper, new TGLayoutHints(kLHintsTop | kLHintsExpandX, 2, 0, 0, 0)); } ITSModuleStepperEditor::~ITSModuleStepperEditor() {} /**************************************************************************/ void ITSModuleStepperEditor::SetModel(TObject* obj) { fM = dynamic_cast(obj); fStepper->SetModel(fM->GetStepper()); } /**************************************************************************/ void ITSModuleStepperEditor::UpdateStore() { fM->Apply(); Update(); gReve->Redraw3D(kTRUE); }