]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Reve/ZTransEditor.h
From Cvetan: new macro to load ITS clusters.
[u/mrichter/AliRoot.git] / EVE / Reve / ZTransEditor.h
1 // $Header$
2
3 #ifndef REVE_ZTransEditor_H
4 #define REVE_ZTransEditor_H
5
6 #include <TGedFrame.h>
7
8 class TGCheckButton;
9 class TGTextButton;
10
11 namespace Reve {
12
13 class ZTrans;
14 class RGTriVecValuator;
15
16 class ZTransSubEditor : public TGVerticalFrame
17 {
18   ZTransSubEditor(const ZTransSubEditor&);            // Not implemented
19   ZTransSubEditor& operator=(const ZTransSubEditor&); // Not implemented
20
21 protected:
22   ZTrans            *fTrans;
23
24   TGHorizontalFrame *fTopHorFrame;
25
26   TGCheckButton     *fUseTrans;
27   TGCheckButton     *fEditTrans;
28
29   TGVerticalFrame   *fEditTransFrame;
30
31   RGTriVecValuator  *fPos;
32   RGTriVecValuator  *fRot;
33   RGTriVecValuator  *fScale;
34
35   TGCheckButton     *fAutoUpdate;
36   TGTextButton      *fUpdate;          
37
38 public:
39   ZTransSubEditor(TGWindow* p);
40   virtual ~ZTransSubEditor() {}
41
42   void SetDataFromTrans(ZTrans* t);
43   void SetTransFromData();
44
45   void UseTrans();     //*SIGNAL*
46   void TransChanged(); //*SIGNAL*
47
48   void DoUseTrans();
49   void DoEditTrans();
50   void DoTransChanged();
51
52   ClassDef(ZTransSubEditor, 0)
53 };
54
55 class ZTransEditor : public TGedFrame
56 {
57 private:
58   ZTransEditor(const ZTransEditor&);            // Not implemented
59   ZTransEditor& operator=(const ZTransEditor&); // Not implemented
60
61 protected:
62   ZTrans* fM; // fModel dynamic-casted to ZTransEditor
63
64   // Declare widgets
65   // TGSomeWidget*   fXYZZ;
66
67 public:
68   ZTransEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground());
69   virtual ~ZTransEditor();
70
71   virtual void SetModel(TObject* obj);
72
73   // Declare callback/slot methods
74   // void DoXYZZ();
75
76   ClassDef(ZTransEditor, 1); // Editor for ZTrans
77 }; // endclass ZTransEditor
78
79 }
80
81 #endif