]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONPainterColorSlider.h
Copy of event header for delta-AOD on demand.
[u/mrichter/AliRoot.git] / MUON / AliMUONPainterColorSlider.h
CommitLineData
0145e89a 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
19class TGNumberEntry;
49419555 20class TGTextButton;
0145e89a 21
22class AliMUONPainterColorSlider : public TGCompositeFrame
23{
24public:
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*
49419555 31
32 void LockButtonWasClicked();
0145e89a 33
34 void SetRange(Double_t min, Double_t max, Bool_t emit=kTRUE);
35
49419555 36 Bool_t IsLocked() const;
37
0145e89a 38private:
39 /// Not implemented
40 AliMUONPainterColorSlider(const AliMUONPainterColorSlider& rhs);
41 /// Not implemented
42 AliMUONPainterColorSlider& operator=(const AliMUONPainterColorSlider& rhs);
43
44private:
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
49419555 49 TGTextButton* fAutoButton; ///< to toggle data range computation
50 TGTextButton* fLockButton; ///< to toggle locking of range
0145e89a 51
49419555 52 ClassDef(AliMUONPainterColorSlider,2) // A painter color palette
0145e89a 53};
54
55#endif