source: trunk/MagicSoft/Mars/mgui/MGEventDispMain.h@ 703

Last change on this file since 703 was 698, checked in by tbretz, 24 years ago
*** empty log message ***
File size: 2.3 KB
Line 
1#ifndef MGEVENTDISPMAIN_H
2#define MGEVENTDISPMAIN_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
13class TGMenuBar;
14class TGPopupMenu;
15class TGTab;
16class TGTextButton;
17class TGListBox;
18class TGPictureButton;
19class TGFileContainer;
20class TGListView;
21class TGHorizontal3DLine;
22class TGLabel ;
23class TGTextEntry ;
24class TGTextBuffer;
25
26class MGEventDispMain : public TGTransientFrame {
27 private:
28
29 //
30 // Create a main frame with a number of different buttons.
31 //
32
33 // some member not connected with Gui
34
35 Char_t fInputFile[256] ;
36
37 // the things for the menu bar
38
39 TGMenuBar *fMenuBar ;
40 TGPopupMenu *fFileMenu ;
41 TGHorizontal3DLine *fLineSep1, *fLineSep2 ;
42
43
44 // divide the Window in two different parts
45
46 TGCompositeFrame *fFrameTop ; // top part of the main window
47 TGCompositeFrame *fFrameLow ; // low part of the main window
48 TGTab *fTab ; // different tabs in the low window
49
50 // the horizontal frame in the top part
51
52 TGHorizontalFrame *fTop1 ;
53
54 // the buttons in the Top Part
55
56 TGTextButton *fButFadcDispEvts ;
57 TGTextButton *fButFadcDispPed ;
58 TGTextButton *fButFadcDispCal ;
59
60 // the things in the file selector
61
62 TGCompositeFrame *fTabF1 ; // first tab of low part
63 TGCompositeFrame *fTabF1a, *fTabF1b, *fTabF1c ; // subpart of the file selector in low window
64
65 TGLabel *fLabFileName ;
66 TGTextEntry *fTxtFileName ;
67 TGTextBuffer *fTxtBufFileName ; //!
68 TGTextButton *fButFileReset ;
69
70 TGLabel *fLabDir ;
71 TGListBox *fDir ;
72 TGPictureButton *fCdup, *fListMode, *fDetail ;
73
74 TGFileContainer *fFileCont ;
75 TGListView *fFileView ;
76
77 // Layout hints for different uses
78
79 TGLayoutHints *fLayMenuBar, *fLayMenuItem ;
80 TGLayoutHints *fLayTab ;
81
82 // some icons and pictures often used
83
84 const TGPicture *fPicCdup; //!
85 const TGPicture *fPicList; //!
86 const TGPicture *fPicDetail; //!
87
88 public:
89 MGEventDispMain(const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h) ;
90
91 ~MGEventDispMain();
92
93 void CloseWindow() ;
94
95 Bool_t InputFileSelected() ;
96
97 Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
98
99 ClassDef(MGEventDispMain, 0)
100
101} ;
102
103#endif
104
105
Note: See TracBrowser for help on using the repository browser.