]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Alieve/TRDLoaderManager.h
Remove EVE/Reve/ sub-module.
[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 #include <TEveElement.h>
14
15 #ifndef ROOT_TNamed
16 #include <TNamed.h>
17 #endif
18
19 #ifndef ROOT_TGedFrame
20 #include <TGedFrame.h>
21 #endif
22
23 class TGComboBox;
24 class TGTextButton;
25 class TClonesArray;
26
27 namespace Alieve {
28
29         class TRDLoaderManager : public TEveElementList
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