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