]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Reve/ZTransEditor.h
First big commit of the mchview program and its accompanying library,
[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); // Sub-editor for ZTrans class.
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; // Model object.
63
64 public:
65   ZTransEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground());
66   virtual ~ZTransEditor();
67
68   virtual void SetModel(TObject* obj);
69
70   ClassDef(ZTransEditor, 1); // Editor for ZTrans class.
71 }; // endclass ZTransEditor
72
73 }
74
75 #endif