source: trunk/MagicSoft/Simulation/Corsika/GuiSimone/MainFrameSimone.hxx@ 423

Last change on this file since 423 was 423, checked in by harald, 24 years ago
Added the Layout for the Event distrbution display. Only the layout was implemented.
File size: 2.6 KB
Line 
1#include <TROOT.h>
2#include <TSystem.h>
3#include <TGClient.h>
4#include <TGButton.h>
5#include <TGMenu.h>
6#include <TGTab.h>
7#include <TGListBox.h>
8#include <TGLabel.h>
9#include <TGPicture.h>
10#include <TGFSContainer.h>
11#include <TRootEmbeddedCanvas.h>
12#include <TNtuple.h>
13#include <TFile.h>
14#include <TCanvas.h>
15
16#include "COREventHeader.hxx"
17
18
19enum CommandIdentifiers {
20 M_FILE_EXIT ,
21
22 M_CDIR_UP,
23 M_LIST_MODE ,
24 M_DETAIL_MODE,
25 M_BUTTON_SELECT,
26
27 M_BUTTON_PRINT,
28 M_BUTTON_PARTID,
29 M_BUTTON_ENERGY,
30 M_BUTTON_CORE,
31 M_BUTTON_THETA,
32 M_BUTTON_PHI,
33 M_BUTTON_FIRSTINT,
34
35 M_BUTTON_PREV,
36 M_BUTTON_NEXT,
37
38 M_BUTTON_WAVELEN,
39 M_BUTTON_POSIT,
40 M_BUTTON_HEIGHT,
41 M_BUTTON_TIME,
42 M_BUTTON_DIRE,
43
44 M_CTRL_EXIT,
45 M_CTRL_PWD,
46 M_CTRL_PATH
47};
48
49
50class MainFrameSimone : public TGMainFrame {
51
52private:
53 Char_t fInputPath[200] ;
54 Int_t fNumEvents ;
55 Char_t fNtupPath[200] ;
56
57 TNtuple *fNtup ;
58
59 TGMenuBar *fMenuBar ;
60 TGPopupMenu *fFileMenu ;
61 TGCompositeFrame *fFrame ;
62 TGTab *fTab ;
63 TGCompositeFrame *fTabF1, *fTabF2, *fTabF3, *fTabF4 ;
64
65 TGCompositeFrame *fTabF1a, *fTabF1b ;
66 TGTextButton *fSelectButton ;
67 TGListBox *fDir ;
68 TGPictureButton *fCdup, *fListMode, *fDetail ;
69 TGFileContainer *fFileCont ;
70 TGListView *fFileView ;
71
72 TGCompositeFrame *fTabF2a, *fTabF2b, *fTabF2c ;
73 TGLabel *fLabelInput, *fLabelNumEvts ;
74 TGListBox *fDir2, *fDirNum ;
75 TGTextButton *fButtonPrint ;
76 TRootEmbeddedCanvas *fCanvasRun ;
77 TGTextButton *fButtonPartID, *fButtonEnergy, *fButtonCore ;
78 TGTextButton *fButtonTheta, *fButtonPhi, *fButtonFirst ;
79
80 TGCompositeFrame *fTabF3a, *fTabF3b, *fTabF3c ;
81 TGLabel *fLabel3, *fLabel4 ;
82 TGListBox *fDir3, *fDirEvtNb ;
83 TRootEmbeddedCanvas *fCanvasEvt ;
84 TGTextButton *fButtonPrev, *fButtonNext ;
85 TGTextButton *fButtonWave, *fButtonPosit ;
86 TGTextButton *fButtonHeight, *fButtonTime, *fButtonDire ;
87
88
89 TGTextButton *fButton1 ;
90 TGTextButton *fButton2 ;
91 TGTextButton *fButton3 ;
92 TGLayoutHints *fLayout, *fLayMenuBar, *fLayMenuItem ;
93 TGLayoutHints *fLayTab;
94
95 const TGPicture *fPicCdup, *fPicList, *fPicDetail ;
96
97public:
98 MainFrameSimone(const TGWindow *p, UInt_t w, UInt_t h);
99 ~MainFrameSimone();
100
101 void CloseWindow() ;
102
103
104 Bool_t CerFileExist(Char_t *dir) ;
105 Bool_t DrawRunParam(Char_t *paraName) ;
106 Bool_t CheckNtup() ;
107 Bool_t ReadDataToNtup() ;
108 Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
109
110};
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
Note: See TracBrowser for help on using the repository browser.