]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Alieve/TPCSector2DEditor.h
Merge from EVE-dev to HEAD.
[u/mrichter/AliRoot.git] / EVE / Alieve / TPCSector2DEditor.h
1 // $Header$
2
3 #ifndef ALIEVE_TPCSector2DEditor_H
4 #define ALIEVE_TPCSector2DEditor_H
5
6 #include <TGedFrame.h>
7
8 class TGCheckButton;
9 class TGNumberEntry;
10 class TGColorSelect;
11 class TGDoubleHSlider;
12 class TGHSlider;
13
14 namespace Alieve {
15
16 class TPCSector2D;
17
18 class TPCSector2DEditor : public TGedFrame
19 {
20 protected:
21   TPCSector2D* fM; // fModel dynamic-casted to TPCSector2DEditor
22
23   TGCheckButton*   fUseTexture;
24
25   TGNumberEntry*   fSectorID;
26
27   TGCheckButton*   fRnrInn;
28   TGCheckButton*   fRnrOut1;
29   TGCheckButton*   fRnrOut2;
30
31   TGLabel*         fThresholdLabel;
32   TGLabel*         fMaxValLabel;
33   TGHSlider*       fThreshold;
34   TGHSlider*       fMaxVal;
35
36   TGCheckButton*   fShowMax;
37   TGCheckButton*   fAverage;
38
39   TGNumberEntry*   fMinTime;
40   TGNumberEntry*   fMaxTime;
41   TGDoubleHSlider* fTime;
42
43 public:
44   TPCSector2DEditor(const TGWindow* p, Int_t id, Int_t width = 170, Int_t height = 30, UInt_t options = kChildFrame, Pixel_t back = GetDefaultFrameBackground());
45   ~TPCSector2DEditor();
46
47   virtual void SetModel(TVirtualPad* pad, TObject* obj, Int_t event);
48   virtual Bool_t CanEditMainColor()  { return true; }
49
50   // void DoXYZZ();
51   void DoUseTexture();
52
53   void DoSectorID();
54
55   void DoRnrInn();
56   void DoRnrOut1();
57   void DoRnrOut2();
58
59   void DoThreshold();
60   void DoMaxVal();
61   void DoShowMax();
62   void DoAverage();
63   void SetupAverage();
64   void DoMinTime();
65   void DoMaxTime();
66   void DoTime();
67  
68   ClassDef(TPCSector2DEditor, 0); // Editor for TPCSector2D
69 }; // endclass TPCSector2DEditor
70
71 }
72
73 #endif