2 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
4 /**************************************************************************
5 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
7 * full copyright notice. *
8 **************************************************************************/
10 #include "AliEveITSModuleStepperEditor.h"
11 #include <EveDet/AliEveITSModuleStepper.h>
12 #include <TEveGridStepperEditor.h>
13 #include <TEveManager.h>
15 #include <TVirtualPad.h>
20 #include <TGNumberEntry.h>
21 #include <TGColorSelect.h>
22 #include <TGDoubleSlider.h>
25 //______________________________________________________________________________
27 // Editor for AliEveITSModuleStepper.
29 ClassImp(AliEveITSModuleStepperEditor)
31 AliEveITSModuleStepperEditor::AliEveITSModuleStepperEditor(const TGWindow *p, Int_t width, Int_t height,
32 UInt_t options, Pixel_t back) :
33 TGedFrame(p, width, height, options | kVerticalFrame, back),
40 MakeTitle("AliEveITSModuleStepper");
42 fStepper = new TEveGridStepperSubEditor(this);
43 fStepper->Connect("Changed()", "AliEveITSModuleStepperEditor", this, "UpdateStepper()");
44 AddFrame(fStepper, new TGLayoutHints(kLHintsTop | kLHintsExpandX, 2, 0, 0, 0));
47 /******************************************************************************/
49 void AliEveITSModuleStepperEditor::SetModel(TObject* obj)
53 fM = dynamic_cast<AliEveITSModuleStepper*>(obj);
54 fStepper->SetModel(fM->GetStepper());
57 /******************************************************************************/
59 void AliEveITSModuleStepperEditor::UpdateStepper()
61 // Update the model object.
65 gEve->Redraw3D(kTRUE);