]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONPainterColorSlider.h
In AliMUONCheck:
[u/mrichter/AliRoot.git] / MUON / AliMUONPainterColorSlider.h
1 #ifndef ALIMUONPAINTERCOLORSLIDER_H
2 #define ALIMUONPAINTERCOLORSLIDER_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 AliMUONPainterColorSlider
11 /// \brief A vertical color palette
12 /// 
13 // Author Laurent Aphecetche, Subatech
14
15 #ifndef ROOT_TGFrame
16 #  include "TGFrame.h"
17 #endif
18
19 class TGNumberEntry;
20 class TGTextButton;
21
22 class AliMUONPainterColorSlider : public TGCompositeFrame
23 {
24 public:
25   AliMUONPainterColorSlider(const TGWindow* p, UInt_t w, UInt_t h);
26   virtual ~AliMUONPainterColorSlider();
27
28   void DataRangeAutoRequested(); // *SIGNAL*
29
30   void DataRangeWasChanged(Double_t* range); // *SIGNAL*
31
32   void LockButtonWasClicked(); 
33   
34   void SetRange(Double_t min, Double_t max, Bool_t emit=kTRUE);
35   
36   Bool_t IsLocked() const;
37   
38 private:
39   /// Not implemented
40   AliMUONPainterColorSlider(const AliMUONPainterColorSlider& rhs);
41   /// Not implemented
42   AliMUONPainterColorSlider& operator=(const AliMUONPainterColorSlider& rhs);
43   
44 private:
45   TGNumberEntry* fEntryMin; ///< textbox for min value to be represented
46   TGNumberEntry* fEntryMax; ///< textbox for max value to be represented
47   Double_t fMin; ///< min value to be represented
48   Double_t fMax; ///< max value to be represented
49   TGTextButton* fAutoButton; ///< to toggle data range computation
50   TGTextButton* fLockButton; ///< to toggle locking of range
51   
52   ClassDef(AliMUONPainterColorSlider,2) // A painter color palette
53 };
54
55 #endif