3 #ifndef REVE_RGBAPaletteEditor_H
4 #define REVE_RGBAPaletteEditor_H
17 class RGDoubleValuator;
19 class RGBAPaletteSubEditor : public TGVerticalFrame
22 RGBAPaletteSubEditor(const RGBAPaletteSubEditor&); // Not implemented
23 RGBAPaletteSubEditor& operator=(const RGBAPaletteSubEditor&); // Not implemented
28 TGComboBox* fUnderflowAction;
29 TGColorSelect* fUnderColor;
30 TGComboBox* fOverflowAction;
31 TGColorSelect* fOverColor;
33 RGDoubleValuator* fMinMax;
35 TGCheckButton* fInterpolate;
36 TGCheckButton* fShowDefValue;
37 TGColorSelect* fDefaultColor;
40 RGBAPaletteSubEditor(const TGWindow* p);
41 virtual ~RGBAPaletteSubEditor() {}
43 void SetModel(RGBAPalette* p);
45 void Changed(); //*SIGNAL*
50 void DoShowDefValue();
51 void DoDefaultColor(Pixel_t color);
52 void DoUnderColor(Pixel_t color);
53 void DoOverColor(Pixel_t color);
54 void DoUnderflowAction(Int_t mode);
55 void DoOverflowAction(Int_t mode);
57 ClassDef(RGBAPaletteSubEditor, 1); // Sub-editor for RGBAPalette class.
58 }; // endclass RGBAPaletteSubEditor
61 /**************************************************************************/
62 /**************************************************************************/
64 class RGBAPaletteEditor : public TGedFrame
67 RGBAPaletteEditor(const RGBAPaletteEditor&); // Not implemented
68 RGBAPaletteEditor& operator=(const RGBAPaletteEditor&); // Not implemented
72 RGBAPaletteSubEditor* fSE;
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();
78 virtual void SetModel(TObject* obj);
80 ClassDef(RGBAPaletteEditor, 1); // Editor for RGBAPalette class.
81 }; // endclass RGBAPaletteEditor