]> git.uio.no Git - u/mrichter/AliRoot.git/blob - DISPLAY/AliShutterItem.h
Coding conventions (Annalisa)
[u/mrichter/AliRoot.git] / DISPLAY / AliShutterItem.h
1 #ifndef ALISHUTTERITEM_H
2 #define ALISHUTTERITEM_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 SHUTTER ITEM 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 TGShutter;
18 class TGShutterItem;
19 class TGCompositeFrame;
20 class TGButton;
21
22 class AliShutterItem{
23   //This class implements the shutter item, ie the base element of a shutter and provides functions to add button... in the shutter
24 public:
25         
26  AliShutterItem(TGShutter *s, const char *text,UInt_t id);
27  virtual ~AliShutterItem();
28
29  //Getters
30  TGShutterItem*         GetShutterItem()const {return fShutterItem;};
31  TGCompositeFrame*      GetShutterItemFrame()const {return fMainFrame;};
32
33  //Fill functions
34  void                   AddTextButton(const char *text, const char *tiptext,  UInt_t idb);
35  void                   AddPictureButton(const char *file, const char *tiptext,UInt_t idb);
36  void                   AddCheckButton(const char *txt,Int_t idb);
37
38  //Slot
39  void                   DoButton(Int_t pos=0) const;
40
41 private:
42
43  TGCompositeFrame       *fMainFrame; // Main frame
44  TGShutterItem          *fShutterItem; // Shutter item
45  TGButton               *fButton; // Button
46
47  RQ_OBJECT("AliShutterItem")
48
49  ClassDef(AliShutterItem,0);
50 };
51
52 #endif