// $Id$ // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007 /************************************************************************** * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. * * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for * * full copyright notice. * **************************************************************************/ #include "AliEveITSModuleStepperEditor.h" #include #include #include #include #include #include #include #include #include #include //______________________________________________________________________________ // AliEveITSModuleStepperEditor // ClassImp(AliEveITSModuleStepperEditor) AliEveITSModuleStepperEditor::AliEveITSModuleStepperEditor(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("AliEveITSModuleStepper"); fStepper = new TEveGridStepperSubEditor(this); fStepper->Connect("Changed()", "AliEveITSModuleStepperEditor", this, "UpdateStore()"); AddFrame(fStepper, new TGLayoutHints(kLHintsTop | kLHintsExpandX, 2, 0, 0, 0)); } AliEveITSModuleStepperEditor::~AliEveITSModuleStepperEditor() {} /******************************************************************************/ void AliEveITSModuleStepperEditor::SetModel(TObject* obj) { fM = dynamic_cast(obj); fStepper->SetModel(fM->GetStepper()); } /******************************************************************************/ void AliEveITSModuleStepperEditor::UpdateStore() { fM->Apply(); Update(); gEve->Redraw3D(kTRUE); }