]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONAttPainterSelectorFrame.h
More code clean up.
[u/mrichter/AliRoot.git] / MUON / AliMUONAttPainterSelectorFrame.h
1 #ifndef ALIMUONATTPAINTERSELECTORFRAME_H
2 #define ALIMUONATTPAINTERSELECTORFRAME_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice                               */
6
7 // $Id$
8
9 /// \ingroup graphics
10 /// \class AliMUONAttPainterSelectorFrame
11 /// \brief Widget to select the painter(s) view type
12 /// 
13 // Author Laurent Aphecetche, Subatech
14
15 #ifndef ROOT_TGFrame
16 #  include "TGFrame.h"
17 #endif
18 #ifndef ALIMUONATTPAINTER_H
19 #  include "AliMUONAttPainter.h"
20 #endif
21
22 class TGButtonGroup;
23
24 class AliMUONAttPainterSelectorFrame : public TGHorizontalFrame
25 {
26 public:
27   AliMUONAttPainterSelectorFrame(TGWindow* p=0x0, UInt_t w=1, UInt_t h=1);
28   virtual ~AliMUONAttPainterSelectorFrame();
29   
30   void Update(const AliMUONAttPainter& att);
31   
32   void Clicked(const AliMUONAttPainter* newValues); // *SIGNAL*
33   
34   void CathodeClicked(Int_t buttonId);
35   
36   void PlaneClicked(Int_t buttonId);
37   
38   void ViewClicked(Int_t buttonId);
39   
40 private:
41   /// Not implemented
42   AliMUONAttPainterSelectorFrame(const AliMUONAttPainterSelectorFrame& rhs);
43   /// Not implemented
44   AliMUONAttPainterSelectorFrame& operator=(const AliMUONAttPainterSelectorFrame& rhs);
45   
46 private:
47   
48   TGButtonGroup* fCathode; ///< cathode selection buttons
49   TGButtonGroup* fPlane;   ///< plane selection buttons
50   TGButtonGroup* fViewPoint; ///< viewpoint selection buttons
51   
52   AliMUONAttPainter fAttributes; ///< attributes
53   
54   ClassDef(AliMUONAttPainterSelectorFrame,1) // Widget to select painter view type
55 };
56
57 #endif