source: trunk/MagicSoft/Mars/mgui/MGPrototyp.h@ 603

Last change on this file since 603 was 587, checked in by harald, 24 years ago
The integration of the class MGFadcDisp in the mars code. Now one is able to see at least the high gain samples with this gui. I hope that also Razmik is now able to look to the data.
File size: 2.2 KB
Line 
1#ifndef MGPROTOTYP_H
2#define MGPROTOTYP_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 MGPrototyp : 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 *fButAction ;
57
58 // the things in the file selector
59
60 TGCompositeFrame *fTabF1 ; // first tab of low part
61 TGCompositeFrame *fTabF1a, *fTabF1b, *fTabF1c ; // subpart of the file selector in low window
62
63 TGLabel *fLabFileName ;
64 TGTextEntry *fTxtFileName ;
65 TGTextBuffer *fTxtBufFileName ; //!
66 TGTextButton *fButFileReset ;
67
68 TGLabel *fLabDir ;
69 TGListBox *fDir ;
70 TGPictureButton *fCdup, *fListMode, *fDetail ;
71 TGFileContainer *fFileCont ;
72 TGListView *fFileView ;
73
74 // Layout hints for different uses
75
76 TGLayoutHints *fLayMenuBar, *fLayMenuItem ;
77 TGLayoutHints *fLayTab ;
78
79 // some icons and pictures often used
80
81 const TGPicture *fPicCdup; //!
82 const TGPicture *fPicList; //!
83 const TGPicture *fPicDetail; //!
84
85 public:
86 MGPrototyp(const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h) ;
87
88 ~MGPrototyp();
89
90 void CloseWindow() ;
91
92 Bool_t InputFileSelected() ;
93
94 Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
95
96 ClassDef(MGPrototyp, 1)
97
98} ;
99
100#endif
101
102
Note: See TracBrowser for help on using the repository browser.