From Mikolaj.
[u/mrichter/AliRoot.git] / EVE / EveHLT / AliEveHOMERManagerEditor.cxx
CommitLineData
d810d0de 1// $Id$
2// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
3
4/**************************************************************************
5 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
51346b82 7 * full copyright notice. *
d810d0de 8 **************************************************************************/
9
10#include "AliEveHOMERManagerEditor.h"
707b281a 11#include "AliEveHOMERManager.h"
d810d0de 12
13#include <TVirtualPad.h>
14#include <TColor.h>
15
16#include <TGLabel.h>
17#include <TGButton.h>
18#include <TGNumberEntry.h>
19#include <TGColorSelect.h>
20#include <TGDoubleSlider.h>
707b281a 21
57ffa5fb 22//______________________________________________________________________________
d810d0de 23// AliEveHOMERManagerEditor
24//
25
26ClassImp(AliEveHOMERManagerEditor)
27
28AliEveHOMERManagerEditor::AliEveHOMERManagerEditor(const TGWindow *p, Int_t width, Int_t height,
29 UInt_t options, Pixel_t back) :
30 TGedFrame(p, width, height, options | kVerticalFrame, back),
31 fM(0),
32 fButt(0)
33 // Initialize widget pointers to 0
34{
35 MakeTitle("AliEveHOMERManager");
36
37 // Create widgets
38 // fXYZZ = new TGSomeWidget(this, ...);
39 // AddFrame(fXYZZ, new TGLayoutHints(...));
40 // fXYZZ->Connect("SignalName()", "AliEveHOMERManagerEditor", this, "DoXYZZ()");
46eadbb4 41
42 fButt = new TGTextButton(this, " Connect to HLT ");
d810d0de 43 AddFrame(fButt); //, new TGLayoutHints(...));
44 fButt->Connect("Clicked()", "AliEveHOMERManagerEditor", this, "DoButt()");
45
46}
47
57ffa5fb 48/******************************************************************************/
d810d0de 49
50void AliEveHOMERManagerEditor::SetModel(TObject* obj)
51{
52 fM = dynamic_cast<AliEveHOMERManager*>(obj);
53
54 // Set values of widgets
55 // fXYZZ->SetValue(fM->GetXYZZ());
56}
57
57ffa5fb 58/******************************************************************************/
d810d0de 59
60// Implements callback/slot methods
61
62// void AliEveHOMERManagerEditor::DoXYZZ()
63// {
64// fM->SetXYZZ(fXYZZ->GetValue());
65// Update();
66// }
67
68void AliEveHOMERManagerEditor::DoButt()
69{
4b456ebb 70 // Connects to HOMER sources -> to HLT.
71
46eadbb4 72 fM->ConnectHOMER();
d810d0de 73}