Cleaned-up by using RGValuators instead of raw ROOT GUI (partial).
[u/mrichter/AliRoot.git] / EVE / Reve / TrackEditors.h
1 // $Header$
2
3 #ifndef REVE_TrackEditors_H
4 #define REVE_TrackEditors_H
5
6 #include <TGedFrame.h>
7
8 class TGCheckButton;
9 class TGNumberEntry;
10 class TGColorSelect;
11 class TGLineWidthComboBox;
12
13 namespace Reve {
14
15 class RGValuator;
16 class RGDoubleValuator;
17
18 class TrackList;
19
20 class TrackListEditor : public TGedFrame
21 {
22   TrackListEditor(const TrackListEditor&);            // Not implemented
23   TrackListEditor& operator=(const TrackListEditor&); // Not implemented
24
25 protected:
26   TrackList* fTC; // fModel dynamic-casted to TrackListEditor
27
28   Reve::RGValuator*  fMaxR;
29   Reve::RGValuator*  fMaxZ;
30   TGNumberEntry*     fMaxOrbits;
31   TGNumberEntry*     fMinAng;
32   TGNumberEntry*     fDelta;
33
34   TGLineWidthComboBox* fWidthCombo;
35
36   TGCheckButton*     fRnrTracks;
37   TGCheckButton*     fRnrMarkers;
38
39   TGCheckButton*     fFitDaughters;
40   TGCheckButton*     fFitDecay;
41
42   RGDoubleValuator*  fPtRange;
43
44 public:
45   TrackListEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
46                   UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
47   ~TrackListEditor();
48
49   virtual void SetModel(TObject* obj);
50
51   void DoMaxR();
52   void DoMaxZ();
53   void DoMaxOrbits();
54   void DoMinAng();
55   void DoDelta();
56
57   void DoLineWidth(Int_t width);
58
59   void DoRnrTracks();
60   void DoRnrMarkers();
61
62   void DoFitDaughters();
63   void DoFitDecay();
64
65   void DoPtRange();
66
67   ClassDef(TrackListEditor, 1); // Editor for TrackList
68 }; // endclass TrackListEditor
69
70 }
71
72 #endif