]>
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 * | |
51346b82 | 7 | * full copyright notice. * |
d810d0de | 8 | **************************************************************************/ |
4673ff03 | 9 | |
a15e6d7d | 10 | #ifndef AliEveJetPlaneEditor_H |
11 | #define AliEveJetPlaneEditor_H | |
4673ff03 | 12 | |
13 | #include <TGedFrame.h> | |
4673ff03 | 14 | |
15 | class TGButton; | |
16 | class TGCheckButton; | |
17 | class TGNumberEntry; | |
18 | class TGColorSelect; | |
84aff7a4 | 19 | class TEveGValuator; |
4673ff03 | 20 | |
d810d0de | 21 | class AliEveJetPlane; |
4673ff03 | 22 | |
d810d0de | 23 | class AliEveJetPlaneEditor : public TGedFrame |
4673ff03 | 24 | { |
4673ff03 | 25 | public: |
d810d0de | 26 | AliEveJetPlaneEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, |
a97abca8 | 27 | UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground()); |
28 | virtual ~AliEveJetPlaneEditor() {} | |
4673ff03 | 29 | |
30 | virtual void SetModel(TObject* obj); | |
31 | ||
32 | // Declare callback/slot methods | |
33 | // void DoXYZZ(); | |
34 | void DoRnrJets(); | |
35 | void DoRnrTracks(); | |
361f01a5 | 36 | void DoArrowJetScale(); |
37 | void DoArrowTrackScale(); | |
38 | void DoEnergyScale(); | |
4673ff03 | 39 | void DoOneSelection(); |
40 | void DoTwoSelection(); | |
41 | void DoStaticDataWindow(); | |
42 | ||
43 | ||
44 | // --- Internal class for common settings | |
4b456ebb | 45 | |
4673ff03 | 46 | class StaticDataWindow : public TGTransientFrame |
47 | { | |
4673ff03 | 48 | public: |
49 | StaticDataWindow(const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h, | |
50 | UInt_t options = kVerticalFrame); | |
51 | virtual ~StaticDataWindow(); | |
52 | ||
53 | // slots | |
54 | void DoClose(); | |
55 | void DoOK(); | |
56 | void DoCancel(); | |
57 | void DoTab(Int_t id); | |
58 | ||
4b456ebb | 59 | private: |
60 | StaticDataWindow(const StaticDataWindow&); // Not implemented | |
61 | StaticDataWindow& operator=(const StaticDataWindow&); // Not implemented | |
62 | ||
63 | TGCompositeFrame *fFrame1, *fF2; // Frames. | |
64 | TGButton *fOkButton, *fCancelButton; // Ok, cancel buttons. | |
65 | TGLayoutHints *fL1, *fL2, *fL3, *fL5; // Layout hints. | |
66 | TGTab *fTab; // Tab container. | |
67 | TGButton *fChk1, *fChk2,*fChk3, *fChk4,*fChk5; // Check-buttons. | |
68 | ||
a97abca8 | 69 | ClassDef(StaticDataWindow, 0); // Common settings for all AliEveJetPlane objects. |
4673ff03 | 70 | }; |
71 | ||
72 | protected: | |
4b456ebb | 73 | AliEveJetPlane *fM; // Model object. |
74 | ||
75 | TGCheckButton *fRnrJets; // Widget for flag RnrJets. | |
76 | TGCheckButton *fRnrTracks; // Widget for flag RnrTracks. | |
77 | TEveGValuator *fEnergyScale; // Widget for EnergyScale. | |
361f01a5 | 78 | TEveGValuator *fArrowJetScale; // Widget for ArrowJetScale. |
79 | TEveGValuator *fArrowTrackScale; // Widget for ArrowTrackScale. | |
4b456ebb | 80 | TGButton *fOneSelection, *fTwoSelection; // Widgets for one/two selection flags. |
81 | TGButton *fInformationSetup; // Widget for InformationSetup. | |
82 | ||
a97abca8 | 83 | static StaticDataWindow* fgStaticWindow; // Common window for global settings. |
4673ff03 | 84 | |
4b456ebb | 85 | private: |
86 | AliEveJetPlaneEditor(const AliEveJetPlaneEditor&); // Not implemented | |
87 | AliEveJetPlaneEditor& operator=(const AliEveJetPlaneEditor&); // Not implemented | |
88 | ||
89 | ClassDef(AliEveJetPlaneEditor, 0); // Editor for AliEveJetPlane. | |
90 | }; | |
4673ff03 | 91 | |
92 | #endif |