// $Header$ #ifndef REVE_RGBAPaletteEditor_H #define REVE_RGBAPaletteEditor_H #include class TGCheckButton; class TGColorSelect; namespace Reve { class RGBAPalette; class RGValuator; class RGBAPaletteSubEditor : public TGVerticalFrame { private: RGBAPaletteSubEditor(const RGBAPaletteSubEditor&); // Not implemented RGBAPaletteSubEditor& operator=(const RGBAPaletteSubEditor&); // Not implemented protected: RGBAPalette* fM; Reve::RGValuator* fMinVal; Reve::RGValuator* fMaxVal; TGCheckButton* fInterpolate; TGCheckButton* fWrap; TGColorSelect* fDefaultColor; public: RGBAPaletteSubEditor(const TGWindow* p); virtual ~RGBAPaletteSubEditor() {} void SetModel(RGBAPalette* p); void Changed(); //*SIGNAL* void DoMinVal(); void DoMaxVal(); void DoInterpolate(); void DoWrap(); void DoDefaultColor(Pixel_t); ClassDef(RGBAPaletteSubEditor, 1); // SubEditor for RGBAPalette }; // endclass RGBAPaletteSubEditor /**************************************************************************/ /**************************************************************************/ class RGBAPaletteEditor : public TGedFrame { private: RGBAPaletteEditor(const RGBAPaletteEditor&); // Not implemented RGBAPaletteEditor& operator=(const RGBAPaletteEditor&); // Not implemented protected: RGBAPalette* fM; RGBAPaletteSubEditor* fSE; public: RGBAPaletteEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground()); virtual ~RGBAPaletteEditor(); virtual void SetModel(TObject* obj); ClassDef(RGBAPaletteEditor, 1); // Editor for RGBAPalette }; // endclass RGBAPaletteEditor } #endif