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