2 // Author: Matevz Tadel 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 "AliEveCascadeEditor.h"
11 #include "AliEveCascade.h"
13 #include "TVirtualPad.h"
16 // Cleanup these includes:
19 #include "TGNumberEntry.h"
20 #include "TGColorSelect.h"
21 #include "TGDoubleSlider.h"
24 //______________________________________________________________________________
25 // GUI editor for AliEveCascade.
28 ClassImp(AliEveCascadeEditor)
30 //______________________________________________________________________________
31 AliEveCascadeEditor::AliEveCascadeEditor(const TGWindow *p, Int_t width, Int_t height,
32 UInt_t options, Pixel_t back) :
33 TGedFrame(p, width, height, options | kVerticalFrame, back),
38 // Initialize widget pointers to 0
42 MakeTitle("AliEveCascade");
44 fInfoLabel0 = new TGLabel(this);
45 fInfoLabel0->SetTextJustify(kTextLeft);
46 AddFrame(fInfoLabel0, new TGLayoutHints(kLHintsLeft|kLHintsExpandX,
49 fInfoLabel1 = new TGLabel(this);
50 fInfoLabel1->SetTextJustify(kTextLeft);
51 AddFrame(fInfoLabel1, new TGLayoutHints(kLHintsLeft|kLHintsExpandX,
54 fXButton = new TGTextButton(this, "Detailed View");
55 AddFrame(fXButton, new TGLayoutHints(kLHintsLeft|kLHintsExpandX, 1, 1, 0, 0));
56 fXButton->Connect("Clicked()", "AliEveCascadeEditor", this, "DisplayDetailed()");
59 /******************************************************************************/
61 //______________________________________________________________________________
62 void AliEveCascadeEditor::SetModel(TObject* obj)
66 fM = dynamic_cast<AliEveCascade*>(obj);
68 // Set values of widgets
69 fInfoLabel0->SetText(Form("Radius = %f, DCA = %f", fM->GetRadius(), fM->GetDaughterDCA()));
70 fInfoLabel1->SetText(Form("Pt = %f", fM->GetPt()));
73 /******************************************************************************/
75 // Implements callback/slot methods
77 //______________________________________________________________________________
78 // void AliEveCascadeEditor::DoXYZZ()
82 // fM->SetXYZZ(fXYZZ->GetValue());
86 void AliEveCascadeEditor::DisplayDetailed()