]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/Reve/RGBAPaletteEditor.h
Missing initialization; fiddle with the track marker-style a bit more.
[u/mrichter/AliRoot.git] / EVE / Reve / RGBAPaletteEditor.h
CommitLineData
8373e543 1// $Header$
2
3#ifndef REVE_RGBAPaletteEditor_H
4#define REVE_RGBAPaletteEditor_H
5
6#include <TGedFrame.h>
7
8class TGCheckButton;
9class TGColorSelect;
bc5158df 10class TGComboBox;
11
8373e543 12
13namespace Reve {
14
15class RGBAPalette;
16class RGValuator;
bc5158df 17class RGDoubleValuator;
8373e543 18
19class RGBAPaletteSubEditor : public TGVerticalFrame
20{
21private:
22 RGBAPaletteSubEditor(const RGBAPaletteSubEditor&); // Not implemented
23 RGBAPaletteSubEditor& operator=(const RGBAPaletteSubEditor&); // Not implemented
24
25protected:
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
39public:
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
64class RGBAPaletteEditor : public TGedFrame
65{
66private:
67 RGBAPaletteEditor(const RGBAPaletteEditor&); // Not implemented
68 RGBAPaletteEditor& operator=(const RGBAPaletteEditor&); // Not implemented
69
70protected:
71 RGBAPalette* fM;
72 RGBAPaletteSubEditor* fSE;
73
74public:
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