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