1 #ifndef ALIMUONPAINTERCOLORSLIDER_H
2 #define ALIMUONPAINTERCOLORSLIDER_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 /// \class AliMUONPainterColorSlider
11 /// \brief A vertical color palette
13 // Author Laurent Aphecetche, Subatech
22 class AliMUONPainterColorSlider : public TGCompositeFrame
25 AliMUONPainterColorSlider(const TGWindow* p, UInt_t w, UInt_t h);
26 virtual ~AliMUONPainterColorSlider();
28 void DataRangeAutoRequested(); // *SIGNAL*
30 void DataRangeWasChanged(Double_t* range); // *SIGNAL*
32 void LockButtonWasClicked();
34 void SetRange(Double_t min, Double_t max, Bool_t emit=kTRUE);
36 Bool_t IsLocked() const;
40 AliMUONPainterColorSlider(const AliMUONPainterColorSlider& rhs);
42 AliMUONPainterColorSlider& operator=(const AliMUONPainterColorSlider& rhs);
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
52 ClassDef(AliMUONPainterColorSlider,2) // A painter color palette