Proto version of GUI for event-manager.
[u/mrichter/AliRoot.git] / EVE / EveBase / AliEveEventManagerEditor.cxx
1 // @(#)root/eve:$Id$
2 // Author: Matevz Tadel 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 "AliEveEventManagerEditor.h"
11 #include "AliEveEventManager.h"
12
13 #include "TVirtualPad.h"
14 #include "TColor.h"
15
16 // Cleanup these includes:
17 #include "TGLabel.h"
18 #include "TGButton.h"
19 #include "TGNumberEntry.h"
20 #include "TGColorSelect.h"
21 #include "TGDoubleSlider.h"
22
23
24 //______________________________________________________________________________
25 // GUI editor for AliEveEventManager.
26 //
27
28 ClassImp(AliEveEventManagerEditor)
29
30 //______________________________________________________________________________
31 AliEveEventManagerEditor::AliEveEventManagerEditor(const TGWindow *p, Int_t width, Int_t height,
32              UInt_t options, Pixel_t back) :
33   TGedFrame(p, width, height, options | kVerticalFrame, back),
34   fM(0)
35             // Initialize widget pointers to 0
36 {
37   // Constructor.
38
39   MakeTitle("AliEveEventManager");
40
41   // Create widgets
42   // fXYZZ = new TGSomeWidget(this, ...);
43   // AddFrame(fXYZZ, new TGLayoutHints(...));
44   // fXYZZ->Connect("SignalName()", "Reve::AliEveEventManagerEditor", this, "DoXYZZ()");
45 }
46
47 /******************************************************************************/
48
49 //______________________________________________________________________________
50 void AliEveEventManagerEditor::SetModel(TObject* obj)
51 {
52   // Set model object.
53
54   fM = dynamic_cast<AliEveEventManager*>(obj);
55
56   // Set values of widgets
57   // fXYZZ->SetValue(fM->GetXYZZ());
58 }
59
60 /******************************************************************************/
61
62 // Implements callback/slot methods
63
64 //______________________________________________________________________________
65 // void AliEveEventManagerEditor::DoXYZZ()
66 // {
67 //    // Slot for XYZZ.
68 //
69 //    fM->SetXYZZ(fXYZZ->GetValue());
70 //    Update();
71 // }