]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Reve/TrackRnrStyleEditor.h
Add some class-docs.
[u/mrichter/AliRoot.git] / EVE / Reve / TrackRnrStyleEditor.h
1 // $Header$
2
3 #ifndef REVE_TrackRnrStyleEditor_H
4 #define REVE_TrackRnrStyleEditor_H
5
6 #include <TGedFrame.h>
7
8 class TGButton;
9 class TGCheckButton;
10 class TGNumberEntry;
11 class TGColorSelect;
12 class TGComboBox;
13 class TGLineWidthComboBox;
14 class TGLineStyleComboBox;
15
16 class TAttMarkerEditor;
17
18 namespace Reve {
19
20 class TrackRnrStyle;
21
22 class RGValuator;
23 class RGDoubleValuator;
24 class TrackRnrStyleSubEditor;
25
26 class TrackRnrStyleSubEditor : public TGVerticalFrame
27 {
28   friend class TrackRnrStyleEditor;
29   friend class TrackListEditor;
30
31 private:
32   TrackRnrStyleSubEditor(const TrackRnrStyleSubEditor&);            // Not implemented
33   TrackRnrStyleSubEditor& operator=(const TrackRnrStyleSubEditor&); // Not implemented
34
35 protected:
36   TrackRnrStyle       *fM;  
37  
38   Reve::RGValuator    *fMaxR;
39   Reve::RGValuator    *fMaxZ;
40   Reve::RGValuator    *fMaxOrbits;
41   Reve::RGValuator    *fMinAng;
42   Reve::RGValuator    *fDelta;
43
44   TGCheckButton       *fRnrFV;
45
46   TGCompositeFrame    *fPMFrame;
47   TGButton            *fFitDaughters;
48   TGButton            *fFitReferences;
49   TGButton            *fFitDecay;
50   TGButton            *fRnrDaughters;
51   TGButton            *fRnrReferences;
52   TGButton            *fRnrDecay;
53
54   TGCompositeFrame    *fRefsCont;
55
56   TAttMarkerEditor    *fPMAtt;
57   TAttMarkerEditor    *fFVAtt;
58
59 public:
60   TrackRnrStyleSubEditor(const TGWindow* p);
61   virtual ~TrackRnrStyleSubEditor() {}
62
63   void SetModel(TrackRnrStyle* m);
64
65   void Changed(); //*SIGNAL*
66
67   void DoMaxR();
68   void DoMaxZ();
69   void DoMaxOrbits();
70   void DoMinAng();
71   void DoDelta();
72
73   void DoFitPM();
74   void DoRnrPM();
75   
76   void DoRnrFV();
77
78   void CreateRefsContainer(TGVerticalFrame* p);
79
80   ClassDef(TrackRnrStyleSubEditor, 0) // Sub-editor for TrackRnrStyle.
81 };
82
83 /**************************************************************************/
84 // TrackRnrStyleEditor
85 /**************************************************************************/
86
87 class TrackRnrStyleEditor : public TGedFrame
88 {
89 private:
90   TrackRnrStyleEditor(const TrackRnrStyleEditor&);            // Not implemented
91   TrackRnrStyleEditor& operator=(const TrackRnrStyleEditor&); // Not implemented
92
93   void CreateRefTab();
94 protected: 
95   TrackRnrStyle           *fM;           // Model object.
96   TrackRnrStyleSubEditor  *fRSSubEditor; // Render-style sub-editor.
97
98 public:
99   TrackRnrStyleEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
100                   UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
101   ~TrackRnrStyleEditor();
102
103   virtual void SetModel(TObject* obj);
104
105   ClassDef(TrackRnrStyleEditor, 1); // Editor for TrackRnrStyle.
106 }; // endclass TrackRnrStyleEditor
107
108 }
109
110 #endif