]>
Commit | Line | Data |
---|---|---|
8373e543 | 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; | |
bc5158df | 10 | class TGComboBox; |
11 | ||
8373e543 | 12 | |
13 | namespace Reve { | |
14 | ||
15 | class RGBAPalette; | |
16 | class RGValuator; | |
bc5158df | 17 | class RGDoubleValuator; |
8373e543 | 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 | ||
b615ecc5 | 28 | TGComboBox* fUnderflowAction; |
bc5158df | 29 | TGColorSelect* fUnderColor; |
b615ecc5 | 30 | TGComboBox* fOverflowAction; |
bc5158df | 31 | TGColorSelect* fOverColor; |
8373e543 | 32 | |
bc5158df | 33 | RGDoubleValuator* fMinMax; |
8373e543 | 34 | |
bc5158df | 35 | TGCheckButton* fInterpolate; |
36 | TGCheckButton* fShowDefValue; | |
8373e543 | 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 | ||
bc5158df | 47 | void DoMinMax(); |
48 | ||
8373e543 | 49 | void DoInterpolate(); |
bc5158df | 50 | void DoShowDefValue(); |
51 | void DoDefaultColor(Pixel_t color); | |
52 | void DoUnderColor(Pixel_t color); | |
53 | void DoOverColor(Pixel_t color); | |
b615ecc5 | 54 | void DoUnderflowAction(Int_t mode); |
55 | void DoOverflowAction(Int_t mode); | |
8373e543 | 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 |