1 | #ifndef MGMONTECARLOMAIH_H
|
---|
2 | #define MGMONTECARLOMAIN_H
|
---|
3 |
|
---|
4 | #ifndef MAGIC_H
|
---|
5 | #include "MAGIC.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef ROOT_TGFrame
|
---|
9 | #include <TGFrame.h>
|
---|
10 | #endif
|
---|
11 |
|
---|
12 |
|
---|
13 | class TGMenuBar;
|
---|
14 | class TGPopupMenu;
|
---|
15 | class TGTab;
|
---|
16 | class TGTextButton;
|
---|
17 | class TGListBox;
|
---|
18 | class TGPictureButton;
|
---|
19 | class TGFileContainer;
|
---|
20 | class TGListView;
|
---|
21 |
|
---|
22 | class MGMonteCarloMain : public TGTransientFrame {
|
---|
23 | private:
|
---|
24 |
|
---|
25 | //
|
---|
26 | // Create a main frame with a number of different buttons.
|
---|
27 | //
|
---|
28 |
|
---|
29 | // some member not connected with Gui
|
---|
30 |
|
---|
31 | Char_t fInputFile[256] ;
|
---|
32 |
|
---|
33 | // the things for the menu bar
|
---|
34 |
|
---|
35 | TGMenuBar *fMenuBar ;
|
---|
36 | TGPopupMenu *fFileMenu ;
|
---|
37 |
|
---|
38 | // divide the Window in two different parts
|
---|
39 |
|
---|
40 | TGCompositeFrame *fFrameTop ; // top part of the main window
|
---|
41 | TGCompositeFrame *fFrameLow ; // low part of the main window
|
---|
42 | TGTab *fTab ; // different tabs in the low window
|
---|
43 |
|
---|
44 | // the horizontal frame in the top part
|
---|
45 |
|
---|
46 | TGHorizontalFrame *fTop1 ;
|
---|
47 |
|
---|
48 | // the buttons in the Top Part
|
---|
49 |
|
---|
50 | TGTextButton *fButAction ;
|
---|
51 |
|
---|
52 | // the things in the file selector
|
---|
53 |
|
---|
54 | TGCompositeFrame *fTabF1 ; // first tab of low part
|
---|
55 | TGCompositeFrame *fTabF1a, *fTabF1b ; // subpart of the file selector in low window
|
---|
56 | TGListBox *fDir ;
|
---|
57 | TGPictureButton *fCdup, *fListMode, *fDetail ;
|
---|
58 | TGFileContainer *fFileCont ;
|
---|
59 | TGListView *fFileView ;
|
---|
60 |
|
---|
61 | // Layout hints for different uses
|
---|
62 |
|
---|
63 | TGLayoutHints *fLayMenuBar, *fLayMenuItem ;
|
---|
64 | TGLayoutHints *fLayTab ;
|
---|
65 |
|
---|
66 | // some icons and pictures often used
|
---|
67 |
|
---|
68 | const TGPicture *fPicCdup; //!
|
---|
69 | const TGPicture *fPicList; //!
|
---|
70 | const TGPicture *fPicDetail; //!
|
---|
71 |
|
---|
72 | public:
|
---|
73 | MGMonteCarloMain(const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h) ;
|
---|
74 |
|
---|
75 | ~MGMonteCarloMain();
|
---|
76 |
|
---|
77 | void CloseWindow() ;
|
---|
78 |
|
---|
79 | Bool_t InputFileSelected() ;
|
---|
80 |
|
---|
81 | Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
|
---|
82 |
|
---|
83 | ClassDef(MGMonteCarloMain, 0)
|
---|
84 |
|
---|
85 | } ;
|
---|
86 |
|
---|
87 | #endif
|
---|
88 |
|
---|
89 |
|
---|