]>
Commit | Line | Data |
---|---|---|
5a5a1232 | 1 | // $Header$ |
2 | ||
3 | #ifndef REVE_TrackEditors_H | |
4 | #define REVE_TrackEditors_H | |
5 | ||
6 | #include <TGedFrame.h> | |
7 | ||
511684d7 | 8 | class TGButton; |
5a5a1232 | 9 | class TGCheckButton; |
10 | class TGNumberEntry; | |
11 | class TGColorSelect; | |
6bd69299 | 12 | class TGComboBox; |
2074deef | 13 | class TGLineWidthComboBox; |
5a5a1232 | 14 | |
15 | namespace Reve { | |
16 | ||
a3912979 | 17 | class RGValuator; |
18 | class RGDoubleValuator; | |
19 | ||
5a5a1232 | 20 | class TrackList; |
21 | ||
6bd69299 | 22 | /**************************************************************************/ |
23 | // TrackListEditor | |
24 | /**************************************************************************/ | |
25 | ||
5a5a1232 | 26 | class TrackListEditor : public TGedFrame |
27 | { | |
265ecb21 | 28 | TrackListEditor(const TrackListEditor&); // Not implemented |
29 | TrackListEditor& operator=(const TrackListEditor&); // Not implemented | |
30 | ||
5a5a1232 | 31 | protected: |
32 | TrackList* fTC; // fModel dynamic-casted to TrackListEditor | |
33 | ||
f1d52824 | 34 | Reve::RGValuator* fMaxR; |
35 | Reve::RGValuator* fMaxZ; | |
5a5a1232 | 36 | TGNumberEntry* fMaxOrbits; |
37 | TGNumberEntry* fMinAng; | |
38 | TGNumberEntry* fDelta; | |
39 | ||
2074deef | 40 | TGLineWidthComboBox* fWidthCombo; |
41 | ||
5a5a1232 | 42 | TGCheckButton* fRnrTracks; |
43 | TGCheckButton* fRnrMarkers; | |
44 | ||
511684d7 | 45 | TGHorizontalFrame* fPMFrame; |
46 | TGButton* fFitDaughters; | |
47 | TGButton* fFitReferences; | |
48 | TGButton* fFitDecay; | |
49 | TGButton* fRnrDaughters; | |
50 | TGButton* fRnrReferences; | |
51 | TGButton* fRnrDecay; | |
5a5a1232 | 52 | |
a3912979 | 53 | RGDoubleValuator* fPtRange; |
54 | ||
5a5a1232 | 55 | public: |
a8600b56 | 56 | TrackListEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, |
57 | UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground()); | |
5a5a1232 | 58 | ~TrackListEditor(); |
59 | ||
a8600b56 | 60 | virtual void SetModel(TObject* obj); |
5a5a1232 | 61 | |
62 | void DoMaxR(); | |
63 | void DoMaxZ(); | |
64 | void DoMaxOrbits(); | |
65 | void DoMinAng(); | |
66 | void DoDelta(); | |
67 | ||
2074deef | 68 | void DoLineWidth(Int_t width); |
69 | ||
5a5a1232 | 70 | void DoRnrTracks(); |
71 | void DoRnrMarkers(); | |
72 | ||
511684d7 | 73 | void DoFitPM(); |
74 | void DoRnrPM(); | |
5a5a1232 | 75 | |
a3912979 | 76 | void DoPtRange(); |
5a5a1232 | 77 | |
78 | ClassDef(TrackListEditor, 1); // Editor for TrackList | |
79 | }; // endclass TrackListEditor | |
80 | ||
6bd69299 | 81 | |
82 | ||
83 | /**************************************************************************/ | |
84 | // | |
85 | /**************************************************************************/ | |
86 | ||
87 | class TrackCounter; | |
88 | ||
89 | class TrackCounterEditor : public TGedFrame | |
90 | { | |
91 | private: | |
92 | TrackCounterEditor(const TrackCounterEditor&); // Not implemented | |
93 | TrackCounterEditor& operator=(const TrackCounterEditor&); // Not implemented | |
94 | ||
95 | protected: | |
96 | TrackCounter* fM; // fModel dynamic-casted to TrackCounter | |
97 | ||
98 | // Declare widgets | |
5ea94a5a | 99 | TGComboBox* fClickAction; |
100 | TGLabel* fInfoLabel; | |
101 | TGNumberEntry* fEventId; | |
6bd69299 | 102 | |
103 | public: | |
104 | TrackCounterEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, | |
105 | UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground()); | |
106 | virtual ~TrackCounterEditor(); | |
107 | ||
108 | virtual void SetModel(TObject* obj); | |
109 | ||
110 | void DoOrtoXY(); | |
111 | void DoOrtoZY(); | |
112 | void DoPersp(); | |
113 | ||
114 | void DoPrev(); | |
115 | void DoNext(); | |
5ea94a5a | 116 | void DoSetEvent(); |
6bd69299 | 117 | |
c71edfe9 | 118 | void DoPrintReport(); |
119 | void DoFileReport(); | |
120 | void DoShowHistos(); | |
121 | ||
6bd69299 | 122 | void DoClickAction(Int_t); |
123 | ||
124 | ClassDef(TrackCounterEditor, 1); // Editor for TrackCounter | |
125 | }; // endclass TrackCounterEditor | |
126 | ||
5a5a1232 | 127 | } |
128 | ||
129 | #endif |