]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Alieve/JetPlaneEditor.h
018a35c412814e2ff26fa3af3e1f55d1ba52e8a1
[u/mrichter/AliRoot.git] / EVE / Alieve / JetPlaneEditor.h
1 // $Header$
2
3 #ifndef ALIEVE_JetPlaneEditor_H
4 #define ALIEVE_JetPlaneEditor_H
5
6 #include <TGedFrame.h>
7 #include <RQ_OBJECT.h>
8
9 class TGButton;
10 class TGCheckButton;
11 class TGNumberEntry;
12 class TGColorSelect;
13
14 namespace Reve
15 {
16   class RGValuator;
17 }
18
19 namespace Alieve {
20
21 // class RGValuator;
22
23 class JetPlane;
24
25 class JetPlaneEditor : public TGedFrame
26 {
27 private:
28   JetPlaneEditor(const JetPlaneEditor&);            // Not implemented
29   JetPlaneEditor& operator=(const JetPlaneEditor&); // Not implemented
30
31 protected:
32   JetPlane          *fM; // fModel dynamic-casted to JetPlaneEditor
33
34   // Declare widgets
35   // TGSomeWidget*   fXYZZ;
36   TGCheckButton*     fRnrJets;
37   TGCheckButton*     fRnrTracks;
38   Reve::RGValuator*  fEnergyScale;
39   Reve::RGValuator*  fEnergyColorScale;
40   TGButton          *fOneSelection, *fTwoSelection;
41   TGButton          *fInformationSetup;
42
43 public:
44   JetPlaneEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
45                  UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground());
46   virtual ~JetPlaneEditor();
47
48   virtual void SetModel(TObject* obj);
49
50   // Declare callback/slot methods
51   // void DoXYZZ();
52   void DoRnrJets();
53   void DoRnrTracks();
54   void DoEnergyColorScale();
55   void DoEnergyScale();
56   void DoOneSelection();
57   void DoTwoSelection();
58   void DoStaticDataWindow();
59
60
61   // --- Internal class for common settings
62 public:
63   class StaticDataWindow : public TGTransientFrame
64   {
65   private:
66     TGCompositeFrame    *fFrame1, *fF2;
67     TGButton            *fOkButton, *fCancelButton;
68     TGLayoutHints       *fL1, *fL2, *fL3, *fL5;
69     TGTab               *fTab;
70     TGButton            *fChk1, *fChk2,*fChk3, *fChk4,*fChk5;
71
72   public:
73     StaticDataWindow(const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h,
74                      UInt_t options = kVerticalFrame);
75     virtual ~StaticDataWindow();
76
77     // slots
78     void DoClose();
79     void DoOK();
80     void DoCancel();
81     void DoTab(Int_t id);
82
83     ClassDef(StaticDataWindow, 0);
84   };
85
86 protected:
87   static StaticDataWindow* fgStaticWindow;
88
89   ClassDef(JetPlaneEditor, 1); // Editor for JetPlane
90 }; // endclass JetPlaneEditor
91
92 }
93
94 #endif