]>
Commit | Line | Data |
---|---|---|
32e219c2 | 1 | // $Header$ |
2 | ||
3 | #include "ITSModuleStepperEditor.h" | |
4 | #include <Alieve/ITSModuleStepper.h> | |
84aff7a4 | 5 | #include <TEveGridStepperEditor.h> |
6 | #include <TEveManager.h> | |
32e219c2 | 7 | |
8 | #include <TVirtualPad.h> | |
9 | #include <TColor.h> | |
10 | ||
11 | #include <TGLabel.h> | |
12 | #include <TGButton.h> | |
13 | #include <TGNumberEntry.h> | |
14 | #include <TGColorSelect.h> | |
15 | #include <TGDoubleSlider.h> | |
32e219c2 | 16 | using namespace Alieve; |
17 | ||
18 | //______________________________________________________________________ | |
19 | // ITSModuleStepperEditor | |
20 | // | |
21 | ||
22 | ClassImp(ITSModuleStepperEditor) | |
23 | ||
24 | ITSModuleStepperEditor::ITSModuleStepperEditor(const TGWindow *p, Int_t width, Int_t height, | |
25 | UInt_t options, Pixel_t back) : | |
26 | TGedFrame(p, width, height, options | kVerticalFrame, back), | |
27 | ||
28 | fM(0), | |
29 | fStepper(0) | |
30 | { | |
31 | MakeTitle("ITSModuleStepper"); | |
32 | ||
84aff7a4 | 33 | fStepper = new TEveGridStepperSubEditor(this); |
32e219c2 | 34 | fStepper->Connect("Changed()", "Alieve::ITSModuleStepperEditor", this, "UpdateStore()"); |
35 | AddFrame(fStepper, new TGLayoutHints(kLHintsTop | kLHintsExpandX, 2, 0, 0, 0)); | |
36 | } | |
37 | ||
38 | ITSModuleStepperEditor::~ITSModuleStepperEditor() | |
39 | {} | |
40 | ||
41 | /**************************************************************************/ | |
42 | ||
43 | void ITSModuleStepperEditor::SetModel(TObject* obj) | |
44 | { | |
45 | fM = dynamic_cast<ITSModuleStepper*>(obj); | |
46 | fStepper->SetModel(fM->GetStepper()); | |
47 | } | |
48 | ||
49 | /**************************************************************************/ | |
50 | ||
51 | void ITSModuleStepperEditor::UpdateStore() | |
52 | { | |
53 | fM->Apply(); | |
54 | Update(); | |
84aff7a4 | 55 | gEve->Redraw3D(kTRUE); |
32e219c2 | 56 | } |