]>
Commit | Line | Data |
---|---|---|
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 | ||
19 | class TGNumberEntry; | |
20 | ||
21 | class AliMUONPainterColorSlider : public TGCompositeFrame | |
22 | { | |
23 | public: | |
24 | AliMUONPainterColorSlider(const TGWindow* p, UInt_t w, UInt_t h); | |
25 | virtual ~AliMUONPainterColorSlider(); | |
26 | ||
27 | void DataRangeAutoRequested(); // *SIGNAL* | |
28 | ||
29 | void DataRangeWasChanged(Double_t* range); // *SIGNAL* | |
30 | ||
31 | void SetRange(Double_t min, Double_t max, Bool_t emit=kTRUE); | |
32 | ||
33 | private: | |
34 | /// Not implemented | |
35 | AliMUONPainterColorSlider(const AliMUONPainterColorSlider& rhs); | |
36 | /// Not implemented | |
37 | AliMUONPainterColorSlider& operator=(const AliMUONPainterColorSlider& rhs); | |
38 | ||
39 | private: | |
40 | TGNumberEntry* fEntryMin; ///< textbox for min value to be represented | |
41 | TGNumberEntry* fEntryMax; ///< textbox for max value to be represented | |
42 | Double_t fMin; ///< min value to be represented | |
43 | Double_t fMax; ///< max value to be represented | |
44 | ||
45 | ClassDef(AliMUONPainterColorSlider,1) // A painter color palette | |
46 | }; | |
47 | ||
48 | #endif |