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 "AliEveHOMERManagerEditor.h"
11 #include "AliEveHOMERManager.h"
13 #include <TVirtualPad.h>
19 #include <TGNumberEntry.h>
20 #include <TGColorSelect.h>
21 #include <TGDoubleSlider.h>
23 //______________________________________________________________________________
24 // AliEveHOMERManagerEditor
27 ClassImp(AliEveHOMERManagerEditor)
29 AliEveHOMERManagerEditor::AliEveHOMERManagerEditor(const TGWindow *p, Int_t width, Int_t height,
30 UInt_t options, Pixel_t back) :
31 TGedFrame(p, width, height, options | kVerticalFrame, back),
36 fEventLoopStarted(kFALSE) {
38 MakeTitle("AliEveHOMERManager");
41 // fXYZZ = new TGSomeWidget(this, ...);
42 // AddFrame(fXYZZ, new TGLayoutHints(...));
43 // fXYZZ->Connect("SignalName()", "AliEveHOMERManagerEditor", this, "DoXYZZ()");
45 fButtonConnect = new TGTextButton(this, " Connect to HLT ");
46 AddFrame(fButtonConnect); //, new TGLayoutHints(...));
47 fButtonConnect->Connect("Clicked()", "AliEveHOMERManagerEditor", this, "ConnectToHLT()");
49 fButtonNextEvent = new TGTextButton(this, " NextEvent ");
50 AddFrame(fButtonNextEvent); //, new TGLayoutHints(...));
51 fButtonNextEvent->Connect("Clicked()", "AliEveHOMERManagerEditor", this, "NextEvent()");
53 fButtonEventLoop = new TGTextButton(this, " not yet used ");
54 AddFrame(fButtonEventLoop); //, new TGLayoutHints(...));
55 fButtonEventLoop->Connect("Clicked()", "AliEveHOMERManagerEditor", this, "EventLoop()");
59 /******************************************************************************/
61 void AliEveHOMERManagerEditor::SetModel(TObject* obj)
63 fM = dynamic_cast<AliEveHOMERManager*>(obj);
65 // Set values of widgets
66 // fXYZZ->SetValue(fM->GetXYZZ());
69 /******************************************************************************/
71 // Implements callback/slot methods
73 // void AliEveHOMERManagerEditor::DoXYZZ()
75 // fM->SetXYZZ(fXYZZ->GetValue());
79 void AliEveHOMERManagerEditor::ConnectToHLT()
81 // Connects to HOMER sources -> to HLT.
86 void AliEveHOMERManagerEditor::NextEvent()
88 // call next event from macro
89 gROOT->ProcessLineFast("nextEvent();");
93 void AliEveHOMERManagerEditor::EventLoop()
95 // Start/stop event loop