]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/EveHLT/AliEveHOMERManagerEditor.cxx
Do not assume operator==/!=() is a member function.
[u/mrichter/AliRoot.git] / EVE / EveHLT / AliEveHOMERManagerEditor.cxx
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          *
7  * full copyright notice.                                                 *
8  **************************************************************************/
9
10 #include "AliEveHOMERManagerEditor.h"
11 #include "AliEveHOMERManager.h"
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>
21
22 //______________________________________________________________________________
23 // AliEveHOMERManagerEditor
24 //
25
26 ClassImp(AliEveHOMERManagerEditor)
27
28 AliEveHOMERManagerEditor::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()");
41   fButt = new TGTextButton(this, "Ooogadooga");
42   AddFrame(fButt); //, new TGLayoutHints(...));
43   fButt->Connect("Clicked()", "AliEveHOMERManagerEditor", this, "DoButt()");
44
45 }
46
47 AliEveHOMERManagerEditor::~AliEveHOMERManagerEditor()
48 {}
49
50 /******************************************************************************/
51
52 void AliEveHOMERManagerEditor::SetModel(TObject* obj)
53 {
54   fM = dynamic_cast<AliEveHOMERManager*>(obj);
55
56   // Set values of widgets
57   // fXYZZ->SetValue(fM->GetXYZZ());
58 }
59
60 /******************************************************************************/
61
62 // Implements callback/slot methods
63
64 // void AliEveHOMERManagerEditor::DoXYZZ()
65 // {
66 //   fM->SetXYZZ(fXYZZ->GetValue());
67 //   Update();
68 // }
69
70 void AliEveHOMERManagerEditor::DoButt()
71 {
72   fM->CreateHOMERSourcesList();
73 }