]>
Commit | Line | Data |
---|---|---|
d810d0de | 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 | **************************************************************************/ | |
4673ff03 | 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 | ||
84aff7a4 | 21 | class TEveGValuator; |
4673ff03 | 22 | |
4673ff03 | 23 | |
84aff7a4 | 24 | // class TEveGValuator; |
4673ff03 | 25 | |
d810d0de | 26 | class AliEveJetPlane; |
4673ff03 | 27 | |
d810d0de | 28 | class AliEveJetPlaneEditor : public TGedFrame |
4673ff03 | 29 | { |
30 | private: | |
d810d0de | 31 | AliEveJetPlaneEditor(const AliEveJetPlaneEditor&); // Not implemented |
32 | AliEveJetPlaneEditor& operator=(const AliEveJetPlaneEditor&); // Not implemented | |
4673ff03 | 33 | |
34 | protected: | |
d810d0de | 35 | AliEveJetPlane *fM; // fModel dynamic-casted to AliEveJetPlaneEditor |
4673ff03 | 36 | |
37 | // Declare widgets | |
38 | // TGSomeWidget* fXYZZ; | |
39 | TGCheckButton* fRnrJets; | |
40 | TGCheckButton* fRnrTracks; | |
84aff7a4 | 41 | TEveGValuator* fEnergyScale; |
42 | TEveGValuator* fEnergyColorScale; | |
4673ff03 | 43 | TGButton *fOneSelection, *fTwoSelection; |
44 | TGButton *fInformationSetup; | |
45 | ||
46 | public: | |
d810d0de | 47 | AliEveJetPlaneEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, |
4673ff03 | 48 | UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground()); |
d810d0de | 49 | virtual ~AliEveJetPlaneEditor(); |
4673ff03 | 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 | ||
d810d0de | 92 | ClassDef(AliEveJetPlaneEditor, 1); // Editor for AliEveJetPlane |
93 | }; // endclass AliEveJetPlaneEditor | |
4673ff03 | 94 | |
95 | #endif |