1 #ifndef ALISHUTTERITEM_H
2 #define ALISHUTTERITEM_H
4 /* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 /////////////////////////////////////////////////////////////////////////
8 // ALICE SHUTTER ITEM CLASS //
9 // Author: Mayeul ROUSSELET //
10 // e-mail: Mayeul.Rousselet@cern.ch //
11 // Last update:26/08/2003 //
12 /////////////////////////////////////////////////////////////////////////
15 #include <RQ_OBJECT.h>
19 class TGCompositeFrame;
23 //This class implements the shutter item, ie the base element of a shutter and provides functions to add button... in the shutter
26 AliShutterItem(TGShutter *s, const char *text,UInt_t id);
27 virtual ~AliShutterItem();
30 TGShutterItem* GetShutterItem()const {return fShutterItem;};
31 TGCompositeFrame* GetShutterItemFrame()const {return fMainFrame;};
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);
39 void DoButton(Int_t pos=0) const;
43 TGCompositeFrame *fMainFrame; // Main frame
44 TGShutterItem *fShutterItem; // Shutter item
45 TGButton *fButton; // Button
47 RQ_OBJECT("AliShutterItem")
49 ClassDef(AliShutterItem,0);