]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/Alieve/JetPlaneEditor.h
Record changes.
[u/mrichter/AliRoot.git] / EVE / Alieve / JetPlaneEditor.h
CommitLineData
4673ff03 1// $Header$
2
3#ifndef ALIEVE_JetPlaneEditor_H
4#define ALIEVE_JetPlaneEditor_H
5
6#include <TGedFrame.h>
7#include <RQ_OBJECT.h>
8
9class TGButton;
10class TGCheckButton;
11class TGNumberEntry;
12class TGColorSelect;
13
14namespace Reve
15{
16 class RGValuator;
17}
18
19namespace Alieve {
20
21// class RGValuator;
22
23class JetPlane;
24
25class JetPlaneEditor : public TGedFrame
26{
27private:
28 JetPlaneEditor(const JetPlaneEditor&); // Not implemented
29 JetPlaneEditor& operator=(const JetPlaneEditor&); // Not implemented
30
31protected:
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
43public:
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
62public:
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
86protected:
87 static StaticDataWindow* fgStaticWindow;
88
89 ClassDef(JetPlaneEditor, 1); // Editor for JetPlane
90}; // endclass JetPlaneEditor
91
92}
93
94#endif