]>
Commit | Line | Data |
---|---|---|
7bb7ac14 | 1 | #ifndef ALIDETECTORFRAME_H |
2 | #define ALIDETECTORFRAME_H | |
3 | ||
4 | /* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | ///////////////////////////////////////////////////////////////////////// | |
8 | // ALICE DETECTOR FRAME CLASS // | |
9 | // Author: Mayeul ROUSSELET // | |
10 | // e-mail: Mayeul.Rousselet@cern.ch // | |
11 | // Last update:26/08/2003 // | |
12 | ///////////////////////////////////////////////////////////////////////// | |
13 | ||
14 | #include <Rtypes.h> | |
15 | #include <RQ_OBJECT.h> | |
16 | ||
17 | class TGWindow; | |
18 | class TGCompositeFrame; | |
19 | class TGCheckButton; | |
20 | class TGTextButton; | |
21 | ||
22 | class AliDetectorFrame{ | |
23 | //This classe implements the frame which contains the list of enabled detectors | |
24 | //and allows the user to change the current status of the detector (enabled/disabled) | |
25 | ||
26 | public: | |
27 | ||
28 | AliDetectorFrame(const TGWindow *p, Int_t w, Int_t h,UInt_t bgc); | |
29 | virtual ~AliDetectorFrame(); | |
30 | ||
31 | TGCompositeFrame* GetDetectorFrame(){return fMainFrame;}; | |
32 | ||
33 | //Slots | |
34 | void DoButton(Int_t pos=0); | |
35 | void DoCheckButton(Int_t pos=0); | |
36 | void DoSpecific() const; | |
37 | ||
38 | private: | |
39 | ||
40 | TGCompositeFrame *fMainFrame; // Main frame | |
41 | TGCompositeFrame *fButtonFrame; // Button frame | |
42 | TGCheckButton **fCheckButton; // Array of checked buttons | |
43 | TGTextButton *fButtonAll; // Button for "All" | |
44 | TGTextButton *fButtonInvert; // Button for "Invert" | |
45 | Bool_t *fCheckedButton; //fEnabledButton[i]=kTRUE if button checked | |
46 | Int_t *fCheckButtonId; // Array of IDs for checked buttons | |
47 | Bool_t fCheckedMode; // Flag for checked mode | |
48 | static int fgBaseId; // Base ID??? | |
49 | ||
50 | RQ_OBJECT("AliDetectorFrame") | |
51 | ||
52 | ClassDef(AliDetectorFrame,0); | |
53 | }; | |
54 | #endif |