]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Alieve/TRDLoaderManager.h
fixed typo in ESDListNames
[u/mrichter/AliRoot.git] / EVE / Alieve / TRDLoaderManager.h
1 #ifndef ALIEVE_TRDLoaderManager_H
2 #define ALIEVE_TRDLoaderManager_H
3
4 ////////////////////////////////////////////////////////////////////////
5 //                                                                      // - ALIEVE implementation -
6 // Loader manager for the TRD detector
7 //    - TRDLoaderManager - manager of TRD data loaders (simulation + measured)
8 //    - TRDLoaderManagerEditor - UI
9 //
10 // by A.Bercuci (A.Bercuci@gsi.de)   Mon Feb 26 2007
11 ////////////////////////////////////////////////////////////////////////
12
13 #ifndef REVE_RenderElement_H
14 #include <Reve/RenderElement.h>
15 #endif
16
17 #ifndef ROOT_TNamed
18 #include <TNamed.h>
19 #endif
20
21 #ifndef ROOT_TGedFrame
22 #include <TGedFrame.h>
23 #endif
24
25 class TGComboBox;
26 class TGTextButton;
27 class TClonesArray;
28 namespace Alieve {
29         class TRDLoaderManager : public Reve::RenderElementList
30         {
31         friend class TRDLoaderManagerEditor;
32         public:
33                 TRDLoaderManager(const Text_t* name="TRDLoader", const Text_t* title=0x0);
34                 ~TRDLoaderManager();
35                 void    Paint(Option_t *option);
36
37         protected:
38                 void    Add(Int_t type, const Text_t *name, const Text_t *title=0x0);
39                 void    Remove(Int_t entry);
40                 
41                 ClassDef(TRDLoaderManager, 1) // Alieve loaders manager for TRD
42         };
43
44         class TRDLoaderManagerEditor : public TGedFrame
45         {
46         public:
47                 TRDLoaderManagerEditor(const TGWindow* p=0, Int_t width = 170, Int_t height = 30, UInt_t options = kChildFrame, Pixel_t back = GetDefaultFrameBackground());
48                 ~TRDLoaderManagerEditor();
49                 virtual void    Add();
50                 virtual void    Remove(Int_t entry);
51                 virtual void    SetModel(TObject* obj);
52                 
53         protected:
54                 TRDLoaderManager* fM;
55         
56         private:
57                 ULong_t bg;        // background color
58                 TGComboBox              *fSelector;
59                 TGTextButton    *fAdd, *fRemoveButton;
60                 TGGroupFrame    *fGroupFrame;
61                 TClonesArray    *fRemove;
62
63                 ClassDef(TRDLoaderManagerEditor, 1)// Editor for TRDLoaderManager
64         };
65 }
66
67 #endif
68