MagicControlPanel.h
1 
9 #ifndef MAGICCONTROLPANEL_H
10 #define MAGICCONTROLPANEL_H
11 
12 
13 #include <TGResourcePool.h>
14 #include <TGListBox.h>
15 #include <TGListTree.h>
16 #include <TGFSContainer.h>
17 #include <TGClient.h>
18 #include <TGFrame.h>
19 #include <TGIcon.h>
20 #include <TGLabel.h>
21 #include <TGButton.h>
22 #include <TGTextEntry.h>
23 #include <TGNumberEntry.h>
24 #include <TGMsgBox.h>
25 #include <TGMenu.h>
26 #include <TGCanvas.h>
27 #include <TGComboBox.h>
28 #include <TGTab.h>
29 #include <TGSlider.h>
30 #include <TGDoubleSlider.h>
31 #include <TGFileDialog.h>
32 #include <TGTextEdit.h>
33 #include <TGShutter.h>
34 #include <TGProgressBar.h>
35 #include <TGColorSelect.h>
36 #include <TRootEmbeddedCanvas.h>
37 #include <TCanvas.h>
38 #include <TColor.h>
39 #include <TH1.h>
40 #include <TH2.h>
41 #include <TRandom.h>
42 #include <TSystem.h>
43 #include <TSystemDirectory.h>
44 #include <TEnv.h>
45 #include <TFile.h>
46 #include <TKey.h>
47 #include <TGDockableFrame.h>
48 #include <TGFontDialog.h>
49 
50 
51 
53 
56 class MagicControlPanel : public TGMainFrame
57 {
58 public:
59 
60 
62  virtual ~MagicControlPanel();
63 
64  // virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t); ///< ROOT underlying code fragment
65 
66 
67 
68  //Instance generator
69  static MagicControlPanel* Instance();
70 
71  void goToEvent();
72  void closeControlPanel();
73  void cycleThroughInputs();
74 
75  virtual void CloseWindow();
76  protected:
78 
79  virtual Bool_t HandleKey(Event_t* ev);
80 
81  // TGMainFrame *fMainFrame; ///< Main frame
82  TGTextButton *fGotoBut;
83 
84  TGCheckButton *fEventBut;
85  TGCheckButton *fSurfBut;
86  TGCheckButton *fTurfBut;
87  TGCheckButton *fAvgSurfBut;
88  TGCheckButton *fSumTurfBut;
89  TGLayoutHints *fLayout;
90  TGLayoutHints *fLeftLayout;
91  TGLayoutHints *fRightLayout;
92  TGLayoutHints *fButtonLayout;
93  TGLayoutHints *fCenterLayout;
94  TGNumberEntry *fRunEntry;
95  TGNumberEntry *fEventEntry;
96  TGNumberEntryField *fRunEntryField;
97  TGNumberEntryField *fEventEntryField;
98 
99  TGLabel *fRunLabel;
100  TGLabel *fEventLabel;
101  TGLabel *fUpdateLabel;
102 
103  TGVerticalFrame *fEntryPanel;
104  TGHorizontalFrame *fRunPanel;
105  TGHorizontalFrame *fEventPanel;
106  TGVerticalFrame *fButtonPanel;
107 
109 };
110 
111 
112 #endif //MAGICCONTROLPANEL_H
TGLayoutHints * fLayout
Layout nonsense.
static MagicControlPanel * fgInstance
Protect against multiple instances.
TGNumberEntry * fRunEntry
Number entry form.
TGNumberEntryField * fEventEntryField
Number entry form field.
TGLayoutHints * fRightLayout
Layout nonsense.
TGCheckButton * fEventBut
Check button.
TGVerticalFrame * fButtonPanel
A vertical frame.
TGTextButton * fGotoBut
Text button.
TGLayoutHints * fCenterLayout
Layout nonsense.
TGNumberEntry * fEventEntry
Number entry form.
TGCheckButton * fAvgSurfBut
Check button.
TGLayoutHints * fButtonLayout
Layout nonsense.
MagicControlPanel()
The default constructor.
virtual ~MagicControlPanel()
The destructor.
TGLabel * fUpdateLabel
It&#39;s a label.
TGLayoutHints * fLeftLayout
Layout nonsense.
TGNumberEntryField * fRunEntryField
Number entry form field.
TGCheckButton * fSumTurfBut
Check button.
TGHorizontalFrame * fRunPanel
A horizontal frame.
static MagicControlPanel * Instance()
The instance generator (there should only be one instance of the MagicControlPanel at a time...
ClassDef(MagicControlPanel, 1)
One of the magic ROOT macros.
TGCheckButton * fTurfBut
Check button.
The Magic Display control panel.
TGVerticalFrame * fEntryPanel
A vertical frame.
TGCheckButton * fSurfBut
Check button.
TGHorizontalFrame * fEventPanel
A horizontal frame.
TGLabel * fEventLabel
It&#39;s a label.
TGLabel * fRunLabel
It&#39;s a label.