source: branches/start/MagicSoft/Simulation/Corsika/GuiSimone/MainFrameSimone.hxx@ 20115

Last change on this file since 20115 was 413, checked in by harald, 24 years ago
Import to start CVS control
File size: 2.0 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 <TCanvas.h>
14
15#include "COREventHeader.hxx"
16
17
18enum CommandIdentifiers {
19 M_FILE_EXIT ,
20
21 M_CDIR_UP,
22 M_LIST_MODE ,
23 M_DETAIL_MODE,
24 M_BUTTON_SELECT,
25
26 M_BUTTON_PLOT,
27 M_BUTTON_PARTID,
28 M_BUTTON_ENERGY,
29 M_BUTTON_CORE,
30
31
32 M_CTRL_EXIT,
33 M_CTRL_PWD,
34 M_CTRL_PATH
35};
36
37
38class MainFrameSimone : public TGMainFrame {
39
40private:
41 Char_t fInputPath[200] ;
42 Int_t fNumEvents ;
43 Char_t fNtupPath[200] ;
44
45 TNtuple *fNtup ;
46
47 TGMenuBar *fMenuBar ;
48 TGPopupMenu *fFileMenu ;
49 TGCompositeFrame *fFrame ;
50 TGTab *fTab ;
51 TGCompositeFrame *fTabF1, *fTabF2, *fTabF3 ;
52 TGCompositeFrame *fTabF1a, *fTabF1b ;
53 TGTextButton *fSelectButton ;
54 TGListBox *fDir ;
55 TGPictureButton *fCdup, *fListMode, *fDetail ;
56 TGFileContainer *fFileCont ;
57 TGListView *fFileView ;
58 TGCompositeFrame *fTabF2a, *fTabF2b, *fTabF2c ;
59 TGLabel *fLabelInput, *fLabelNumEvts ;
60 TGListBox *fDir2, *fDirNum ;
61 TGTextButton *fButtonPlot ;
62 TRootEmbeddedCanvas *fCanvasRun ;
63 TGTextButton *fButtonPartID, *fButtonEnergy, *fButtonCore ;
64
65 TGTextButton *fButton1 ;
66 TGTextButton *fButton2 ;
67 TGTextButton *fButton3 ;
68 TGLayoutHints *fLayout, *fLayMenuBar, *fLayMenuItem ;
69 TGLayoutHints *fLayTab;
70
71 const TGPicture *fPicCdup, *fPicList, *fPicDetail ;
72
73public:
74 MainFrameSimone(const TGWindow *p, UInt_t w, UInt_t h);
75 ~MainFrameSimone();
76
77 void CloseWindow() ;
78
79
80 Bool_t CerFileExist(Char_t *dir) ;
81 Bool_t CheckNtup() ;
82 Bool_t ReadDataToNtup() ;
83 Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
84
85};
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
Note: See TracBrowser for help on using the repository browser.