]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Reve/RGBAPaletteEditor.h
Reimplementation of over/undershoot handling with separate modes for both ends (cut...
[u/mrichter/AliRoot.git] / EVE / Reve / RGBAPaletteEditor.h
1 // $Header$
2
3 #ifndef REVE_RGBAPaletteEditor_H
4 #define REVE_RGBAPaletteEditor_H
5
6 #include <TGedFrame.h>
7
8 class TGCheckButton;
9 class TGColorSelect;
10 class TGComboBox;
11
12
13 namespace Reve {
14
15 class RGBAPalette;
16 class RGValuator;
17 class RGDoubleValuator;
18
19 class RGBAPaletteSubEditor : public TGVerticalFrame
20 {
21 private:
22   RGBAPaletteSubEditor(const RGBAPaletteSubEditor&);            // Not implemented
23   RGBAPaletteSubEditor& operator=(const RGBAPaletteSubEditor&); // Not implemented
24
25 protected:
26   RGBAPalette*      fM;
27
28   TGComboBox*       fUndershootAction;
29   TGColorSelect*    fUnderColor;
30   TGComboBox*       fOvershootAction;
31   TGColorSelect*    fOverColor;
32
33   RGDoubleValuator* fMinMax;
34
35   TGCheckButton*    fInterpolate;
36   TGCheckButton*    fShowDefValue;
37   TGColorSelect*    fDefaultColor;
38
39 public:
40   RGBAPaletteSubEditor(const TGWindow* p);
41   virtual ~RGBAPaletteSubEditor() {}
42
43   void SetModel(RGBAPalette* p);
44
45   void Changed(); //*SIGNAL*
46
47   void DoMinMax();
48
49   void DoInterpolate();
50   void DoShowDefValue();
51   void DoDefaultColor(Pixel_t color);
52   void DoUnderColor(Pixel_t color);
53   void DoOverColor(Pixel_t color);
54   void DoUndershootAction(Int_t mode);
55   void DoOvershootAction(Int_t mode);
56
57   ClassDef(RGBAPaletteSubEditor, 1); // SubEditor for RGBAPalette
58 }; // endclass RGBAPaletteSubEditor
59
60
61 /**************************************************************************/
62 /**************************************************************************/
63
64 class RGBAPaletteEditor : public TGedFrame
65 {
66 private:
67   RGBAPaletteEditor(const RGBAPaletteEditor&);            // Not implemented
68   RGBAPaletteEditor& operator=(const RGBAPaletteEditor&); // Not implemented
69
70 protected:
71   RGBAPalette*          fM;
72   RGBAPaletteSubEditor* fSE;
73
74 public:
75   RGBAPaletteEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground());
76   virtual ~RGBAPaletteEditor();
77
78   virtual void SetModel(TObject* obj);
79
80   ClassDef(RGBAPaletteEditor, 1); // Editor for RGBAPalette
81 }; // endclass RGBAPaletteEditor
82
83 }
84
85 #endif